@alexgorbatchev/shadcn 0.0.101 → 0.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-519826kj.js → chunk-77k07x58.js} +1 -1
- package/dist/{chunk-9n0axzd5.js → chunk-bfv4qesg.js} +14 -2
- package/dist/{chunk-pn35mpc0.js → chunk-che2mtt5.js} +1 -1
- package/dist/{chunk-g4s1f61z.js → chunk-n593jqmw.js} +217 -127
- package/dist/{chunk-x9p6qh9d.js → chunk-r4r4qcyx.js} +1 -1
- package/dist/{chunk-rpjkf15t.js → chunk-sdkk4n8d.js} +1 -1
- package/dist/components/Field.d.ts +8 -2
- package/dist/components/FilterChip.d.ts +17 -0
- package/dist/components/Message.d.ts +14 -1
- package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
- package/dist/components/assistant-ui/elements/ElicitationForm.js +2 -2
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +2 -2
- package/dist/components/assistant-ui/elements/ModelPicker.js +2 -2
- package/dist/components/assistant-ui/index.js +5 -5
- package/dist/components/event-calendar/index.js +1 -1
- package/dist/components/image-viewer/index.js +1 -1
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/json-render/index.js +2 -2
- package/dist/components/sonner/Sonner.d.ts +9 -2
- package/dist/components/sonner/index.js +8 -4
- package/dist/index.d.ts +3 -1
- package/dist/index.js +10 -2
- package/dist/prototype.js +1 -1
- package/llms/components/feedback/Sonner.md +23 -0
- package/llms/components/forms/Field.md +25 -0
- package/llms/components/forms/FilterChip.md +95 -0
- package/llms/components/messaging/Message.md +47 -1
- package/llms.txt +1 -0
- package/package.json +1 -1
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
Field2,
|
|
71
71
|
FieldLabel2,
|
|
72
72
|
FieldDescription2
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-bfv4qesg.js";
|
|
74
74
|
import {
|
|
75
75
|
Textarea2
|
|
76
76
|
} from "./chunk-9k5b62qf.js";
|
|
@@ -132,6 +132,11 @@ import {
|
|
|
132
132
|
AvatarImage2,
|
|
133
133
|
AvatarFallback2
|
|
134
134
|
} from "./chunk-0hq6rg7w.js";
|
|
135
|
+
import {
|
|
136
|
+
Collapsible2,
|
|
137
|
+
CollapsibleTrigger2,
|
|
138
|
+
CollapsibleContent2
|
|
139
|
+
} from "./chunk-fw86vanx.js";
|
|
135
140
|
import {
|
|
136
141
|
Spinner2
|
|
137
142
|
} from "./chunk-t3p4dn1p.js";
|
|
@@ -2267,7 +2272,8 @@ import { createContext as createContext2 } from "react";
|
|
|
2267
2272
|
var MessageContext = createContext2(null);
|
|
2268
2273
|
|
|
2269
2274
|
// src/components/Message.tsx
|
|
2270
|
-
import {
|
|
2275
|
+
import { ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
2276
|
+
import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2271
2277
|
function MessageGroup2({ density, className, ...props }) {
|
|
2272
2278
|
return /* @__PURE__ */ jsx24("div", {
|
|
2273
2279
|
"data-density": density,
|
|
@@ -2347,6 +2353,37 @@ function MessageFooter2({ density, className, ...props }) {
|
|
|
2347
2353
|
}
|
|
2348
2354
|
});
|
|
2349
2355
|
}
|
|
2356
|
+
function MessageThread2({ density, className, ...props }) {
|
|
2357
|
+
return /* @__PURE__ */ jsx24(Collapsible2, {
|
|
2358
|
+
"data-density": density,
|
|
2359
|
+
"data-slot": "message-thread",
|
|
2360
|
+
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
2361
|
+
...props
|
|
2362
|
+
});
|
|
2363
|
+
}
|
|
2364
|
+
function MessageThreadSummary2({ density, className, children, ...props }) {
|
|
2365
|
+
return /* @__PURE__ */ jsxs15(CollapsibleTrigger2, {
|
|
2366
|
+
"data-density": density,
|
|
2367
|
+
"data-slot": "message-thread-summary",
|
|
2368
|
+
className: cn2(buttonVariants2({ variant: "link", size: "inline" }), "group/message-thread-summary w-fit max-w-full justify-start text-xs whitespace-normal text-muted-foreground", className),
|
|
2369
|
+
...props,
|
|
2370
|
+
children: [
|
|
2371
|
+
/* @__PURE__ */ jsx24(ChevronRightIcon3, {
|
|
2372
|
+
"aria-hidden": "true",
|
|
2373
|
+
className: "size-3 shrink-0 group-aria-expanded/message-thread-summary:rotate-90 motion-reduce:transition-none"
|
|
2374
|
+
}),
|
|
2375
|
+
children
|
|
2376
|
+
]
|
|
2377
|
+
});
|
|
2378
|
+
}
|
|
2379
|
+
function MessageThreadReplies2({ density, className, ...props }) {
|
|
2380
|
+
return /* @__PURE__ */ jsx24(CollapsibleContent2, {
|
|
2381
|
+
"data-density": density,
|
|
2382
|
+
"data-slot": "message-thread-replies",
|
|
2383
|
+
className: cn2("min-w-0", className),
|
|
2384
|
+
...props
|
|
2385
|
+
});
|
|
2386
|
+
}
|
|
2350
2387
|
// src/components/Attachment.tsx
|
|
2351
2388
|
import { mergeProps as mergeProps8 } from "@base-ui/react/merge-props";
|
|
2352
2389
|
import { useRender as useRender9 } from "@base-ui/react/use-render";
|
|
@@ -2473,7 +2510,7 @@ function AttachmentGroup2({ density, className, ...props }) {
|
|
|
2473
2510
|
}
|
|
2474
2511
|
// src/components/InlineEdit.tsx
|
|
2475
2512
|
import { useEffect as useEffect2, useId as useId3, useRef as useRef2, useState as useState2 } from "react";
|
|
2476
|
-
import { jsx as jsx26, jsxs as
|
|
2513
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2477
2514
|
function InlineEdit2({
|
|
2478
2515
|
analytics,
|
|
2479
2516
|
label,
|
|
@@ -2523,14 +2560,14 @@ function InlineEdit2({
|
|
|
2523
2560
|
setSaving(false);
|
|
2524
2561
|
}
|
|
2525
2562
|
};
|
|
2526
|
-
return /* @__PURE__ */
|
|
2563
|
+
return /* @__PURE__ */ jsxs16("form", {
|
|
2527
2564
|
className: "min-w-0",
|
|
2528
2565
|
onSubmit: (event) => {
|
|
2529
2566
|
event.preventDefault();
|
|
2530
2567
|
save();
|
|
2531
2568
|
},
|
|
2532
2569
|
children: [
|
|
2533
|
-
/* @__PURE__ */
|
|
2570
|
+
/* @__PURE__ */ jsxs16(Tooltip2, {
|
|
2534
2571
|
open: Boolean(error) && isErrorOpen,
|
|
2535
2572
|
onOpenChange: setErrorOpen,
|
|
2536
2573
|
disableHoverablePopup: true,
|
|
@@ -2673,8 +2710,8 @@ function StarRating2({
|
|
|
2673
2710
|
}
|
|
2674
2711
|
// src/components/ReviewList.tsx
|
|
2675
2712
|
import { useRef as useRef3, useState as useState4 } from "react";
|
|
2676
|
-
import { ChevronRightIcon as
|
|
2677
|
-
import { jsx as jsx28, jsxs as
|
|
2713
|
+
import { ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
|
|
2714
|
+
import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2678
2715
|
var TOGGLE_KEYS = new Set(["x", "X"]);
|
|
2679
2716
|
function isMod(event) {
|
|
2680
2717
|
return event.metaKey || event.ctrlKey;
|
|
@@ -2774,7 +2811,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2774
2811
|
cellsRef.current.delete(key);
|
|
2775
2812
|
};
|
|
2776
2813
|
const tabIndex = (cell) => isCursorRow && cursor.cell === cell ? 0 : -1;
|
|
2777
|
-
return /* @__PURE__ */
|
|
2814
|
+
return /* @__PURE__ */ jsxs17("div", {
|
|
2778
2815
|
role: "row",
|
|
2779
2816
|
"aria-rowindex": index + 1,
|
|
2780
2817
|
"aria-level": isTree ? row.level ?? 1 : undefined,
|
|
@@ -2801,7 +2838,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2801
2838
|
}
|
|
2802
2839
|
})
|
|
2803
2840
|
}),
|
|
2804
|
-
/* @__PURE__ */
|
|
2841
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
2805
2842
|
ref: cellRef(1),
|
|
2806
2843
|
role: "gridcell",
|
|
2807
2844
|
tabIndex: tabIndex(1),
|
|
@@ -2822,7 +2859,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2822
2859
|
setCursor({ row: index, cell: 1 });
|
|
2823
2860
|
onExpandedChange?.(row.id, !row.isExpanded);
|
|
2824
2861
|
},
|
|
2825
|
-
children: /* @__PURE__ */ jsx28(
|
|
2862
|
+
children: /* @__PURE__ */ jsx28(ChevronRightIcon4, {
|
|
2826
2863
|
className: cn2("size-4 transition-transform", row.isExpanded && "rotate-90")
|
|
2827
2864
|
})
|
|
2828
2865
|
})
|
|
@@ -2851,7 +2888,7 @@ import {
|
|
|
2851
2888
|
useId as useId4,
|
|
2852
2889
|
useRef as useRef4
|
|
2853
2890
|
} from "react";
|
|
2854
|
-
import { jsx as jsx29, jsxs as
|
|
2891
|
+
import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2855
2892
|
function isModified(event) {
|
|
2856
2893
|
return event.altKey || event.metaKey || event.ctrlKey || event.shiftKey;
|
|
2857
2894
|
}
|
|
@@ -2903,7 +2940,7 @@ function ChoiceTable2({
|
|
|
2903
2940
|
onValueChange(row.id);
|
|
2904
2941
|
event.currentTarget.closest("[role='grid']")?.focus({ preventScroll: true });
|
|
2905
2942
|
};
|
|
2906
|
-
return /* @__PURE__ */
|
|
2943
|
+
return /* @__PURE__ */ jsxs18("div", {
|
|
2907
2944
|
ref,
|
|
2908
2945
|
"data-slot": "choice-table",
|
|
2909
2946
|
role: "grid",
|
|
@@ -2928,7 +2965,7 @@ function ChoiceTable2({
|
|
|
2928
2965
|
}),
|
|
2929
2966
|
rows.map((row, index) => {
|
|
2930
2967
|
const isChosen = index === chosenIndex;
|
|
2931
|
-
return /* @__PURE__ */
|
|
2968
|
+
return /* @__PURE__ */ jsxs18("div", {
|
|
2932
2969
|
id: rowId(row.id),
|
|
2933
2970
|
ref: (element) => {
|
|
2934
2971
|
if (element)
|
|
@@ -2964,7 +3001,7 @@ function ChoiceTable2({
|
|
|
2964
3001
|
}
|
|
2965
3002
|
// src/components/ConfirmationDialog.tsx
|
|
2966
3003
|
import { useState as useState5 } from "react";
|
|
2967
|
-
import { jsx as jsx30, jsxs as
|
|
3004
|
+
import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2968
3005
|
function ConfirmationDialog2({
|
|
2969
3006
|
open,
|
|
2970
3007
|
title,
|
|
@@ -2986,14 +3023,14 @@ function ConfirmationDialog2({
|
|
|
2986
3023
|
onOpenChange(next);
|
|
2987
3024
|
}
|
|
2988
3025
|
},
|
|
2989
|
-
children: /* @__PURE__ */
|
|
3026
|
+
children: /* @__PURE__ */ jsxs19(AlertDialogContent2, {
|
|
2990
3027
|
children: [
|
|
2991
3028
|
/* @__PURE__ */ jsx30(AlertDialogHeader2, {
|
|
2992
3029
|
children: /* @__PURE__ */ jsx30(AlertDialogTitle2, {
|
|
2993
3030
|
children: title
|
|
2994
3031
|
})
|
|
2995
3032
|
}),
|
|
2996
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ jsxs19(ScrollArea2, {
|
|
2997
3034
|
children: [
|
|
2998
3035
|
/* @__PURE__ */ jsx30(AlertDialogDescription2, {
|
|
2999
3036
|
children: description
|
|
@@ -3006,7 +3043,7 @@ function ConfirmationDialog2({
|
|
|
3006
3043
|
})
|
|
3007
3044
|
]
|
|
3008
3045
|
}),
|
|
3009
|
-
/* @__PURE__ */
|
|
3046
|
+
/* @__PURE__ */ jsxs19(AlertDialogFooter2, {
|
|
3010
3047
|
children: [
|
|
3011
3048
|
/* @__PURE__ */ jsx30(AlertDialogCancel2, {
|
|
3012
3049
|
disabled: isPending,
|
|
@@ -3056,7 +3093,7 @@ function useObjectURL(file) {
|
|
|
3056
3093
|
}
|
|
3057
3094
|
|
|
3058
3095
|
// src/components/ImagePicker.tsx
|
|
3059
|
-
import { jsx as jsx31, jsxs as
|
|
3096
|
+
import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3060
3097
|
function ImagePicker2({
|
|
3061
3098
|
analytics,
|
|
3062
3099
|
src,
|
|
@@ -3070,11 +3107,11 @@ function ImagePicker2({
|
|
|
3070
3107
|
const input = useRef5(null);
|
|
3071
3108
|
const preview = useObjectURL(file);
|
|
3072
3109
|
const image = file === null ? undefined : preview ?? src;
|
|
3073
|
-
return /* @__PURE__ */
|
|
3110
|
+
return /* @__PURE__ */ jsxs20("figure", {
|
|
3074
3111
|
className: "flex min-w-0 flex-col items-center gap-3",
|
|
3075
3112
|
"aria-label": label,
|
|
3076
3113
|
children: [
|
|
3077
|
-
/* @__PURE__ */
|
|
3114
|
+
/* @__PURE__ */ jsxs20(Avatar2, {
|
|
3078
3115
|
size: "preview",
|
|
3079
3116
|
shape: "square",
|
|
3080
3117
|
children: [
|
|
@@ -3106,10 +3143,10 @@ function ImagePicker2({
|
|
|
3106
3143
|
event.currentTarget.value = "";
|
|
3107
3144
|
}
|
|
3108
3145
|
}),
|
|
3109
|
-
/* @__PURE__ */
|
|
3146
|
+
/* @__PURE__ */ jsxs20("div", {
|
|
3110
3147
|
className: "flex flex-wrap justify-center gap-2",
|
|
3111
3148
|
children: [
|
|
3112
|
-
/* @__PURE__ */
|
|
3149
|
+
/* @__PURE__ */ jsxs20(Button2, {
|
|
3113
3150
|
type: "button",
|
|
3114
3151
|
variant: "outline",
|
|
3115
3152
|
disabled,
|
|
@@ -3183,7 +3220,7 @@ function MeterIndicator2({
|
|
|
3183
3220
|
// src/components/ToolbarToggleChip.tsx
|
|
3184
3221
|
import { useId as useId5 } from "react";
|
|
3185
3222
|
import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
|
|
3186
|
-
import { jsx as jsx33, jsxs as
|
|
3223
|
+
import { jsx as jsx33, jsxs as jsxs21, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
3187
3224
|
function pressedLabel(pressed) {
|
|
3188
3225
|
if (pressed === "mixed")
|
|
3189
3226
|
return "mixed";
|
|
@@ -3220,7 +3257,7 @@ function ToolbarToggleChip2({
|
|
|
3220
3257
|
if (!spaceActivates && event.key === " ")
|
|
3221
3258
|
event.preventDefault();
|
|
3222
3259
|
};
|
|
3223
|
-
const button = /* @__PURE__ */
|
|
3260
|
+
const button = /* @__PURE__ */ jsxs21(ToolbarPrimitive.Button, {
|
|
3224
3261
|
"data-density": density,
|
|
3225
3262
|
"data-slot": "toolbar-toggle-chip",
|
|
3226
3263
|
"data-pressed": pressedLabel(pressed),
|
|
@@ -3249,7 +3286,7 @@ function ToolbarToggleChip2({
|
|
|
3249
3286
|
className: hideLabel ? "sr-only" : "min-w-0 truncate",
|
|
3250
3287
|
children
|
|
3251
3288
|
}),
|
|
3252
|
-
detail !== undefined && /* @__PURE__ */
|
|
3289
|
+
detail !== undefined && /* @__PURE__ */ jsxs21("span", {
|
|
3253
3290
|
"data-slot": "toolbar-toggle-chip-detail",
|
|
3254
3291
|
className: "text-xs text-muted-foreground",
|
|
3255
3292
|
children: [
|
|
@@ -3264,21 +3301,21 @@ function ToolbarToggleChip2({
|
|
|
3264
3301
|
})
|
|
3265
3302
|
]
|
|
3266
3303
|
});
|
|
3267
|
-
return /* @__PURE__ */
|
|
3304
|
+
return /* @__PURE__ */ jsxs21(Fragment5, {
|
|
3268
3305
|
children: [
|
|
3269
3306
|
disabledReason && /* @__PURE__ */ jsx33("span", {
|
|
3270
3307
|
id: reasonId,
|
|
3271
3308
|
className: "sr-only",
|
|
3272
3309
|
children: disabledReason
|
|
3273
3310
|
}),
|
|
3274
|
-
/* @__PURE__ */
|
|
3311
|
+
/* @__PURE__ */ jsxs21(Tooltip2, {
|
|
3275
3312
|
disabled: !disabledReason && !hideLabel,
|
|
3276
3313
|
children: [
|
|
3277
3314
|
/* @__PURE__ */ jsx33(TooltipTrigger2, {
|
|
3278
3315
|
render: button,
|
|
3279
3316
|
closeOnClick: false
|
|
3280
3317
|
}),
|
|
3281
|
-
(disabledReason || hideLabel) && /* @__PURE__ */
|
|
3318
|
+
(disabledReason || hideLabel) && /* @__PURE__ */ jsxs21(TooltipContent2, {
|
|
3282
3319
|
children: [
|
|
3283
3320
|
hideLabel ? children : null,
|
|
3284
3321
|
hideLabel && shortcut ? ` · ${shortcut.toUpperCase()}` : null,
|
|
@@ -3344,7 +3381,7 @@ function StepperContent2({ density, className, ...props }) {
|
|
|
3344
3381
|
});
|
|
3345
3382
|
}
|
|
3346
3383
|
// src/components/AppShell.tsx
|
|
3347
|
-
import { jsx as jsx35, jsxs as
|
|
3384
|
+
import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3348
3385
|
function AppShell2({
|
|
3349
3386
|
navigation,
|
|
3350
3387
|
brand,
|
|
@@ -3358,14 +3395,14 @@ function AppShell2({
|
|
|
3358
3395
|
content = "scroll",
|
|
3359
3396
|
density
|
|
3360
3397
|
}) {
|
|
3361
|
-
return /* @__PURE__ */
|
|
3398
|
+
return /* @__PURE__ */ jsxs22(SidebarProvider2, {
|
|
3362
3399
|
density,
|
|
3363
3400
|
defaultOpen: defaultSidebarOpen,
|
|
3364
3401
|
className: "relative min-h-0",
|
|
3365
3402
|
style: { height },
|
|
3366
3403
|
"data-scroll": "none",
|
|
3367
3404
|
children: [
|
|
3368
|
-
/* @__PURE__ */
|
|
3405
|
+
/* @__PURE__ */ jsxs22(Sidebar2, {
|
|
3369
3406
|
collapsible: "icon",
|
|
3370
3407
|
position: "container",
|
|
3371
3408
|
children: [
|
|
@@ -3378,7 +3415,7 @@ function AppShell2({
|
|
|
3378
3415
|
children: /* @__PURE__ */ jsx35(SidebarGroup2, {
|
|
3379
3416
|
children: /* @__PURE__ */ jsx35(SidebarMenu2, {
|
|
3380
3417
|
children: navigation.map((item) => /* @__PURE__ */ jsx35(SidebarMenuItem2, {
|
|
3381
|
-
children: /* @__PURE__ */
|
|
3418
|
+
children: /* @__PURE__ */ jsxs22(SidebarMenuButton2, {
|
|
3382
3419
|
render: /* @__PURE__ */ jsx35(AnalyticsLink, {
|
|
3383
3420
|
component: "AppShell",
|
|
3384
3421
|
render: item.render,
|
|
@@ -3404,12 +3441,12 @@ function AppShell2({
|
|
|
3404
3441
|
})
|
|
3405
3442
|
]
|
|
3406
3443
|
}),
|
|
3407
|
-
/* @__PURE__ */
|
|
3444
|
+
/* @__PURE__ */ jsxs22(SidebarInset2, {
|
|
3408
3445
|
"aria-label": label,
|
|
3409
3446
|
className: "min-h-0 min-w-0",
|
|
3410
3447
|
"data-scroll": "none",
|
|
3411
3448
|
children: [
|
|
3412
|
-
/* @__PURE__ */
|
|
3449
|
+
/* @__PURE__ */ jsxs22("header", {
|
|
3413
3450
|
"data-scroll": "none",
|
|
3414
3451
|
className: "flex shrink-0 items-center gap-control-gap border-b border-border p-panel",
|
|
3415
3452
|
children: [
|
|
@@ -3783,7 +3820,7 @@ import {
|
|
|
3783
3820
|
DropletIcon,
|
|
3784
3821
|
SunIcon
|
|
3785
3822
|
} from "lucide-react";
|
|
3786
|
-
import { jsx as jsx36, jsxs as
|
|
3823
|
+
import { jsx as jsx36, jsxs as jsxs23, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3787
3824
|
var CONDITION_ICONS = {
|
|
3788
3825
|
clear: SunIcon,
|
|
3789
3826
|
"partly-cloudy": CloudSunIcon,
|
|
@@ -3835,14 +3872,14 @@ function WeatherSummary2({
|
|
|
3835
3872
|
defaultTagName: "div",
|
|
3836
3873
|
props: mergeProps14({
|
|
3837
3874
|
className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
|
|
3838
|
-
children: /* @__PURE__ */
|
|
3875
|
+
children: /* @__PURE__ */ jsxs23(Fragment6, {
|
|
3839
3876
|
children: [
|
|
3840
3877
|
/* @__PURE__ */ jsx36(ConditionIcon, {
|
|
3841
3878
|
"aria-hidden": "true",
|
|
3842
3879
|
"data-slot": "weather-summary-icon",
|
|
3843
3880
|
className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
|
|
3844
3881
|
}),
|
|
3845
|
-
/* @__PURE__ */
|
|
3882
|
+
/* @__PURE__ */ jsxs23("div", {
|
|
3846
3883
|
className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
|
|
3847
3884
|
children: [
|
|
3848
3885
|
/* @__PURE__ */ jsx36("div", {
|
|
@@ -3853,10 +3890,10 @@ function WeatherSummary2({
|
|
|
3853
3890
|
className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
|
|
3854
3891
|
children: conditionLabel
|
|
3855
3892
|
}),
|
|
3856
|
-
/* @__PURE__ */
|
|
3893
|
+
/* @__PURE__ */ jsxs23("div", {
|
|
3857
3894
|
className: "flex flex-wrap items-baseline gap-x-2 text-sm tabular-nums",
|
|
3858
3895
|
children: [
|
|
3859
|
-
/* @__PURE__ */
|
|
3896
|
+
/* @__PURE__ */ jsxs23("span", {
|
|
3860
3897
|
children: [
|
|
3861
3898
|
/* @__PURE__ */ jsx36("span", {
|
|
3862
3899
|
className: "sr-only",
|
|
@@ -3868,7 +3905,7 @@ function WeatherSummary2({
|
|
|
3868
3905
|
})
|
|
3869
3906
|
]
|
|
3870
3907
|
}),
|
|
3871
|
-
/* @__PURE__ */
|
|
3908
|
+
/* @__PURE__ */ jsxs23("span", {
|
|
3872
3909
|
className: "text-muted-foreground",
|
|
3873
3910
|
children: [
|
|
3874
3911
|
/* @__PURE__ */ jsx36("span", {
|
|
@@ -3880,14 +3917,14 @@ function WeatherSummary2({
|
|
|
3880
3917
|
})
|
|
3881
3918
|
]
|
|
3882
3919
|
}),
|
|
3883
|
-
probabilityText !== undefined && /* @__PURE__ */
|
|
3920
|
+
probabilityText !== undefined && /* @__PURE__ */ jsxs23("div", {
|
|
3884
3921
|
className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
|
|
3885
3922
|
children: [
|
|
3886
3923
|
/* @__PURE__ */ jsx36(DropletIcon, {
|
|
3887
3924
|
"aria-hidden": "true",
|
|
3888
3925
|
className: "size-3 shrink-0"
|
|
3889
3926
|
}),
|
|
3890
|
-
/* @__PURE__ */
|
|
3927
|
+
/* @__PURE__ */ jsxs23("span", {
|
|
3891
3928
|
children: [
|
|
3892
3929
|
probabilityText,
|
|
3893
3930
|
/* @__PURE__ */ jsx36("span", {
|
|
@@ -3935,19 +3972,19 @@ function WeatherForecast2({
|
|
|
3935
3972
|
});
|
|
3936
3973
|
}
|
|
3937
3974
|
// src/components/PageHeader.tsx
|
|
3938
|
-
import { jsx as jsx38, jsxs as
|
|
3975
|
+
import { jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3939
3976
|
function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, density }) {
|
|
3940
|
-
return /* @__PURE__ */
|
|
3977
|
+
return /* @__PURE__ */ jsxs24("header", {
|
|
3941
3978
|
"data-density": density,
|
|
3942
3979
|
"data-slot": "page-header",
|
|
3943
3980
|
"data-scroll": "none",
|
|
3944
3981
|
className: "flex min-w-0 flex-col gap-field-gap",
|
|
3945
3982
|
children: [
|
|
3946
3983
|
breadcrumbs,
|
|
3947
|
-
/* @__PURE__ */
|
|
3984
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
3948
3985
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-panel",
|
|
3949
3986
|
children: [
|
|
3950
|
-
/* @__PURE__ */
|
|
3987
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
3951
3988
|
className: "min-w-0",
|
|
3952
3989
|
children: [
|
|
3953
3990
|
eyebrow != null && /* @__PURE__ */ jsx38("div", {
|
|
@@ -3974,14 +4011,14 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
3974
4011
|
});
|
|
3975
4012
|
}
|
|
3976
4013
|
// src/components/PageIntro.tsx
|
|
3977
|
-
import { jsx as jsx39, jsxs as
|
|
4014
|
+
import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3978
4015
|
function PageIntro2({ title, description, eyebrow, icon, actions, highlights, density }) {
|
|
3979
4016
|
return /* @__PURE__ */ jsx39("header", {
|
|
3980
4017
|
"data-density": density,
|
|
3981
4018
|
"data-slot": "page-intro",
|
|
3982
4019
|
"data-scroll": "none",
|
|
3983
4020
|
className: "@container/page-intro min-w-0",
|
|
3984
|
-
children: /* @__PURE__ */
|
|
4021
|
+
children: /* @__PURE__ */ jsxs25(Card2, {
|
|
3985
4022
|
variant: "hero",
|
|
3986
4023
|
className: "gap-0 py-0",
|
|
3987
4024
|
children: [
|
|
@@ -3990,10 +4027,10 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
3990
4027
|
"data-slot": "page-intro-wash",
|
|
3991
4028
|
className: "pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(ellipse_90%_140%_at_100%_0%,color-mix(in_oklab,var(--primary)_16%,transparent),transparent_65%)]"
|
|
3992
4029
|
}),
|
|
3993
|
-
/* @__PURE__ */
|
|
4030
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
3994
4031
|
className: "flex min-w-0 flex-col gap-panel p-(--card-spacing) @2xl/page-intro:flex-row @2xl/page-intro:items-start @2xl/page-intro:justify-between",
|
|
3995
4032
|
children: [
|
|
3996
|
-
/* @__PURE__ */
|
|
4033
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
3997
4034
|
className: "flex min-w-0 gap-panel",
|
|
3998
4035
|
children: [
|
|
3999
4036
|
icon != null && /* @__PURE__ */ jsx39("div", {
|
|
@@ -4002,7 +4039,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4002
4039
|
className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
|
|
4003
4040
|
children: icon
|
|
4004
4041
|
}),
|
|
4005
|
-
/* @__PURE__ */
|
|
4042
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
4006
4043
|
className: "min-w-0",
|
|
4007
4044
|
children: [
|
|
4008
4045
|
eyebrow != null && /* @__PURE__ */ jsx39("div", {
|
|
@@ -4031,7 +4068,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4031
4068
|
"aria-label": `What you can do in ${title}`,
|
|
4032
4069
|
"data-slot": "page-intro-highlights",
|
|
4033
4070
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
|
|
4034
|
-
children: highlights.map((highlight) => /* @__PURE__ */
|
|
4071
|
+
children: highlights.map((highlight) => /* @__PURE__ */ jsxs25("li", {
|
|
4035
4072
|
"data-slot": "page-intro-highlight",
|
|
4036
4073
|
className: "flex min-w-0 gap-2",
|
|
4037
4074
|
children: [
|
|
@@ -4040,7 +4077,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4040
4077
|
className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
|
|
4041
4078
|
children: highlight.icon
|
|
4042
4079
|
}),
|
|
4043
|
-
/* @__PURE__ */
|
|
4080
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
4044
4081
|
className: "min-w-0",
|
|
4045
4082
|
children: [
|
|
4046
4083
|
/* @__PURE__ */ jsx39("div", {
|
|
@@ -4061,7 +4098,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4061
4098
|
});
|
|
4062
4099
|
}
|
|
4063
4100
|
// src/components/WorkspaceSwitcher.tsx
|
|
4064
|
-
import { jsx as jsx40, jsxs as
|
|
4101
|
+
import { jsx as jsx40, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4065
4102
|
function WorkspaceSwitcher2({
|
|
4066
4103
|
workspaces,
|
|
4067
4104
|
value,
|
|
@@ -4071,7 +4108,7 @@ function WorkspaceSwitcher2({
|
|
|
4071
4108
|
label = "Workspace",
|
|
4072
4109
|
density
|
|
4073
4110
|
}) {
|
|
4074
|
-
return /* @__PURE__ */
|
|
4111
|
+
return /* @__PURE__ */ jsxs26(Select2, {
|
|
4075
4112
|
items: workspaces,
|
|
4076
4113
|
value,
|
|
4077
4114
|
defaultValue: defaultValue ?? workspaces[0]?.value,
|
|
@@ -4099,18 +4136,18 @@ function WorkspaceSwitcher2({
|
|
|
4099
4136
|
});
|
|
4100
4137
|
}
|
|
4101
4138
|
// src/components/AccountMenu.tsx
|
|
4102
|
-
import { jsx as jsx41, jsxs as
|
|
4139
|
+
import { jsx as jsx41, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4103
4140
|
function AccountMenu2({ name, email, image, onAction, density }) {
|
|
4104
|
-
return /* @__PURE__ */
|
|
4141
|
+
return /* @__PURE__ */ jsxs27(DropdownMenu2, {
|
|
4105
4142
|
children: [
|
|
4106
|
-
/* @__PURE__ */
|
|
4143
|
+
/* @__PURE__ */ jsxs27(DropdownMenuTrigger2, {
|
|
4107
4144
|
render: /* @__PURE__ */ jsx41(Button2, {
|
|
4108
4145
|
variant: "ghost",
|
|
4109
4146
|
density
|
|
4110
4147
|
}),
|
|
4111
4148
|
"aria-label": `Account menu for ${name}`,
|
|
4112
4149
|
children: [
|
|
4113
|
-
/* @__PURE__ */
|
|
4150
|
+
/* @__PURE__ */ jsxs27(Avatar2, {
|
|
4114
4151
|
className: "size-control",
|
|
4115
4152
|
children: [
|
|
4116
4153
|
/* @__PURE__ */ jsx41(AvatarImage2, {
|
|
@@ -4130,7 +4167,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4130
4167
|
/* @__PURE__ */ jsx41(MenuPopup, {
|
|
4131
4168
|
density,
|
|
4132
4169
|
align: "end",
|
|
4133
|
-
children: /* @__PURE__ */
|
|
4170
|
+
children: /* @__PURE__ */ jsxs27(MenuGroup2, {
|
|
4134
4171
|
children: [
|
|
4135
4172
|
/* @__PURE__ */ jsx41(MenuLabel2, {
|
|
4136
4173
|
children: email ?? name
|
|
@@ -4155,7 +4192,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4155
4192
|
});
|
|
4156
4193
|
}
|
|
4157
4194
|
// src/components/StatCard.tsx
|
|
4158
|
-
import { jsx as jsx42, jsxs as
|
|
4195
|
+
import { jsx as jsx42, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4159
4196
|
function StatCard2({
|
|
4160
4197
|
label,
|
|
4161
4198
|
value,
|
|
@@ -4166,12 +4203,12 @@ function StatCard2({
|
|
|
4166
4203
|
loading = false,
|
|
4167
4204
|
density
|
|
4168
4205
|
}) {
|
|
4169
|
-
return /* @__PURE__ */
|
|
4206
|
+
return /* @__PURE__ */ jsxs28(Card2, {
|
|
4170
4207
|
density,
|
|
4171
4208
|
"aria-label": label,
|
|
4172
4209
|
"aria-busy": loading,
|
|
4173
4210
|
children: [
|
|
4174
|
-
/* @__PURE__ */
|
|
4211
|
+
/* @__PURE__ */ jsxs28(CardHeader2, {
|
|
4175
4212
|
children: [
|
|
4176
4213
|
/* @__PURE__ */ jsx42(CardTitle2, {
|
|
4177
4214
|
children: label
|
|
@@ -4182,7 +4219,7 @@ function StatCard2({
|
|
|
4182
4219
|
]
|
|
4183
4220
|
}),
|
|
4184
4221
|
/* @__PURE__ */ jsx42(CardContent2, {
|
|
4185
|
-
children: /* @__PURE__ */
|
|
4222
|
+
children: /* @__PURE__ */ jsxs28("div", {
|
|
4186
4223
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4187
4224
|
children: [
|
|
4188
4225
|
loading ? /* @__PURE__ */ jsx42(Skeleton2, {
|
|
@@ -4207,7 +4244,7 @@ function StatCard2({
|
|
|
4207
4244
|
}
|
|
4208
4245
|
// src/components/AuthForm.tsx
|
|
4209
4246
|
import { useId as useId6, useState as useState7 } from "react";
|
|
4210
|
-
import { jsx as jsx43, jsxs as
|
|
4247
|
+
import { jsx as jsx43, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4211
4248
|
function AuthForm2({
|
|
4212
4249
|
mode = "sign-in",
|
|
4213
4250
|
onSubmit,
|
|
@@ -4237,10 +4274,10 @@ function AuthForm2({
|
|
|
4237
4274
|
setPending(false);
|
|
4238
4275
|
}
|
|
4239
4276
|
}
|
|
4240
|
-
return /* @__PURE__ */
|
|
4277
|
+
return /* @__PURE__ */ jsxs29(Card2, {
|
|
4241
4278
|
density,
|
|
4242
4279
|
children: [
|
|
4243
|
-
/* @__PURE__ */
|
|
4280
|
+
/* @__PURE__ */ jsxs29(CardHeader2, {
|
|
4244
4281
|
children: [
|
|
4245
4282
|
/* @__PURE__ */ jsx43(CardTitle2, {
|
|
4246
4283
|
children: title
|
|
@@ -4255,9 +4292,9 @@ function AuthForm2({
|
|
|
4255
4292
|
onSubmit: submit,
|
|
4256
4293
|
"aria-label": title,
|
|
4257
4294
|
"aria-busy": pending,
|
|
4258
|
-
children: /* @__PURE__ */
|
|
4295
|
+
children: /* @__PURE__ */ jsxs29(FieldGroup2, {
|
|
4259
4296
|
children: [
|
|
4260
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4297
|
+
mode === "sign-up" && /* @__PURE__ */ jsxs29(Field2, {
|
|
4261
4298
|
children: [
|
|
4262
4299
|
/* @__PURE__ */ jsx43(FieldLabel2, {
|
|
4263
4300
|
htmlFor: id + "-name",
|
|
@@ -4272,7 +4309,7 @@ function AuthForm2({
|
|
|
4272
4309
|
})
|
|
4273
4310
|
]
|
|
4274
4311
|
}),
|
|
4275
|
-
/* @__PURE__ */
|
|
4312
|
+
/* @__PURE__ */ jsxs29(Field2, {
|
|
4276
4313
|
children: [
|
|
4277
4314
|
/* @__PURE__ */ jsx43(FieldLabel2, {
|
|
4278
4315
|
htmlFor: id + "-email",
|
|
@@ -4288,7 +4325,7 @@ function AuthForm2({
|
|
|
4288
4325
|
})
|
|
4289
4326
|
]
|
|
4290
4327
|
}),
|
|
4291
|
-
mode !== "reset-password" && /* @__PURE__ */
|
|
4328
|
+
mode !== "reset-password" && /* @__PURE__ */ jsxs29(Field2, {
|
|
4292
4329
|
children: [
|
|
4293
4330
|
/* @__PURE__ */ jsx43(FieldLabel2, {
|
|
4294
4331
|
htmlFor: id + "-password",
|
|
@@ -4308,7 +4345,7 @@ function AuthForm2({
|
|
|
4308
4345
|
})
|
|
4309
4346
|
]
|
|
4310
4347
|
}),
|
|
4311
|
-
error && /* @__PURE__ */
|
|
4348
|
+
error && /* @__PURE__ */ jsxs29(Alert2, {
|
|
4312
4349
|
variant: "destructive",
|
|
4313
4350
|
children: [
|
|
4314
4351
|
/* @__PURE__ */ jsx43(AlertTitle2, {
|
|
@@ -4319,7 +4356,7 @@ function AuthForm2({
|
|
|
4319
4356
|
})
|
|
4320
4357
|
]
|
|
4321
4358
|
}),
|
|
4322
|
-
/* @__PURE__ */
|
|
4359
|
+
/* @__PURE__ */ jsxs29(Button2, {
|
|
4323
4360
|
type: "submit",
|
|
4324
4361
|
disabled: disabled || pending,
|
|
4325
4362
|
children: [
|
|
@@ -4341,7 +4378,7 @@ function AuthForm2({
|
|
|
4341
4378
|
});
|
|
4342
4379
|
}
|
|
4343
4380
|
// src/components/SettingsSection.tsx
|
|
4344
|
-
import { jsx as jsx44, jsxs as
|
|
4381
|
+
import { jsx as jsx44, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4345
4382
|
function SettingsSection2({
|
|
4346
4383
|
title,
|
|
4347
4384
|
description,
|
|
@@ -4358,10 +4395,10 @@ function SettingsSection2({
|
|
|
4358
4395
|
"aria-label": title,
|
|
4359
4396
|
onSubmit,
|
|
4360
4397
|
"aria-busy": pending,
|
|
4361
|
-
children: /* @__PURE__ */
|
|
4398
|
+
children: /* @__PURE__ */ jsxs30(Card2, {
|
|
4362
4399
|
density,
|
|
4363
4400
|
children: [
|
|
4364
|
-
/* @__PURE__ */
|
|
4401
|
+
/* @__PURE__ */ jsxs30(CardHeader2, {
|
|
4365
4402
|
children: [
|
|
4366
4403
|
/* @__PURE__ */ jsx44(CardTitle2, {
|
|
4367
4404
|
children: title
|
|
@@ -4372,7 +4409,7 @@ function SettingsSection2({
|
|
|
4372
4409
|
]
|
|
4373
4410
|
}),
|
|
4374
4411
|
/* @__PURE__ */ jsx44(CardContent2, {
|
|
4375
|
-
children: /* @__PURE__ */
|
|
4412
|
+
children: /* @__PURE__ */ jsxs30("fieldset", {
|
|
4376
4413
|
disabled: disabled || pending,
|
|
4377
4414
|
className: "min-w-0 border-0 p-0",
|
|
4378
4415
|
children: [
|
|
@@ -4386,11 +4423,11 @@ function SettingsSection2({
|
|
|
4386
4423
|
]
|
|
4387
4424
|
})
|
|
4388
4425
|
}),
|
|
4389
|
-
/* @__PURE__ */
|
|
4426
|
+
/* @__PURE__ */ jsxs30(CardFooter2, {
|
|
4390
4427
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4391
4428
|
children: [
|
|
4392
4429
|
footer,
|
|
4393
|
-
/* @__PURE__ */
|
|
4430
|
+
/* @__PURE__ */ jsxs30(Button2, {
|
|
4394
4431
|
type: "submit",
|
|
4395
4432
|
variant: destructive ? "destructive" : "default",
|
|
4396
4433
|
disabled: disabled || pending,
|
|
@@ -4408,7 +4445,7 @@ function SettingsSection2({
|
|
|
4408
4445
|
});
|
|
4409
4446
|
}
|
|
4410
4447
|
// src/components/TagInput.tsx
|
|
4411
|
-
import { jsx as jsx45, jsxs as
|
|
4448
|
+
import { jsx as jsx45, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4412
4449
|
function TagInput2({
|
|
4413
4450
|
label,
|
|
4414
4451
|
options,
|
|
@@ -4421,7 +4458,7 @@ function TagInput2({
|
|
|
4421
4458
|
density
|
|
4422
4459
|
}) {
|
|
4423
4460
|
const anchor = useComboboxAnchor2();
|
|
4424
|
-
return /* @__PURE__ */
|
|
4461
|
+
return /* @__PURE__ */ jsxs31(Combobox2, {
|
|
4425
4462
|
items: options,
|
|
4426
4463
|
multiple: true,
|
|
4427
4464
|
value,
|
|
@@ -4430,7 +4467,7 @@ function TagInput2({
|
|
|
4430
4467
|
disabled,
|
|
4431
4468
|
name,
|
|
4432
4469
|
children: [
|
|
4433
|
-
/* @__PURE__ */
|
|
4470
|
+
/* @__PURE__ */ jsxs31(ComboboxChips2, {
|
|
4434
4471
|
ref: anchor,
|
|
4435
4472
|
density,
|
|
4436
4473
|
children: [
|
|
@@ -4446,7 +4483,7 @@ function TagInput2({
|
|
|
4446
4483
|
})
|
|
4447
4484
|
]
|
|
4448
4485
|
}),
|
|
4449
|
-
/* @__PURE__ */
|
|
4486
|
+
/* @__PURE__ */ jsxs31(ComboboxContent2, {
|
|
4450
4487
|
anchor,
|
|
4451
4488
|
density,
|
|
4452
4489
|
children: [
|
|
@@ -4468,8 +4505,61 @@ function TagInput2({
|
|
|
4468
4505
|
]
|
|
4469
4506
|
});
|
|
4470
4507
|
}
|
|
4508
|
+
// src/components/FilterChip.tsx
|
|
4509
|
+
import { useId as useId7 } from "react";
|
|
4510
|
+
import { XIcon as XIcon2 } from "lucide-react";
|
|
4511
|
+
import { jsx as jsx46, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4512
|
+
function FilterChip2({
|
|
4513
|
+
density,
|
|
4514
|
+
className,
|
|
4515
|
+
children,
|
|
4516
|
+
clearLabel = "Show all",
|
|
4517
|
+
onClear,
|
|
4518
|
+
onKeyDown,
|
|
4519
|
+
...props
|
|
4520
|
+
}) {
|
|
4521
|
+
const labelId = useId7();
|
|
4522
|
+
return /* @__PURE__ */ jsxs32("div", {
|
|
4523
|
+
role: "group",
|
|
4524
|
+
"aria-labelledby": labelId,
|
|
4525
|
+
"data-density": density,
|
|
4526
|
+
"data-slot": "filter-chip",
|
|
4527
|
+
className: cn2("inline-flex max-w-full min-w-0 items-center gap-1 rounded-sm border border-border bg-muted ps-2 text-xs text-foreground", className),
|
|
4528
|
+
onKeyDown: (event) => {
|
|
4529
|
+
onKeyDown?.(event);
|
|
4530
|
+
if (event.defaultPrevented || event.key !== "Escape")
|
|
4531
|
+
return;
|
|
4532
|
+
event.preventDefault();
|
|
4533
|
+
event.stopPropagation();
|
|
4534
|
+
onClear();
|
|
4535
|
+
},
|
|
4536
|
+
...props,
|
|
4537
|
+
children: [
|
|
4538
|
+
/* @__PURE__ */ jsx46("span", {
|
|
4539
|
+
id: labelId,
|
|
4540
|
+
"data-slot": "filter-chip-label",
|
|
4541
|
+
className: "min-w-0 py-1 break-words",
|
|
4542
|
+
children
|
|
4543
|
+
}),
|
|
4544
|
+
/* @__PURE__ */ jsxs32(Button2, {
|
|
4545
|
+
type: "button",
|
|
4546
|
+
variant: "ghost",
|
|
4547
|
+
size: "xs",
|
|
4548
|
+
"aria-keyshortcuts": "Escape",
|
|
4549
|
+
onClick: onClear,
|
|
4550
|
+
children: [
|
|
4551
|
+
clearLabel,
|
|
4552
|
+
/* @__PURE__ */ jsx46(XIcon2, {
|
|
4553
|
+
"aria-hidden": "true",
|
|
4554
|
+
"data-icon": "inline-end"
|
|
4555
|
+
})
|
|
4556
|
+
]
|
|
4557
|
+
})
|
|
4558
|
+
]
|
|
4559
|
+
});
|
|
4560
|
+
}
|
|
4471
4561
|
// src/components/FilterBar.tsx
|
|
4472
|
-
import { jsx as
|
|
4562
|
+
import { jsx as jsx47, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4473
4563
|
function FilterBar2({
|
|
4474
4564
|
label,
|
|
4475
4565
|
search,
|
|
@@ -4480,26 +4570,26 @@ function FilterBar2({
|
|
|
4480
4570
|
disabled,
|
|
4481
4571
|
density
|
|
4482
4572
|
}) {
|
|
4483
|
-
return /* @__PURE__ */
|
|
4573
|
+
return /* @__PURE__ */ jsxs33("fieldset", {
|
|
4484
4574
|
"aria-label": label,
|
|
4485
4575
|
disabled,
|
|
4486
4576
|
"data-density": density,
|
|
4487
4577
|
className: "flex min-w-0 flex-wrap items-center gap-2",
|
|
4488
4578
|
children: [
|
|
4489
|
-
/* @__PURE__ */
|
|
4579
|
+
/* @__PURE__ */ jsx47(Input2, {
|
|
4490
4580
|
"aria-label": `Search ${label}`,
|
|
4491
4581
|
type: "search",
|
|
4492
4582
|
value: search,
|
|
4493
4583
|
onChange: (event) => onSearchChange(event.target.value),
|
|
4494
4584
|
className: "min-w-40 flex-1"
|
|
4495
4585
|
}),
|
|
4496
|
-
filters.map((filter) => /* @__PURE__ */
|
|
4586
|
+
filters.map((filter) => /* @__PURE__ */ jsx47(OptionSelect2, {
|
|
4497
4587
|
"aria-label": filter.label,
|
|
4498
4588
|
value: value[filter.id] ?? "",
|
|
4499
4589
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4500
4590
|
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4501
4591
|
}, filter.id)),
|
|
4502
|
-
/* @__PURE__ */
|
|
4592
|
+
/* @__PURE__ */ jsx47(Button2, {
|
|
4503
4593
|
type: "button",
|
|
4504
4594
|
variant: "ghost",
|
|
4505
4595
|
disabled: !search && !Object.values(value).some(Boolean),
|
|
@@ -4513,7 +4603,7 @@ function FilterBar2({
|
|
|
4513
4603
|
});
|
|
4514
4604
|
}
|
|
4515
4605
|
// src/components/BarList.tsx
|
|
4516
|
-
import { jsx as
|
|
4606
|
+
import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4517
4607
|
function BarList2({
|
|
4518
4608
|
label,
|
|
4519
4609
|
items,
|
|
@@ -4522,14 +4612,14 @@ function BarList2({
|
|
|
4522
4612
|
density
|
|
4523
4613
|
}) {
|
|
4524
4614
|
const max = Math.max(1, ...items.map((item) => item.value));
|
|
4525
|
-
return /* @__PURE__ */
|
|
4615
|
+
return /* @__PURE__ */ jsxs34("section", {
|
|
4526
4616
|
"aria-label": label,
|
|
4527
4617
|
"data-density": density,
|
|
4528
4618
|
children: [
|
|
4529
|
-
/* @__PURE__ */
|
|
4619
|
+
/* @__PURE__ */ jsx48("ul", {
|
|
4530
4620
|
className: "grid gap-3",
|
|
4531
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4532
|
-
children: /* @__PURE__ */
|
|
4621
|
+
children: items.map((item) => /* @__PURE__ */ jsx48("li", {
|
|
4622
|
+
children: /* @__PURE__ */ jsxs34(Meter2, {
|
|
4533
4623
|
min: 0,
|
|
4534
4624
|
max,
|
|
4535
4625
|
value: item.value,
|
|
@@ -4537,11 +4627,11 @@ function BarList2({
|
|
|
4537
4627
|
format: { maximumFractionDigits: 2 },
|
|
4538
4628
|
className: "gap-y-1",
|
|
4539
4629
|
children: [
|
|
4540
|
-
/* @__PURE__ */
|
|
4630
|
+
/* @__PURE__ */ jsxs34("div", {
|
|
4541
4631
|
className: "flex w-full items-center justify-between gap-3 text-sm",
|
|
4542
4632
|
children: [
|
|
4543
|
-
/* @__PURE__ */
|
|
4544
|
-
children: onItemSelect ? /* @__PURE__ */
|
|
4633
|
+
/* @__PURE__ */ jsx48(MeterLabel2, {
|
|
4634
|
+
children: onItemSelect ? /* @__PURE__ */ jsx48(Button2, {
|
|
4545
4635
|
type: "button",
|
|
4546
4636
|
variant: "link",
|
|
4547
4637
|
className: "h-auto p-0",
|
|
@@ -4549,19 +4639,19 @@ function BarList2({
|
|
|
4549
4639
|
children: item.label
|
|
4550
4640
|
}) : item.label
|
|
4551
4641
|
}),
|
|
4552
|
-
/* @__PURE__ */
|
|
4642
|
+
/* @__PURE__ */ jsx48(MeterValue2, {
|
|
4553
4643
|
children: () => valueFormatter(item.value)
|
|
4554
4644
|
})
|
|
4555
4645
|
]
|
|
4556
4646
|
}),
|
|
4557
|
-
/* @__PURE__ */
|
|
4558
|
-
children: /* @__PURE__ */
|
|
4647
|
+
/* @__PURE__ */ jsx48(MeterTrack2, {
|
|
4648
|
+
children: /* @__PURE__ */ jsx48(MeterIndicator2, {})
|
|
4559
4649
|
})
|
|
4560
4650
|
]
|
|
4561
4651
|
})
|
|
4562
4652
|
}, item.id))
|
|
4563
4653
|
}),
|
|
4564
|
-
!items.length && /* @__PURE__ */
|
|
4654
|
+
!items.length && /* @__PURE__ */ jsx48("p", {
|
|
4565
4655
|
role: "status",
|
|
4566
4656
|
className: "text-sm text-muted-foreground",
|
|
4567
4657
|
children: "No data available."
|
|
@@ -4570,23 +4660,23 @@ function BarList2({
|
|
|
4570
4660
|
});
|
|
4571
4661
|
}
|
|
4572
4662
|
// src/components/StatusTracker.tsx
|
|
4573
|
-
import { jsx as
|
|
4663
|
+
import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4574
4664
|
var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
|
|
4575
4665
|
function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
4576
|
-
return /* @__PURE__ */
|
|
4577
|
-
children: /* @__PURE__ */
|
|
4666
|
+
return /* @__PURE__ */ jsx49(TooltipProvider2, {
|
|
4667
|
+
children: /* @__PURE__ */ jsx49("div", {
|
|
4578
4668
|
role: "group",
|
|
4579
4669
|
"aria-label": label,
|
|
4580
4670
|
"data-density": density,
|
|
4581
4671
|
className: "flex min-w-0 gap-1",
|
|
4582
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4672
|
+
children: items.map((item) => /* @__PURE__ */ jsxs35(Tooltip2, {
|
|
4583
4673
|
children: [
|
|
4584
|
-
/* @__PURE__ */
|
|
4674
|
+
/* @__PURE__ */ jsx49(TooltipTrigger2, {
|
|
4585
4675
|
"aria-label": `${item.label}: ${item.status}`,
|
|
4586
4676
|
onClick: () => onItemSelect?.(item),
|
|
4587
4677
|
className: cn2("h-8 min-w-2 flex-1 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", statusClasses[item.status])
|
|
4588
4678
|
}),
|
|
4589
|
-
/* @__PURE__ */
|
|
4679
|
+
/* @__PURE__ */ jsxs35(TooltipContent2, {
|
|
4590
4680
|
children: [
|
|
4591
4681
|
item.label,
|
|
4592
4682
|
": ",
|
|
@@ -4599,7 +4689,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
|
4599
4689
|
});
|
|
4600
4690
|
}
|
|
4601
4691
|
// src/components/DashboardLayout.tsx
|
|
4602
|
-
import { jsx as
|
|
4692
|
+
import { jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4603
4693
|
function DashboardLayout2({
|
|
4604
4694
|
title,
|
|
4605
4695
|
description,
|
|
@@ -4610,24 +4700,24 @@ function DashboardLayout2({
|
|
|
4610
4700
|
footer,
|
|
4611
4701
|
density
|
|
4612
4702
|
}) {
|
|
4613
|
-
return /* @__PURE__ */
|
|
4703
|
+
return /* @__PURE__ */ jsxs36("div", {
|
|
4614
4704
|
"data-density": density,
|
|
4615
4705
|
"data-scroll": "none",
|
|
4616
4706
|
className: "grid min-w-0 gap-6",
|
|
4617
4707
|
children: [
|
|
4618
|
-
/* @__PURE__ */
|
|
4708
|
+
/* @__PURE__ */ jsx50(PageHeader2, {
|
|
4619
4709
|
title,
|
|
4620
4710
|
description,
|
|
4621
4711
|
actions
|
|
4622
4712
|
}),
|
|
4623
4713
|
filters,
|
|
4624
|
-
stats.length > 0 && /* @__PURE__ */
|
|
4714
|
+
stats.length > 0 && /* @__PURE__ */ jsx50("div", {
|
|
4625
4715
|
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
|
|
4626
|
-
children: stats.map(({ id, ...stat }) => /* @__PURE__ */
|
|
4716
|
+
children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx50(StatCard2, {
|
|
4627
4717
|
...stat
|
|
4628
4718
|
}, id))
|
|
4629
4719
|
}),
|
|
4630
|
-
/* @__PURE__ */
|
|
4720
|
+
/* @__PURE__ */ jsx50("div", {
|
|
4631
4721
|
className: "grid min-w-0 gap-4",
|
|
4632
4722
|
children
|
|
4633
4723
|
}),
|
|
@@ -4636,18 +4726,18 @@ function DashboardLayout2({
|
|
|
4636
4726
|
});
|
|
4637
4727
|
}
|
|
4638
4728
|
// src/components/BillingUsage.tsx
|
|
4639
|
-
import { jsx as
|
|
4729
|
+
import { jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4640
4730
|
function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
|
|
4641
|
-
return /* @__PURE__ */
|
|
4731
|
+
return /* @__PURE__ */ jsxs37(Card2, {
|
|
4642
4732
|
density,
|
|
4643
4733
|
"aria-label": "Billing and usage",
|
|
4644
4734
|
children: [
|
|
4645
|
-
/* @__PURE__ */
|
|
4735
|
+
/* @__PURE__ */ jsxs37(CardHeader2, {
|
|
4646
4736
|
children: [
|
|
4647
|
-
/* @__PURE__ */
|
|
4737
|
+
/* @__PURE__ */ jsx51(CardTitle2, {
|
|
4648
4738
|
children: plan
|
|
4649
4739
|
}),
|
|
4650
|
-
/* @__PURE__ */
|
|
4740
|
+
/* @__PURE__ */ jsxs37(CardDescription2, {
|
|
4651
4741
|
children: [
|
|
4652
4742
|
price,
|
|
4653
4743
|
" · ",
|
|
@@ -4656,32 +4746,32 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4656
4746
|
})
|
|
4657
4747
|
]
|
|
4658
4748
|
}),
|
|
4659
|
-
/* @__PURE__ */
|
|
4749
|
+
/* @__PURE__ */ jsx51(CardContent2, {
|
|
4660
4750
|
className: "grid gap-4",
|
|
4661
|
-
children: metrics.map((metric) => /* @__PURE__ */
|
|
4751
|
+
children: metrics.map((metric) => /* @__PURE__ */ jsxs37(Meter2, {
|
|
4662
4752
|
value: metric.used,
|
|
4663
4753
|
max: metric.limit,
|
|
4664
4754
|
"aria-label": metric.label,
|
|
4665
4755
|
children: [
|
|
4666
|
-
/* @__PURE__ */
|
|
4756
|
+
/* @__PURE__ */ jsxs37("div", {
|
|
4667
4757
|
className: "mb-2 flex items-center justify-between gap-3 text-sm",
|
|
4668
4758
|
children: [
|
|
4669
|
-
/* @__PURE__ */
|
|
4759
|
+
/* @__PURE__ */ jsx51(MeterLabel2, {
|
|
4670
4760
|
children: metric.label
|
|
4671
4761
|
}),
|
|
4672
|
-
/* @__PURE__ */
|
|
4762
|
+
/* @__PURE__ */ jsx51(MeterValue2, {
|
|
4673
4763
|
children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
|
|
4674
4764
|
})
|
|
4675
4765
|
]
|
|
4676
4766
|
}),
|
|
4677
|
-
/* @__PURE__ */
|
|
4678
|
-
children: /* @__PURE__ */
|
|
4767
|
+
/* @__PURE__ */ jsx51(MeterTrack2, {
|
|
4768
|
+
children: /* @__PURE__ */ jsx51(MeterIndicator2, {})
|
|
4679
4769
|
})
|
|
4680
4770
|
]
|
|
4681
4771
|
}, metric.id))
|
|
4682
4772
|
}),
|
|
4683
|
-
/* @__PURE__ */
|
|
4684
|
-
children: /* @__PURE__ */
|
|
4773
|
+
/* @__PURE__ */ jsx51(CardFooter2, {
|
|
4774
|
+
children: /* @__PURE__ */ jsx51(Button2, {
|
|
4685
4775
|
type: "button",
|
|
4686
4776
|
variant: "outline",
|
|
4687
4777
|
onClick: onManage,
|
|
@@ -4692,4 +4782,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4692
4782
|
]
|
|
4693
4783
|
});
|
|
4694
4784
|
}
|
|
4695
|
-
export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, formatDataLabel2, DataViewer2, JsonViewer2, AlertDialog2, AlertDialogTrigger2, AlertDialogPortal2, AlertDialogOverlay2, AlertDialogContent2, AlertDialogHeader2, AlertDialogFooter2, AlertDialogMedia2, AlertDialogTitle2, AlertDialogDescription2, AlertDialogAction2, AlertDialogCancel2, DensityProvider2, collectLayoutViolations2, LayoutGuard2, ScrollGuard2, ThemeProvider2, AspectRatio2, Breadcrumb2, BreadcrumbList2, BreadcrumbItem2, BreadcrumbLink2, BreadcrumbPage2, BreadcrumbSeparator2, BreadcrumbEllipsis2, buttonGroupVariants2, ButtonGroup2, ButtonGroupText2, ButtonGroupSeparator2, ItemGroup2, ItemSeparator2, Item2, ItemMedia2, ItemContent2, ItemTitle2, ItemDescription2, ItemActions2, ItemHeader2, ItemFooter2, Pagination2, PaginationContent2, PaginationItem2, PaginationLink2, PaginationPrevious2, PaginationNext2, PaginationEllipsis2, Menubar2, MenubarMenu2, MenubarGroup2, MenubarPortal2, MenubarTrigger2, MenubarContent2, MenubarItem2, MenubarCheckboxItem2, MenubarRadioGroup2, MenubarRadioItem2, MenubarLabel2, MenubarSeparator2, MenubarShortcut2, MenubarSub2, MenubarSubTrigger2, MenubarSubContent2, NavigationMenu2, NavigationMenuList2, NavigationMenuItem2, navigationMenuTriggerStyle2, NavigationMenuTrigger2, NavigationMenuContent2, NavigationMenuPositioner2, NavigationMenuLink2, NavigationMenuIndicator2, ToastProvider2, ToastPortal2, ToastViewport2, Toast2, ToastContent2, ToastTitle2, ToastDescription2, ToastAction2, ToastClose2, ToastToaster2, createToastManager2, useToastManager2, markerVariants2, Marker2, MarkerIcon2, MarkerContent2, BubbleGroup2, Bubble2, BubbleContent2, BubbleReactions2, MessageGroup2, Message2, MessageAvatar2, MessageContent2, MessageHeader2, MessageFooter2, Attachment2, AttachmentMedia2, AttachmentContent2, AttachmentTitle2, AttachmentDescription2, AttachmentActions2, AttachmentAction2, AttachmentTrigger2, AttachmentGroup2, InlineEdit2, StarRating2, ReviewList2, ChoiceTable2, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, ToolbarToggleChip2, Stepper2, StepperList2, StepperTrigger2, StepperIndicator2, StepperContent2, AppShell2, Stack2, Grid2, GridItem2, Container2, Text2, Heading2, WeatherSummary2, WeatherForecast2, PageHeader2, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
|
|
4785
|
+
export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, formatDataLabel2, DataViewer2, JsonViewer2, AlertDialog2, AlertDialogTrigger2, AlertDialogPortal2, AlertDialogOverlay2, AlertDialogContent2, AlertDialogHeader2, AlertDialogFooter2, AlertDialogMedia2, AlertDialogTitle2, AlertDialogDescription2, AlertDialogAction2, AlertDialogCancel2, DensityProvider2, collectLayoutViolations2, LayoutGuard2, ScrollGuard2, ThemeProvider2, AspectRatio2, Breadcrumb2, BreadcrumbList2, BreadcrumbItem2, BreadcrumbLink2, BreadcrumbPage2, BreadcrumbSeparator2, BreadcrumbEllipsis2, buttonGroupVariants2, ButtonGroup2, ButtonGroupText2, ButtonGroupSeparator2, ItemGroup2, ItemSeparator2, Item2, ItemMedia2, ItemContent2, ItemTitle2, ItemDescription2, ItemActions2, ItemHeader2, ItemFooter2, Pagination2, PaginationContent2, PaginationItem2, PaginationLink2, PaginationPrevious2, PaginationNext2, PaginationEllipsis2, Menubar2, MenubarMenu2, MenubarGroup2, MenubarPortal2, MenubarTrigger2, MenubarContent2, MenubarItem2, MenubarCheckboxItem2, MenubarRadioGroup2, MenubarRadioItem2, MenubarLabel2, MenubarSeparator2, MenubarShortcut2, MenubarSub2, MenubarSubTrigger2, MenubarSubContent2, NavigationMenu2, NavigationMenuList2, NavigationMenuItem2, navigationMenuTriggerStyle2, NavigationMenuTrigger2, NavigationMenuContent2, NavigationMenuPositioner2, NavigationMenuLink2, NavigationMenuIndicator2, ToastProvider2, ToastPortal2, ToastViewport2, Toast2, ToastContent2, ToastTitle2, ToastDescription2, ToastAction2, ToastClose2, ToastToaster2, createToastManager2, useToastManager2, markerVariants2, Marker2, MarkerIcon2, MarkerContent2, BubbleGroup2, Bubble2, BubbleContent2, BubbleReactions2, MessageGroup2, Message2, MessageAvatar2, MessageContent2, MessageHeader2, MessageFooter2, MessageThread2, MessageThreadSummary2, MessageThreadReplies2, Attachment2, AttachmentMedia2, AttachmentContent2, AttachmentTitle2, AttachmentDescription2, AttachmentActions2, AttachmentAction2, AttachmentTrigger2, AttachmentGroup2, InlineEdit2, StarRating2, ReviewList2, ChoiceTable2, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, ToolbarToggleChip2, Stepper2, StepperList2, StepperTrigger2, StepperIndicator2, StepperContent2, AppShell2, Stack2, Grid2, GridItem2, Container2, Text2, Heading2, WeatherSummary2, WeatherForecast2, PageHeader2, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
|