@alexgorbatchev/shadcn 0.0.85 → 0.0.86
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-cjbbeph9.js → chunk-8cxqbmh5.js} +363 -216
- package/dist/{chunk-5jtbr6q4.js → chunk-nj2shejq.js} +1 -1
- package/dist/{chunk-xhq6s4z7.js → chunk-qn4a3gg4.js} +4 -2
- package/dist/{chunk-tmt6rwg1.js → chunk-wnkxd9km.js} +1 -1
- package/dist/{chunk-ya14cv0r.js → chunk-z6kyewpg.js} +1 -1
- package/dist/components/StarRating.d.ts +14 -2
- package/dist/components/Table.d.ts +8 -2
- package/dist/components/ToolbarToggleChip.d.ts +39 -0
- package/dist/components/assistant-ui/elements/DataTable.js +2 -2
- package/dist/components/assistant-ui/index.js +2 -2
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/gantt/index.js +1 -1
- package/dist/components/json-render/index.js +2 -2
- package/dist/components/resizable/SplitView.d.ts +4 -2
- package/dist/components/resizable/index.js +26 -1
- package/dist/components/virtual-data-grid/index.js +3 -3
- package/dist/components/virtual-table/index.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -2
- package/dist/prototype.js +1 -1
- package/llms/components/actions/ToolbarToggleChip.md +105 -0
- package/llms/components/data-display/Table.md +23 -0
- package/llms/components/forms/StarRating.md +26 -0
- package/llms/components/layout/SplitView.md +16 -0
- package/llms.txt +1 -0
- package/package.json +1 -1
|
@@ -135,6 +135,9 @@ import {
|
|
|
135
135
|
import {
|
|
136
136
|
Spinner2
|
|
137
137
|
} from "./chunk-t3p4dn1p.js";
|
|
138
|
+
import {
|
|
139
|
+
Kbd2
|
|
140
|
+
} from "./chunk-7vnpp3ya.js";
|
|
138
141
|
import {
|
|
139
142
|
useLinkAnalyticsCallback,
|
|
140
143
|
AnalyticsLink
|
|
@@ -2746,6 +2749,7 @@ function InlineEdit2({
|
|
|
2746
2749
|
});
|
|
2747
2750
|
}
|
|
2748
2751
|
// src/components/StarRating.tsx
|
|
2752
|
+
import { useState as useState3 } from "react";
|
|
2749
2753
|
import { Radio } from "@base-ui/react/radio";
|
|
2750
2754
|
import { StarIcon, CircleOffIcon } from "lucide-react";
|
|
2751
2755
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
@@ -2759,21 +2763,53 @@ function StarRating2({
|
|
|
2759
2763
|
disabled,
|
|
2760
2764
|
density: densityProp,
|
|
2761
2765
|
focusable = true,
|
|
2766
|
+
commit = "change",
|
|
2767
|
+
clearable = true,
|
|
2768
|
+
busy = false,
|
|
2769
|
+
onReselect,
|
|
2762
2770
|
onValueChange
|
|
2763
2771
|
}) {
|
|
2764
2772
|
const density = useDensity(densityProp);
|
|
2773
|
+
const [moved, setMoved] = useState3(null);
|
|
2774
|
+
const isConfirm = commit === "confirm";
|
|
2775
|
+
const draft = moved?.from === value ? moved.star : null;
|
|
2776
|
+
const setDraft = (star) => setMoved(star === null ? null : { from: value, star });
|
|
2777
|
+
const shown = isConfirm ? draft ?? value : value;
|
|
2778
|
+
const confirm = (star) => {
|
|
2779
|
+
setDraft(null);
|
|
2780
|
+
if (star === value)
|
|
2781
|
+
onReselect?.(star);
|
|
2782
|
+
else
|
|
2783
|
+
onValueChange(star);
|
|
2784
|
+
};
|
|
2785
|
+
const onBlur = (event) => {
|
|
2786
|
+
if (!isConfirm || event.currentTarget.contains(event.relatedTarget))
|
|
2787
|
+
return;
|
|
2788
|
+
if (draft !== null && draft !== value)
|
|
2789
|
+
onValueChange(draft);
|
|
2790
|
+
setDraft(null);
|
|
2791
|
+
};
|
|
2765
2792
|
return /* @__PURE__ */ jsx28(RadioGroup2, {
|
|
2766
2793
|
analytics,
|
|
2767
2794
|
"aria-label": label,
|
|
2768
|
-
|
|
2795
|
+
"aria-busy": busy || undefined,
|
|
2796
|
+
value: shown,
|
|
2769
2797
|
disabled,
|
|
2770
2798
|
"data-density": densityProp,
|
|
2771
2799
|
className: "inline-flex w-fit shrink-0 items-center gap-0.5",
|
|
2772
|
-
onValueChange,
|
|
2773
|
-
|
|
2800
|
+
onValueChange: isConfirm ? (next) => setDraft(next) : onValueChange,
|
|
2801
|
+
onBlur,
|
|
2802
|
+
children: [1, 2, 3, 4, 5, ...clearable ? [0] : []].map((star) => /* @__PURE__ */ jsx28(Radio.Root, {
|
|
2774
2803
|
value: star,
|
|
2775
2804
|
nativeButton: true,
|
|
2776
2805
|
...focusable ? {} : { tabIndex: -1 },
|
|
2806
|
+
...isConfirm && {
|
|
2807
|
+
onClick: () => confirm(star),
|
|
2808
|
+
onKeyDown: (event) => {
|
|
2809
|
+
if (event.key === "Enter")
|
|
2810
|
+
confirm(star);
|
|
2811
|
+
}
|
|
2812
|
+
},
|
|
2777
2813
|
render: /* @__PURE__ */ jsx28(AnalyticsButton, {
|
|
2778
2814
|
component: "StarRating",
|
|
2779
2815
|
type: "button"
|
|
@@ -2786,13 +2822,13 @@ function StarRating2({
|
|
|
2786
2822
|
className: CLEAR_SIZES[density]
|
|
2787
2823
|
}) : /* @__PURE__ */ jsx28(StarIcon, {
|
|
2788
2824
|
"aria-hidden": "true",
|
|
2789
|
-
className: star <=
|
|
2825
|
+
className: star <= shown ? cn2(STAR_SIZES[density], "fill-primary text-primary") : STAR_SIZES[density]
|
|
2790
2826
|
})
|
|
2791
2827
|
}, star))
|
|
2792
2828
|
});
|
|
2793
2829
|
}
|
|
2794
2830
|
// src/components/ReviewList.tsx
|
|
2795
|
-
import { useRef as useRef3, useState as
|
|
2831
|
+
import { useRef as useRef3, useState as useState4 } from "react";
|
|
2796
2832
|
import { jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2797
2833
|
var TOGGLE_KEYS = new Set(["x", "X"]);
|
|
2798
2834
|
function isMod(event) {
|
|
@@ -2802,8 +2838,8 @@ function isTextEntry(target) {
|
|
|
2802
2838
|
return target instanceof HTMLElement && (target.isContentEditable || target.matches("input:not([type='checkbox']), textarea, select"));
|
|
2803
2839
|
}
|
|
2804
2840
|
function ReviewList2({ label, rows, onIncludedChange }) {
|
|
2805
|
-
const [cursor, setCursor] =
|
|
2806
|
-
const [anchorId, setAnchorId] =
|
|
2841
|
+
const [cursor, setCursor] = useState4({ row: 0, cell: 0 });
|
|
2842
|
+
const [anchorId, setAnchorId] = useState4();
|
|
2807
2843
|
const cellsRef = useRef3(new Map);
|
|
2808
2844
|
const rowIndex = Math.min(cursor.row, Math.max(0, rows.length - 1));
|
|
2809
2845
|
const cellCount = (row) => 2 + (row?.cells?.length ?? 0);
|
|
@@ -2929,7 +2965,7 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2929
2965
|
});
|
|
2930
2966
|
}
|
|
2931
2967
|
// src/components/ConfirmationDialog.tsx
|
|
2932
|
-
import { useState as
|
|
2968
|
+
import { useState as useState5 } from "react";
|
|
2933
2969
|
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2934
2970
|
function ConfirmationDialog2({
|
|
2935
2971
|
open,
|
|
@@ -2940,8 +2976,8 @@ function ConfirmationDialog2({
|
|
|
2940
2976
|
onConfirm,
|
|
2941
2977
|
renderError
|
|
2942
2978
|
}) {
|
|
2943
|
-
const [isPending, setPending] =
|
|
2944
|
-
const [error, setError] =
|
|
2979
|
+
const [isPending, setPending] = useState5(false);
|
|
2980
|
+
const [error, setError] = useState5(null);
|
|
2945
2981
|
return /* @__PURE__ */ jsx30(AlertDialog2, {
|
|
2946
2982
|
open,
|
|
2947
2983
|
onOpenChange: (next, details) => {
|
|
@@ -3006,9 +3042,9 @@ import { useRef as useRef4 } from "react";
|
|
|
3006
3042
|
import { ImageIcon, UploadIcon } from "lucide-react";
|
|
3007
3043
|
|
|
3008
3044
|
// src/hooks/useObjectURL.ts
|
|
3009
|
-
import { useEffect as useEffect3, useState as
|
|
3045
|
+
import { useEffect as useEffect3, useState as useState6 } from "react";
|
|
3010
3046
|
function useObjectURL(file) {
|
|
3011
|
-
const [url, setURL] =
|
|
3047
|
+
const [url, setURL] = useState6();
|
|
3012
3048
|
useEffect3(() => {
|
|
3013
3049
|
if (!file) {
|
|
3014
3050
|
setURL(undefined);
|
|
@@ -3146,12 +3182,123 @@ function MeterIndicator2({
|
|
|
3146
3182
|
...props
|
|
3147
3183
|
});
|
|
3148
3184
|
}
|
|
3185
|
+
// src/components/ToolbarToggleChip.tsx
|
|
3186
|
+
import { useId as useId4 } from "react";
|
|
3187
|
+
import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
|
|
3188
|
+
import { jsx as jsx33, jsxs as jsxs20, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
3189
|
+
function pressedLabel(pressed) {
|
|
3190
|
+
if (pressed === "mixed")
|
|
3191
|
+
return "mixed";
|
|
3192
|
+
return pressed ? "true" : "false";
|
|
3193
|
+
}
|
|
3194
|
+
function ToolbarToggleChip2({
|
|
3195
|
+
analytics,
|
|
3196
|
+
density,
|
|
3197
|
+
children,
|
|
3198
|
+
pressed,
|
|
3199
|
+
onPressedChange,
|
|
3200
|
+
shortcut,
|
|
3201
|
+
detail,
|
|
3202
|
+
swatch,
|
|
3203
|
+
hideLabel = false,
|
|
3204
|
+
disabledReason,
|
|
3205
|
+
focusOnPointer = true,
|
|
3206
|
+
spaceActivates = true,
|
|
3207
|
+
className
|
|
3208
|
+
}) {
|
|
3209
|
+
const reasonId = useId4();
|
|
3210
|
+
const trackedChange = useAnalyticsCallback("ToolbarToggleChip", analytics, { name: "ui.change-request" }, onPressedChange);
|
|
3211
|
+
const isDisabled = Boolean(disabledReason);
|
|
3212
|
+
const onMouseDown = (event) => {
|
|
3213
|
+
if (!focusOnPointer)
|
|
3214
|
+
event.preventDefault();
|
|
3215
|
+
};
|
|
3216
|
+
const onKeyDown = (event) => {
|
|
3217
|
+
if (spaceActivates || event.key !== " ")
|
|
3218
|
+
return;
|
|
3219
|
+
event.preventBaseUIHandler?.();
|
|
3220
|
+
};
|
|
3221
|
+
const onKeyUp = (event) => {
|
|
3222
|
+
if (!spaceActivates && event.key === " ")
|
|
3223
|
+
event.preventDefault();
|
|
3224
|
+
};
|
|
3225
|
+
const button = /* @__PURE__ */ jsxs20(ToolbarPrimitive.Button, {
|
|
3226
|
+
"data-density": density,
|
|
3227
|
+
"data-slot": "toolbar-toggle-chip",
|
|
3228
|
+
"data-pressed": pressedLabel(pressed),
|
|
3229
|
+
"data-space-activates": spaceActivates ? undefined : "false",
|
|
3230
|
+
"aria-pressed": pressedLabel(pressed),
|
|
3231
|
+
...shortcut && { "aria-keyshortcuts": shortcut.toUpperCase() },
|
|
3232
|
+
"aria-describedby": disabledReason ? reasonId : undefined,
|
|
3233
|
+
disabled: isDisabled,
|
|
3234
|
+
focusableWhenDisabled: true,
|
|
3235
|
+
className: cn2(buttonVariants2({ variant: "outline", size: hideLabel ? "icon-sm" : "sm" }), "data-[pressed=true]:border-primary data-[pressed=true]:bg-primary/15 data-[pressed=true]:text-foreground", "data-[pressed=mixed]:border-dashed data-[pressed=mixed]:border-primary data-[pressed=mixed]:bg-primary/5", className),
|
|
3236
|
+
onMouseDown,
|
|
3237
|
+
onKeyDown,
|
|
3238
|
+
onKeyUp,
|
|
3239
|
+
onClick: () => {
|
|
3240
|
+
if (!isDisabled)
|
|
3241
|
+
trackedChange(pressed !== true);
|
|
3242
|
+
},
|
|
3243
|
+
children: [
|
|
3244
|
+
swatch && /* @__PURE__ */ jsx33("span", {
|
|
3245
|
+
"aria-hidden": "true",
|
|
3246
|
+
"data-slot": "toolbar-toggle-chip-swatch",
|
|
3247
|
+
className: "size-3 shrink-0 rounded-sm border border-border",
|
|
3248
|
+
style: { backgroundColor: swatch }
|
|
3249
|
+
}),
|
|
3250
|
+
/* @__PURE__ */ jsx33("span", {
|
|
3251
|
+
className: hideLabel ? "sr-only" : "min-w-0 truncate",
|
|
3252
|
+
children
|
|
3253
|
+
}),
|
|
3254
|
+
detail !== undefined && /* @__PURE__ */ jsxs20("span", {
|
|
3255
|
+
"data-slot": "toolbar-toggle-chip-detail",
|
|
3256
|
+
className: "text-xs text-muted-foreground",
|
|
3257
|
+
children: [
|
|
3258
|
+
" · ",
|
|
3259
|
+
detail
|
|
3260
|
+
]
|
|
3261
|
+
}),
|
|
3262
|
+
shortcut && !hideLabel && /* @__PURE__ */ jsx33(Kbd2, {
|
|
3263
|
+
"aria-hidden": "true",
|
|
3264
|
+
className: "ms-1",
|
|
3265
|
+
children: shortcut.toUpperCase()
|
|
3266
|
+
})
|
|
3267
|
+
]
|
|
3268
|
+
});
|
|
3269
|
+
return /* @__PURE__ */ jsxs20(Fragment5, {
|
|
3270
|
+
children: [
|
|
3271
|
+
disabledReason && /* @__PURE__ */ jsx33("span", {
|
|
3272
|
+
id: reasonId,
|
|
3273
|
+
className: "sr-only",
|
|
3274
|
+
children: disabledReason
|
|
3275
|
+
}),
|
|
3276
|
+
/* @__PURE__ */ jsxs20(Tooltip2, {
|
|
3277
|
+
disabled: !disabledReason && !hideLabel,
|
|
3278
|
+
children: [
|
|
3279
|
+
/* @__PURE__ */ jsx33(TooltipTrigger2, {
|
|
3280
|
+
render: button,
|
|
3281
|
+
closeOnClick: false
|
|
3282
|
+
}),
|
|
3283
|
+
(disabledReason || hideLabel) && /* @__PURE__ */ jsxs20(TooltipContent2, {
|
|
3284
|
+
children: [
|
|
3285
|
+
hideLabel ? children : null,
|
|
3286
|
+
hideLabel && shortcut ? ` · ${shortcut.toUpperCase()}` : null,
|
|
3287
|
+
hideLabel && disabledReason ? " · " : null,
|
|
3288
|
+
disabledReason
|
|
3289
|
+
]
|
|
3290
|
+
})
|
|
3291
|
+
]
|
|
3292
|
+
})
|
|
3293
|
+
]
|
|
3294
|
+
});
|
|
3295
|
+
}
|
|
3149
3296
|
// src/components/Stepper.tsx
|
|
3150
3297
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
3151
3298
|
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
3152
|
-
import { jsx as
|
|
3299
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3153
3300
|
function Stepper2({ density, className, ...props }) {
|
|
3154
|
-
return /* @__PURE__ */
|
|
3301
|
+
return /* @__PURE__ */ jsx34(TabsPrimitive.Root, {
|
|
3155
3302
|
"data-density": density,
|
|
3156
3303
|
"data-slot": "stepper",
|
|
3157
3304
|
className: (state) => cn2("group/stepper flex min-w-0 flex-col gap-panel data-[orientation=vertical]:flex-row", typeof className === "function" ? className(state) : className),
|
|
@@ -3164,7 +3311,7 @@ function StepperList2({
|
|
|
3164
3311
|
activateOnFocus = false,
|
|
3165
3312
|
...props
|
|
3166
3313
|
}) {
|
|
3167
|
-
return /* @__PURE__ */
|
|
3314
|
+
return /* @__PURE__ */ jsx34(TabsPrimitive.List, {
|
|
3168
3315
|
"data-density": density,
|
|
3169
3316
|
"data-slot": "stepper-list",
|
|
3170
3317
|
activateOnFocus,
|
|
@@ -3173,7 +3320,7 @@ function StepperList2({
|
|
|
3173
3320
|
});
|
|
3174
3321
|
}
|
|
3175
3322
|
function StepperTrigger2({ density, className, ...props }) {
|
|
3176
|
-
return /* @__PURE__ */
|
|
3323
|
+
return /* @__PURE__ */ jsx34(TabsPrimitive.Tab, {
|
|
3177
3324
|
"data-density": density,
|
|
3178
3325
|
"data-slot": "stepper-trigger",
|
|
3179
3326
|
className: (state) => cn2("group/step flex min-h-control items-center gap-control-gap rounded-sm text-sm text-muted-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring data-active:text-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:opacity-50", typeof className === "function" ? className(state) : className),
|
|
@@ -3181,17 +3328,17 @@ function StepperTrigger2({ density, className, ...props }) {
|
|
|
3181
3328
|
});
|
|
3182
3329
|
}
|
|
3183
3330
|
function StepperIndicator2({ completed = false, children, className, ...props }) {
|
|
3184
|
-
return /* @__PURE__ */
|
|
3331
|
+
return /* @__PURE__ */ jsx34("span", {
|
|
3185
3332
|
"aria-hidden": "true",
|
|
3186
3333
|
"data-slot": "stepper-indicator",
|
|
3187
3334
|
"data-completed": completed || undefined,
|
|
3188
3335
|
className: cn2("flex size-control shrink-0 items-center justify-center rounded-sm border border-input bg-secondary text-sm tabular-nums group-data-active/step:border-primary group-data-active/step:bg-primary group-data-active/step:text-primary-foreground data-completed:border-primary data-completed:text-primary [&_svg]:size-3.5", className),
|
|
3189
3336
|
...props,
|
|
3190
|
-
children: completed ? /* @__PURE__ */
|
|
3337
|
+
children: completed ? /* @__PURE__ */ jsx34(CheckIcon2, {}) : children
|
|
3191
3338
|
});
|
|
3192
3339
|
}
|
|
3193
3340
|
function StepperContent2({ density, className, ...props }) {
|
|
3194
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ jsx34(TabsPrimitive.Panel, {
|
|
3195
3342
|
"data-density": density,
|
|
3196
3343
|
"data-slot": "stepper-content",
|
|
3197
3344
|
className: (state) => cn2("min-w-0 flex-1 outline-none focus-visible:ring-1 focus-visible:ring-ring", typeof className === "function" ? className(state) : className),
|
|
@@ -3199,7 +3346,7 @@ function StepperContent2({ density, className, ...props }) {
|
|
|
3199
3346
|
});
|
|
3200
3347
|
}
|
|
3201
3348
|
// src/components/AppShell.tsx
|
|
3202
|
-
import { jsx as
|
|
3349
|
+
import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3203
3350
|
function AppShell2({
|
|
3204
3351
|
navigation,
|
|
3205
3352
|
brand,
|
|
@@ -3213,28 +3360,28 @@ function AppShell2({
|
|
|
3213
3360
|
content = "scroll",
|
|
3214
3361
|
density
|
|
3215
3362
|
}) {
|
|
3216
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */ jsxs21(SidebarProvider2, {
|
|
3217
3364
|
density,
|
|
3218
3365
|
defaultOpen: defaultSidebarOpen,
|
|
3219
3366
|
className: "relative min-h-0",
|
|
3220
3367
|
style: { height },
|
|
3221
3368
|
"data-scroll": "none",
|
|
3222
3369
|
children: [
|
|
3223
|
-
/* @__PURE__ */
|
|
3370
|
+
/* @__PURE__ */ jsxs21(Sidebar2, {
|
|
3224
3371
|
collapsible: "icon",
|
|
3225
3372
|
position: "container",
|
|
3226
3373
|
children: [
|
|
3227
|
-
/* @__PURE__ */
|
|
3374
|
+
/* @__PURE__ */ jsx35(SidebarHeader2, {
|
|
3228
3375
|
children: brand
|
|
3229
3376
|
}),
|
|
3230
|
-
/* @__PURE__ */
|
|
3231
|
-
children: /* @__PURE__ */
|
|
3377
|
+
/* @__PURE__ */ jsx35(SidebarContent2, {
|
|
3378
|
+
children: /* @__PURE__ */ jsx35("nav", {
|
|
3232
3379
|
"aria-label": "Primary navigation",
|
|
3233
|
-
children: /* @__PURE__ */
|
|
3234
|
-
children: /* @__PURE__ */
|
|
3235
|
-
children: navigation.map((item) => /* @__PURE__ */
|
|
3236
|
-
children: /* @__PURE__ */
|
|
3237
|
-
render: /* @__PURE__ */
|
|
3380
|
+
children: /* @__PURE__ */ jsx35(SidebarGroup2, {
|
|
3381
|
+
children: /* @__PURE__ */ jsx35(SidebarMenu2, {
|
|
3382
|
+
children: navigation.map((item) => /* @__PURE__ */ jsx35(SidebarMenuItem2, {
|
|
3383
|
+
children: /* @__PURE__ */ jsxs21(SidebarMenuButton2, {
|
|
3384
|
+
render: /* @__PURE__ */ jsx35(AnalyticsLink, {
|
|
3238
3385
|
component: "AppShell",
|
|
3239
3386
|
render: item.render,
|
|
3240
3387
|
...item.href === undefined ? {} : { href: item.href },
|
|
@@ -3244,7 +3391,7 @@ function AppShell2({
|
|
|
3244
3391
|
tooltip: item.label,
|
|
3245
3392
|
children: [
|
|
3246
3393
|
item.icon,
|
|
3247
|
-
/* @__PURE__ */
|
|
3394
|
+
/* @__PURE__ */ jsx35("span", {
|
|
3248
3395
|
children: item.label
|
|
3249
3396
|
})
|
|
3250
3397
|
]
|
|
@@ -3254,41 +3401,41 @@ function AppShell2({
|
|
|
3254
3401
|
})
|
|
3255
3402
|
})
|
|
3256
3403
|
}),
|
|
3257
|
-
sidebarFooter && /* @__PURE__ */
|
|
3404
|
+
sidebarFooter && /* @__PURE__ */ jsx35(SidebarFooter2, {
|
|
3258
3405
|
children: sidebarFooter
|
|
3259
3406
|
})
|
|
3260
3407
|
]
|
|
3261
3408
|
}),
|
|
3262
|
-
/* @__PURE__ */
|
|
3409
|
+
/* @__PURE__ */ jsxs21(SidebarInset2, {
|
|
3263
3410
|
"aria-label": label,
|
|
3264
3411
|
className: "min-h-0 min-w-0",
|
|
3265
3412
|
"data-scroll": "none",
|
|
3266
3413
|
children: [
|
|
3267
|
-
/* @__PURE__ */
|
|
3414
|
+
/* @__PURE__ */ jsxs21("header", {
|
|
3268
3415
|
"data-scroll": "none",
|
|
3269
3416
|
className: "flex shrink-0 items-center gap-control-gap border-b border-border p-panel",
|
|
3270
3417
|
children: [
|
|
3271
|
-
/* @__PURE__ */
|
|
3272
|
-
/* @__PURE__ */
|
|
3418
|
+
/* @__PURE__ */ jsx35(SidebarTrigger2, {}),
|
|
3419
|
+
/* @__PURE__ */ jsx35(Separator2, {
|
|
3273
3420
|
orientation: "vertical",
|
|
3274
3421
|
className: "h-control"
|
|
3275
3422
|
}),
|
|
3276
3423
|
header
|
|
3277
3424
|
]
|
|
3278
3425
|
}),
|
|
3279
|
-
content === "fill" ? /* @__PURE__ */
|
|
3426
|
+
content === "fill" ? /* @__PURE__ */ jsx35("div", {
|
|
3280
3427
|
"data-slot": "app-shell-content",
|
|
3281
3428
|
"data-scroll": "none",
|
|
3282
3429
|
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
3283
3430
|
children
|
|
3284
|
-
}) : /* @__PURE__ */
|
|
3431
|
+
}) : /* @__PURE__ */ jsx35(ScrollArea2, {
|
|
3285
3432
|
className: "min-h-0 flex-1",
|
|
3286
|
-
children: /* @__PURE__ */
|
|
3433
|
+
children: /* @__PURE__ */ jsx35("div", {
|
|
3287
3434
|
className: "flex min-w-0 flex-col gap-panel p-panel",
|
|
3288
3435
|
children
|
|
3289
3436
|
})
|
|
3290
3437
|
}),
|
|
3291
|
-
footer && /* @__PURE__ */
|
|
3438
|
+
footer && /* @__PURE__ */ jsx35("footer", {
|
|
3292
3439
|
className: "shrink-0 border-t border-border p-panel",
|
|
3293
3440
|
"data-scroll": "none",
|
|
3294
3441
|
children: footer
|
|
@@ -3638,7 +3785,7 @@ import {
|
|
|
3638
3785
|
DropletIcon,
|
|
3639
3786
|
SunIcon
|
|
3640
3787
|
} from "lucide-react";
|
|
3641
|
-
import { jsx as
|
|
3788
|
+
import { jsx as jsx36, jsxs as jsxs22, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3642
3789
|
var CONDITION_ICONS = {
|
|
3643
3790
|
clear: SunIcon,
|
|
3644
3791
|
"partly-cloudy": CloudSunIcon,
|
|
@@ -3690,43 +3837,43 @@ function WeatherSummary2({
|
|
|
3690
3837
|
defaultTagName: "div",
|
|
3691
3838
|
props: mergeProps14({
|
|
3692
3839
|
className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
|
|
3693
|
-
children: /* @__PURE__ */
|
|
3840
|
+
children: /* @__PURE__ */ jsxs22(Fragment6, {
|
|
3694
3841
|
children: [
|
|
3695
|
-
/* @__PURE__ */
|
|
3842
|
+
/* @__PURE__ */ jsx36(ConditionIcon, {
|
|
3696
3843
|
"aria-hidden": "true",
|
|
3697
3844
|
"data-slot": "weather-summary-icon",
|
|
3698
3845
|
className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
|
|
3699
3846
|
}),
|
|
3700
|
-
/* @__PURE__ */
|
|
3847
|
+
/* @__PURE__ */ jsxs22("div", {
|
|
3701
3848
|
className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
|
|
3702
3849
|
children: [
|
|
3703
|
-
/* @__PURE__ */
|
|
3850
|
+
/* @__PURE__ */ jsx36("div", {
|
|
3704
3851
|
className: "text-sm font-medium break-words",
|
|
3705
3852
|
children: label
|
|
3706
3853
|
}),
|
|
3707
|
-
/* @__PURE__ */
|
|
3854
|
+
/* @__PURE__ */ jsx36("div", {
|
|
3708
3855
|
className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
|
|
3709
3856
|
children: conditionLabel
|
|
3710
3857
|
}),
|
|
3711
|
-
/* @__PURE__ */
|
|
3858
|
+
/* @__PURE__ */ jsxs22("div", {
|
|
3712
3859
|
className: "flex flex-wrap items-baseline gap-x-2 text-sm tabular-nums",
|
|
3713
3860
|
children: [
|
|
3714
|
-
/* @__PURE__ */
|
|
3861
|
+
/* @__PURE__ */ jsxs22("span", {
|
|
3715
3862
|
children: [
|
|
3716
|
-
/* @__PURE__ */
|
|
3863
|
+
/* @__PURE__ */ jsx36("span", {
|
|
3717
3864
|
className: "sr-only",
|
|
3718
3865
|
children: "High "
|
|
3719
3866
|
}),
|
|
3720
|
-
/* @__PURE__ */
|
|
3867
|
+
/* @__PURE__ */ jsx36("span", {
|
|
3721
3868
|
className: "font-medium",
|
|
3722
3869
|
children: highText
|
|
3723
3870
|
})
|
|
3724
3871
|
]
|
|
3725
3872
|
}),
|
|
3726
|
-
/* @__PURE__ */
|
|
3873
|
+
/* @__PURE__ */ jsxs22("span", {
|
|
3727
3874
|
className: "text-muted-foreground",
|
|
3728
3875
|
children: [
|
|
3729
|
-
/* @__PURE__ */
|
|
3876
|
+
/* @__PURE__ */ jsx36("span", {
|
|
3730
3877
|
className: "sr-only",
|
|
3731
3878
|
children: "Low "
|
|
3732
3879
|
}),
|
|
@@ -3735,17 +3882,17 @@ function WeatherSummary2({
|
|
|
3735
3882
|
})
|
|
3736
3883
|
]
|
|
3737
3884
|
}),
|
|
3738
|
-
probabilityText !== undefined && /* @__PURE__ */
|
|
3885
|
+
probabilityText !== undefined && /* @__PURE__ */ jsxs22("div", {
|
|
3739
3886
|
className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
|
|
3740
3887
|
children: [
|
|
3741
|
-
/* @__PURE__ */
|
|
3888
|
+
/* @__PURE__ */ jsx36(DropletIcon, {
|
|
3742
3889
|
"aria-hidden": "true",
|
|
3743
3890
|
className: "size-3 shrink-0"
|
|
3744
3891
|
}),
|
|
3745
|
-
/* @__PURE__ */
|
|
3892
|
+
/* @__PURE__ */ jsxs22("span", {
|
|
3746
3893
|
children: [
|
|
3747
3894
|
probabilityText,
|
|
3748
|
-
/* @__PURE__ */
|
|
3895
|
+
/* @__PURE__ */ jsx36("span", {
|
|
3749
3896
|
className: "sr-only",
|
|
3750
3897
|
children: " chance of precipitation"
|
|
3751
3898
|
})
|
|
@@ -3763,7 +3910,7 @@ function WeatherSummary2({
|
|
|
3763
3910
|
});
|
|
3764
3911
|
}
|
|
3765
3912
|
// src/components/WeatherForecast.tsx
|
|
3766
|
-
import { jsx as
|
|
3913
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3767
3914
|
function WeatherForecast2({
|
|
3768
3915
|
days,
|
|
3769
3916
|
label,
|
|
@@ -3774,52 +3921,52 @@ function WeatherForecast2({
|
|
|
3774
3921
|
className,
|
|
3775
3922
|
...props
|
|
3776
3923
|
}) {
|
|
3777
|
-
return /* @__PURE__ */
|
|
3924
|
+
return /* @__PURE__ */ jsx37("ul", {
|
|
3778
3925
|
"aria-label": label,
|
|
3779
3926
|
"data-slot": "weather-forecast",
|
|
3780
3927
|
"data-density": density,
|
|
3781
3928
|
className: cn2("grid min-w-0 gap-panel-sm", variant === "strip" && "grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]", className),
|
|
3782
3929
|
...props,
|
|
3783
|
-
children: days.map(({ id, ...day }) => /* @__PURE__ */
|
|
3930
|
+
children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx37(WeatherSummary2, {
|
|
3784
3931
|
...day,
|
|
3785
3932
|
unit,
|
|
3786
3933
|
locale,
|
|
3787
3934
|
variant: variant === "strip" ? "compact" : "default",
|
|
3788
|
-
render: /* @__PURE__ */
|
|
3935
|
+
render: /* @__PURE__ */ jsx37("li", {})
|
|
3789
3936
|
}, id))
|
|
3790
3937
|
});
|
|
3791
3938
|
}
|
|
3792
3939
|
// src/components/PageHeader.tsx
|
|
3793
|
-
import { jsx as
|
|
3940
|
+
import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3794
3941
|
function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, density }) {
|
|
3795
|
-
return /* @__PURE__ */
|
|
3942
|
+
return /* @__PURE__ */ jsxs23("header", {
|
|
3796
3943
|
"data-density": density,
|
|
3797
3944
|
"data-slot": "page-header",
|
|
3798
3945
|
"data-scroll": "none",
|
|
3799
3946
|
className: "flex min-w-0 flex-col gap-field-gap",
|
|
3800
3947
|
children: [
|
|
3801
3948
|
breadcrumbs,
|
|
3802
|
-
/* @__PURE__ */
|
|
3949
|
+
/* @__PURE__ */ jsxs23("div", {
|
|
3803
3950
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-panel",
|
|
3804
3951
|
children: [
|
|
3805
|
-
/* @__PURE__ */
|
|
3952
|
+
/* @__PURE__ */ jsxs23("div", {
|
|
3806
3953
|
className: "min-w-0",
|
|
3807
3954
|
children: [
|
|
3808
|
-
eyebrow != null && /* @__PURE__ */
|
|
3955
|
+
eyebrow != null && /* @__PURE__ */ jsx38("div", {
|
|
3809
3956
|
className: "mb-2 text-xs font-medium tracking-widest text-muted-foreground",
|
|
3810
3957
|
children: eyebrow
|
|
3811
3958
|
}),
|
|
3812
|
-
/* @__PURE__ */
|
|
3959
|
+
/* @__PURE__ */ jsx38("h1", {
|
|
3813
3960
|
className: "text-xl font-semibold text-foreground",
|
|
3814
3961
|
children: title
|
|
3815
3962
|
}),
|
|
3816
|
-
description && /* @__PURE__ */
|
|
3963
|
+
description && /* @__PURE__ */ jsx38("div", {
|
|
3817
3964
|
className: "mt-1 text-sm text-muted-foreground",
|
|
3818
3965
|
children: description
|
|
3819
3966
|
})
|
|
3820
3967
|
]
|
|
3821
3968
|
}),
|
|
3822
|
-
actions && /* @__PURE__ */
|
|
3969
|
+
actions && /* @__PURE__ */ jsx38("div", {
|
|
3823
3970
|
className: "flex min-w-0 max-w-full flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
3824
3971
|
children: actions
|
|
3825
3972
|
})
|
|
@@ -3829,46 +3976,46 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
3829
3976
|
});
|
|
3830
3977
|
}
|
|
3831
3978
|
// src/components/PageIntro.tsx
|
|
3832
|
-
import { jsx as
|
|
3979
|
+
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3833
3980
|
function PageIntro2({ title, description, eyebrow, icon, actions, highlights, density }) {
|
|
3834
|
-
return /* @__PURE__ */
|
|
3981
|
+
return /* @__PURE__ */ jsx39("header", {
|
|
3835
3982
|
"data-density": density,
|
|
3836
3983
|
"data-slot": "page-intro",
|
|
3837
3984
|
"data-scroll": "none",
|
|
3838
3985
|
className: "@container/page-intro min-w-0",
|
|
3839
|
-
children: /* @__PURE__ */
|
|
3986
|
+
children: /* @__PURE__ */ jsxs24(Card2, {
|
|
3840
3987
|
variant: "hero",
|
|
3841
3988
|
className: "gap-0 py-0",
|
|
3842
3989
|
children: [
|
|
3843
|
-
/* @__PURE__ */
|
|
3990
|
+
/* @__PURE__ */ jsx39("div", {
|
|
3844
3991
|
"aria-hidden": "true",
|
|
3845
3992
|
"data-slot": "page-intro-wash",
|
|
3846
3993
|
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%)]"
|
|
3847
3994
|
}),
|
|
3848
|
-
/* @__PURE__ */
|
|
3995
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
3849
3996
|
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",
|
|
3850
3997
|
children: [
|
|
3851
|
-
/* @__PURE__ */
|
|
3998
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
3852
3999
|
className: "flex min-w-0 gap-panel",
|
|
3853
4000
|
children: [
|
|
3854
|
-
icon != null && /* @__PURE__ */
|
|
4001
|
+
icon != null && /* @__PURE__ */ jsx39("div", {
|
|
3855
4002
|
"aria-hidden": "true",
|
|
3856
4003
|
"data-slot": "page-intro-icon",
|
|
3857
4004
|
className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
|
|
3858
4005
|
children: icon
|
|
3859
4006
|
}),
|
|
3860
|
-
/* @__PURE__ */
|
|
4007
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
3861
4008
|
className: "min-w-0",
|
|
3862
4009
|
children: [
|
|
3863
|
-
eyebrow != null && /* @__PURE__ */
|
|
4010
|
+
eyebrow != null && /* @__PURE__ */ jsx39("div", {
|
|
3864
4011
|
className: "mb-1 text-xs font-medium tracking-widest text-muted-foreground",
|
|
3865
4012
|
children: eyebrow
|
|
3866
4013
|
}),
|
|
3867
|
-
/* @__PURE__ */
|
|
4014
|
+
/* @__PURE__ */ jsx39("h1", {
|
|
3868
4015
|
className: "text-2xl font-semibold text-foreground",
|
|
3869
4016
|
children: title
|
|
3870
4017
|
}),
|
|
3871
|
-
/* @__PURE__ */
|
|
4018
|
+
/* @__PURE__ */ jsx39("div", {
|
|
3872
4019
|
className: "mt-2 max-w-prose text-base text-pretty text-muted-foreground",
|
|
3873
4020
|
children: description
|
|
3874
4021
|
})
|
|
@@ -3876,33 +4023,33 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
3876
4023
|
})
|
|
3877
4024
|
]
|
|
3878
4025
|
}),
|
|
3879
|
-
actions != null && /* @__PURE__ */
|
|
4026
|
+
actions != null && /* @__PURE__ */ jsx39("div", {
|
|
3880
4027
|
className: "flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
3881
4028
|
children: actions
|
|
3882
4029
|
})
|
|
3883
4030
|
]
|
|
3884
4031
|
}),
|
|
3885
|
-
highlights != null && highlights.length > 0 && /* @__PURE__ */
|
|
4032
|
+
highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx39("ul", {
|
|
3886
4033
|
"aria-label": `What you can do in ${title}`,
|
|
3887
4034
|
"data-slot": "page-intro-highlights",
|
|
3888
4035
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
|
|
3889
|
-
children: highlights.map((highlight) => /* @__PURE__ */
|
|
4036
|
+
children: highlights.map((highlight) => /* @__PURE__ */ jsxs24("li", {
|
|
3890
4037
|
"data-slot": "page-intro-highlight",
|
|
3891
4038
|
className: "flex min-w-0 gap-2",
|
|
3892
4039
|
children: [
|
|
3893
|
-
highlight.icon != null && /* @__PURE__ */
|
|
4040
|
+
highlight.icon != null && /* @__PURE__ */ jsx39("span", {
|
|
3894
4041
|
"aria-hidden": "true",
|
|
3895
4042
|
className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
|
|
3896
4043
|
children: highlight.icon
|
|
3897
4044
|
}),
|
|
3898
|
-
/* @__PURE__ */
|
|
4045
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
3899
4046
|
className: "min-w-0",
|
|
3900
4047
|
children: [
|
|
3901
|
-
/* @__PURE__ */
|
|
4048
|
+
/* @__PURE__ */ jsx39("div", {
|
|
3902
4049
|
className: "text-sm font-medium text-foreground",
|
|
3903
4050
|
children: highlight.title
|
|
3904
4051
|
}),
|
|
3905
|
-
/* @__PURE__ */
|
|
4052
|
+
/* @__PURE__ */ jsx39("div", {
|
|
3906
4053
|
className: "mt-0.5 text-sm text-muted-foreground",
|
|
3907
4054
|
children: highlight.description
|
|
3908
4055
|
})
|
|
@@ -3916,7 +4063,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
3916
4063
|
});
|
|
3917
4064
|
}
|
|
3918
4065
|
// src/components/WorkspaceSwitcher.tsx
|
|
3919
|
-
import { jsx as
|
|
4066
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3920
4067
|
function WorkspaceSwitcher2({
|
|
3921
4068
|
workspaces,
|
|
3922
4069
|
value,
|
|
@@ -3926,7 +4073,7 @@ function WorkspaceSwitcher2({
|
|
|
3926
4073
|
label = "Workspace",
|
|
3927
4074
|
density
|
|
3928
4075
|
}) {
|
|
3929
|
-
return /* @__PURE__ */
|
|
4076
|
+
return /* @__PURE__ */ jsxs25(Select2, {
|
|
3930
4077
|
items: workspaces,
|
|
3931
4078
|
value,
|
|
3932
4079
|
defaultValue: defaultValue ?? workspaces[0]?.value,
|
|
@@ -3936,15 +4083,15 @@ function WorkspaceSwitcher2({
|
|
|
3936
4083
|
},
|
|
3937
4084
|
disabled,
|
|
3938
4085
|
children: [
|
|
3939
|
-
/* @__PURE__ */
|
|
4086
|
+
/* @__PURE__ */ jsx40(SelectTrigger2, {
|
|
3940
4087
|
"aria-label": label,
|
|
3941
4088
|
density,
|
|
3942
|
-
children: /* @__PURE__ */
|
|
4089
|
+
children: /* @__PURE__ */ jsx40(SelectValue2, {})
|
|
3943
4090
|
}),
|
|
3944
|
-
/* @__PURE__ */
|
|
4091
|
+
/* @__PURE__ */ jsx40(SelectContent2, {
|
|
3945
4092
|
density,
|
|
3946
|
-
children: /* @__PURE__ */
|
|
3947
|
-
children: workspaces.map((workspace) => /* @__PURE__ */
|
|
4093
|
+
children: /* @__PURE__ */ jsx40(SelectGroup2, {
|
|
4094
|
+
children: workspaces.map((workspace) => /* @__PURE__ */ jsx40(SelectItem2, {
|
|
3948
4095
|
value: workspace.value,
|
|
3949
4096
|
children: workspace.label
|
|
3950
4097
|
}, workspace.value))
|
|
@@ -3954,52 +4101,52 @@ function WorkspaceSwitcher2({
|
|
|
3954
4101
|
});
|
|
3955
4102
|
}
|
|
3956
4103
|
// src/components/AccountMenu.tsx
|
|
3957
|
-
import { jsx as
|
|
4104
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3958
4105
|
function AccountMenu2({ name, email, image, onAction, density }) {
|
|
3959
|
-
return /* @__PURE__ */
|
|
4106
|
+
return /* @__PURE__ */ jsxs26(DropdownMenu2, {
|
|
3960
4107
|
children: [
|
|
3961
|
-
/* @__PURE__ */
|
|
3962
|
-
render: /* @__PURE__ */
|
|
4108
|
+
/* @__PURE__ */ jsxs26(DropdownMenuTrigger2, {
|
|
4109
|
+
render: /* @__PURE__ */ jsx41(Button2, {
|
|
3963
4110
|
variant: "ghost",
|
|
3964
4111
|
density
|
|
3965
4112
|
}),
|
|
3966
4113
|
"aria-label": `Account menu for ${name}`,
|
|
3967
4114
|
children: [
|
|
3968
|
-
/* @__PURE__ */
|
|
4115
|
+
/* @__PURE__ */ jsxs26(Avatar2, {
|
|
3969
4116
|
className: "size-control",
|
|
3970
4117
|
children: [
|
|
3971
|
-
/* @__PURE__ */
|
|
4118
|
+
/* @__PURE__ */ jsx41(AvatarImage2, {
|
|
3972
4119
|
src: image,
|
|
3973
4120
|
alt: ""
|
|
3974
4121
|
}),
|
|
3975
|
-
/* @__PURE__ */
|
|
4122
|
+
/* @__PURE__ */ jsx41(AvatarFallback2, {
|
|
3976
4123
|
children: name.slice(0, 2).toUpperCase()
|
|
3977
4124
|
})
|
|
3978
4125
|
]
|
|
3979
4126
|
}),
|
|
3980
|
-
/* @__PURE__ */
|
|
4127
|
+
/* @__PURE__ */ jsx41("span", {
|
|
3981
4128
|
children: name
|
|
3982
4129
|
})
|
|
3983
4130
|
]
|
|
3984
4131
|
}),
|
|
3985
|
-
/* @__PURE__ */
|
|
4132
|
+
/* @__PURE__ */ jsx41(MenuPopup, {
|
|
3986
4133
|
density,
|
|
3987
4134
|
align: "end",
|
|
3988
|
-
children: /* @__PURE__ */
|
|
4135
|
+
children: /* @__PURE__ */ jsxs26(MenuGroup2, {
|
|
3989
4136
|
children: [
|
|
3990
|
-
/* @__PURE__ */
|
|
4137
|
+
/* @__PURE__ */ jsx41(MenuLabel2, {
|
|
3991
4138
|
children: email ?? name
|
|
3992
4139
|
}),
|
|
3993
|
-
/* @__PURE__ */
|
|
4140
|
+
/* @__PURE__ */ jsx41(MenuItem2, {
|
|
3994
4141
|
onClick: () => onAction("profile"),
|
|
3995
4142
|
children: "Profile"
|
|
3996
4143
|
}),
|
|
3997
|
-
/* @__PURE__ */
|
|
4144
|
+
/* @__PURE__ */ jsx41(MenuItem2, {
|
|
3998
4145
|
onClick: () => onAction("settings"),
|
|
3999
4146
|
children: "Settings"
|
|
4000
4147
|
}),
|
|
4001
|
-
/* @__PURE__ */
|
|
4002
|
-
/* @__PURE__ */
|
|
4148
|
+
/* @__PURE__ */ jsx41(MenuSeparator2, {}),
|
|
4149
|
+
/* @__PURE__ */ jsx41(MenuItem2, {
|
|
4003
4150
|
onClick: () => onAction("sign-out"),
|
|
4004
4151
|
children: "Sign out"
|
|
4005
4152
|
})
|
|
@@ -4010,7 +4157,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4010
4157
|
});
|
|
4011
4158
|
}
|
|
4012
4159
|
// src/components/StatCard.tsx
|
|
4013
|
-
import { jsx as
|
|
4160
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4014
4161
|
function StatCard2({
|
|
4015
4162
|
label,
|
|
4016
4163
|
value,
|
|
@@ -4021,48 +4168,48 @@ function StatCard2({
|
|
|
4021
4168
|
loading = false,
|
|
4022
4169
|
density
|
|
4023
4170
|
}) {
|
|
4024
|
-
return /* @__PURE__ */
|
|
4171
|
+
return /* @__PURE__ */ jsxs27(Card2, {
|
|
4025
4172
|
density,
|
|
4026
4173
|
"aria-label": label,
|
|
4027
4174
|
"aria-busy": loading,
|
|
4028
4175
|
children: [
|
|
4029
|
-
/* @__PURE__ */
|
|
4176
|
+
/* @__PURE__ */ jsxs27(CardHeader2, {
|
|
4030
4177
|
children: [
|
|
4031
|
-
/* @__PURE__ */
|
|
4178
|
+
/* @__PURE__ */ jsx42(CardTitle2, {
|
|
4032
4179
|
children: label
|
|
4033
4180
|
}),
|
|
4034
|
-
description && /* @__PURE__ */
|
|
4181
|
+
description && /* @__PURE__ */ jsx42(CardDescription2, {
|
|
4035
4182
|
children: description
|
|
4036
4183
|
})
|
|
4037
4184
|
]
|
|
4038
4185
|
}),
|
|
4039
|
-
/* @__PURE__ */
|
|
4040
|
-
children: /* @__PURE__ */
|
|
4186
|
+
/* @__PURE__ */ jsx42(CardContent2, {
|
|
4187
|
+
children: /* @__PURE__ */ jsxs27("div", {
|
|
4041
4188
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4042
4189
|
children: [
|
|
4043
|
-
loading ? /* @__PURE__ */
|
|
4190
|
+
loading ? /* @__PURE__ */ jsx42(Skeleton2, {
|
|
4044
4191
|
className: "h-8 w-24",
|
|
4045
4192
|
"aria-label": `Loading ${label}`
|
|
4046
|
-
}) : /* @__PURE__ */
|
|
4193
|
+
}) : /* @__PURE__ */ jsx42("div", {
|
|
4047
4194
|
className: "text-2xl font-semibold tabular-nums",
|
|
4048
4195
|
children: value
|
|
4049
4196
|
}),
|
|
4050
|
-
change && /* @__PURE__ */
|
|
4197
|
+
change && /* @__PURE__ */ jsx42(Badge2, {
|
|
4051
4198
|
variant: changeIntent === "positive" ? "success" : changeIntent === "negative" ? "destructive" : "secondary",
|
|
4052
4199
|
children: change
|
|
4053
4200
|
})
|
|
4054
4201
|
]
|
|
4055
4202
|
})
|
|
4056
4203
|
}),
|
|
4057
|
-
children && /* @__PURE__ */
|
|
4204
|
+
children && /* @__PURE__ */ jsx42(CardFooter2, {
|
|
4058
4205
|
children
|
|
4059
4206
|
})
|
|
4060
4207
|
]
|
|
4061
4208
|
});
|
|
4062
4209
|
}
|
|
4063
4210
|
// src/components/AuthForm.tsx
|
|
4064
|
-
import { useId as
|
|
4065
|
-
import { jsx as
|
|
4211
|
+
import { useId as useId5, useState as useState7 } from "react";
|
|
4212
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4066
4213
|
function AuthForm2({
|
|
4067
4214
|
mode = "sign-in",
|
|
4068
4215
|
onSubmit,
|
|
@@ -4071,9 +4218,9 @@ function AuthForm2({
|
|
|
4071
4218
|
disabled = false,
|
|
4072
4219
|
density
|
|
4073
4220
|
}) {
|
|
4074
|
-
const id =
|
|
4075
|
-
const [pending, setPending] =
|
|
4076
|
-
const [error, setError] =
|
|
4221
|
+
const id = useId5();
|
|
4222
|
+
const [pending, setPending] = useState7(false);
|
|
4223
|
+
const [error, setError] = useState7("");
|
|
4077
4224
|
const title = mode === "sign-up" ? "Create an account" : mode === "reset-password" ? "Reset your password" : "Sign in";
|
|
4078
4225
|
async function submit(event) {
|
|
4079
4226
|
event.preventDefault();
|
|
@@ -4092,33 +4239,33 @@ function AuthForm2({
|
|
|
4092
4239
|
setPending(false);
|
|
4093
4240
|
}
|
|
4094
4241
|
}
|
|
4095
|
-
return /* @__PURE__ */
|
|
4242
|
+
return /* @__PURE__ */ jsxs28(Card2, {
|
|
4096
4243
|
density,
|
|
4097
4244
|
children: [
|
|
4098
|
-
/* @__PURE__ */
|
|
4245
|
+
/* @__PURE__ */ jsxs28(CardHeader2, {
|
|
4099
4246
|
children: [
|
|
4100
|
-
/* @__PURE__ */
|
|
4247
|
+
/* @__PURE__ */ jsx43(CardTitle2, {
|
|
4101
4248
|
children: title
|
|
4102
4249
|
}),
|
|
4103
|
-
/* @__PURE__ */
|
|
4250
|
+
/* @__PURE__ */ jsx43(CardDescription2, {
|
|
4104
4251
|
children: mode === "reset-password" ? "Enter your email to request a password reset." : "Enter your details to continue."
|
|
4105
4252
|
})
|
|
4106
4253
|
]
|
|
4107
4254
|
}),
|
|
4108
|
-
/* @__PURE__ */
|
|
4109
|
-
children: /* @__PURE__ */
|
|
4255
|
+
/* @__PURE__ */ jsx43(CardContent2, {
|
|
4256
|
+
children: /* @__PURE__ */ jsx43("form", {
|
|
4110
4257
|
onSubmit: submit,
|
|
4111
4258
|
"aria-label": title,
|
|
4112
4259
|
"aria-busy": pending,
|
|
4113
|
-
children: /* @__PURE__ */
|
|
4260
|
+
children: /* @__PURE__ */ jsxs28(FieldGroup2, {
|
|
4114
4261
|
children: [
|
|
4115
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4262
|
+
mode === "sign-up" && /* @__PURE__ */ jsxs28(Field2, {
|
|
4116
4263
|
children: [
|
|
4117
|
-
/* @__PURE__ */
|
|
4264
|
+
/* @__PURE__ */ jsx43(FieldLabel2, {
|
|
4118
4265
|
htmlFor: id + "-name",
|
|
4119
4266
|
children: "Name"
|
|
4120
4267
|
}),
|
|
4121
|
-
/* @__PURE__ */
|
|
4268
|
+
/* @__PURE__ */ jsx43(Input2, {
|
|
4122
4269
|
id: id + "-name",
|
|
4123
4270
|
name: "name",
|
|
4124
4271
|
autoComplete: "name",
|
|
@@ -4127,13 +4274,13 @@ function AuthForm2({
|
|
|
4127
4274
|
})
|
|
4128
4275
|
]
|
|
4129
4276
|
}),
|
|
4130
|
-
/* @__PURE__ */
|
|
4277
|
+
/* @__PURE__ */ jsxs28(Field2, {
|
|
4131
4278
|
children: [
|
|
4132
|
-
/* @__PURE__ */
|
|
4279
|
+
/* @__PURE__ */ jsx43(FieldLabel2, {
|
|
4133
4280
|
htmlFor: id + "-email",
|
|
4134
4281
|
children: "Email"
|
|
4135
4282
|
}),
|
|
4136
|
-
/* @__PURE__ */
|
|
4283
|
+
/* @__PURE__ */ jsx43(Input2, {
|
|
4137
4284
|
id: id + "-email",
|
|
4138
4285
|
name: "email",
|
|
4139
4286
|
type: "email",
|
|
@@ -4143,13 +4290,13 @@ function AuthForm2({
|
|
|
4143
4290
|
})
|
|
4144
4291
|
]
|
|
4145
4292
|
}),
|
|
4146
|
-
mode !== "reset-password" && /* @__PURE__ */
|
|
4293
|
+
mode !== "reset-password" && /* @__PURE__ */ jsxs28(Field2, {
|
|
4147
4294
|
children: [
|
|
4148
|
-
/* @__PURE__ */
|
|
4295
|
+
/* @__PURE__ */ jsx43(FieldLabel2, {
|
|
4149
4296
|
htmlFor: id + "-password",
|
|
4150
4297
|
children: "Password"
|
|
4151
4298
|
}),
|
|
4152
|
-
/* @__PURE__ */
|
|
4299
|
+
/* @__PURE__ */ jsx43(Input2, {
|
|
4153
4300
|
id: id + "-password",
|
|
4154
4301
|
name: "password",
|
|
4155
4302
|
type: "password",
|
|
@@ -4158,27 +4305,27 @@ function AuthForm2({
|
|
|
4158
4305
|
required: true,
|
|
4159
4306
|
disabled: disabled || pending
|
|
4160
4307
|
}),
|
|
4161
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4308
|
+
mode === "sign-up" && /* @__PURE__ */ jsx43(FieldDescription2, {
|
|
4162
4309
|
children: "Use at least eight characters."
|
|
4163
4310
|
})
|
|
4164
4311
|
]
|
|
4165
4312
|
}),
|
|
4166
|
-
error && /* @__PURE__ */
|
|
4313
|
+
error && /* @__PURE__ */ jsxs28(Alert2, {
|
|
4167
4314
|
variant: "destructive",
|
|
4168
4315
|
children: [
|
|
4169
|
-
/* @__PURE__ */
|
|
4316
|
+
/* @__PURE__ */ jsx43(AlertTitle2, {
|
|
4170
4317
|
children: "Request failed"
|
|
4171
4318
|
}),
|
|
4172
|
-
/* @__PURE__ */
|
|
4319
|
+
/* @__PURE__ */ jsx43(AlertDescription2, {
|
|
4173
4320
|
children: error
|
|
4174
4321
|
})
|
|
4175
4322
|
]
|
|
4176
4323
|
}),
|
|
4177
|
-
/* @__PURE__ */
|
|
4324
|
+
/* @__PURE__ */ jsxs28(Button2, {
|
|
4178
4325
|
type: "submit",
|
|
4179
4326
|
disabled: disabled || pending,
|
|
4180
4327
|
children: [
|
|
4181
|
-
pending && /* @__PURE__ */
|
|
4328
|
+
pending && /* @__PURE__ */ jsx43(Spinner2, {
|
|
4182
4329
|
"data-icon": "inline-start"
|
|
4183
4330
|
}),
|
|
4184
4331
|
mode === "reset-password" ? "Send reset link" : title
|
|
@@ -4189,14 +4336,14 @@ function AuthForm2({
|
|
|
4189
4336
|
})
|
|
4190
4337
|
})
|
|
4191
4338
|
}),
|
|
4192
|
-
footer && /* @__PURE__ */
|
|
4339
|
+
footer && /* @__PURE__ */ jsx43(CardFooter2, {
|
|
4193
4340
|
children: footer
|
|
4194
4341
|
})
|
|
4195
4342
|
]
|
|
4196
4343
|
});
|
|
4197
4344
|
}
|
|
4198
4345
|
// src/components/SettingsSection.tsx
|
|
4199
|
-
import { jsx as
|
|
4346
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4200
4347
|
function SettingsSection2({
|
|
4201
4348
|
title,
|
|
4202
4349
|
description,
|
|
@@ -4209,48 +4356,48 @@ function SettingsSection2({
|
|
|
4209
4356
|
destructive = false,
|
|
4210
4357
|
density
|
|
4211
4358
|
}) {
|
|
4212
|
-
return /* @__PURE__ */
|
|
4359
|
+
return /* @__PURE__ */ jsx44("form", {
|
|
4213
4360
|
"aria-label": title,
|
|
4214
4361
|
onSubmit,
|
|
4215
4362
|
"aria-busy": pending,
|
|
4216
|
-
children: /* @__PURE__ */
|
|
4363
|
+
children: /* @__PURE__ */ jsxs29(Card2, {
|
|
4217
4364
|
density,
|
|
4218
4365
|
children: [
|
|
4219
|
-
/* @__PURE__ */
|
|
4366
|
+
/* @__PURE__ */ jsxs29(CardHeader2, {
|
|
4220
4367
|
children: [
|
|
4221
|
-
/* @__PURE__ */
|
|
4368
|
+
/* @__PURE__ */ jsx44(CardTitle2, {
|
|
4222
4369
|
children: title
|
|
4223
4370
|
}),
|
|
4224
|
-
description && /* @__PURE__ */
|
|
4371
|
+
description && /* @__PURE__ */ jsx44(CardDescription2, {
|
|
4225
4372
|
children: description
|
|
4226
4373
|
})
|
|
4227
4374
|
]
|
|
4228
4375
|
}),
|
|
4229
|
-
/* @__PURE__ */
|
|
4230
|
-
children: /* @__PURE__ */
|
|
4376
|
+
/* @__PURE__ */ jsx44(CardContent2, {
|
|
4377
|
+
children: /* @__PURE__ */ jsxs29("fieldset", {
|
|
4231
4378
|
disabled: disabled || pending,
|
|
4232
4379
|
className: "min-w-0 border-0 p-0",
|
|
4233
4380
|
children: [
|
|
4234
|
-
/* @__PURE__ */
|
|
4381
|
+
/* @__PURE__ */ jsx44("legend", {
|
|
4235
4382
|
className: "sr-only",
|
|
4236
4383
|
children: title
|
|
4237
4384
|
}),
|
|
4238
|
-
/* @__PURE__ */
|
|
4385
|
+
/* @__PURE__ */ jsx44(FieldGroup2, {
|
|
4239
4386
|
children
|
|
4240
4387
|
})
|
|
4241
4388
|
]
|
|
4242
4389
|
})
|
|
4243
4390
|
}),
|
|
4244
|
-
/* @__PURE__ */
|
|
4391
|
+
/* @__PURE__ */ jsxs29(CardFooter2, {
|
|
4245
4392
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4246
4393
|
children: [
|
|
4247
4394
|
footer,
|
|
4248
|
-
/* @__PURE__ */
|
|
4395
|
+
/* @__PURE__ */ jsxs29(Button2, {
|
|
4249
4396
|
type: "submit",
|
|
4250
4397
|
variant: destructive ? "destructive" : "default",
|
|
4251
4398
|
disabled: disabled || pending,
|
|
4252
4399
|
children: [
|
|
4253
|
-
pending && /* @__PURE__ */
|
|
4400
|
+
pending && /* @__PURE__ */ jsx44(Spinner2, {
|
|
4254
4401
|
"data-icon": "inline-start"
|
|
4255
4402
|
}),
|
|
4256
4403
|
saveLabel
|
|
@@ -4263,7 +4410,7 @@ function SettingsSection2({
|
|
|
4263
4410
|
});
|
|
4264
4411
|
}
|
|
4265
4412
|
// src/components/TagInput.tsx
|
|
4266
|
-
import { jsx as
|
|
4413
|
+
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4267
4414
|
function TagInput2({
|
|
4268
4415
|
label,
|
|
4269
4416
|
options,
|
|
@@ -4276,7 +4423,7 @@ function TagInput2({
|
|
|
4276
4423
|
density
|
|
4277
4424
|
}) {
|
|
4278
4425
|
const anchor = useComboboxAnchor2();
|
|
4279
|
-
return /* @__PURE__ */
|
|
4426
|
+
return /* @__PURE__ */ jsxs30(Combobox2, {
|
|
4280
4427
|
items: options,
|
|
4281
4428
|
multiple: true,
|
|
4282
4429
|
value,
|
|
@@ -4285,33 +4432,33 @@ function TagInput2({
|
|
|
4285
4432
|
disabled,
|
|
4286
4433
|
name,
|
|
4287
4434
|
children: [
|
|
4288
|
-
/* @__PURE__ */
|
|
4435
|
+
/* @__PURE__ */ jsxs30(ComboboxChips2, {
|
|
4289
4436
|
ref: anchor,
|
|
4290
4437
|
density,
|
|
4291
4438
|
children: [
|
|
4292
|
-
/* @__PURE__ */
|
|
4293
|
-
children: (values) => values.map((item) => /* @__PURE__ */
|
|
4439
|
+
/* @__PURE__ */ jsx45(ComboboxValue2, {
|
|
4440
|
+
children: (values) => values.map((item) => /* @__PURE__ */ jsx45(ComboboxChip2, {
|
|
4294
4441
|
removeLabel: `Remove ${item}`,
|
|
4295
4442
|
children: item
|
|
4296
4443
|
}, item))
|
|
4297
4444
|
}),
|
|
4298
|
-
/* @__PURE__ */
|
|
4445
|
+
/* @__PURE__ */ jsx45(ComboboxChipsInput2, {
|
|
4299
4446
|
"aria-label": label,
|
|
4300
4447
|
placeholder
|
|
4301
4448
|
})
|
|
4302
4449
|
]
|
|
4303
4450
|
}),
|
|
4304
|
-
/* @__PURE__ */
|
|
4451
|
+
/* @__PURE__ */ jsxs30(ComboboxContent2, {
|
|
4305
4452
|
anchor,
|
|
4306
4453
|
density,
|
|
4307
4454
|
children: [
|
|
4308
|
-
/* @__PURE__ */
|
|
4455
|
+
/* @__PURE__ */ jsx45(ComboboxEmpty2, {
|
|
4309
4456
|
children: "No matching tags."
|
|
4310
4457
|
}),
|
|
4311
|
-
/* @__PURE__ */
|
|
4312
|
-
children: /* @__PURE__ */
|
|
4313
|
-
children: /* @__PURE__ */
|
|
4314
|
-
children: (item) => /* @__PURE__ */
|
|
4458
|
+
/* @__PURE__ */ jsx45(ComboboxList2, {
|
|
4459
|
+
children: /* @__PURE__ */ jsx45(ComboboxGroup2, {
|
|
4460
|
+
children: /* @__PURE__ */ jsx45(ComboboxCollection2, {
|
|
4461
|
+
children: (item) => /* @__PURE__ */ jsx45(ComboboxItem2, {
|
|
4315
4462
|
value: item,
|
|
4316
4463
|
children: item
|
|
4317
4464
|
}, item)
|
|
@@ -4324,7 +4471,7 @@ function TagInput2({
|
|
|
4324
4471
|
});
|
|
4325
4472
|
}
|
|
4326
4473
|
// src/components/FilterBar.tsx
|
|
4327
|
-
import { jsx as
|
|
4474
|
+
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4328
4475
|
function FilterBar2({
|
|
4329
4476
|
label,
|
|
4330
4477
|
search,
|
|
@@ -4335,26 +4482,26 @@ function FilterBar2({
|
|
|
4335
4482
|
disabled,
|
|
4336
4483
|
density
|
|
4337
4484
|
}) {
|
|
4338
|
-
return /* @__PURE__ */
|
|
4485
|
+
return /* @__PURE__ */ jsxs31("fieldset", {
|
|
4339
4486
|
"aria-label": label,
|
|
4340
4487
|
disabled,
|
|
4341
4488
|
"data-density": density,
|
|
4342
4489
|
className: "flex min-w-0 flex-wrap items-center gap-2",
|
|
4343
4490
|
children: [
|
|
4344
|
-
/* @__PURE__ */
|
|
4491
|
+
/* @__PURE__ */ jsx46(Input2, {
|
|
4345
4492
|
"aria-label": `Search ${label}`,
|
|
4346
4493
|
type: "search",
|
|
4347
4494
|
value: search,
|
|
4348
4495
|
onChange: (event) => onSearchChange(event.target.value),
|
|
4349
4496
|
className: "min-w-40 flex-1"
|
|
4350
4497
|
}),
|
|
4351
|
-
filters.map((filter) => /* @__PURE__ */
|
|
4498
|
+
filters.map((filter) => /* @__PURE__ */ jsx46(OptionSelect2, {
|
|
4352
4499
|
"aria-label": filter.label,
|
|
4353
4500
|
value: value[filter.id] ?? "",
|
|
4354
4501
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4355
4502
|
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4356
4503
|
}, filter.id)),
|
|
4357
|
-
/* @__PURE__ */
|
|
4504
|
+
/* @__PURE__ */ jsx46(Button2, {
|
|
4358
4505
|
type: "button",
|
|
4359
4506
|
variant: "ghost",
|
|
4360
4507
|
disabled: !search && !Object.values(value).some(Boolean),
|
|
@@ -4368,7 +4515,7 @@ function FilterBar2({
|
|
|
4368
4515
|
});
|
|
4369
4516
|
}
|
|
4370
4517
|
// src/components/BarList.tsx
|
|
4371
|
-
import { jsx as
|
|
4518
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4372
4519
|
function BarList2({
|
|
4373
4520
|
label,
|
|
4374
4521
|
items,
|
|
@@ -4377,14 +4524,14 @@ function BarList2({
|
|
|
4377
4524
|
density
|
|
4378
4525
|
}) {
|
|
4379
4526
|
const max = Math.max(1, ...items.map((item) => item.value));
|
|
4380
|
-
return /* @__PURE__ */
|
|
4527
|
+
return /* @__PURE__ */ jsxs32("section", {
|
|
4381
4528
|
"aria-label": label,
|
|
4382
4529
|
"data-density": density,
|
|
4383
4530
|
children: [
|
|
4384
|
-
/* @__PURE__ */
|
|
4531
|
+
/* @__PURE__ */ jsx47("ul", {
|
|
4385
4532
|
className: "grid gap-3",
|
|
4386
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4387
|
-
children: /* @__PURE__ */
|
|
4533
|
+
children: items.map((item) => /* @__PURE__ */ jsx47("li", {
|
|
4534
|
+
children: /* @__PURE__ */ jsxs32(Meter2, {
|
|
4388
4535
|
min: 0,
|
|
4389
4536
|
max,
|
|
4390
4537
|
value: item.value,
|
|
@@ -4392,11 +4539,11 @@ function BarList2({
|
|
|
4392
4539
|
format: { maximumFractionDigits: 2 },
|
|
4393
4540
|
className: "gap-y-1",
|
|
4394
4541
|
children: [
|
|
4395
|
-
/* @__PURE__ */
|
|
4542
|
+
/* @__PURE__ */ jsxs32("div", {
|
|
4396
4543
|
className: "flex w-full items-center justify-between gap-3 text-sm",
|
|
4397
4544
|
children: [
|
|
4398
|
-
/* @__PURE__ */
|
|
4399
|
-
children: onItemSelect ? /* @__PURE__ */
|
|
4545
|
+
/* @__PURE__ */ jsx47(MeterLabel2, {
|
|
4546
|
+
children: onItemSelect ? /* @__PURE__ */ jsx47(Button2, {
|
|
4400
4547
|
type: "button",
|
|
4401
4548
|
variant: "link",
|
|
4402
4549
|
className: "h-auto p-0",
|
|
@@ -4404,19 +4551,19 @@ function BarList2({
|
|
|
4404
4551
|
children: item.label
|
|
4405
4552
|
}) : item.label
|
|
4406
4553
|
}),
|
|
4407
|
-
/* @__PURE__ */
|
|
4554
|
+
/* @__PURE__ */ jsx47(MeterValue2, {
|
|
4408
4555
|
children: () => valueFormatter(item.value)
|
|
4409
4556
|
})
|
|
4410
4557
|
]
|
|
4411
4558
|
}),
|
|
4412
|
-
/* @__PURE__ */
|
|
4413
|
-
children: /* @__PURE__ */
|
|
4559
|
+
/* @__PURE__ */ jsx47(MeterTrack2, {
|
|
4560
|
+
children: /* @__PURE__ */ jsx47(MeterIndicator2, {})
|
|
4414
4561
|
})
|
|
4415
4562
|
]
|
|
4416
4563
|
})
|
|
4417
4564
|
}, item.id))
|
|
4418
4565
|
}),
|
|
4419
|
-
!items.length && /* @__PURE__ */
|
|
4566
|
+
!items.length && /* @__PURE__ */ jsx47("p", {
|
|
4420
4567
|
role: "status",
|
|
4421
4568
|
className: "text-sm text-muted-foreground",
|
|
4422
4569
|
children: "No data available."
|
|
@@ -4425,23 +4572,23 @@ function BarList2({
|
|
|
4425
4572
|
});
|
|
4426
4573
|
}
|
|
4427
4574
|
// src/components/StatusTracker.tsx
|
|
4428
|
-
import { jsx as
|
|
4575
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4429
4576
|
var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
|
|
4430
4577
|
function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
4431
|
-
return /* @__PURE__ */
|
|
4432
|
-
children: /* @__PURE__ */
|
|
4578
|
+
return /* @__PURE__ */ jsx48(TooltipProvider2, {
|
|
4579
|
+
children: /* @__PURE__ */ jsx48("div", {
|
|
4433
4580
|
role: "group",
|
|
4434
4581
|
"aria-label": label,
|
|
4435
4582
|
"data-density": density,
|
|
4436
4583
|
className: "flex min-w-0 gap-1",
|
|
4437
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4584
|
+
children: items.map((item) => /* @__PURE__ */ jsxs33(Tooltip2, {
|
|
4438
4585
|
children: [
|
|
4439
|
-
/* @__PURE__ */
|
|
4586
|
+
/* @__PURE__ */ jsx48(TooltipTrigger2, {
|
|
4440
4587
|
"aria-label": `${item.label}: ${item.status}`,
|
|
4441
4588
|
onClick: () => onItemSelect?.(item),
|
|
4442
4589
|
className: cn2("h-8 min-w-2 flex-1 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", statusClasses[item.status])
|
|
4443
4590
|
}),
|
|
4444
|
-
/* @__PURE__ */
|
|
4591
|
+
/* @__PURE__ */ jsxs33(TooltipContent2, {
|
|
4445
4592
|
children: [
|
|
4446
4593
|
item.label,
|
|
4447
4594
|
": ",
|
|
@@ -4454,7 +4601,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
|
4454
4601
|
});
|
|
4455
4602
|
}
|
|
4456
4603
|
// src/components/DashboardLayout.tsx
|
|
4457
|
-
import { jsx as
|
|
4604
|
+
import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4458
4605
|
function DashboardLayout2({
|
|
4459
4606
|
title,
|
|
4460
4607
|
description,
|
|
@@ -4465,24 +4612,24 @@ function DashboardLayout2({
|
|
|
4465
4612
|
footer,
|
|
4466
4613
|
density
|
|
4467
4614
|
}) {
|
|
4468
|
-
return /* @__PURE__ */
|
|
4615
|
+
return /* @__PURE__ */ jsxs34("div", {
|
|
4469
4616
|
"data-density": density,
|
|
4470
4617
|
"data-scroll": "none",
|
|
4471
4618
|
className: "grid min-w-0 gap-6",
|
|
4472
4619
|
children: [
|
|
4473
|
-
/* @__PURE__ */
|
|
4620
|
+
/* @__PURE__ */ jsx49(PageHeader2, {
|
|
4474
4621
|
title,
|
|
4475
4622
|
description,
|
|
4476
4623
|
actions
|
|
4477
4624
|
}),
|
|
4478
4625
|
filters,
|
|
4479
|
-
stats.length > 0 && /* @__PURE__ */
|
|
4626
|
+
stats.length > 0 && /* @__PURE__ */ jsx49("div", {
|
|
4480
4627
|
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
|
|
4481
|
-
children: stats.map(({ id, ...stat }) => /* @__PURE__ */
|
|
4628
|
+
children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx49(StatCard2, {
|
|
4482
4629
|
...stat
|
|
4483
4630
|
}, id))
|
|
4484
4631
|
}),
|
|
4485
|
-
/* @__PURE__ */
|
|
4632
|
+
/* @__PURE__ */ jsx49("div", {
|
|
4486
4633
|
className: "grid min-w-0 gap-4",
|
|
4487
4634
|
children
|
|
4488
4635
|
}),
|
|
@@ -4491,18 +4638,18 @@ function DashboardLayout2({
|
|
|
4491
4638
|
});
|
|
4492
4639
|
}
|
|
4493
4640
|
// src/components/BillingUsage.tsx
|
|
4494
|
-
import { jsx as
|
|
4641
|
+
import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4495
4642
|
function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
|
|
4496
|
-
return /* @__PURE__ */
|
|
4643
|
+
return /* @__PURE__ */ jsxs35(Card2, {
|
|
4497
4644
|
density,
|
|
4498
4645
|
"aria-label": "Billing and usage",
|
|
4499
4646
|
children: [
|
|
4500
|
-
/* @__PURE__ */
|
|
4647
|
+
/* @__PURE__ */ jsxs35(CardHeader2, {
|
|
4501
4648
|
children: [
|
|
4502
|
-
/* @__PURE__ */
|
|
4649
|
+
/* @__PURE__ */ jsx50(CardTitle2, {
|
|
4503
4650
|
children: plan
|
|
4504
4651
|
}),
|
|
4505
|
-
/* @__PURE__ */
|
|
4652
|
+
/* @__PURE__ */ jsxs35(CardDescription2, {
|
|
4506
4653
|
children: [
|
|
4507
4654
|
price,
|
|
4508
4655
|
" · ",
|
|
@@ -4511,32 +4658,32 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4511
4658
|
})
|
|
4512
4659
|
]
|
|
4513
4660
|
}),
|
|
4514
|
-
/* @__PURE__ */
|
|
4661
|
+
/* @__PURE__ */ jsx50(CardContent2, {
|
|
4515
4662
|
className: "grid gap-4",
|
|
4516
|
-
children: metrics.map((metric) => /* @__PURE__ */
|
|
4663
|
+
children: metrics.map((metric) => /* @__PURE__ */ jsxs35(Meter2, {
|
|
4517
4664
|
value: metric.used,
|
|
4518
4665
|
max: metric.limit,
|
|
4519
4666
|
"aria-label": metric.label,
|
|
4520
4667
|
children: [
|
|
4521
|
-
/* @__PURE__ */
|
|
4668
|
+
/* @__PURE__ */ jsxs35("div", {
|
|
4522
4669
|
className: "mb-2 flex items-center justify-between gap-3 text-sm",
|
|
4523
4670
|
children: [
|
|
4524
|
-
/* @__PURE__ */
|
|
4671
|
+
/* @__PURE__ */ jsx50(MeterLabel2, {
|
|
4525
4672
|
children: metric.label
|
|
4526
4673
|
}),
|
|
4527
|
-
/* @__PURE__ */
|
|
4674
|
+
/* @__PURE__ */ jsx50(MeterValue2, {
|
|
4528
4675
|
children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
|
|
4529
4676
|
})
|
|
4530
4677
|
]
|
|
4531
4678
|
}),
|
|
4532
|
-
/* @__PURE__ */
|
|
4533
|
-
children: /* @__PURE__ */
|
|
4679
|
+
/* @__PURE__ */ jsx50(MeterTrack2, {
|
|
4680
|
+
children: /* @__PURE__ */ jsx50(MeterIndicator2, {})
|
|
4534
4681
|
})
|
|
4535
4682
|
]
|
|
4536
4683
|
}, metric.id))
|
|
4537
4684
|
}),
|
|
4538
|
-
/* @__PURE__ */
|
|
4539
|
-
children: /* @__PURE__ */
|
|
4685
|
+
/* @__PURE__ */ jsx50(CardFooter2, {
|
|
4686
|
+
children: /* @__PURE__ */ jsx50(Button2, {
|
|
4540
4687
|
type: "button",
|
|
4541
4688
|
variant: "outline",
|
|
4542
4689
|
onClick: onManage,
|
|
@@ -4547,4 +4694,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4547
4694
|
]
|
|
4548
4695
|
});
|
|
4549
4696
|
}
|
|
4550
|
-
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, Drawer2, DrawerTrigger2, DrawerPortal2, DrawerClose2, DrawerOverlay2, DrawerSwipeHandle2, DrawerContent2, DrawerHeader2, DrawerFooter2, DrawerTitle2, DrawerDescription2, 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, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, 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 };
|
|
4697
|
+
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, Drawer2, DrawerTrigger2, DrawerPortal2, DrawerClose2, DrawerOverlay2, DrawerSwipeHandle2, DrawerContent2, DrawerHeader2, DrawerFooter2, DrawerTitle2, DrawerDescription2, 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, 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 };
|