@alexgorbatchev/shadcn 0.0.86 → 0.0.88
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-8cxqbmh5.js → chunk-k8119w3b.js} +408 -254
- package/dist/components/ChoiceTable.d.ts +41 -0
- package/dist/components/ReviewList.d.ts +13 -2
- package/dist/components/json-render/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/prototype.js +1 -1
- package/llms/components/data-display/ChoiceTable.md +60 -0
- package/llms/components/data-display/ReviewList.md +8 -0
- package/llms.txt +1 -0
- package/package.json +1 -1
|
@@ -2829,6 +2829,7 @@ function StarRating2({
|
|
|
2829
2829
|
}
|
|
2830
2830
|
// src/components/ReviewList.tsx
|
|
2831
2831
|
import { useRef as useRef3, useState as useState4 } from "react";
|
|
2832
|
+
import { ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
2832
2833
|
import { jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2833
2834
|
var TOGGLE_KEYS = new Set(["x", "X"]);
|
|
2834
2835
|
function isMod(event) {
|
|
@@ -2837,7 +2838,7 @@ function isMod(event) {
|
|
|
2837
2838
|
function isTextEntry(target) {
|
|
2838
2839
|
return target instanceof HTMLElement && (target.isContentEditable || target.matches("input:not([type='checkbox']), textarea, select"));
|
|
2839
2840
|
}
|
|
2840
|
-
function ReviewList2({ label, rows, onIncludedChange }) {
|
|
2841
|
+
function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
2841
2842
|
const [cursor, setCursor] = useState4({ row: 0, cell: 0 });
|
|
2842
2843
|
const [anchorId, setAnchorId] = useState4();
|
|
2843
2844
|
const cellsRef = useRef3(new Map);
|
|
@@ -2857,8 +2858,9 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2857
2858
|
setAnchorId(row.id);
|
|
2858
2859
|
onIncludedChange([row.id], !row.isIncluded);
|
|
2859
2860
|
};
|
|
2860
|
-
const setRange = (row) => {
|
|
2861
|
-
const
|
|
2861
|
+
const setRange = (row, fallbackAnchor = 0) => {
|
|
2862
|
+
const found = rows.findIndex((candidate) => candidate.id === anchorId);
|
|
2863
|
+
const anchorIndex = found >= 0 ? found : fallbackAnchor;
|
|
2862
2864
|
const anchor = rows[anchorIndex];
|
|
2863
2865
|
if (!anchor)
|
|
2864
2866
|
return;
|
|
@@ -2872,7 +2874,13 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2872
2874
|
if (!current)
|
|
2873
2875
|
return;
|
|
2874
2876
|
let handled = true;
|
|
2875
|
-
if (event.key === "ArrowDown")
|
|
2877
|
+
if ((event.key === "ArrowDown" || event.key === "ArrowUp") && event.shiftKey && !isMod(event)) {
|
|
2878
|
+
const next = event.key === "ArrowDown" ? Math.min(rows.length - 1, rowIndex + 1) : Math.max(0, rowIndex - 1);
|
|
2879
|
+
if (anchorId === undefined)
|
|
2880
|
+
setAnchorId(current.id);
|
|
2881
|
+
focusCell(next, cursor.cell);
|
|
2882
|
+
setRange(next, rowIndex);
|
|
2883
|
+
} else if (event.key === "ArrowDown")
|
|
2876
2884
|
focusCell(Math.min(rows.length - 1, rowIndex + 1), cursor.cell);
|
|
2877
2885
|
else if (event.key === "ArrowUp")
|
|
2878
2886
|
focusCell(Math.max(0, rowIndex - 1), cursor.cell);
|
|
@@ -2886,6 +2894,8 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2886
2894
|
focusCell(rowIndex, cursor.cell - 1);
|
|
2887
2895
|
else if (TOGGLE_KEYS.has(event.key) && !isMod(event) || event.key === " " && event.shiftKey)
|
|
2888
2896
|
toggle(current);
|
|
2897
|
+
else if (event.key === "Enter" && current.isExpanded !== undefined && onExpandedChange && !isMod(event))
|
|
2898
|
+
onExpandedChange(current.id, !current.isExpanded);
|
|
2889
2899
|
else if (event.key.toLowerCase() === "a" && isMod(event))
|
|
2890
2900
|
onIncludedChange(rows.map((row) => row.id), true);
|
|
2891
2901
|
else
|
|
@@ -2902,9 +2912,10 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2902
2912
|
setAnchorId(row.id);
|
|
2903
2913
|
setCursor({ row: index, cell });
|
|
2904
2914
|
};
|
|
2915
|
+
const isTree = rows.some((row) => row.level !== undefined);
|
|
2905
2916
|
return /* @__PURE__ */ jsx29("div", {
|
|
2906
2917
|
"data-slot": "review-list",
|
|
2907
|
-
role: "grid",
|
|
2918
|
+
role: isTree ? "treegrid" : "grid",
|
|
2908
2919
|
"aria-label": label,
|
|
2909
2920
|
"aria-rowcount": rows.length,
|
|
2910
2921
|
className: "flex min-w-0 flex-col gap-0.5",
|
|
@@ -2922,6 +2933,8 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2922
2933
|
return /* @__PURE__ */ jsxs17("div", {
|
|
2923
2934
|
role: "row",
|
|
2924
2935
|
"aria-rowindex": index + 1,
|
|
2936
|
+
"aria-level": isTree ? row.level ?? 1 : undefined,
|
|
2937
|
+
"aria-expanded": row.isExpanded,
|
|
2925
2938
|
"data-included": row.isIncluded || undefined,
|
|
2926
2939
|
className: cn2("flex min-w-0 items-start gap-2 rounded-sm px-1 py-0.5 focus-within:bg-accent/50", !row.isIncluded && "text-muted-foreground"),
|
|
2927
2940
|
children: [
|
|
@@ -2934,6 +2947,7 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2934
2947
|
children: /* @__PURE__ */ jsx29(Checkbox2, {
|
|
2935
2948
|
"aria-label": row.checkboxLabel,
|
|
2936
2949
|
checked: row.isIncluded,
|
|
2950
|
+
indeterminate: row.isIndeterminate,
|
|
2937
2951
|
tabIndex: -1,
|
|
2938
2952
|
onCheckedChange: (_checked, details) => {
|
|
2939
2953
|
const native = details.event;
|
|
@@ -2943,13 +2957,37 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2943
2957
|
}
|
|
2944
2958
|
})
|
|
2945
2959
|
}),
|
|
2946
|
-
/* @__PURE__ */
|
|
2960
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
2947
2961
|
ref: cellRef(1),
|
|
2948
2962
|
role: "gridcell",
|
|
2949
2963
|
tabIndex: tabIndex(1),
|
|
2950
|
-
className: "min-w-0 flex-1 outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
2964
|
+
className: "flex min-w-0 flex-1 items-start gap-1 outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
2965
|
+
style: isTree ? { paddingInlineStart: `${((row.level ?? 1) - 1) * 1.25}rem` } : undefined,
|
|
2951
2966
|
onClick: (event) => onRowClick(event, row, index, 1),
|
|
2952
|
-
children:
|
|
2967
|
+
children: [
|
|
2968
|
+
isTree && /* @__PURE__ */ jsx29("span", {
|
|
2969
|
+
className: "flex size-5 shrink-0 items-center justify-center",
|
|
2970
|
+
children: row.isExpanded !== undefined && /* @__PURE__ */ jsx29("button", {
|
|
2971
|
+
type: "button",
|
|
2972
|
+
tabIndex: -1,
|
|
2973
|
+
"aria-hidden": "true",
|
|
2974
|
+
"data-slot": "review-list-disclosure",
|
|
2975
|
+
className: "flex size-5 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent",
|
|
2976
|
+
onClick: (event) => {
|
|
2977
|
+
event.stopPropagation();
|
|
2978
|
+
setCursor({ row: index, cell: 1 });
|
|
2979
|
+
onExpandedChange?.(row.id, !row.isExpanded);
|
|
2980
|
+
},
|
|
2981
|
+
children: /* @__PURE__ */ jsx29(ChevronRightIcon3, {
|
|
2982
|
+
className: cn2("size-4 transition-transform", row.isExpanded && "rotate-90")
|
|
2983
|
+
})
|
|
2984
|
+
})
|
|
2985
|
+
}),
|
|
2986
|
+
/* @__PURE__ */ jsx29("div", {
|
|
2987
|
+
className: "min-w-0 flex-1",
|
|
2988
|
+
children: row.content
|
|
2989
|
+
})
|
|
2990
|
+
]
|
|
2953
2991
|
}),
|
|
2954
2992
|
row.cells?.map((cell, offset) => /* @__PURE__ */ jsx29("div", {
|
|
2955
2993
|
ref: cellRef(offset + 2),
|
|
@@ -2964,9 +3002,125 @@ function ReviewList2({ label, rows, onIncludedChange }) {
|
|
|
2964
3002
|
})
|
|
2965
3003
|
});
|
|
2966
3004
|
}
|
|
3005
|
+
// src/components/ChoiceTable.tsx
|
|
3006
|
+
import {
|
|
3007
|
+
useId as useId4,
|
|
3008
|
+
useRef as useRef4
|
|
3009
|
+
} from "react";
|
|
3010
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3011
|
+
function isModified(event) {
|
|
3012
|
+
return event.altKey || event.metaKey || event.ctrlKey || event.shiftKey;
|
|
3013
|
+
}
|
|
3014
|
+
function ChoiceTable2({
|
|
3015
|
+
label,
|
|
3016
|
+
columns,
|
|
3017
|
+
rows,
|
|
3018
|
+
value,
|
|
3019
|
+
onValueChange,
|
|
3020
|
+
onConfirm,
|
|
3021
|
+
ref
|
|
3022
|
+
}) {
|
|
3023
|
+
const baseId = useId4();
|
|
3024
|
+
const rowsRef = useRef4(new Map);
|
|
3025
|
+
const chosenIndex = rows.findIndex((row) => row.id === value);
|
|
3026
|
+
const rowId = (id) => `${baseId}-${id}`;
|
|
3027
|
+
const template = {
|
|
3028
|
+
gridTemplateColumns: columns.map((column) => column.width ?? "minmax(0, 1fr)").join(" ")
|
|
3029
|
+
};
|
|
3030
|
+
const choose = (index) => {
|
|
3031
|
+
const row = rows[index];
|
|
3032
|
+
if (!row)
|
|
3033
|
+
return;
|
|
3034
|
+
onValueChange(row.id);
|
|
3035
|
+
rowsRef.current.get(row.id)?.scrollIntoView({ block: "nearest" });
|
|
3036
|
+
};
|
|
3037
|
+
const onKeyDown = (event) => {
|
|
3038
|
+
if (event.target !== event.currentTarget || isModified(event) || rows.length === 0)
|
|
3039
|
+
return;
|
|
3040
|
+
let handled = true;
|
|
3041
|
+
if (event.key === "ArrowDown")
|
|
3042
|
+
choose(chosenIndex < 0 ? 0 : Math.min(rows.length - 1, chosenIndex + 1));
|
|
3043
|
+
else if (event.key === "ArrowUp")
|
|
3044
|
+
choose(chosenIndex < 0 ? 0 : Math.max(0, chosenIndex - 1));
|
|
3045
|
+
else if (event.key === "Home")
|
|
3046
|
+
choose(0);
|
|
3047
|
+
else if (event.key === "End")
|
|
3048
|
+
choose(rows.length - 1);
|
|
3049
|
+
else if (event.key === "Enter" && value !== undefined && chosenIndex >= 0)
|
|
3050
|
+
onConfirm?.(value);
|
|
3051
|
+
else
|
|
3052
|
+
handled = false;
|
|
3053
|
+
if (handled)
|
|
3054
|
+
event.preventDefault();
|
|
3055
|
+
};
|
|
3056
|
+
const onRowClick = (event, row) => {
|
|
3057
|
+
if (event.target instanceof Element && event.target.closest("[data-slot='choice-table-detail']"))
|
|
3058
|
+
return;
|
|
3059
|
+
onValueChange(row.id);
|
|
3060
|
+
event.currentTarget.closest("[role='grid']")?.focus({ preventScroll: true });
|
|
3061
|
+
};
|
|
3062
|
+
return /* @__PURE__ */ jsxs18("div", {
|
|
3063
|
+
ref,
|
|
3064
|
+
"data-slot": "choice-table",
|
|
3065
|
+
role: "grid",
|
|
3066
|
+
"aria-label": label,
|
|
3067
|
+
"aria-rowcount": rows.length + 1,
|
|
3068
|
+
"aria-multiselectable": false,
|
|
3069
|
+
"aria-activedescendant": chosenIndex >= 0 ? rowId(rows[chosenIndex].id) : undefined,
|
|
3070
|
+
tabIndex: 0,
|
|
3071
|
+
className: "group/choice flex min-w-0 flex-col rounded-md text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3072
|
+
onKeyDown,
|
|
3073
|
+
children: [
|
|
3074
|
+
/* @__PURE__ */ jsx30("div", {
|
|
3075
|
+
role: "row",
|
|
3076
|
+
"aria-rowindex": 1,
|
|
3077
|
+
style: template,
|
|
3078
|
+
className: "grid items-end gap-x-3 border-b px-3 py-1.5 text-xs text-muted-foreground",
|
|
3079
|
+
children: columns.map((column) => /* @__PURE__ */ jsx30("div", {
|
|
3080
|
+
role: "columnheader",
|
|
3081
|
+
className: cn2("min-w-0", column.isEnd && "text-end"),
|
|
3082
|
+
children: column.header
|
|
3083
|
+
}, column.id))
|
|
3084
|
+
}),
|
|
3085
|
+
rows.map((row, index) => {
|
|
3086
|
+
const isChosen = index === chosenIndex;
|
|
3087
|
+
return /* @__PURE__ */ jsxs18("div", {
|
|
3088
|
+
id: rowId(row.id),
|
|
3089
|
+
ref: (element) => {
|
|
3090
|
+
if (element)
|
|
3091
|
+
rowsRef.current.set(row.id, element);
|
|
3092
|
+
else
|
|
3093
|
+
rowsRef.current.delete(row.id);
|
|
3094
|
+
},
|
|
3095
|
+
role: "row",
|
|
3096
|
+
"aria-rowindex": index + 2,
|
|
3097
|
+
"aria-selected": isChosen,
|
|
3098
|
+
"aria-label": row.label,
|
|
3099
|
+
"data-chosen": isChosen || undefined,
|
|
3100
|
+
style: template,
|
|
3101
|
+
className: cn2("grid cursor-default items-start gap-x-3 gap-y-2 border-b border-l-2 border-l-transparent px-3 py-2", isChosen && "border-l-primary bg-accent/60 group-focus-visible/choice:bg-accent"),
|
|
3102
|
+
onClick: (event) => onRowClick(event, row),
|
|
3103
|
+
children: [
|
|
3104
|
+
row.cells.map((cell, cellIndex) => /* @__PURE__ */ jsx30("div", {
|
|
3105
|
+
role: "gridcell",
|
|
3106
|
+
className: cn2("min-w-0 break-words", columns[cellIndex]?.isEnd && "text-end"),
|
|
3107
|
+
children: cell
|
|
3108
|
+
}, cellIndex)),
|
|
3109
|
+
row.detail !== undefined && /* @__PURE__ */ jsx30("div", {
|
|
3110
|
+
"data-slot": "choice-table-detail",
|
|
3111
|
+
role: "gridcell",
|
|
3112
|
+
className: "col-span-full min-w-0",
|
|
3113
|
+
children: row.detail
|
|
3114
|
+
})
|
|
3115
|
+
]
|
|
3116
|
+
}, row.id);
|
|
3117
|
+
})
|
|
3118
|
+
]
|
|
3119
|
+
});
|
|
3120
|
+
}
|
|
2967
3121
|
// src/components/ConfirmationDialog.tsx
|
|
2968
3122
|
import { useState as useState5 } from "react";
|
|
2969
|
-
import { jsx as
|
|
3123
|
+
import { jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2970
3124
|
function ConfirmationDialog2({
|
|
2971
3125
|
open,
|
|
2972
3126
|
title,
|
|
@@ -2978,7 +3132,7 @@ function ConfirmationDialog2({
|
|
|
2978
3132
|
}) {
|
|
2979
3133
|
const [isPending, setPending] = useState5(false);
|
|
2980
3134
|
const [error, setError] = useState5(null);
|
|
2981
|
-
return /* @__PURE__ */
|
|
3135
|
+
return /* @__PURE__ */ jsx31(AlertDialog2, {
|
|
2982
3136
|
open,
|
|
2983
3137
|
onOpenChange: (next, details) => {
|
|
2984
3138
|
if (isPending)
|
|
@@ -2988,33 +3142,33 @@ function ConfirmationDialog2({
|
|
|
2988
3142
|
onOpenChange(next);
|
|
2989
3143
|
}
|
|
2990
3144
|
},
|
|
2991
|
-
children: /* @__PURE__ */
|
|
3145
|
+
children: /* @__PURE__ */ jsxs19(AlertDialogContent2, {
|
|
2992
3146
|
children: [
|
|
2993
|
-
/* @__PURE__ */
|
|
2994
|
-
children: /* @__PURE__ */
|
|
3147
|
+
/* @__PURE__ */ jsx31(AlertDialogHeader2, {
|
|
3148
|
+
children: /* @__PURE__ */ jsx31(AlertDialogTitle2, {
|
|
2995
3149
|
children: title
|
|
2996
3150
|
})
|
|
2997
3151
|
}),
|
|
2998
|
-
/* @__PURE__ */
|
|
3152
|
+
/* @__PURE__ */ jsxs19(ScrollArea2, {
|
|
2999
3153
|
children: [
|
|
3000
|
-
/* @__PURE__ */
|
|
3154
|
+
/* @__PURE__ */ jsx31(AlertDialogDescription2, {
|
|
3001
3155
|
children: description
|
|
3002
3156
|
}),
|
|
3003
|
-
error && /* @__PURE__ */
|
|
3157
|
+
error && /* @__PURE__ */ jsx31(Alert2, {
|
|
3004
3158
|
variant: "destructive",
|
|
3005
|
-
children: /* @__PURE__ */
|
|
3159
|
+
children: /* @__PURE__ */ jsx31(AlertDescription2, {
|
|
3006
3160
|
children: error
|
|
3007
3161
|
})
|
|
3008
3162
|
})
|
|
3009
3163
|
]
|
|
3010
3164
|
}),
|
|
3011
|
-
/* @__PURE__ */
|
|
3165
|
+
/* @__PURE__ */ jsxs19(AlertDialogFooter2, {
|
|
3012
3166
|
children: [
|
|
3013
|
-
/* @__PURE__ */
|
|
3167
|
+
/* @__PURE__ */ jsx31(AlertDialogCancel2, {
|
|
3014
3168
|
disabled: isPending,
|
|
3015
3169
|
children: "Cancel"
|
|
3016
3170
|
}),
|
|
3017
|
-
/* @__PURE__ */
|
|
3171
|
+
/* @__PURE__ */ jsx31(Button2, {
|
|
3018
3172
|
variant: "destructive",
|
|
3019
3173
|
disabled: isPending,
|
|
3020
3174
|
onClick: async () => {
|
|
@@ -3038,7 +3192,7 @@ function ConfirmationDialog2({
|
|
|
3038
3192
|
});
|
|
3039
3193
|
}
|
|
3040
3194
|
// src/components/ImagePicker.tsx
|
|
3041
|
-
import { useRef as
|
|
3195
|
+
import { useRef as useRef5 } from "react";
|
|
3042
3196
|
import { ImageIcon, UploadIcon } from "lucide-react";
|
|
3043
3197
|
|
|
3044
3198
|
// src/hooks/useObjectURL.ts
|
|
@@ -3058,7 +3212,7 @@ function useObjectURL(file) {
|
|
|
3058
3212
|
}
|
|
3059
3213
|
|
|
3060
3214
|
// src/components/ImagePicker.tsx
|
|
3061
|
-
import { jsx as
|
|
3215
|
+
import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3062
3216
|
function ImagePicker2({
|
|
3063
3217
|
analytics,
|
|
3064
3218
|
src,
|
|
@@ -3069,30 +3223,30 @@ function ImagePicker2({
|
|
|
3069
3223
|
onClear
|
|
3070
3224
|
}) {
|
|
3071
3225
|
const track = useAnalytics2("ImagePicker", analytics);
|
|
3072
|
-
const input =
|
|
3226
|
+
const input = useRef5(null);
|
|
3073
3227
|
const preview = useObjectURL(file);
|
|
3074
3228
|
const image = file === null ? undefined : preview ?? src;
|
|
3075
|
-
return /* @__PURE__ */
|
|
3229
|
+
return /* @__PURE__ */ jsxs20("figure", {
|
|
3076
3230
|
className: "flex min-w-0 flex-col items-center gap-3",
|
|
3077
3231
|
"aria-label": label,
|
|
3078
3232
|
children: [
|
|
3079
|
-
/* @__PURE__ */
|
|
3233
|
+
/* @__PURE__ */ jsxs20(Avatar2, {
|
|
3080
3234
|
size: "preview",
|
|
3081
3235
|
shape: "square",
|
|
3082
3236
|
children: [
|
|
3083
|
-
/* @__PURE__ */
|
|
3237
|
+
/* @__PURE__ */ jsx32(AvatarImage2, {
|
|
3084
3238
|
src: image,
|
|
3085
3239
|
alt: label
|
|
3086
3240
|
}),
|
|
3087
|
-
/* @__PURE__ */
|
|
3088
|
-
children: /* @__PURE__ */
|
|
3241
|
+
/* @__PURE__ */ jsx32(AvatarFallback2, {
|
|
3242
|
+
children: /* @__PURE__ */ jsx32(ImageIcon, {
|
|
3089
3243
|
className: "size-12",
|
|
3090
3244
|
"aria-hidden": "true"
|
|
3091
3245
|
})
|
|
3092
3246
|
})
|
|
3093
3247
|
]
|
|
3094
3248
|
}),
|
|
3095
|
-
/* @__PURE__ */
|
|
3249
|
+
/* @__PURE__ */ jsx32("input", {
|
|
3096
3250
|
ref: input,
|
|
3097
3251
|
hidden: true,
|
|
3098
3252
|
type: "file",
|
|
@@ -3108,22 +3262,22 @@ function ImagePicker2({
|
|
|
3108
3262
|
event.currentTarget.value = "";
|
|
3109
3263
|
}
|
|
3110
3264
|
}),
|
|
3111
|
-
/* @__PURE__ */
|
|
3265
|
+
/* @__PURE__ */ jsxs20("div", {
|
|
3112
3266
|
className: "flex flex-wrap justify-center gap-2",
|
|
3113
3267
|
children: [
|
|
3114
|
-
/* @__PURE__ */
|
|
3268
|
+
/* @__PURE__ */ jsxs20(Button2, {
|
|
3115
3269
|
type: "button",
|
|
3116
3270
|
variant: "outline",
|
|
3117
3271
|
disabled,
|
|
3118
3272
|
onClick: () => input.current?.click(),
|
|
3119
3273
|
children: [
|
|
3120
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ jsx32(UploadIcon, {
|
|
3121
3275
|
"data-icon": "inline-start"
|
|
3122
3276
|
}),
|
|
3123
3277
|
"Upload image"
|
|
3124
3278
|
]
|
|
3125
3279
|
}),
|
|
3126
|
-
/* @__PURE__ */
|
|
3280
|
+
/* @__PURE__ */ jsx32(Button2, {
|
|
3127
3281
|
type: "button",
|
|
3128
3282
|
variant: "outline",
|
|
3129
3283
|
disabled: disabled || !image,
|
|
@@ -3137,9 +3291,9 @@ function ImagePicker2({
|
|
|
3137
3291
|
}
|
|
3138
3292
|
// src/components/Meter.tsx
|
|
3139
3293
|
import { Meter as MeterPrimitive } from "@base-ui/react/meter";
|
|
3140
|
-
import { jsx as
|
|
3294
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3141
3295
|
function Meter2({ density, className, ...props }) {
|
|
3142
|
-
return /* @__PURE__ */
|
|
3296
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Root, {
|
|
3143
3297
|
"data-density": density,
|
|
3144
3298
|
"data-slot": "meter",
|
|
3145
3299
|
className: (state) => cn2("flex min-w-0 flex-wrap items-center gap-field-gap", typeof className === "function" ? className(state) : className),
|
|
@@ -3147,7 +3301,7 @@ function Meter2({ density, className, ...props }) {
|
|
|
3147
3301
|
});
|
|
3148
3302
|
}
|
|
3149
3303
|
function MeterLabel2({ density, className, ...props }) {
|
|
3150
|
-
return /* @__PURE__ */
|
|
3304
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Label, {
|
|
3151
3305
|
"data-density": density,
|
|
3152
3306
|
"data-slot": "meter-label",
|
|
3153
3307
|
className: (state) => cn2("text-sm font-medium", typeof className === "function" ? className(state) : className),
|
|
@@ -3155,7 +3309,7 @@ function MeterLabel2({ density, className, ...props }) {
|
|
|
3155
3309
|
});
|
|
3156
3310
|
}
|
|
3157
3311
|
function MeterValue2({ density, className, ...props }) {
|
|
3158
|
-
return /* @__PURE__ */
|
|
3312
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Value, {
|
|
3159
3313
|
"data-density": density,
|
|
3160
3314
|
"data-slot": "meter-value",
|
|
3161
3315
|
className: (state) => cn2("ms-auto text-sm text-muted-foreground tabular-nums", typeof className === "function" ? className(state) : className),
|
|
@@ -3163,7 +3317,7 @@ function MeterValue2({ density, className, ...props }) {
|
|
|
3163
3317
|
});
|
|
3164
3318
|
}
|
|
3165
3319
|
function MeterTrack2({ density, className, ...props }) {
|
|
3166
|
-
return /* @__PURE__ */
|
|
3320
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Track, {
|
|
3167
3321
|
"data-density": density,
|
|
3168
3322
|
"data-slot": "meter-track",
|
|
3169
3323
|
className: (state) => cn2("h-1 w-full overflow-hidden rounded-sm bg-muted", typeof className === "function" ? className(state) : className),
|
|
@@ -3175,7 +3329,7 @@ function MeterIndicator2({
|
|
|
3175
3329
|
className,
|
|
3176
3330
|
...props
|
|
3177
3331
|
}) {
|
|
3178
|
-
return /* @__PURE__ */
|
|
3332
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Indicator, {
|
|
3179
3333
|
"data-density": density,
|
|
3180
3334
|
"data-slot": "meter-indicator",
|
|
3181
3335
|
className: (state) => cn2("h-full bg-primary transition-[width] motion-reduce:transition-none", typeof className === "function" ? className(state) : className),
|
|
@@ -3183,9 +3337,9 @@ function MeterIndicator2({
|
|
|
3183
3337
|
});
|
|
3184
3338
|
}
|
|
3185
3339
|
// src/components/ToolbarToggleChip.tsx
|
|
3186
|
-
import { useId as
|
|
3340
|
+
import { useId as useId5 } from "react";
|
|
3187
3341
|
import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
|
|
3188
|
-
import { jsx as
|
|
3342
|
+
import { jsx as jsx34, jsxs as jsxs21, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
3189
3343
|
function pressedLabel(pressed) {
|
|
3190
3344
|
if (pressed === "mixed")
|
|
3191
3345
|
return "mixed";
|
|
@@ -3206,7 +3360,7 @@ function ToolbarToggleChip2({
|
|
|
3206
3360
|
spaceActivates = true,
|
|
3207
3361
|
className
|
|
3208
3362
|
}) {
|
|
3209
|
-
const reasonId =
|
|
3363
|
+
const reasonId = useId5();
|
|
3210
3364
|
const trackedChange = useAnalyticsCallback("ToolbarToggleChip", analytics, { name: "ui.change-request" }, onPressedChange);
|
|
3211
3365
|
const isDisabled = Boolean(disabledReason);
|
|
3212
3366
|
const onMouseDown = (event) => {
|
|
@@ -3222,7 +3376,7 @@ function ToolbarToggleChip2({
|
|
|
3222
3376
|
if (!spaceActivates && event.key === " ")
|
|
3223
3377
|
event.preventDefault();
|
|
3224
3378
|
};
|
|
3225
|
-
const button = /* @__PURE__ */
|
|
3379
|
+
const button = /* @__PURE__ */ jsxs21(ToolbarPrimitive.Button, {
|
|
3226
3380
|
"data-density": density,
|
|
3227
3381
|
"data-slot": "toolbar-toggle-chip",
|
|
3228
3382
|
"data-pressed": pressedLabel(pressed),
|
|
@@ -3241,17 +3395,17 @@ function ToolbarToggleChip2({
|
|
|
3241
3395
|
trackedChange(pressed !== true);
|
|
3242
3396
|
},
|
|
3243
3397
|
children: [
|
|
3244
|
-
swatch && /* @__PURE__ */
|
|
3398
|
+
swatch && /* @__PURE__ */ jsx34("span", {
|
|
3245
3399
|
"aria-hidden": "true",
|
|
3246
3400
|
"data-slot": "toolbar-toggle-chip-swatch",
|
|
3247
3401
|
className: "size-3 shrink-0 rounded-sm border border-border",
|
|
3248
3402
|
style: { backgroundColor: swatch }
|
|
3249
3403
|
}),
|
|
3250
|
-
/* @__PURE__ */
|
|
3404
|
+
/* @__PURE__ */ jsx34("span", {
|
|
3251
3405
|
className: hideLabel ? "sr-only" : "min-w-0 truncate",
|
|
3252
3406
|
children
|
|
3253
3407
|
}),
|
|
3254
|
-
detail !== undefined && /* @__PURE__ */
|
|
3408
|
+
detail !== undefined && /* @__PURE__ */ jsxs21("span", {
|
|
3255
3409
|
"data-slot": "toolbar-toggle-chip-detail",
|
|
3256
3410
|
className: "text-xs text-muted-foreground",
|
|
3257
3411
|
children: [
|
|
@@ -3259,28 +3413,28 @@ function ToolbarToggleChip2({
|
|
|
3259
3413
|
detail
|
|
3260
3414
|
]
|
|
3261
3415
|
}),
|
|
3262
|
-
shortcut && !hideLabel && /* @__PURE__ */
|
|
3416
|
+
shortcut && !hideLabel && /* @__PURE__ */ jsx34(Kbd2, {
|
|
3263
3417
|
"aria-hidden": "true",
|
|
3264
3418
|
className: "ms-1",
|
|
3265
3419
|
children: shortcut.toUpperCase()
|
|
3266
3420
|
})
|
|
3267
3421
|
]
|
|
3268
3422
|
});
|
|
3269
|
-
return /* @__PURE__ */
|
|
3423
|
+
return /* @__PURE__ */ jsxs21(Fragment5, {
|
|
3270
3424
|
children: [
|
|
3271
|
-
disabledReason && /* @__PURE__ */
|
|
3425
|
+
disabledReason && /* @__PURE__ */ jsx34("span", {
|
|
3272
3426
|
id: reasonId,
|
|
3273
3427
|
className: "sr-only",
|
|
3274
3428
|
children: disabledReason
|
|
3275
3429
|
}),
|
|
3276
|
-
/* @__PURE__ */
|
|
3430
|
+
/* @__PURE__ */ jsxs21(Tooltip2, {
|
|
3277
3431
|
disabled: !disabledReason && !hideLabel,
|
|
3278
3432
|
children: [
|
|
3279
|
-
/* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ jsx34(TooltipTrigger2, {
|
|
3280
3434
|
render: button,
|
|
3281
3435
|
closeOnClick: false
|
|
3282
3436
|
}),
|
|
3283
|
-
(disabledReason || hideLabel) && /* @__PURE__ */
|
|
3437
|
+
(disabledReason || hideLabel) && /* @__PURE__ */ jsxs21(TooltipContent2, {
|
|
3284
3438
|
children: [
|
|
3285
3439
|
hideLabel ? children : null,
|
|
3286
3440
|
hideLabel && shortcut ? ` · ${shortcut.toUpperCase()}` : null,
|
|
@@ -3296,9 +3450,9 @@ function ToolbarToggleChip2({
|
|
|
3296
3450
|
// src/components/Stepper.tsx
|
|
3297
3451
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
3298
3452
|
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
3299
|
-
import { jsx as
|
|
3453
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3300
3454
|
function Stepper2({ density, className, ...props }) {
|
|
3301
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsx35(TabsPrimitive.Root, {
|
|
3302
3456
|
"data-density": density,
|
|
3303
3457
|
"data-slot": "stepper",
|
|
3304
3458
|
className: (state) => cn2("group/stepper flex min-w-0 flex-col gap-panel data-[orientation=vertical]:flex-row", typeof className === "function" ? className(state) : className),
|
|
@@ -3311,7 +3465,7 @@ function StepperList2({
|
|
|
3311
3465
|
activateOnFocus = false,
|
|
3312
3466
|
...props
|
|
3313
3467
|
}) {
|
|
3314
|
-
return /* @__PURE__ */
|
|
3468
|
+
return /* @__PURE__ */ jsx35(TabsPrimitive.List, {
|
|
3315
3469
|
"data-density": density,
|
|
3316
3470
|
"data-slot": "stepper-list",
|
|
3317
3471
|
activateOnFocus,
|
|
@@ -3320,7 +3474,7 @@ function StepperList2({
|
|
|
3320
3474
|
});
|
|
3321
3475
|
}
|
|
3322
3476
|
function StepperTrigger2({ density, className, ...props }) {
|
|
3323
|
-
return /* @__PURE__ */
|
|
3477
|
+
return /* @__PURE__ */ jsx35(TabsPrimitive.Tab, {
|
|
3324
3478
|
"data-density": density,
|
|
3325
3479
|
"data-slot": "stepper-trigger",
|
|
3326
3480
|
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),
|
|
@@ -3328,17 +3482,17 @@ function StepperTrigger2({ density, className, ...props }) {
|
|
|
3328
3482
|
});
|
|
3329
3483
|
}
|
|
3330
3484
|
function StepperIndicator2({ completed = false, children, className, ...props }) {
|
|
3331
|
-
return /* @__PURE__ */
|
|
3485
|
+
return /* @__PURE__ */ jsx35("span", {
|
|
3332
3486
|
"aria-hidden": "true",
|
|
3333
3487
|
"data-slot": "stepper-indicator",
|
|
3334
3488
|
"data-completed": completed || undefined,
|
|
3335
3489
|
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),
|
|
3336
3490
|
...props,
|
|
3337
|
-
children: completed ? /* @__PURE__ */
|
|
3491
|
+
children: completed ? /* @__PURE__ */ jsx35(CheckIcon2, {}) : children
|
|
3338
3492
|
});
|
|
3339
3493
|
}
|
|
3340
3494
|
function StepperContent2({ density, className, ...props }) {
|
|
3341
|
-
return /* @__PURE__ */
|
|
3495
|
+
return /* @__PURE__ */ jsx35(TabsPrimitive.Panel, {
|
|
3342
3496
|
"data-density": density,
|
|
3343
3497
|
"data-slot": "stepper-content",
|
|
3344
3498
|
className: (state) => cn2("min-w-0 flex-1 outline-none focus-visible:ring-1 focus-visible:ring-ring", typeof className === "function" ? className(state) : className),
|
|
@@ -3346,7 +3500,7 @@ function StepperContent2({ density, className, ...props }) {
|
|
|
3346
3500
|
});
|
|
3347
3501
|
}
|
|
3348
3502
|
// src/components/AppShell.tsx
|
|
3349
|
-
import { jsx as
|
|
3503
|
+
import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3350
3504
|
function AppShell2({
|
|
3351
3505
|
navigation,
|
|
3352
3506
|
brand,
|
|
@@ -3360,28 +3514,28 @@ function AppShell2({
|
|
|
3360
3514
|
content = "scroll",
|
|
3361
3515
|
density
|
|
3362
3516
|
}) {
|
|
3363
|
-
return /* @__PURE__ */
|
|
3517
|
+
return /* @__PURE__ */ jsxs22(SidebarProvider2, {
|
|
3364
3518
|
density,
|
|
3365
3519
|
defaultOpen: defaultSidebarOpen,
|
|
3366
3520
|
className: "relative min-h-0",
|
|
3367
3521
|
style: { height },
|
|
3368
3522
|
"data-scroll": "none",
|
|
3369
3523
|
children: [
|
|
3370
|
-
/* @__PURE__ */
|
|
3524
|
+
/* @__PURE__ */ jsxs22(Sidebar2, {
|
|
3371
3525
|
collapsible: "icon",
|
|
3372
3526
|
position: "container",
|
|
3373
3527
|
children: [
|
|
3374
|
-
/* @__PURE__ */
|
|
3528
|
+
/* @__PURE__ */ jsx36(SidebarHeader2, {
|
|
3375
3529
|
children: brand
|
|
3376
3530
|
}),
|
|
3377
|
-
/* @__PURE__ */
|
|
3378
|
-
children: /* @__PURE__ */
|
|
3531
|
+
/* @__PURE__ */ jsx36(SidebarContent2, {
|
|
3532
|
+
children: /* @__PURE__ */ jsx36("nav", {
|
|
3379
3533
|
"aria-label": "Primary navigation",
|
|
3380
|
-
children: /* @__PURE__ */
|
|
3381
|
-
children: /* @__PURE__ */
|
|
3382
|
-
children: navigation.map((item) => /* @__PURE__ */
|
|
3383
|
-
children: /* @__PURE__ */
|
|
3384
|
-
render: /* @__PURE__ */
|
|
3534
|
+
children: /* @__PURE__ */ jsx36(SidebarGroup2, {
|
|
3535
|
+
children: /* @__PURE__ */ jsx36(SidebarMenu2, {
|
|
3536
|
+
children: navigation.map((item) => /* @__PURE__ */ jsx36(SidebarMenuItem2, {
|
|
3537
|
+
children: /* @__PURE__ */ jsxs22(SidebarMenuButton2, {
|
|
3538
|
+
render: /* @__PURE__ */ jsx36(AnalyticsLink, {
|
|
3385
3539
|
component: "AppShell",
|
|
3386
3540
|
render: item.render,
|
|
3387
3541
|
...item.href === undefined ? {} : { href: item.href },
|
|
@@ -3391,7 +3545,7 @@ function AppShell2({
|
|
|
3391
3545
|
tooltip: item.label,
|
|
3392
3546
|
children: [
|
|
3393
3547
|
item.icon,
|
|
3394
|
-
/* @__PURE__ */
|
|
3548
|
+
/* @__PURE__ */ jsx36("span", {
|
|
3395
3549
|
children: item.label
|
|
3396
3550
|
})
|
|
3397
3551
|
]
|
|
@@ -3401,41 +3555,41 @@ function AppShell2({
|
|
|
3401
3555
|
})
|
|
3402
3556
|
})
|
|
3403
3557
|
}),
|
|
3404
|
-
sidebarFooter && /* @__PURE__ */
|
|
3558
|
+
sidebarFooter && /* @__PURE__ */ jsx36(SidebarFooter2, {
|
|
3405
3559
|
children: sidebarFooter
|
|
3406
3560
|
})
|
|
3407
3561
|
]
|
|
3408
3562
|
}),
|
|
3409
|
-
/* @__PURE__ */
|
|
3563
|
+
/* @__PURE__ */ jsxs22(SidebarInset2, {
|
|
3410
3564
|
"aria-label": label,
|
|
3411
3565
|
className: "min-h-0 min-w-0",
|
|
3412
3566
|
"data-scroll": "none",
|
|
3413
3567
|
children: [
|
|
3414
|
-
/* @__PURE__ */
|
|
3568
|
+
/* @__PURE__ */ jsxs22("header", {
|
|
3415
3569
|
"data-scroll": "none",
|
|
3416
3570
|
className: "flex shrink-0 items-center gap-control-gap border-b border-border p-panel",
|
|
3417
3571
|
children: [
|
|
3418
|
-
/* @__PURE__ */
|
|
3419
|
-
/* @__PURE__ */
|
|
3572
|
+
/* @__PURE__ */ jsx36(SidebarTrigger2, {}),
|
|
3573
|
+
/* @__PURE__ */ jsx36(Separator2, {
|
|
3420
3574
|
orientation: "vertical",
|
|
3421
3575
|
className: "h-control"
|
|
3422
3576
|
}),
|
|
3423
3577
|
header
|
|
3424
3578
|
]
|
|
3425
3579
|
}),
|
|
3426
|
-
content === "fill" ? /* @__PURE__ */
|
|
3580
|
+
content === "fill" ? /* @__PURE__ */ jsx36("div", {
|
|
3427
3581
|
"data-slot": "app-shell-content",
|
|
3428
3582
|
"data-scroll": "none",
|
|
3429
3583
|
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
3430
3584
|
children
|
|
3431
|
-
}) : /* @__PURE__ */
|
|
3585
|
+
}) : /* @__PURE__ */ jsx36(ScrollArea2, {
|
|
3432
3586
|
className: "min-h-0 flex-1",
|
|
3433
|
-
children: /* @__PURE__ */
|
|
3587
|
+
children: /* @__PURE__ */ jsx36("div", {
|
|
3434
3588
|
className: "flex min-w-0 flex-col gap-panel p-panel",
|
|
3435
3589
|
children
|
|
3436
3590
|
})
|
|
3437
3591
|
}),
|
|
3438
|
-
footer && /* @__PURE__ */
|
|
3592
|
+
footer && /* @__PURE__ */ jsx36("footer", {
|
|
3439
3593
|
className: "shrink-0 border-t border-border p-panel",
|
|
3440
3594
|
"data-scroll": "none",
|
|
3441
3595
|
children: footer
|
|
@@ -3785,7 +3939,7 @@ import {
|
|
|
3785
3939
|
DropletIcon,
|
|
3786
3940
|
SunIcon
|
|
3787
3941
|
} from "lucide-react";
|
|
3788
|
-
import { jsx as
|
|
3942
|
+
import { jsx as jsx37, jsxs as jsxs23, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3789
3943
|
var CONDITION_ICONS = {
|
|
3790
3944
|
clear: SunIcon,
|
|
3791
3945
|
"partly-cloudy": CloudSunIcon,
|
|
@@ -3837,43 +3991,43 @@ function WeatherSummary2({
|
|
|
3837
3991
|
defaultTagName: "div",
|
|
3838
3992
|
props: mergeProps14({
|
|
3839
3993
|
className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
|
|
3840
|
-
children: /* @__PURE__ */
|
|
3994
|
+
children: /* @__PURE__ */ jsxs23(Fragment6, {
|
|
3841
3995
|
children: [
|
|
3842
|
-
/* @__PURE__ */
|
|
3996
|
+
/* @__PURE__ */ jsx37(ConditionIcon, {
|
|
3843
3997
|
"aria-hidden": "true",
|
|
3844
3998
|
"data-slot": "weather-summary-icon",
|
|
3845
3999
|
className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
|
|
3846
4000
|
}),
|
|
3847
|
-
/* @__PURE__ */
|
|
4001
|
+
/* @__PURE__ */ jsxs23("div", {
|
|
3848
4002
|
className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
|
|
3849
4003
|
children: [
|
|
3850
|
-
/* @__PURE__ */
|
|
4004
|
+
/* @__PURE__ */ jsx37("div", {
|
|
3851
4005
|
className: "text-sm font-medium break-words",
|
|
3852
4006
|
children: label
|
|
3853
4007
|
}),
|
|
3854
|
-
/* @__PURE__ */
|
|
4008
|
+
/* @__PURE__ */ jsx37("div", {
|
|
3855
4009
|
className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
|
|
3856
4010
|
children: conditionLabel
|
|
3857
4011
|
}),
|
|
3858
|
-
/* @__PURE__ */
|
|
4012
|
+
/* @__PURE__ */ jsxs23("div", {
|
|
3859
4013
|
className: "flex flex-wrap items-baseline gap-x-2 text-sm tabular-nums",
|
|
3860
4014
|
children: [
|
|
3861
|
-
/* @__PURE__ */
|
|
4015
|
+
/* @__PURE__ */ jsxs23("span", {
|
|
3862
4016
|
children: [
|
|
3863
|
-
/* @__PURE__ */
|
|
4017
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3864
4018
|
className: "sr-only",
|
|
3865
4019
|
children: "High "
|
|
3866
4020
|
}),
|
|
3867
|
-
/* @__PURE__ */
|
|
4021
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3868
4022
|
className: "font-medium",
|
|
3869
4023
|
children: highText
|
|
3870
4024
|
})
|
|
3871
4025
|
]
|
|
3872
4026
|
}),
|
|
3873
|
-
/* @__PURE__ */
|
|
4027
|
+
/* @__PURE__ */ jsxs23("span", {
|
|
3874
4028
|
className: "text-muted-foreground",
|
|
3875
4029
|
children: [
|
|
3876
|
-
/* @__PURE__ */
|
|
4030
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3877
4031
|
className: "sr-only",
|
|
3878
4032
|
children: "Low "
|
|
3879
4033
|
}),
|
|
@@ -3882,17 +4036,17 @@ function WeatherSummary2({
|
|
|
3882
4036
|
})
|
|
3883
4037
|
]
|
|
3884
4038
|
}),
|
|
3885
|
-
probabilityText !== undefined && /* @__PURE__ */
|
|
4039
|
+
probabilityText !== undefined && /* @__PURE__ */ jsxs23("div", {
|
|
3886
4040
|
className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
|
|
3887
4041
|
children: [
|
|
3888
|
-
/* @__PURE__ */
|
|
4042
|
+
/* @__PURE__ */ jsx37(DropletIcon, {
|
|
3889
4043
|
"aria-hidden": "true",
|
|
3890
4044
|
className: "size-3 shrink-0"
|
|
3891
4045
|
}),
|
|
3892
|
-
/* @__PURE__ */
|
|
4046
|
+
/* @__PURE__ */ jsxs23("span", {
|
|
3893
4047
|
children: [
|
|
3894
4048
|
probabilityText,
|
|
3895
|
-
/* @__PURE__ */
|
|
4049
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3896
4050
|
className: "sr-only",
|
|
3897
4051
|
children: " chance of precipitation"
|
|
3898
4052
|
})
|
|
@@ -3910,7 +4064,7 @@ function WeatherSummary2({
|
|
|
3910
4064
|
});
|
|
3911
4065
|
}
|
|
3912
4066
|
// src/components/WeatherForecast.tsx
|
|
3913
|
-
import { jsx as
|
|
4067
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3914
4068
|
function WeatherForecast2({
|
|
3915
4069
|
days,
|
|
3916
4070
|
label,
|
|
@@ -3921,52 +4075,52 @@ function WeatherForecast2({
|
|
|
3921
4075
|
className,
|
|
3922
4076
|
...props
|
|
3923
4077
|
}) {
|
|
3924
|
-
return /* @__PURE__ */
|
|
4078
|
+
return /* @__PURE__ */ jsx38("ul", {
|
|
3925
4079
|
"aria-label": label,
|
|
3926
4080
|
"data-slot": "weather-forecast",
|
|
3927
4081
|
"data-density": density,
|
|
3928
4082
|
className: cn2("grid min-w-0 gap-panel-sm", variant === "strip" && "grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]", className),
|
|
3929
4083
|
...props,
|
|
3930
|
-
children: days.map(({ id, ...day }) => /* @__PURE__ */
|
|
4084
|
+
children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx38(WeatherSummary2, {
|
|
3931
4085
|
...day,
|
|
3932
4086
|
unit,
|
|
3933
4087
|
locale,
|
|
3934
4088
|
variant: variant === "strip" ? "compact" : "default",
|
|
3935
|
-
render: /* @__PURE__ */
|
|
4089
|
+
render: /* @__PURE__ */ jsx38("li", {})
|
|
3936
4090
|
}, id))
|
|
3937
4091
|
});
|
|
3938
4092
|
}
|
|
3939
4093
|
// src/components/PageHeader.tsx
|
|
3940
|
-
import { jsx as
|
|
4094
|
+
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3941
4095
|
function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, density }) {
|
|
3942
|
-
return /* @__PURE__ */
|
|
4096
|
+
return /* @__PURE__ */ jsxs24("header", {
|
|
3943
4097
|
"data-density": density,
|
|
3944
4098
|
"data-slot": "page-header",
|
|
3945
4099
|
"data-scroll": "none",
|
|
3946
4100
|
className: "flex min-w-0 flex-col gap-field-gap",
|
|
3947
4101
|
children: [
|
|
3948
4102
|
breadcrumbs,
|
|
3949
|
-
/* @__PURE__ */
|
|
4103
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
3950
4104
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-panel",
|
|
3951
4105
|
children: [
|
|
3952
|
-
/* @__PURE__ */
|
|
4106
|
+
/* @__PURE__ */ jsxs24("div", {
|
|
3953
4107
|
className: "min-w-0",
|
|
3954
4108
|
children: [
|
|
3955
|
-
eyebrow != null && /* @__PURE__ */
|
|
4109
|
+
eyebrow != null && /* @__PURE__ */ jsx39("div", {
|
|
3956
4110
|
className: "mb-2 text-xs font-medium tracking-widest text-muted-foreground",
|
|
3957
4111
|
children: eyebrow
|
|
3958
4112
|
}),
|
|
3959
|
-
/* @__PURE__ */
|
|
4113
|
+
/* @__PURE__ */ jsx39("h1", {
|
|
3960
4114
|
className: "text-xl font-semibold text-foreground",
|
|
3961
4115
|
children: title
|
|
3962
4116
|
}),
|
|
3963
|
-
description && /* @__PURE__ */
|
|
4117
|
+
description && /* @__PURE__ */ jsx39("div", {
|
|
3964
4118
|
className: "mt-1 text-sm text-muted-foreground",
|
|
3965
4119
|
children: description
|
|
3966
4120
|
})
|
|
3967
4121
|
]
|
|
3968
4122
|
}),
|
|
3969
|
-
actions && /* @__PURE__ */
|
|
4123
|
+
actions && /* @__PURE__ */ jsx39("div", {
|
|
3970
4124
|
className: "flex min-w-0 max-w-full flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
3971
4125
|
children: actions
|
|
3972
4126
|
})
|
|
@@ -3976,46 +4130,46 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
3976
4130
|
});
|
|
3977
4131
|
}
|
|
3978
4132
|
// src/components/PageIntro.tsx
|
|
3979
|
-
import { jsx as
|
|
4133
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3980
4134
|
function PageIntro2({ title, description, eyebrow, icon, actions, highlights, density }) {
|
|
3981
|
-
return /* @__PURE__ */
|
|
4135
|
+
return /* @__PURE__ */ jsx40("header", {
|
|
3982
4136
|
"data-density": density,
|
|
3983
4137
|
"data-slot": "page-intro",
|
|
3984
4138
|
"data-scroll": "none",
|
|
3985
4139
|
className: "@container/page-intro min-w-0",
|
|
3986
|
-
children: /* @__PURE__ */
|
|
4140
|
+
children: /* @__PURE__ */ jsxs25(Card2, {
|
|
3987
4141
|
variant: "hero",
|
|
3988
4142
|
className: "gap-0 py-0",
|
|
3989
4143
|
children: [
|
|
3990
|
-
/* @__PURE__ */
|
|
4144
|
+
/* @__PURE__ */ jsx40("div", {
|
|
3991
4145
|
"aria-hidden": "true",
|
|
3992
4146
|
"data-slot": "page-intro-wash",
|
|
3993
4147
|
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%)]"
|
|
3994
4148
|
}),
|
|
3995
|
-
/* @__PURE__ */
|
|
4149
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
3996
4150
|
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",
|
|
3997
4151
|
children: [
|
|
3998
|
-
/* @__PURE__ */
|
|
4152
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
3999
4153
|
className: "flex min-w-0 gap-panel",
|
|
4000
4154
|
children: [
|
|
4001
|
-
icon != null && /* @__PURE__ */
|
|
4155
|
+
icon != null && /* @__PURE__ */ jsx40("div", {
|
|
4002
4156
|
"aria-hidden": "true",
|
|
4003
4157
|
"data-slot": "page-intro-icon",
|
|
4004
4158
|
className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
|
|
4005
4159
|
children: icon
|
|
4006
4160
|
}),
|
|
4007
|
-
/* @__PURE__ */
|
|
4161
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
4008
4162
|
className: "min-w-0",
|
|
4009
4163
|
children: [
|
|
4010
|
-
eyebrow != null && /* @__PURE__ */
|
|
4164
|
+
eyebrow != null && /* @__PURE__ */ jsx40("div", {
|
|
4011
4165
|
className: "mb-1 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4012
4166
|
children: eyebrow
|
|
4013
4167
|
}),
|
|
4014
|
-
/* @__PURE__ */
|
|
4168
|
+
/* @__PURE__ */ jsx40("h1", {
|
|
4015
4169
|
className: "text-2xl font-semibold text-foreground",
|
|
4016
4170
|
children: title
|
|
4017
4171
|
}),
|
|
4018
|
-
/* @__PURE__ */
|
|
4172
|
+
/* @__PURE__ */ jsx40("div", {
|
|
4019
4173
|
className: "mt-2 max-w-prose text-base text-pretty text-muted-foreground",
|
|
4020
4174
|
children: description
|
|
4021
4175
|
})
|
|
@@ -4023,33 +4177,33 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4023
4177
|
})
|
|
4024
4178
|
]
|
|
4025
4179
|
}),
|
|
4026
|
-
actions != null && /* @__PURE__ */
|
|
4180
|
+
actions != null && /* @__PURE__ */ jsx40("div", {
|
|
4027
4181
|
className: "flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4028
4182
|
children: actions
|
|
4029
4183
|
})
|
|
4030
4184
|
]
|
|
4031
4185
|
}),
|
|
4032
|
-
highlights != null && highlights.length > 0 && /* @__PURE__ */
|
|
4186
|
+
highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx40("ul", {
|
|
4033
4187
|
"aria-label": `What you can do in ${title}`,
|
|
4034
4188
|
"data-slot": "page-intro-highlights",
|
|
4035
4189
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
|
|
4036
|
-
children: highlights.map((highlight) => /* @__PURE__ */
|
|
4190
|
+
children: highlights.map((highlight) => /* @__PURE__ */ jsxs25("li", {
|
|
4037
4191
|
"data-slot": "page-intro-highlight",
|
|
4038
4192
|
className: "flex min-w-0 gap-2",
|
|
4039
4193
|
children: [
|
|
4040
|
-
highlight.icon != null && /* @__PURE__ */
|
|
4194
|
+
highlight.icon != null && /* @__PURE__ */ jsx40("span", {
|
|
4041
4195
|
"aria-hidden": "true",
|
|
4042
4196
|
className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
|
|
4043
4197
|
children: highlight.icon
|
|
4044
4198
|
}),
|
|
4045
|
-
/* @__PURE__ */
|
|
4199
|
+
/* @__PURE__ */ jsxs25("div", {
|
|
4046
4200
|
className: "min-w-0",
|
|
4047
4201
|
children: [
|
|
4048
|
-
/* @__PURE__ */
|
|
4202
|
+
/* @__PURE__ */ jsx40("div", {
|
|
4049
4203
|
className: "text-sm font-medium text-foreground",
|
|
4050
4204
|
children: highlight.title
|
|
4051
4205
|
}),
|
|
4052
|
-
/* @__PURE__ */
|
|
4206
|
+
/* @__PURE__ */ jsx40("div", {
|
|
4053
4207
|
className: "mt-0.5 text-sm text-muted-foreground",
|
|
4054
4208
|
children: highlight.description
|
|
4055
4209
|
})
|
|
@@ -4063,7 +4217,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4063
4217
|
});
|
|
4064
4218
|
}
|
|
4065
4219
|
// src/components/WorkspaceSwitcher.tsx
|
|
4066
|
-
import { jsx as
|
|
4220
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4067
4221
|
function WorkspaceSwitcher2({
|
|
4068
4222
|
workspaces,
|
|
4069
4223
|
value,
|
|
@@ -4073,7 +4227,7 @@ function WorkspaceSwitcher2({
|
|
|
4073
4227
|
label = "Workspace",
|
|
4074
4228
|
density
|
|
4075
4229
|
}) {
|
|
4076
|
-
return /* @__PURE__ */
|
|
4230
|
+
return /* @__PURE__ */ jsxs26(Select2, {
|
|
4077
4231
|
items: workspaces,
|
|
4078
4232
|
value,
|
|
4079
4233
|
defaultValue: defaultValue ?? workspaces[0]?.value,
|
|
@@ -4083,15 +4237,15 @@ function WorkspaceSwitcher2({
|
|
|
4083
4237
|
},
|
|
4084
4238
|
disabled,
|
|
4085
4239
|
children: [
|
|
4086
|
-
/* @__PURE__ */
|
|
4240
|
+
/* @__PURE__ */ jsx41(SelectTrigger2, {
|
|
4087
4241
|
"aria-label": label,
|
|
4088
4242
|
density,
|
|
4089
|
-
children: /* @__PURE__ */
|
|
4243
|
+
children: /* @__PURE__ */ jsx41(SelectValue2, {})
|
|
4090
4244
|
}),
|
|
4091
|
-
/* @__PURE__ */
|
|
4245
|
+
/* @__PURE__ */ jsx41(SelectContent2, {
|
|
4092
4246
|
density,
|
|
4093
|
-
children: /* @__PURE__ */
|
|
4094
|
-
children: workspaces.map((workspace) => /* @__PURE__ */
|
|
4247
|
+
children: /* @__PURE__ */ jsx41(SelectGroup2, {
|
|
4248
|
+
children: workspaces.map((workspace) => /* @__PURE__ */ jsx41(SelectItem2, {
|
|
4095
4249
|
value: workspace.value,
|
|
4096
4250
|
children: workspace.label
|
|
4097
4251
|
}, workspace.value))
|
|
@@ -4101,52 +4255,52 @@ function WorkspaceSwitcher2({
|
|
|
4101
4255
|
});
|
|
4102
4256
|
}
|
|
4103
4257
|
// src/components/AccountMenu.tsx
|
|
4104
|
-
import { jsx as
|
|
4258
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4105
4259
|
function AccountMenu2({ name, email, image, onAction, density }) {
|
|
4106
|
-
return /* @__PURE__ */
|
|
4260
|
+
return /* @__PURE__ */ jsxs27(DropdownMenu2, {
|
|
4107
4261
|
children: [
|
|
4108
|
-
/* @__PURE__ */
|
|
4109
|
-
render: /* @__PURE__ */
|
|
4262
|
+
/* @__PURE__ */ jsxs27(DropdownMenuTrigger2, {
|
|
4263
|
+
render: /* @__PURE__ */ jsx42(Button2, {
|
|
4110
4264
|
variant: "ghost",
|
|
4111
4265
|
density
|
|
4112
4266
|
}),
|
|
4113
4267
|
"aria-label": `Account menu for ${name}`,
|
|
4114
4268
|
children: [
|
|
4115
|
-
/* @__PURE__ */
|
|
4269
|
+
/* @__PURE__ */ jsxs27(Avatar2, {
|
|
4116
4270
|
className: "size-control",
|
|
4117
4271
|
children: [
|
|
4118
|
-
/* @__PURE__ */
|
|
4272
|
+
/* @__PURE__ */ jsx42(AvatarImage2, {
|
|
4119
4273
|
src: image,
|
|
4120
4274
|
alt: ""
|
|
4121
4275
|
}),
|
|
4122
|
-
/* @__PURE__ */
|
|
4276
|
+
/* @__PURE__ */ jsx42(AvatarFallback2, {
|
|
4123
4277
|
children: name.slice(0, 2).toUpperCase()
|
|
4124
4278
|
})
|
|
4125
4279
|
]
|
|
4126
4280
|
}),
|
|
4127
|
-
/* @__PURE__ */
|
|
4281
|
+
/* @__PURE__ */ jsx42("span", {
|
|
4128
4282
|
children: name
|
|
4129
4283
|
})
|
|
4130
4284
|
]
|
|
4131
4285
|
}),
|
|
4132
|
-
/* @__PURE__ */
|
|
4286
|
+
/* @__PURE__ */ jsx42(MenuPopup, {
|
|
4133
4287
|
density,
|
|
4134
4288
|
align: "end",
|
|
4135
|
-
children: /* @__PURE__ */
|
|
4289
|
+
children: /* @__PURE__ */ jsxs27(MenuGroup2, {
|
|
4136
4290
|
children: [
|
|
4137
|
-
/* @__PURE__ */
|
|
4291
|
+
/* @__PURE__ */ jsx42(MenuLabel2, {
|
|
4138
4292
|
children: email ?? name
|
|
4139
4293
|
}),
|
|
4140
|
-
/* @__PURE__ */
|
|
4294
|
+
/* @__PURE__ */ jsx42(MenuItem2, {
|
|
4141
4295
|
onClick: () => onAction("profile"),
|
|
4142
4296
|
children: "Profile"
|
|
4143
4297
|
}),
|
|
4144
|
-
/* @__PURE__ */
|
|
4298
|
+
/* @__PURE__ */ jsx42(MenuItem2, {
|
|
4145
4299
|
onClick: () => onAction("settings"),
|
|
4146
4300
|
children: "Settings"
|
|
4147
4301
|
}),
|
|
4148
|
-
/* @__PURE__ */
|
|
4149
|
-
/* @__PURE__ */
|
|
4302
|
+
/* @__PURE__ */ jsx42(MenuSeparator2, {}),
|
|
4303
|
+
/* @__PURE__ */ jsx42(MenuItem2, {
|
|
4150
4304
|
onClick: () => onAction("sign-out"),
|
|
4151
4305
|
children: "Sign out"
|
|
4152
4306
|
})
|
|
@@ -4157,7 +4311,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4157
4311
|
});
|
|
4158
4312
|
}
|
|
4159
4313
|
// src/components/StatCard.tsx
|
|
4160
|
-
import { jsx as
|
|
4314
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4161
4315
|
function StatCard2({
|
|
4162
4316
|
label,
|
|
4163
4317
|
value,
|
|
@@ -4168,48 +4322,48 @@ function StatCard2({
|
|
|
4168
4322
|
loading = false,
|
|
4169
4323
|
density
|
|
4170
4324
|
}) {
|
|
4171
|
-
return /* @__PURE__ */
|
|
4325
|
+
return /* @__PURE__ */ jsxs28(Card2, {
|
|
4172
4326
|
density,
|
|
4173
4327
|
"aria-label": label,
|
|
4174
4328
|
"aria-busy": loading,
|
|
4175
4329
|
children: [
|
|
4176
|
-
/* @__PURE__ */
|
|
4330
|
+
/* @__PURE__ */ jsxs28(CardHeader2, {
|
|
4177
4331
|
children: [
|
|
4178
|
-
/* @__PURE__ */
|
|
4332
|
+
/* @__PURE__ */ jsx43(CardTitle2, {
|
|
4179
4333
|
children: label
|
|
4180
4334
|
}),
|
|
4181
|
-
description && /* @__PURE__ */
|
|
4335
|
+
description && /* @__PURE__ */ jsx43(CardDescription2, {
|
|
4182
4336
|
children: description
|
|
4183
4337
|
})
|
|
4184
4338
|
]
|
|
4185
4339
|
}),
|
|
4186
|
-
/* @__PURE__ */
|
|
4187
|
-
children: /* @__PURE__ */
|
|
4340
|
+
/* @__PURE__ */ jsx43(CardContent2, {
|
|
4341
|
+
children: /* @__PURE__ */ jsxs28("div", {
|
|
4188
4342
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4189
4343
|
children: [
|
|
4190
|
-
loading ? /* @__PURE__ */
|
|
4344
|
+
loading ? /* @__PURE__ */ jsx43(Skeleton2, {
|
|
4191
4345
|
className: "h-8 w-24",
|
|
4192
4346
|
"aria-label": `Loading ${label}`
|
|
4193
|
-
}) : /* @__PURE__ */
|
|
4347
|
+
}) : /* @__PURE__ */ jsx43("div", {
|
|
4194
4348
|
className: "text-2xl font-semibold tabular-nums",
|
|
4195
4349
|
children: value
|
|
4196
4350
|
}),
|
|
4197
|
-
change && /* @__PURE__ */
|
|
4351
|
+
change && /* @__PURE__ */ jsx43(Badge2, {
|
|
4198
4352
|
variant: changeIntent === "positive" ? "success" : changeIntent === "negative" ? "destructive" : "secondary",
|
|
4199
4353
|
children: change
|
|
4200
4354
|
})
|
|
4201
4355
|
]
|
|
4202
4356
|
})
|
|
4203
4357
|
}),
|
|
4204
|
-
children && /* @__PURE__ */
|
|
4358
|
+
children && /* @__PURE__ */ jsx43(CardFooter2, {
|
|
4205
4359
|
children
|
|
4206
4360
|
})
|
|
4207
4361
|
]
|
|
4208
4362
|
});
|
|
4209
4363
|
}
|
|
4210
4364
|
// src/components/AuthForm.tsx
|
|
4211
|
-
import { useId as
|
|
4212
|
-
import { jsx as
|
|
4365
|
+
import { useId as useId6, useState as useState7 } from "react";
|
|
4366
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4213
4367
|
function AuthForm2({
|
|
4214
4368
|
mode = "sign-in",
|
|
4215
4369
|
onSubmit,
|
|
@@ -4218,7 +4372,7 @@ function AuthForm2({
|
|
|
4218
4372
|
disabled = false,
|
|
4219
4373
|
density
|
|
4220
4374
|
}) {
|
|
4221
|
-
const id =
|
|
4375
|
+
const id = useId6();
|
|
4222
4376
|
const [pending, setPending] = useState7(false);
|
|
4223
4377
|
const [error, setError] = useState7("");
|
|
4224
4378
|
const title = mode === "sign-up" ? "Create an account" : mode === "reset-password" ? "Reset your password" : "Sign in";
|
|
@@ -4239,33 +4393,33 @@ function AuthForm2({
|
|
|
4239
4393
|
setPending(false);
|
|
4240
4394
|
}
|
|
4241
4395
|
}
|
|
4242
|
-
return /* @__PURE__ */
|
|
4396
|
+
return /* @__PURE__ */ jsxs29(Card2, {
|
|
4243
4397
|
density,
|
|
4244
4398
|
children: [
|
|
4245
|
-
/* @__PURE__ */
|
|
4399
|
+
/* @__PURE__ */ jsxs29(CardHeader2, {
|
|
4246
4400
|
children: [
|
|
4247
|
-
/* @__PURE__ */
|
|
4401
|
+
/* @__PURE__ */ jsx44(CardTitle2, {
|
|
4248
4402
|
children: title
|
|
4249
4403
|
}),
|
|
4250
|
-
/* @__PURE__ */
|
|
4404
|
+
/* @__PURE__ */ jsx44(CardDescription2, {
|
|
4251
4405
|
children: mode === "reset-password" ? "Enter your email to request a password reset." : "Enter your details to continue."
|
|
4252
4406
|
})
|
|
4253
4407
|
]
|
|
4254
4408
|
}),
|
|
4255
|
-
/* @__PURE__ */
|
|
4256
|
-
children: /* @__PURE__ */
|
|
4409
|
+
/* @__PURE__ */ jsx44(CardContent2, {
|
|
4410
|
+
children: /* @__PURE__ */ jsx44("form", {
|
|
4257
4411
|
onSubmit: submit,
|
|
4258
4412
|
"aria-label": title,
|
|
4259
4413
|
"aria-busy": pending,
|
|
4260
|
-
children: /* @__PURE__ */
|
|
4414
|
+
children: /* @__PURE__ */ jsxs29(FieldGroup2, {
|
|
4261
4415
|
children: [
|
|
4262
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4416
|
+
mode === "sign-up" && /* @__PURE__ */ jsxs29(Field2, {
|
|
4263
4417
|
children: [
|
|
4264
|
-
/* @__PURE__ */
|
|
4418
|
+
/* @__PURE__ */ jsx44(FieldLabel2, {
|
|
4265
4419
|
htmlFor: id + "-name",
|
|
4266
4420
|
children: "Name"
|
|
4267
4421
|
}),
|
|
4268
|
-
/* @__PURE__ */
|
|
4422
|
+
/* @__PURE__ */ jsx44(Input2, {
|
|
4269
4423
|
id: id + "-name",
|
|
4270
4424
|
name: "name",
|
|
4271
4425
|
autoComplete: "name",
|
|
@@ -4274,13 +4428,13 @@ function AuthForm2({
|
|
|
4274
4428
|
})
|
|
4275
4429
|
]
|
|
4276
4430
|
}),
|
|
4277
|
-
/* @__PURE__ */
|
|
4431
|
+
/* @__PURE__ */ jsxs29(Field2, {
|
|
4278
4432
|
children: [
|
|
4279
|
-
/* @__PURE__ */
|
|
4433
|
+
/* @__PURE__ */ jsx44(FieldLabel2, {
|
|
4280
4434
|
htmlFor: id + "-email",
|
|
4281
4435
|
children: "Email"
|
|
4282
4436
|
}),
|
|
4283
|
-
/* @__PURE__ */
|
|
4437
|
+
/* @__PURE__ */ jsx44(Input2, {
|
|
4284
4438
|
id: id + "-email",
|
|
4285
4439
|
name: "email",
|
|
4286
4440
|
type: "email",
|
|
@@ -4290,13 +4444,13 @@ function AuthForm2({
|
|
|
4290
4444
|
})
|
|
4291
4445
|
]
|
|
4292
4446
|
}),
|
|
4293
|
-
mode !== "reset-password" && /* @__PURE__ */
|
|
4447
|
+
mode !== "reset-password" && /* @__PURE__ */ jsxs29(Field2, {
|
|
4294
4448
|
children: [
|
|
4295
|
-
/* @__PURE__ */
|
|
4449
|
+
/* @__PURE__ */ jsx44(FieldLabel2, {
|
|
4296
4450
|
htmlFor: id + "-password",
|
|
4297
4451
|
children: "Password"
|
|
4298
4452
|
}),
|
|
4299
|
-
/* @__PURE__ */
|
|
4453
|
+
/* @__PURE__ */ jsx44(Input2, {
|
|
4300
4454
|
id: id + "-password",
|
|
4301
4455
|
name: "password",
|
|
4302
4456
|
type: "password",
|
|
@@ -4305,27 +4459,27 @@ function AuthForm2({
|
|
|
4305
4459
|
required: true,
|
|
4306
4460
|
disabled: disabled || pending
|
|
4307
4461
|
}),
|
|
4308
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4462
|
+
mode === "sign-up" && /* @__PURE__ */ jsx44(FieldDescription2, {
|
|
4309
4463
|
children: "Use at least eight characters."
|
|
4310
4464
|
})
|
|
4311
4465
|
]
|
|
4312
4466
|
}),
|
|
4313
|
-
error && /* @__PURE__ */
|
|
4467
|
+
error && /* @__PURE__ */ jsxs29(Alert2, {
|
|
4314
4468
|
variant: "destructive",
|
|
4315
4469
|
children: [
|
|
4316
|
-
/* @__PURE__ */
|
|
4470
|
+
/* @__PURE__ */ jsx44(AlertTitle2, {
|
|
4317
4471
|
children: "Request failed"
|
|
4318
4472
|
}),
|
|
4319
|
-
/* @__PURE__ */
|
|
4473
|
+
/* @__PURE__ */ jsx44(AlertDescription2, {
|
|
4320
4474
|
children: error
|
|
4321
4475
|
})
|
|
4322
4476
|
]
|
|
4323
4477
|
}),
|
|
4324
|
-
/* @__PURE__ */
|
|
4478
|
+
/* @__PURE__ */ jsxs29(Button2, {
|
|
4325
4479
|
type: "submit",
|
|
4326
4480
|
disabled: disabled || pending,
|
|
4327
4481
|
children: [
|
|
4328
|
-
pending && /* @__PURE__ */
|
|
4482
|
+
pending && /* @__PURE__ */ jsx44(Spinner2, {
|
|
4329
4483
|
"data-icon": "inline-start"
|
|
4330
4484
|
}),
|
|
4331
4485
|
mode === "reset-password" ? "Send reset link" : title
|
|
@@ -4336,14 +4490,14 @@ function AuthForm2({
|
|
|
4336
4490
|
})
|
|
4337
4491
|
})
|
|
4338
4492
|
}),
|
|
4339
|
-
footer && /* @__PURE__ */
|
|
4493
|
+
footer && /* @__PURE__ */ jsx44(CardFooter2, {
|
|
4340
4494
|
children: footer
|
|
4341
4495
|
})
|
|
4342
4496
|
]
|
|
4343
4497
|
});
|
|
4344
4498
|
}
|
|
4345
4499
|
// src/components/SettingsSection.tsx
|
|
4346
|
-
import { jsx as
|
|
4500
|
+
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4347
4501
|
function SettingsSection2({
|
|
4348
4502
|
title,
|
|
4349
4503
|
description,
|
|
@@ -4356,48 +4510,48 @@ function SettingsSection2({
|
|
|
4356
4510
|
destructive = false,
|
|
4357
4511
|
density
|
|
4358
4512
|
}) {
|
|
4359
|
-
return /* @__PURE__ */
|
|
4513
|
+
return /* @__PURE__ */ jsx45("form", {
|
|
4360
4514
|
"aria-label": title,
|
|
4361
4515
|
onSubmit,
|
|
4362
4516
|
"aria-busy": pending,
|
|
4363
|
-
children: /* @__PURE__ */
|
|
4517
|
+
children: /* @__PURE__ */ jsxs30(Card2, {
|
|
4364
4518
|
density,
|
|
4365
4519
|
children: [
|
|
4366
|
-
/* @__PURE__ */
|
|
4520
|
+
/* @__PURE__ */ jsxs30(CardHeader2, {
|
|
4367
4521
|
children: [
|
|
4368
|
-
/* @__PURE__ */
|
|
4522
|
+
/* @__PURE__ */ jsx45(CardTitle2, {
|
|
4369
4523
|
children: title
|
|
4370
4524
|
}),
|
|
4371
|
-
description && /* @__PURE__ */
|
|
4525
|
+
description && /* @__PURE__ */ jsx45(CardDescription2, {
|
|
4372
4526
|
children: description
|
|
4373
4527
|
})
|
|
4374
4528
|
]
|
|
4375
4529
|
}),
|
|
4376
|
-
/* @__PURE__ */
|
|
4377
|
-
children: /* @__PURE__ */
|
|
4530
|
+
/* @__PURE__ */ jsx45(CardContent2, {
|
|
4531
|
+
children: /* @__PURE__ */ jsxs30("fieldset", {
|
|
4378
4532
|
disabled: disabled || pending,
|
|
4379
4533
|
className: "min-w-0 border-0 p-0",
|
|
4380
4534
|
children: [
|
|
4381
|
-
/* @__PURE__ */
|
|
4535
|
+
/* @__PURE__ */ jsx45("legend", {
|
|
4382
4536
|
className: "sr-only",
|
|
4383
4537
|
children: title
|
|
4384
4538
|
}),
|
|
4385
|
-
/* @__PURE__ */
|
|
4539
|
+
/* @__PURE__ */ jsx45(FieldGroup2, {
|
|
4386
4540
|
children
|
|
4387
4541
|
})
|
|
4388
4542
|
]
|
|
4389
4543
|
})
|
|
4390
4544
|
}),
|
|
4391
|
-
/* @__PURE__ */
|
|
4545
|
+
/* @__PURE__ */ jsxs30(CardFooter2, {
|
|
4392
4546
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4393
4547
|
children: [
|
|
4394
4548
|
footer,
|
|
4395
|
-
/* @__PURE__ */
|
|
4549
|
+
/* @__PURE__ */ jsxs30(Button2, {
|
|
4396
4550
|
type: "submit",
|
|
4397
4551
|
variant: destructive ? "destructive" : "default",
|
|
4398
4552
|
disabled: disabled || pending,
|
|
4399
4553
|
children: [
|
|
4400
|
-
pending && /* @__PURE__ */
|
|
4554
|
+
pending && /* @__PURE__ */ jsx45(Spinner2, {
|
|
4401
4555
|
"data-icon": "inline-start"
|
|
4402
4556
|
}),
|
|
4403
4557
|
saveLabel
|
|
@@ -4410,7 +4564,7 @@ function SettingsSection2({
|
|
|
4410
4564
|
});
|
|
4411
4565
|
}
|
|
4412
4566
|
// src/components/TagInput.tsx
|
|
4413
|
-
import { jsx as
|
|
4567
|
+
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4414
4568
|
function TagInput2({
|
|
4415
4569
|
label,
|
|
4416
4570
|
options,
|
|
@@ -4423,7 +4577,7 @@ function TagInput2({
|
|
|
4423
4577
|
density
|
|
4424
4578
|
}) {
|
|
4425
4579
|
const anchor = useComboboxAnchor2();
|
|
4426
|
-
return /* @__PURE__ */
|
|
4580
|
+
return /* @__PURE__ */ jsxs31(Combobox2, {
|
|
4427
4581
|
items: options,
|
|
4428
4582
|
multiple: true,
|
|
4429
4583
|
value,
|
|
@@ -4432,33 +4586,33 @@ function TagInput2({
|
|
|
4432
4586
|
disabled,
|
|
4433
4587
|
name,
|
|
4434
4588
|
children: [
|
|
4435
|
-
/* @__PURE__ */
|
|
4589
|
+
/* @__PURE__ */ jsxs31(ComboboxChips2, {
|
|
4436
4590
|
ref: anchor,
|
|
4437
4591
|
density,
|
|
4438
4592
|
children: [
|
|
4439
|
-
/* @__PURE__ */
|
|
4440
|
-
children: (values) => values.map((item) => /* @__PURE__ */
|
|
4593
|
+
/* @__PURE__ */ jsx46(ComboboxValue2, {
|
|
4594
|
+
children: (values) => values.map((item) => /* @__PURE__ */ jsx46(ComboboxChip2, {
|
|
4441
4595
|
removeLabel: `Remove ${item}`,
|
|
4442
4596
|
children: item
|
|
4443
4597
|
}, item))
|
|
4444
4598
|
}),
|
|
4445
|
-
/* @__PURE__ */
|
|
4599
|
+
/* @__PURE__ */ jsx46(ComboboxChipsInput2, {
|
|
4446
4600
|
"aria-label": label,
|
|
4447
4601
|
placeholder
|
|
4448
4602
|
})
|
|
4449
4603
|
]
|
|
4450
4604
|
}),
|
|
4451
|
-
/* @__PURE__ */
|
|
4605
|
+
/* @__PURE__ */ jsxs31(ComboboxContent2, {
|
|
4452
4606
|
anchor,
|
|
4453
4607
|
density,
|
|
4454
4608
|
children: [
|
|
4455
|
-
/* @__PURE__ */
|
|
4609
|
+
/* @__PURE__ */ jsx46(ComboboxEmpty2, {
|
|
4456
4610
|
children: "No matching tags."
|
|
4457
4611
|
}),
|
|
4458
|
-
/* @__PURE__ */
|
|
4459
|
-
children: /* @__PURE__ */
|
|
4460
|
-
children: /* @__PURE__ */
|
|
4461
|
-
children: (item) => /* @__PURE__ */
|
|
4612
|
+
/* @__PURE__ */ jsx46(ComboboxList2, {
|
|
4613
|
+
children: /* @__PURE__ */ jsx46(ComboboxGroup2, {
|
|
4614
|
+
children: /* @__PURE__ */ jsx46(ComboboxCollection2, {
|
|
4615
|
+
children: (item) => /* @__PURE__ */ jsx46(ComboboxItem2, {
|
|
4462
4616
|
value: item,
|
|
4463
4617
|
children: item
|
|
4464
4618
|
}, item)
|
|
@@ -4471,7 +4625,7 @@ function TagInput2({
|
|
|
4471
4625
|
});
|
|
4472
4626
|
}
|
|
4473
4627
|
// src/components/FilterBar.tsx
|
|
4474
|
-
import { jsx as
|
|
4628
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4475
4629
|
function FilterBar2({
|
|
4476
4630
|
label,
|
|
4477
4631
|
search,
|
|
@@ -4482,26 +4636,26 @@ function FilterBar2({
|
|
|
4482
4636
|
disabled,
|
|
4483
4637
|
density
|
|
4484
4638
|
}) {
|
|
4485
|
-
return /* @__PURE__ */
|
|
4639
|
+
return /* @__PURE__ */ jsxs32("fieldset", {
|
|
4486
4640
|
"aria-label": label,
|
|
4487
4641
|
disabled,
|
|
4488
4642
|
"data-density": density,
|
|
4489
4643
|
className: "flex min-w-0 flex-wrap items-center gap-2",
|
|
4490
4644
|
children: [
|
|
4491
|
-
/* @__PURE__ */
|
|
4645
|
+
/* @__PURE__ */ jsx47(Input2, {
|
|
4492
4646
|
"aria-label": `Search ${label}`,
|
|
4493
4647
|
type: "search",
|
|
4494
4648
|
value: search,
|
|
4495
4649
|
onChange: (event) => onSearchChange(event.target.value),
|
|
4496
4650
|
className: "min-w-40 flex-1"
|
|
4497
4651
|
}),
|
|
4498
|
-
filters.map((filter) => /* @__PURE__ */
|
|
4652
|
+
filters.map((filter) => /* @__PURE__ */ jsx47(OptionSelect2, {
|
|
4499
4653
|
"aria-label": filter.label,
|
|
4500
4654
|
value: value[filter.id] ?? "",
|
|
4501
4655
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4502
4656
|
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4503
4657
|
}, filter.id)),
|
|
4504
|
-
/* @__PURE__ */
|
|
4658
|
+
/* @__PURE__ */ jsx47(Button2, {
|
|
4505
4659
|
type: "button",
|
|
4506
4660
|
variant: "ghost",
|
|
4507
4661
|
disabled: !search && !Object.values(value).some(Boolean),
|
|
@@ -4515,7 +4669,7 @@ function FilterBar2({
|
|
|
4515
4669
|
});
|
|
4516
4670
|
}
|
|
4517
4671
|
// src/components/BarList.tsx
|
|
4518
|
-
import { jsx as
|
|
4672
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4519
4673
|
function BarList2({
|
|
4520
4674
|
label,
|
|
4521
4675
|
items,
|
|
@@ -4524,14 +4678,14 @@ function BarList2({
|
|
|
4524
4678
|
density
|
|
4525
4679
|
}) {
|
|
4526
4680
|
const max = Math.max(1, ...items.map((item) => item.value));
|
|
4527
|
-
return /* @__PURE__ */
|
|
4681
|
+
return /* @__PURE__ */ jsxs33("section", {
|
|
4528
4682
|
"aria-label": label,
|
|
4529
4683
|
"data-density": density,
|
|
4530
4684
|
children: [
|
|
4531
|
-
/* @__PURE__ */
|
|
4685
|
+
/* @__PURE__ */ jsx48("ul", {
|
|
4532
4686
|
className: "grid gap-3",
|
|
4533
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4534
|
-
children: /* @__PURE__ */
|
|
4687
|
+
children: items.map((item) => /* @__PURE__ */ jsx48("li", {
|
|
4688
|
+
children: /* @__PURE__ */ jsxs33(Meter2, {
|
|
4535
4689
|
min: 0,
|
|
4536
4690
|
max,
|
|
4537
4691
|
value: item.value,
|
|
@@ -4539,11 +4693,11 @@ function BarList2({
|
|
|
4539
4693
|
format: { maximumFractionDigits: 2 },
|
|
4540
4694
|
className: "gap-y-1",
|
|
4541
4695
|
children: [
|
|
4542
|
-
/* @__PURE__ */
|
|
4696
|
+
/* @__PURE__ */ jsxs33("div", {
|
|
4543
4697
|
className: "flex w-full items-center justify-between gap-3 text-sm",
|
|
4544
4698
|
children: [
|
|
4545
|
-
/* @__PURE__ */
|
|
4546
|
-
children: onItemSelect ? /* @__PURE__ */
|
|
4699
|
+
/* @__PURE__ */ jsx48(MeterLabel2, {
|
|
4700
|
+
children: onItemSelect ? /* @__PURE__ */ jsx48(Button2, {
|
|
4547
4701
|
type: "button",
|
|
4548
4702
|
variant: "link",
|
|
4549
4703
|
className: "h-auto p-0",
|
|
@@ -4551,19 +4705,19 @@ function BarList2({
|
|
|
4551
4705
|
children: item.label
|
|
4552
4706
|
}) : item.label
|
|
4553
4707
|
}),
|
|
4554
|
-
/* @__PURE__ */
|
|
4708
|
+
/* @__PURE__ */ jsx48(MeterValue2, {
|
|
4555
4709
|
children: () => valueFormatter(item.value)
|
|
4556
4710
|
})
|
|
4557
4711
|
]
|
|
4558
4712
|
}),
|
|
4559
|
-
/* @__PURE__ */
|
|
4560
|
-
children: /* @__PURE__ */
|
|
4713
|
+
/* @__PURE__ */ jsx48(MeterTrack2, {
|
|
4714
|
+
children: /* @__PURE__ */ jsx48(MeterIndicator2, {})
|
|
4561
4715
|
})
|
|
4562
4716
|
]
|
|
4563
4717
|
})
|
|
4564
4718
|
}, item.id))
|
|
4565
4719
|
}),
|
|
4566
|
-
!items.length && /* @__PURE__ */
|
|
4720
|
+
!items.length && /* @__PURE__ */ jsx48("p", {
|
|
4567
4721
|
role: "status",
|
|
4568
4722
|
className: "text-sm text-muted-foreground",
|
|
4569
4723
|
children: "No data available."
|
|
@@ -4572,23 +4726,23 @@ function BarList2({
|
|
|
4572
4726
|
});
|
|
4573
4727
|
}
|
|
4574
4728
|
// src/components/StatusTracker.tsx
|
|
4575
|
-
import { jsx as
|
|
4729
|
+
import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4576
4730
|
var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
|
|
4577
4731
|
function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
4578
|
-
return /* @__PURE__ */
|
|
4579
|
-
children: /* @__PURE__ */
|
|
4732
|
+
return /* @__PURE__ */ jsx49(TooltipProvider2, {
|
|
4733
|
+
children: /* @__PURE__ */ jsx49("div", {
|
|
4580
4734
|
role: "group",
|
|
4581
4735
|
"aria-label": label,
|
|
4582
4736
|
"data-density": density,
|
|
4583
4737
|
className: "flex min-w-0 gap-1",
|
|
4584
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4738
|
+
children: items.map((item) => /* @__PURE__ */ jsxs34(Tooltip2, {
|
|
4585
4739
|
children: [
|
|
4586
|
-
/* @__PURE__ */
|
|
4740
|
+
/* @__PURE__ */ jsx49(TooltipTrigger2, {
|
|
4587
4741
|
"aria-label": `${item.label}: ${item.status}`,
|
|
4588
4742
|
onClick: () => onItemSelect?.(item),
|
|
4589
4743
|
className: cn2("h-8 min-w-2 flex-1 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", statusClasses[item.status])
|
|
4590
4744
|
}),
|
|
4591
|
-
/* @__PURE__ */
|
|
4745
|
+
/* @__PURE__ */ jsxs34(TooltipContent2, {
|
|
4592
4746
|
children: [
|
|
4593
4747
|
item.label,
|
|
4594
4748
|
": ",
|
|
@@ -4601,7 +4755,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
|
4601
4755
|
});
|
|
4602
4756
|
}
|
|
4603
4757
|
// src/components/DashboardLayout.tsx
|
|
4604
|
-
import { jsx as
|
|
4758
|
+
import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4605
4759
|
function DashboardLayout2({
|
|
4606
4760
|
title,
|
|
4607
4761
|
description,
|
|
@@ -4612,24 +4766,24 @@ function DashboardLayout2({
|
|
|
4612
4766
|
footer,
|
|
4613
4767
|
density
|
|
4614
4768
|
}) {
|
|
4615
|
-
return /* @__PURE__ */
|
|
4769
|
+
return /* @__PURE__ */ jsxs35("div", {
|
|
4616
4770
|
"data-density": density,
|
|
4617
4771
|
"data-scroll": "none",
|
|
4618
4772
|
className: "grid min-w-0 gap-6",
|
|
4619
4773
|
children: [
|
|
4620
|
-
/* @__PURE__ */
|
|
4774
|
+
/* @__PURE__ */ jsx50(PageHeader2, {
|
|
4621
4775
|
title,
|
|
4622
4776
|
description,
|
|
4623
4777
|
actions
|
|
4624
4778
|
}),
|
|
4625
4779
|
filters,
|
|
4626
|
-
stats.length > 0 && /* @__PURE__ */
|
|
4780
|
+
stats.length > 0 && /* @__PURE__ */ jsx50("div", {
|
|
4627
4781
|
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
|
|
4628
|
-
children: stats.map(({ id, ...stat }) => /* @__PURE__ */
|
|
4782
|
+
children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx50(StatCard2, {
|
|
4629
4783
|
...stat
|
|
4630
4784
|
}, id))
|
|
4631
4785
|
}),
|
|
4632
|
-
/* @__PURE__ */
|
|
4786
|
+
/* @__PURE__ */ jsx50("div", {
|
|
4633
4787
|
className: "grid min-w-0 gap-4",
|
|
4634
4788
|
children
|
|
4635
4789
|
}),
|
|
@@ -4638,18 +4792,18 @@ function DashboardLayout2({
|
|
|
4638
4792
|
});
|
|
4639
4793
|
}
|
|
4640
4794
|
// src/components/BillingUsage.tsx
|
|
4641
|
-
import { jsx as
|
|
4795
|
+
import { jsx as jsx51, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4642
4796
|
function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
|
|
4643
|
-
return /* @__PURE__ */
|
|
4797
|
+
return /* @__PURE__ */ jsxs36(Card2, {
|
|
4644
4798
|
density,
|
|
4645
4799
|
"aria-label": "Billing and usage",
|
|
4646
4800
|
children: [
|
|
4647
|
-
/* @__PURE__ */
|
|
4801
|
+
/* @__PURE__ */ jsxs36(CardHeader2, {
|
|
4648
4802
|
children: [
|
|
4649
|
-
/* @__PURE__ */
|
|
4803
|
+
/* @__PURE__ */ jsx51(CardTitle2, {
|
|
4650
4804
|
children: plan
|
|
4651
4805
|
}),
|
|
4652
|
-
/* @__PURE__ */
|
|
4806
|
+
/* @__PURE__ */ jsxs36(CardDescription2, {
|
|
4653
4807
|
children: [
|
|
4654
4808
|
price,
|
|
4655
4809
|
" · ",
|
|
@@ -4658,32 +4812,32 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4658
4812
|
})
|
|
4659
4813
|
]
|
|
4660
4814
|
}),
|
|
4661
|
-
/* @__PURE__ */
|
|
4815
|
+
/* @__PURE__ */ jsx51(CardContent2, {
|
|
4662
4816
|
className: "grid gap-4",
|
|
4663
|
-
children: metrics.map((metric) => /* @__PURE__ */
|
|
4817
|
+
children: metrics.map((metric) => /* @__PURE__ */ jsxs36(Meter2, {
|
|
4664
4818
|
value: metric.used,
|
|
4665
4819
|
max: metric.limit,
|
|
4666
4820
|
"aria-label": metric.label,
|
|
4667
4821
|
children: [
|
|
4668
|
-
/* @__PURE__ */
|
|
4822
|
+
/* @__PURE__ */ jsxs36("div", {
|
|
4669
4823
|
className: "mb-2 flex items-center justify-between gap-3 text-sm",
|
|
4670
4824
|
children: [
|
|
4671
|
-
/* @__PURE__ */
|
|
4825
|
+
/* @__PURE__ */ jsx51(MeterLabel2, {
|
|
4672
4826
|
children: metric.label
|
|
4673
4827
|
}),
|
|
4674
|
-
/* @__PURE__ */
|
|
4828
|
+
/* @__PURE__ */ jsx51(MeterValue2, {
|
|
4675
4829
|
children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
|
|
4676
4830
|
})
|
|
4677
4831
|
]
|
|
4678
4832
|
}),
|
|
4679
|
-
/* @__PURE__ */
|
|
4680
|
-
children: /* @__PURE__ */
|
|
4833
|
+
/* @__PURE__ */ jsx51(MeterTrack2, {
|
|
4834
|
+
children: /* @__PURE__ */ jsx51(MeterIndicator2, {})
|
|
4681
4835
|
})
|
|
4682
4836
|
]
|
|
4683
4837
|
}, metric.id))
|
|
4684
4838
|
}),
|
|
4685
|
-
/* @__PURE__ */
|
|
4686
|
-
children: /* @__PURE__ */
|
|
4839
|
+
/* @__PURE__ */ jsx51(CardFooter2, {
|
|
4840
|
+
children: /* @__PURE__ */ jsx51(Button2, {
|
|
4687
4841
|
type: "button",
|
|
4688
4842
|
variant: "outline",
|
|
4689
4843
|
onClick: onManage,
|
|
@@ -4694,4 +4848,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4694
4848
|
]
|
|
4695
4849
|
});
|
|
4696
4850
|
}
|
|
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 };
|
|
4851
|
+
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, 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 };
|