@cupcodev/ui 3.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/dist/index.cjs +154 -128
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +225 -199
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2795,47 +2795,6 @@ var NavbarCupcode_default = NavbarCupcode;
|
|
|
2795
2795
|
// src/components/cupcode/MainNavbar.tsx
|
|
2796
2796
|
import { useCallback as useCallback6, useEffect as useEffect16, useMemo as useMemo9, useRef as useRef12, useState as useState13 } from "react";
|
|
2797
2797
|
|
|
2798
|
-
// src/components/cupcode/TelescupImage.tsx
|
|
2799
|
-
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2800
|
-
var TelescupImage = ({
|
|
2801
|
-
apiId,
|
|
2802
|
-
imageWidth,
|
|
2803
|
-
imageHeight,
|
|
2804
|
-
fit = "cover",
|
|
2805
|
-
format = "avif",
|
|
2806
|
-
quality = 60,
|
|
2807
|
-
lang = "pt-BR",
|
|
2808
|
-
alt,
|
|
2809
|
-
title,
|
|
2810
|
-
loading = "lazy",
|
|
2811
|
-
className,
|
|
2812
|
-
...props
|
|
2813
|
-
}) => {
|
|
2814
|
-
const { url, meta } = useTelescupImage(
|
|
2815
|
-
{
|
|
2816
|
-
id: apiId,
|
|
2817
|
-
width: imageWidth,
|
|
2818
|
-
height: imageHeight,
|
|
2819
|
-
fit,
|
|
2820
|
-
format,
|
|
2821
|
-
quality
|
|
2822
|
-
},
|
|
2823
|
-
lang
|
|
2824
|
-
);
|
|
2825
|
-
return /* @__PURE__ */ jsx22(
|
|
2826
|
-
"img",
|
|
2827
|
-
{
|
|
2828
|
-
src: url,
|
|
2829
|
-
"data-api-id": apiId,
|
|
2830
|
-
alt: alt || meta.alt || "",
|
|
2831
|
-
title: title || meta.title,
|
|
2832
|
-
loading,
|
|
2833
|
-
className,
|
|
2834
|
-
...props
|
|
2835
|
-
}
|
|
2836
|
-
);
|
|
2837
|
-
};
|
|
2838
|
-
|
|
2839
2798
|
// src/components/cupcode/UserMenuCupcode.tsx
|
|
2840
2799
|
import * as DialogPrimitive3 from "@radix-ui/react-dialog";
|
|
2841
2800
|
import {
|
|
@@ -2895,7 +2854,7 @@ import {
|
|
|
2895
2854
|
import * as React10 from "react";
|
|
2896
2855
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2897
2856
|
import { Check, ChevronDown as ChevronDown2, ChevronUp } from "lucide-react";
|
|
2898
|
-
import { jsx as
|
|
2857
|
+
import { jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2899
2858
|
var Select = SelectPrimitive.Root;
|
|
2900
2859
|
var SelectGroup = SelectPrimitive.Group;
|
|
2901
2860
|
var SelectValue = SelectPrimitive.Value;
|
|
@@ -2910,32 +2869,32 @@ var SelectTrigger = React10.forwardRef(({ className, children, ...props }, ref)
|
|
|
2910
2869
|
...props,
|
|
2911
2870
|
children: [
|
|
2912
2871
|
children,
|
|
2913
|
-
/* @__PURE__ */
|
|
2872
|
+
/* @__PURE__ */ jsx22(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx22(ChevronDown2, { className: "h-4 w-4 opacity-50" }) })
|
|
2914
2873
|
]
|
|
2915
2874
|
}
|
|
2916
2875
|
));
|
|
2917
2876
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2918
|
-
var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2877
|
+
var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2919
2878
|
SelectPrimitive.ScrollUpButton,
|
|
2920
2879
|
{
|
|
2921
2880
|
ref,
|
|
2922
2881
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
2923
2882
|
...props,
|
|
2924
|
-
children: /* @__PURE__ */
|
|
2883
|
+
children: /* @__PURE__ */ jsx22(ChevronUp, { className: "h-4 w-4" })
|
|
2925
2884
|
}
|
|
2926
2885
|
));
|
|
2927
2886
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2928
|
-
var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2887
|
+
var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2929
2888
|
SelectPrimitive.ScrollDownButton,
|
|
2930
2889
|
{
|
|
2931
2890
|
ref,
|
|
2932
2891
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
2933
2892
|
...props,
|
|
2934
|
-
children: /* @__PURE__ */
|
|
2893
|
+
children: /* @__PURE__ */ jsx22(ChevronDown2, { className: "h-4 w-4" })
|
|
2935
2894
|
}
|
|
2936
2895
|
));
|
|
2937
2896
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2938
|
-
var SelectContent = React10.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */
|
|
2897
|
+
var SelectContent = React10.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx22(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs18(
|
|
2939
2898
|
SelectPrimitive.Content,
|
|
2940
2899
|
{
|
|
2941
2900
|
ref,
|
|
@@ -2947,8 +2906,8 @@ var SelectContent = React10.forwardRef(({ className, children, position = "poppe
|
|
|
2947
2906
|
position,
|
|
2948
2907
|
...props,
|
|
2949
2908
|
children: [
|
|
2950
|
-
/* @__PURE__ */
|
|
2951
|
-
/* @__PURE__ */
|
|
2909
|
+
/* @__PURE__ */ jsx22(SelectScrollUpButton, {}),
|
|
2910
|
+
/* @__PURE__ */ jsx22(
|
|
2952
2911
|
SelectPrimitive.Viewport,
|
|
2953
2912
|
{
|
|
2954
2913
|
className: cn(
|
|
@@ -2958,12 +2917,12 @@ var SelectContent = React10.forwardRef(({ className, children, position = "poppe
|
|
|
2958
2917
|
children
|
|
2959
2918
|
}
|
|
2960
2919
|
),
|
|
2961
|
-
/* @__PURE__ */
|
|
2920
|
+
/* @__PURE__ */ jsx22(SelectScrollDownButton, {})
|
|
2962
2921
|
]
|
|
2963
2922
|
}
|
|
2964
2923
|
) }));
|
|
2965
2924
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2966
|
-
var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2925
|
+
var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(SelectPrimitive.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
|
|
2967
2926
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2968
2927
|
var SelectItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs18(
|
|
2969
2928
|
SelectPrimitive.Item,
|
|
@@ -2975,20 +2934,20 @@ var SelectItem = React10.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2975
2934
|
),
|
|
2976
2935
|
...props,
|
|
2977
2936
|
children: [
|
|
2978
|
-
/* @__PURE__ */
|
|
2979
|
-
/* @__PURE__ */
|
|
2937
|
+
/* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(Check, { className: "h-4 w-4" }) }) }),
|
|
2938
|
+
/* @__PURE__ */ jsx22(SelectPrimitive.ItemText, { children })
|
|
2980
2939
|
]
|
|
2981
2940
|
}
|
|
2982
2941
|
));
|
|
2983
2942
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2984
|
-
var SelectSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2943
|
+
var SelectSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
2985
2944
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2986
2945
|
|
|
2987
2946
|
// src/components/ui/avatar.tsx
|
|
2988
2947
|
import * as React11 from "react";
|
|
2989
2948
|
import * as AvatarPrimitive2 from "@radix-ui/react-avatar";
|
|
2990
|
-
import { jsx as
|
|
2991
|
-
var Avatar2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2949
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2950
|
+
var Avatar2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2992
2951
|
AvatarPrimitive2.Root,
|
|
2993
2952
|
{
|
|
2994
2953
|
ref,
|
|
@@ -2997,7 +2956,7 @@ var Avatar2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2997
2956
|
}
|
|
2998
2957
|
));
|
|
2999
2958
|
Avatar2.displayName = AvatarPrimitive2.Root.displayName;
|
|
3000
|
-
var AvatarImage2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2959
|
+
var AvatarImage2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
3001
2960
|
AvatarPrimitive2.Image,
|
|
3002
2961
|
{
|
|
3003
2962
|
ref,
|
|
@@ -3006,7 +2965,7 @@ var AvatarImage2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3006
2965
|
}
|
|
3007
2966
|
));
|
|
3008
2967
|
AvatarImage2.displayName = AvatarPrimitive2.Image.displayName;
|
|
3009
|
-
var AvatarFallback2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2968
|
+
var AvatarFallback2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
3010
2969
|
AvatarPrimitive2.Fallback,
|
|
3011
2970
|
{
|
|
3012
2971
|
ref,
|
|
@@ -3020,7 +2979,7 @@ AvatarFallback2.displayName = AvatarPrimitive2.Fallback.displayName;
|
|
|
3020
2979
|
import * as React12 from "react";
|
|
3021
2980
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3022
2981
|
import { Check as Check2, ChevronRight, Circle } from "lucide-react";
|
|
3023
|
-
import { jsx as
|
|
2982
|
+
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3024
2983
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
3025
2984
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
3026
2985
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
@@ -3039,12 +2998,12 @@ var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, .
|
|
|
3039
2998
|
...props,
|
|
3040
2999
|
children: [
|
|
3041
3000
|
children,
|
|
3042
|
-
/* @__PURE__ */
|
|
3001
|
+
/* @__PURE__ */ jsx24(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
3043
3002
|
]
|
|
3044
3003
|
}
|
|
3045
3004
|
));
|
|
3046
3005
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
3047
|
-
var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3006
|
+
var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
3048
3007
|
DropdownMenuPrimitive.SubContent,
|
|
3049
3008
|
{
|
|
3050
3009
|
ref,
|
|
@@ -3056,7 +3015,7 @@ var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) =
|
|
|
3056
3015
|
}
|
|
3057
3016
|
));
|
|
3058
3017
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
3059
|
-
var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
3018
|
+
var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx24(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx24(
|
|
3060
3019
|
DropdownMenuPrimitive.Content,
|
|
3061
3020
|
{
|
|
3062
3021
|
ref,
|
|
@@ -3069,7 +3028,7 @@ var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
3069
3028
|
}
|
|
3070
3029
|
) }));
|
|
3071
3030
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
3072
|
-
var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
3031
|
+
var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
3073
3032
|
DropdownMenuPrimitive.Item,
|
|
3074
3033
|
{
|
|
3075
3034
|
ref,
|
|
@@ -3093,7 +3052,7 @@ var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checke
|
|
|
3093
3052
|
checked,
|
|
3094
3053
|
...props,
|
|
3095
3054
|
children: [
|
|
3096
|
-
/* @__PURE__ */
|
|
3055
|
+
/* @__PURE__ */ jsx24("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx24(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx24(Check2, { className: "h-4 w-4" }) }) }),
|
|
3097
3056
|
children
|
|
3098
3057
|
]
|
|
3099
3058
|
}
|
|
@@ -3109,13 +3068,13 @@ var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props
|
|
|
3109
3068
|
),
|
|
3110
3069
|
...props,
|
|
3111
3070
|
children: [
|
|
3112
|
-
/* @__PURE__ */
|
|
3071
|
+
/* @__PURE__ */ jsx24("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx24(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx24(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
3113
3072
|
children
|
|
3114
3073
|
]
|
|
3115
3074
|
}
|
|
3116
3075
|
));
|
|
3117
3076
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
3118
|
-
var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
3077
|
+
var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
3119
3078
|
DropdownMenuPrimitive.Label,
|
|
3120
3079
|
{
|
|
3121
3080
|
ref,
|
|
@@ -3124,10 +3083,10 @@ var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref)
|
|
|
3124
3083
|
}
|
|
3125
3084
|
));
|
|
3126
3085
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
3127
|
-
var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3086
|
+
var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
3128
3087
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
3129
3088
|
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
3130
|
-
return /* @__PURE__ */
|
|
3089
|
+
return /* @__PURE__ */ jsx24("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
3131
3090
|
};
|
|
3132
3091
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
3133
3092
|
|
|
@@ -3139,7 +3098,7 @@ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
|
3139
3098
|
import * as React13 from "react";
|
|
3140
3099
|
import { Slot } from "@radix-ui/react-slot";
|
|
3141
3100
|
import { cva } from "class-variance-authority";
|
|
3142
|
-
import { jsx as
|
|
3101
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
3143
3102
|
var buttonVariants = cva(
|
|
3144
3103
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
3145
3104
|
{
|
|
@@ -3168,17 +3127,17 @@ var buttonVariants = cva(
|
|
|
3168
3127
|
var Button = React13.forwardRef(
|
|
3169
3128
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
3170
3129
|
const Comp = asChild ? Slot : "button";
|
|
3171
|
-
return /* @__PURE__ */
|
|
3130
|
+
return /* @__PURE__ */ jsx25(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
|
|
3172
3131
|
}
|
|
3173
3132
|
);
|
|
3174
3133
|
Button.displayName = "Button";
|
|
3175
3134
|
|
|
3176
3135
|
// src/components/ui/alert-dialog.tsx
|
|
3177
|
-
import { jsx as
|
|
3136
|
+
import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3178
3137
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
3179
3138
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
3180
3139
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
3181
|
-
var AlertDialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3140
|
+
var AlertDialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
3182
3141
|
AlertDialogPrimitive.Overlay,
|
|
3183
3142
|
{
|
|
3184
3143
|
className: cn(
|
|
@@ -3191,8 +3150,8 @@ var AlertDialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3191
3150
|
));
|
|
3192
3151
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
3193
3152
|
var AlertDialogContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs20(AlertDialogPortal, { children: [
|
|
3194
|
-
/* @__PURE__ */
|
|
3195
|
-
/* @__PURE__ */
|
|
3153
|
+
/* @__PURE__ */ jsx26(AlertDialogOverlay, {}),
|
|
3154
|
+
/* @__PURE__ */ jsx26(
|
|
3196
3155
|
AlertDialogPrimitive.Content,
|
|
3197
3156
|
{
|
|
3198
3157
|
ref,
|
|
@@ -3205,17 +3164,17 @@ var AlertDialogContent = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3205
3164
|
)
|
|
3206
3165
|
] }));
|
|
3207
3166
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
3208
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
3167
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx26("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
3209
3168
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
3210
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
3169
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx26("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
3211
3170
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
3212
|
-
var AlertDialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3171
|
+
var AlertDialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
3213
3172
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
3214
|
-
var AlertDialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3173
|
+
var AlertDialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
3215
3174
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
3216
|
-
var AlertDialogAction = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3175
|
+
var AlertDialogAction = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
3217
3176
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
3218
|
-
var AlertDialogCancel = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3177
|
+
var AlertDialogCancel = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
3219
3178
|
AlertDialogPrimitive.Cancel,
|
|
3220
3179
|
{
|
|
3221
3180
|
ref,
|
|
@@ -3229,12 +3188,12 @@ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
|
3229
3188
|
import * as React15 from "react";
|
|
3230
3189
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
3231
3190
|
import { X as X4 } from "lucide-react";
|
|
3232
|
-
import { jsx as
|
|
3191
|
+
import { jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3233
3192
|
var Dialog = DialogPrimitive2.Root;
|
|
3234
3193
|
var DialogTrigger = DialogPrimitive2.Trigger;
|
|
3235
3194
|
var DialogPortal = DialogPrimitive2.Portal;
|
|
3236
3195
|
var DialogClose = DialogPrimitive2.Close;
|
|
3237
|
-
var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3196
|
+
var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
3238
3197
|
DialogPrimitive2.Overlay,
|
|
3239
3198
|
{
|
|
3240
3199
|
ref,
|
|
@@ -3247,7 +3206,7 @@ var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3247
3206
|
));
|
|
3248
3207
|
DialogOverlay.displayName = DialogPrimitive2.Overlay.displayName;
|
|
3249
3208
|
var DialogContent = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs21(DialogPortal, { children: [
|
|
3250
|
-
/* @__PURE__ */
|
|
3209
|
+
/* @__PURE__ */ jsx27(DialogOverlay, {}),
|
|
3251
3210
|
/* @__PURE__ */ jsxs21(
|
|
3252
3211
|
DialogPrimitive2.Content,
|
|
3253
3212
|
{
|
|
@@ -3260,19 +3219,19 @@ var DialogContent = React15.forwardRef(({ className, children, ...props }, ref)
|
|
|
3260
3219
|
children: [
|
|
3261
3220
|
children,
|
|
3262
3221
|
/* @__PURE__ */ jsxs21(DialogPrimitive2.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
3263
|
-
/* @__PURE__ */
|
|
3264
|
-
/* @__PURE__ */
|
|
3222
|
+
/* @__PURE__ */ jsx27(X4, { className: "h-4 w-4" }),
|
|
3223
|
+
/* @__PURE__ */ jsx27("span", { className: "sr-only", children: "Close" })
|
|
3265
3224
|
] })
|
|
3266
3225
|
]
|
|
3267
3226
|
}
|
|
3268
3227
|
)
|
|
3269
3228
|
] }));
|
|
3270
3229
|
DialogContent.displayName = DialogPrimitive2.Content.displayName;
|
|
3271
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
3230
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx27("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
3272
3231
|
DialogHeader.displayName = "DialogHeader";
|
|
3273
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
3232
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx27("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
3274
3233
|
DialogFooter.displayName = "DialogFooter";
|
|
3275
|
-
var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3234
|
+
var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
3276
3235
|
DialogPrimitive2.Title,
|
|
3277
3236
|
{
|
|
3278
3237
|
ref,
|
|
@@ -3281,14 +3240,14 @@ var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3281
3240
|
}
|
|
3282
3241
|
));
|
|
3283
3242
|
DialogTitle.displayName = DialogPrimitive2.Title.displayName;
|
|
3284
|
-
var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3243
|
+
var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(DialogPrimitive2.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
3285
3244
|
DialogDescription.displayName = DialogPrimitive2.Description.displayName;
|
|
3286
3245
|
|
|
3287
3246
|
// src/components/ui/switch.tsx
|
|
3288
3247
|
import * as React16 from "react";
|
|
3289
3248
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
3290
|
-
import { jsx as
|
|
3291
|
-
var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3249
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3250
|
+
var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
3292
3251
|
SwitchPrimitives.Root,
|
|
3293
3252
|
{
|
|
3294
3253
|
className: cn(
|
|
@@ -3297,7 +3256,7 @@ var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3297
3256
|
),
|
|
3298
3257
|
...props,
|
|
3299
3258
|
ref,
|
|
3300
|
-
children: /* @__PURE__ */
|
|
3259
|
+
children: /* @__PURE__ */ jsx28(
|
|
3301
3260
|
SwitchPrimitives.Thumb,
|
|
3302
3261
|
{
|
|
3303
3262
|
className: cn(
|
|
@@ -4971,6 +4930,47 @@ function useTelescupAssets(options) {
|
|
|
4971
4930
|
};
|
|
4972
4931
|
}
|
|
4973
4932
|
|
|
4933
|
+
// src/components/cupcode/TelescupImage.tsx
|
|
4934
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4935
|
+
var TelescupImage = ({
|
|
4936
|
+
apiId,
|
|
4937
|
+
imageWidth,
|
|
4938
|
+
imageHeight,
|
|
4939
|
+
fit = "cover",
|
|
4940
|
+
format = "avif",
|
|
4941
|
+
quality = 60,
|
|
4942
|
+
lang = "pt-BR",
|
|
4943
|
+
alt,
|
|
4944
|
+
title,
|
|
4945
|
+
loading = "lazy",
|
|
4946
|
+
className,
|
|
4947
|
+
...props
|
|
4948
|
+
}) => {
|
|
4949
|
+
const { url, meta } = useTelescupImage(
|
|
4950
|
+
{
|
|
4951
|
+
id: apiId,
|
|
4952
|
+
width: imageWidth,
|
|
4953
|
+
height: imageHeight,
|
|
4954
|
+
fit,
|
|
4955
|
+
format,
|
|
4956
|
+
quality
|
|
4957
|
+
},
|
|
4958
|
+
lang
|
|
4959
|
+
);
|
|
4960
|
+
return /* @__PURE__ */ jsx29(
|
|
4961
|
+
"img",
|
|
4962
|
+
{
|
|
4963
|
+
src: url,
|
|
4964
|
+
"data-api-id": apiId,
|
|
4965
|
+
alt: alt || meta.alt || "",
|
|
4966
|
+
title: title || meta.title,
|
|
4967
|
+
loading,
|
|
4968
|
+
className,
|
|
4969
|
+
...props
|
|
4970
|
+
}
|
|
4971
|
+
);
|
|
4972
|
+
};
|
|
4973
|
+
|
|
4974
4974
|
// src/components/cupcode/TelescupVideo.tsx
|
|
4975
4975
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
4976
4976
|
var TelescupVideo = ({
|
|
@@ -22535,7 +22535,7 @@ var decodeJwt = (token) => {
|
|
|
22535
22535
|
};
|
|
22536
22536
|
|
|
22537
22537
|
// src/components/cupcode/MainNavbar.tsx
|
|
22538
|
-
import { Fragment as Fragment5, jsx as jsx45
|
|
22538
|
+
import { Fragment as Fragment5, jsx as jsx45 } from "react/jsx-runtime";
|
|
22539
22539
|
var parsePositiveInteger = (rawValue, fallback) => {
|
|
22540
22540
|
const parsed = Number(rawValue);
|
|
22541
22541
|
if (!Number.isFinite(parsed) || parsed <= 0) return fallback;
|
|
@@ -22684,6 +22684,16 @@ var PRESENCE_STATUS_LABELS = {
|
|
|
22684
22684
|
designing: "Designing",
|
|
22685
22685
|
offline: "Off-line"
|
|
22686
22686
|
};
|
|
22687
|
+
var LAST_SEEN_MINUTE_MS = 6e4;
|
|
22688
|
+
var LAST_SEEN_HOUR_MS = 60 * LAST_SEEN_MINUTE_MS;
|
|
22689
|
+
var LAST_SEEN_DAY_MS = 24 * LAST_SEEN_HOUR_MS;
|
|
22690
|
+
var TIME_PT_BR_FORMATTER = new Intl.DateTimeFormat("pt-BR", { hour: "2-digit", minute: "2-digit" });
|
|
22691
|
+
var DATE_PT_BR_FORMATTER = new Intl.DateTimeFormat("pt-BR", { day: "2-digit", month: "2-digit" });
|
|
22692
|
+
var DATE_WITH_YEAR_PT_BR_FORMATTER = new Intl.DateTimeFormat("pt-BR", {
|
|
22693
|
+
day: "2-digit",
|
|
22694
|
+
month: "2-digit",
|
|
22695
|
+
year: "numeric"
|
|
22696
|
+
});
|
|
22687
22697
|
var CHAT_FEATURE_FLAGS_STORAGE_KEY = "cc_chat_feature_flags";
|
|
22688
22698
|
var getDefaultChatFeatureFlags = () => ({
|
|
22689
22699
|
hasReadAt: true,
|
|
@@ -22800,6 +22810,41 @@ var toTimestampMs = (value) => {
|
|
|
22800
22810
|
const parsed = new Date(trimmed).getTime();
|
|
22801
22811
|
return Number.isNaN(parsed) ? void 0 : parsed;
|
|
22802
22812
|
};
|
|
22813
|
+
var isSameCalendarDay = (left, right) => {
|
|
22814
|
+
return left.getFullYear() === right.getFullYear() && left.getMonth() === right.getMonth() && left.getDate() === right.getDate();
|
|
22815
|
+
};
|
|
22816
|
+
var isYesterday = (value, nowDate) => {
|
|
22817
|
+
const yesterday = new Date(nowDate);
|
|
22818
|
+
yesterday.setHours(0, 0, 0, 0);
|
|
22819
|
+
yesterday.setDate(yesterday.getDate() - 1);
|
|
22820
|
+
return isSameCalendarDay(value, yesterday);
|
|
22821
|
+
};
|
|
22822
|
+
var formatPresenceLastSeenLabel = (lastActiveAtMs, now = Date.now()) => {
|
|
22823
|
+
const diffMs = Math.max(0, now - lastActiveAtMs);
|
|
22824
|
+
if (diffMs < LAST_SEEN_HOUR_MS) {
|
|
22825
|
+
const diffMinutes = Math.max(1, Math.floor(diffMs / LAST_SEEN_MINUTE_MS));
|
|
22826
|
+
return `Visto por \xFAltimo h\xE1 ${diffMinutes} ${diffMinutes === 1 ? "minuto" : "minutos"}`;
|
|
22827
|
+
}
|
|
22828
|
+
if (diffMs < LAST_SEEN_DAY_MS) {
|
|
22829
|
+
const diffHours = Math.max(1, Math.floor(diffMs / LAST_SEEN_HOUR_MS));
|
|
22830
|
+
return `Visto por \xFAltimo h\xE1 ${diffHours} ${diffHours === 1 ? "hora" : "horas"}`;
|
|
22831
|
+
}
|
|
22832
|
+
const nowDate = new Date(now);
|
|
22833
|
+
const lastActiveDate = new Date(lastActiveAtMs);
|
|
22834
|
+
const timeLabel = TIME_PT_BR_FORMATTER.format(lastActiveDate);
|
|
22835
|
+
if (isSameCalendarDay(lastActiveDate, nowDate)) {
|
|
22836
|
+
return `Visto por \xFAltimo hoje \xE0s ${timeLabel}`;
|
|
22837
|
+
}
|
|
22838
|
+
if (isYesterday(lastActiveDate, nowDate)) {
|
|
22839
|
+
return `Visto por \xFAltimo ontem \xE0s ${timeLabel}`;
|
|
22840
|
+
}
|
|
22841
|
+
if (lastActiveDate.getFullYear() === nowDate.getFullYear()) {
|
|
22842
|
+
const dateLabel = DATE_PT_BR_FORMATTER.format(lastActiveDate);
|
|
22843
|
+
return `Visto por \xFAltimo em ${dateLabel} \xE0s ${timeLabel}`;
|
|
22844
|
+
}
|
|
22845
|
+
const dateWithYearLabel = DATE_WITH_YEAR_PT_BR_FORMATTER.format(lastActiveDate);
|
|
22846
|
+
return `Visto por \xFAltimo em ${dateWithYearLabel} \xE0s ${timeLabel}`;
|
|
22847
|
+
};
|
|
22803
22848
|
var resolveEffectivePresenceStatus = (snapshot, now = Date.now()) => {
|
|
22804
22849
|
if (snapshot.status === "offline") {
|
|
22805
22850
|
return "offline";
|
|
@@ -22825,8 +22870,7 @@ var resolvePresenceStatusLabel = (snapshot, effectiveStatus, now = Date.now()) =
|
|
|
22825
22870
|
}
|
|
22826
22871
|
const lastActiveAtMs = snapshot.lastActiveAtMs;
|
|
22827
22872
|
if ((effectiveStatus === "away" || effectiveStatus === "offline") && typeof lastActiveAtMs === "number" && Number.isFinite(lastActiveAtMs) && now >= lastActiveAtMs) {
|
|
22828
|
-
|
|
22829
|
-
return `On-line h\xE1 ${diffMinutes} min`;
|
|
22873
|
+
return formatPresenceLastSeenLabel(lastActiveAtMs, now);
|
|
22830
22874
|
}
|
|
22831
22875
|
return PRESENCE_STATUS_LABELS[effectiveStatus];
|
|
22832
22876
|
};
|
|
@@ -23128,6 +23172,7 @@ var MainNavbar = ({
|
|
|
23128
23172
|
ctaLabel = "Entrar",
|
|
23129
23173
|
ctaHref = "/login",
|
|
23130
23174
|
pathname,
|
|
23175
|
+
logo,
|
|
23131
23176
|
onNavigate,
|
|
23132
23177
|
authStatus,
|
|
23133
23178
|
authUser,
|
|
@@ -24437,6 +24482,10 @@ var MainNavbar = ({
|
|
|
24437
24482
|
};
|
|
24438
24483
|
});
|
|
24439
24484
|
}, [currentPathname, onNavigate]);
|
|
24485
|
+
const resolvedLogo = useMemo9(() => {
|
|
24486
|
+
if (logo) return logo;
|
|
24487
|
+
return /* @__PURE__ */ jsx45("span", { className: "inline-flex items-center text-base font-semibold tracking-wide text-foreground", children: "Cupcode" });
|
|
24488
|
+
}, [logo]);
|
|
24440
24489
|
const handleCtaClick = () => {
|
|
24441
24490
|
if (onNavigate) {
|
|
24442
24491
|
onNavigate(ctaHref);
|
|
@@ -24662,30 +24711,7 @@ var MainNavbar = ({
|
|
|
24662
24711
|
return /* @__PURE__ */ jsx45(Fragment5, { children: /* @__PURE__ */ jsx45(
|
|
24663
24712
|
NavbarCupcode,
|
|
24664
24713
|
{
|
|
24665
|
-
logo:
|
|
24666
|
-
/* @__PURE__ */ jsx45(
|
|
24667
|
-
TelescupImage,
|
|
24668
|
-
{
|
|
24669
|
-
apiId: "be574751-cf1b-499a-8473-360b4115b447",
|
|
24670
|
-
imageWidth: 40,
|
|
24671
|
-
imageHeight: 40,
|
|
24672
|
-
alt: "Design System Cupcode",
|
|
24673
|
-
loading: "eager",
|
|
24674
|
-
className: "h-10 w-auto"
|
|
24675
|
-
}
|
|
24676
|
-
),
|
|
24677
|
-
/* @__PURE__ */ jsx45(
|
|
24678
|
-
TelescupImage,
|
|
24679
|
-
{
|
|
24680
|
-
apiId: "3b913721-2eda-48fd-8d76-1a53055a337f",
|
|
24681
|
-
imageWidth: 120,
|
|
24682
|
-
imageHeight: 32,
|
|
24683
|
-
alt: "Cupcode",
|
|
24684
|
-
loading: "eager",
|
|
24685
|
-
className: "h-8 w-auto"
|
|
24686
|
-
}
|
|
24687
|
-
)
|
|
24688
|
-
] }),
|
|
24714
|
+
logo: resolvedLogo,
|
|
24689
24715
|
items,
|
|
24690
24716
|
actions: /* @__PURE__ */ jsx45("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx45(
|
|
24691
24717
|
UserMenuCupcode,
|
|
@@ -24825,7 +24851,7 @@ function ParticleSystem({
|
|
|
24825
24851
|
|
|
24826
24852
|
// src/components/cupcode/PricingCard.tsx
|
|
24827
24853
|
import { Check as Check4 } from "lucide-react";
|
|
24828
|
-
import { jsx as jsx47, jsxs as
|
|
24854
|
+
import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
24829
24855
|
function PricingCard({
|
|
24830
24856
|
title,
|
|
24831
24857
|
price,
|
|
@@ -24837,7 +24863,7 @@ function PricingCard({
|
|
|
24837
24863
|
buttonText = "Escolher plano",
|
|
24838
24864
|
className
|
|
24839
24865
|
}) {
|
|
24840
|
-
return /* @__PURE__ */
|
|
24866
|
+
return /* @__PURE__ */ jsxs28(
|
|
24841
24867
|
CardGlass,
|
|
24842
24868
|
{
|
|
24843
24869
|
className: cn(
|
|
@@ -24848,15 +24874,15 @@ function PricingCard({
|
|
|
24848
24874
|
),
|
|
24849
24875
|
children: [
|
|
24850
24876
|
highlighted && /* @__PURE__ */ jsx47("div", { className: "absolute -top-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsx47("span", { className: "bg-cupcode-purple text-white text-xs font-bold px-4 py-1 rounded-pill", children: "POPULAR" }) }),
|
|
24851
|
-
/* @__PURE__ */
|
|
24877
|
+
/* @__PURE__ */ jsxs28("div", { className: "text-center mb-6", children: [
|
|
24852
24878
|
/* @__PURE__ */ jsx47("h3", { className: "text-2xl font-display font-bold text-foreground mb-2", children: title }),
|
|
24853
24879
|
description && /* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground", children: description })
|
|
24854
24880
|
] }),
|
|
24855
|
-
/* @__PURE__ */ jsx47("div", { className: "text-center mb-8", children: /* @__PURE__ */
|
|
24881
|
+
/* @__PURE__ */ jsx47("div", { className: "text-center mb-8", children: /* @__PURE__ */ jsxs28("div", { className: "flex items-baseline justify-center gap-2", children: [
|
|
24856
24882
|
/* @__PURE__ */ jsx47("span", { className: "text-5xl font-display font-bold cc-text-gradient-galaxy", children: price }),
|
|
24857
24883
|
/* @__PURE__ */ jsx47("span", { className: "text-muted-foreground", children: period })
|
|
24858
24884
|
] }) }),
|
|
24859
|
-
/* @__PURE__ */ jsx47("ul", { className: "space-3 mb-8", children: features.map((feature, index) => /* @__PURE__ */
|
|
24885
|
+
/* @__PURE__ */ jsx47("ul", { className: "space-3 mb-8", children: features.map((feature, index) => /* @__PURE__ */ jsxs28("li", { className: "flex items-start gap-3", children: [
|
|
24860
24886
|
/* @__PURE__ */ jsx47(
|
|
24861
24887
|
Check4,
|
|
24862
24888
|
{
|
|
@@ -24894,7 +24920,7 @@ function PricingCard({
|
|
|
24894
24920
|
// src/components/cupcode/ProgressCupcode.tsx
|
|
24895
24921
|
import * as React28 from "react";
|
|
24896
24922
|
import * as ProgressPrimitive2 from "@radix-ui/react-progress";
|
|
24897
|
-
import { jsx as jsx48, jsxs as
|
|
24923
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
24898
24924
|
var ProgressCupcode = React28.forwardRef(({ className, value, variant = "default", showLabel = false, size = "md", ...props }, ref) => {
|
|
24899
24925
|
const sizeClasses2 = {
|
|
24900
24926
|
sm: "h-2",
|
|
@@ -24908,10 +24934,10 @@ var ProgressCupcode = React28.forwardRef(({ className, value, variant = "default
|
|
|
24908
24934
|
warning: "bg-warning",
|
|
24909
24935
|
error: "bg-destructive"
|
|
24910
24936
|
};
|
|
24911
|
-
return /* @__PURE__ */
|
|
24912
|
-
showLabel && /* @__PURE__ */
|
|
24937
|
+
return /* @__PURE__ */ jsxs29("div", { className: "w-full space-y-2", children: [
|
|
24938
|
+
showLabel && /* @__PURE__ */ jsxs29("div", { className: "flex items-center justify-between text-sm", children: [
|
|
24913
24939
|
/* @__PURE__ */ jsx48("span", { className: "font-semibold text-foreground", children: "Progresso" }),
|
|
24914
|
-
/* @__PURE__ */
|
|
24940
|
+
/* @__PURE__ */ jsxs29("span", { className: "text-muted-foreground", children: [
|
|
24915
24941
|
value,
|
|
24916
24942
|
"%"
|
|
24917
24943
|
] })
|
|
@@ -25004,11 +25030,11 @@ ScrollbarArea.displayName = "ScrollbarArea";
|
|
|
25004
25030
|
import * as React30 from "react";
|
|
25005
25031
|
import * as SelectPrimitive2 from "@radix-ui/react-select";
|
|
25006
25032
|
import { Check as Check5, ChevronDown as ChevronDown4 } from "lucide-react";
|
|
25007
|
-
import { jsx as jsx50, jsxs as
|
|
25033
|
+
import { jsx as jsx50, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
25008
25034
|
var Select2 = SelectPrimitive2.Root;
|
|
25009
25035
|
var SelectGroup2 = SelectPrimitive2.Group;
|
|
25010
25036
|
var SelectValue2 = SelectPrimitive2.Value;
|
|
25011
|
-
var SelectTrigger2 = React30.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
25037
|
+
var SelectTrigger2 = React30.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs30(
|
|
25012
25038
|
SelectPrimitive2.Trigger,
|
|
25013
25039
|
{
|
|
25014
25040
|
ref,
|
|
@@ -25061,7 +25087,7 @@ var SelectContent2 = React30.forwardRef(({ className, children, position = "popp
|
|
|
25061
25087
|
}
|
|
25062
25088
|
) }));
|
|
25063
25089
|
SelectContent2.displayName = SelectPrimitive2.Content.displayName;
|
|
25064
|
-
var SelectItem2 = React30.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
25090
|
+
var SelectItem2 = React30.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs30(
|
|
25065
25091
|
SelectPrimitive2.Item,
|
|
25066
25092
|
{
|
|
25067
25093
|
ref,
|
|
@@ -25089,9 +25115,9 @@ var SelectField = ({
|
|
|
25089
25115
|
options,
|
|
25090
25116
|
disabled
|
|
25091
25117
|
}) => {
|
|
25092
|
-
return /* @__PURE__ */
|
|
25118
|
+
return /* @__PURE__ */ jsxs30("div", { className: "cc-stack space-2 w-full", children: [
|
|
25093
25119
|
label && /* @__PURE__ */ jsx50("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
25094
|
-
/* @__PURE__ */
|
|
25120
|
+
/* @__PURE__ */ jsxs30(Select2, { value, onValueChange, disabled, children: [
|
|
25095
25121
|
/* @__PURE__ */ jsx50(SelectTrigger2, { children: /* @__PURE__ */ jsx50(SelectValue2, { placeholder }) }),
|
|
25096
25122
|
/* @__PURE__ */ jsx50(SelectContent2, { children: /* @__PURE__ */ jsx50(SelectGroup2, { children: options.map((option) => /* @__PURE__ */ jsx50(SelectItem2, { value: option.value, children: option.label }, option.value)) }) })
|
|
25097
25123
|
] }),
|
|
@@ -25102,7 +25128,7 @@ var SelectField = ({
|
|
|
25102
25128
|
// src/components/cupcode/SwitchField.tsx
|
|
25103
25129
|
import * as React31 from "react";
|
|
25104
25130
|
import * as SwitchPrimitives2 from "@radix-ui/react-switch";
|
|
25105
|
-
import { jsx as jsx51, jsxs as
|
|
25131
|
+
import { jsx as jsx51, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
25106
25132
|
var Switch2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx51(
|
|
25107
25133
|
SwitchPrimitives2.Root,
|
|
25108
25134
|
{
|
|
@@ -25134,8 +25160,8 @@ var Switch2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
25134
25160
|
));
|
|
25135
25161
|
Switch2.displayName = SwitchPrimitives2.Root.displayName;
|
|
25136
25162
|
var SwitchField = ({ label, description, ...props }) => {
|
|
25137
|
-
return /* @__PURE__ */
|
|
25138
|
-
/* @__PURE__ */
|
|
25163
|
+
return /* @__PURE__ */ jsxs31("div", { className: "flex items-center justify-between space-x-4", children: [
|
|
25164
|
+
/* @__PURE__ */ jsxs31("div", { className: "cc-stack space-1 flex-1", children: [
|
|
25139
25165
|
label && /* @__PURE__ */ jsx51("label", { className: "text-sm font-semibold text-cupcode-ink cursor-pointer", children: label }),
|
|
25140
25166
|
description && /* @__PURE__ */ jsx51("p", { className: "text-xs text-muted-foreground", children: description })
|
|
25141
25167
|
] }),
|
|
@@ -25200,10 +25226,10 @@ TabsContent2.displayName = TabsPrimitive2.Content.displayName;
|
|
|
25200
25226
|
|
|
25201
25227
|
// src/components/cupcode/TextareaField.tsx
|
|
25202
25228
|
import * as React33 from "react";
|
|
25203
|
-
import { jsx as jsx53, jsxs as
|
|
25229
|
+
import { jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
25204
25230
|
var TextareaField = React33.forwardRef(
|
|
25205
25231
|
({ className, label, error, ...props }, ref) => {
|
|
25206
|
-
return /* @__PURE__ */
|
|
25232
|
+
return /* @__PURE__ */ jsxs32("div", { className: "cc-stack space-2 w-full", children: [
|
|
25207
25233
|
label && /* @__PURE__ */ jsx53("label", { className: "text-sm font-semibold text-cupcode-ink", children: label }),
|
|
25208
25234
|
/* @__PURE__ */ jsx53(
|
|
25209
25235
|
"textarea",
|
|
@@ -25234,7 +25260,7 @@ TextareaField.displayName = "TextareaField";
|
|
|
25234
25260
|
// src/components/cupcode/ThemeToggle.tsx
|
|
25235
25261
|
import * as React34 from "react";
|
|
25236
25262
|
import { Moon as Moon2, Sun as Sun2 } from "lucide-react";
|
|
25237
|
-
import { jsx as jsx54, jsxs as
|
|
25263
|
+
import { jsx as jsx54, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
25238
25264
|
var THEME_STORAGE_KEY2 = "cupcode-theme";
|
|
25239
25265
|
function isThemeMode(value) {
|
|
25240
25266
|
return value === "light" || value === "dark";
|
|
@@ -25315,7 +25341,7 @@ var ThemeToggle = ({
|
|
|
25315
25341
|
}
|
|
25316
25342
|
onThemeChange == null ? void 0 : onThemeChange(nextTheme);
|
|
25317
25343
|
};
|
|
25318
|
-
return /* @__PURE__ */
|
|
25344
|
+
return /* @__PURE__ */ jsxs33(
|
|
25319
25345
|
"button",
|
|
25320
25346
|
{
|
|
25321
25347
|
onClick: handleToggle,
|
|
@@ -25330,7 +25356,7 @@ var ThemeToggle = ({
|
|
|
25330
25356
|
children: [
|
|
25331
25357
|
/* @__PURE__ */ jsx54(Sun2, { className: "h-5 w-5 text-cupcode-purple rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
|
|
25332
25358
|
/* @__PURE__ */ jsx54(Moon2, { className: "absolute h-5 w-5 text-cupcode-hover rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }),
|
|
25333
|
-
/* @__PURE__ */
|
|
25359
|
+
/* @__PURE__ */ jsxs33("span", { className: "sr-only", children: [
|
|
25334
25360
|
"Current theme: ",
|
|
25335
25361
|
activeTheme
|
|
25336
25362
|
] })
|
|
@@ -25340,10 +25366,10 @@ var ThemeToggle = ({
|
|
|
25340
25366
|
};
|
|
25341
25367
|
|
|
25342
25368
|
// src/components/cupcode/TimelineCupcode.tsx
|
|
25343
|
-
import { jsx as jsx55, jsxs as
|
|
25369
|
+
import { jsx as jsx55, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
25344
25370
|
function Timeline({ items, variant = "vertical", className }) {
|
|
25345
25371
|
if (variant === "horizontal") {
|
|
25346
|
-
return /* @__PURE__ */ jsx55("div", { className: cn("flex items-start gap-4 overflow-x-auto pb-4", className), children: items.map((item, index) => /* @__PURE__ */
|
|
25372
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("flex items-start gap-4 overflow-x-auto pb-4", className), children: items.map((item, index) => /* @__PURE__ */ jsxs34("div", { className: "flex flex-col items-center min-w-[200px]", children: [
|
|
25347
25373
|
/* @__PURE__ */ jsx55(
|
|
25348
25374
|
"div",
|
|
25349
25375
|
{
|
|
@@ -25359,7 +25385,7 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
25359
25385
|
"h-1 w-full mb-3",
|
|
25360
25386
|
item.active ? "bg-cupcode-purple" : "bg-muted"
|
|
25361
25387
|
) }),
|
|
25362
|
-
/* @__PURE__ */
|
|
25388
|
+
/* @__PURE__ */ jsxs34("div", { className: "text-center", children: [
|
|
25363
25389
|
/* @__PURE__ */ jsx55("h4", { className: cn(
|
|
25364
25390
|
"font-display font-semibold mb-1",
|
|
25365
25391
|
item.active ? "text-cupcode-purple" : "text-foreground"
|
|
@@ -25369,9 +25395,9 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
25369
25395
|
] })
|
|
25370
25396
|
] }, item.id)) });
|
|
25371
25397
|
}
|
|
25372
|
-
return /* @__PURE__ */
|
|
25398
|
+
return /* @__PURE__ */ jsxs34("div", { className: cn("relative space-6", className), children: [
|
|
25373
25399
|
/* @__PURE__ */ jsx55("div", { className: "absolute left-6 top-0 bottom-0 w-0.5 bg-muted" }),
|
|
25374
|
-
items.map((item, index) => /* @__PURE__ */
|
|
25400
|
+
items.map((item, index) => /* @__PURE__ */ jsxs34("div", { className: "relative flex gap-6 pb-8 last:pb-0", children: [
|
|
25375
25401
|
/* @__PURE__ */ jsx55(
|
|
25376
25402
|
"div",
|
|
25377
25403
|
{
|
|
@@ -25383,7 +25409,7 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
25383
25409
|
children: item.icon || /* @__PURE__ */ jsx55("span", { className: "text-sm font-bold", children: index + 1 })
|
|
25384
25410
|
}
|
|
25385
25411
|
),
|
|
25386
|
-
/* @__PURE__ */
|
|
25412
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex-1 pt-1", children: [
|
|
25387
25413
|
/* @__PURE__ */ jsx55("h4", { className: cn(
|
|
25388
25414
|
"font-display font-semibold mb-1",
|
|
25389
25415
|
item.active ? "text-cupcode-purple" : "text-foreground"
|
|
@@ -25397,7 +25423,7 @@ function Timeline({ items, variant = "vertical", className }) {
|
|
|
25397
25423
|
|
|
25398
25424
|
// src/components/cupcode/ToastCupcode.tsx
|
|
25399
25425
|
import { X as X6, CheckCircle, AlertCircle, Info as Info2, AlertTriangle as AlertTriangle2 } from "lucide-react";
|
|
25400
|
-
import { jsx as jsx56, jsxs as
|
|
25426
|
+
import { jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
25401
25427
|
var variantStyles2 = {
|
|
25402
25428
|
success: {
|
|
25403
25429
|
gradient: "from-success/20 to-success/5",
|
|
@@ -25444,9 +25470,9 @@ var ToastCupcode = ({
|
|
|
25444
25470
|
"min-w-[300px] max-w-[420px]",
|
|
25445
25471
|
"animate-slide-up"
|
|
25446
25472
|
),
|
|
25447
|
-
children: /* @__PURE__ */
|
|
25473
|
+
children: /* @__PURE__ */ jsxs35("div", { className: "flex items-start gap-3", children: [
|
|
25448
25474
|
/* @__PURE__ */ jsx56(Icon3, { className: cn("h-5 w-5 shrink-0 mt-0.5", style.iconColor) }),
|
|
25449
|
-
/* @__PURE__ */
|
|
25475
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex-1 space-y-1", children: [
|
|
25450
25476
|
/* @__PURE__ */ jsx56("p", { className: "text-sm font-semibold text-cupcode-ink", children: title }),
|
|
25451
25477
|
description && /* @__PURE__ */ jsx56("p", { className: "text-xs text-cupcode-ink/70", children: description })
|
|
25452
25478
|
] }),
|
|
@@ -25494,11 +25520,11 @@ TooltipContent2.displayName = TooltipPrimitive2.Content.displayName;
|
|
|
25494
25520
|
import * as React36 from "react";
|
|
25495
25521
|
import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
|
|
25496
25522
|
import { ChevronDown as ChevronDown5 } from "lucide-react";
|
|
25497
|
-
import { jsx as jsx58, jsxs as
|
|
25523
|
+
import { jsx as jsx58, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
25498
25524
|
var Accordion = AccordionPrimitive2.Root;
|
|
25499
25525
|
var AccordionItem2 = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx58(AccordionPrimitive2.Item, { ref, className: cn("border-b", className), ...props }));
|
|
25500
25526
|
AccordionItem2.displayName = "AccordionItem";
|
|
25501
|
-
var AccordionTrigger2 = React36.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx58(AccordionPrimitive2.Header, { className: "flex", children: /* @__PURE__ */
|
|
25527
|
+
var AccordionTrigger2 = React36.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx58(AccordionPrimitive2.Header, { className: "flex", children: /* @__PURE__ */ jsxs36(
|
|
25502
25528
|
AccordionPrimitive2.Trigger,
|
|
25503
25529
|
{
|
|
25504
25530
|
ref,
|
|
@@ -25562,7 +25588,7 @@ var AspectRatio = AspectRatioPrimitive.Root;
|
|
|
25562
25588
|
import * as React38 from "react";
|
|
25563
25589
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
25564
25590
|
import { ChevronRight as ChevronRight2, MoreHorizontal } from "lucide-react";
|
|
25565
|
-
import { jsx as jsx60, jsxs as
|
|
25591
|
+
import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
25566
25592
|
var Breadcrumb = React38.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx60("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
25567
25593
|
Breadcrumb.displayName = "Breadcrumb";
|
|
25568
25594
|
var BreadcrumbList = React38.forwardRef(
|
|
@@ -25604,7 +25630,7 @@ var BreadcrumbPage = React38.forwardRef(
|
|
|
25604
25630
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
25605
25631
|
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ jsx60("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5", className), ...props, children: children != null ? children : /* @__PURE__ */ jsx60(ChevronRight2, {}) });
|
|
25606
25632
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
25607
|
-
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */
|
|
25633
|
+
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs37(
|
|
25608
25634
|
"span",
|
|
25609
25635
|
{
|
|
25610
25636
|
role: "presentation",
|
|
@@ -25700,7 +25726,7 @@ CardFooter.displayName = "CardFooter";
|
|
|
25700
25726
|
import * as React40 from "react";
|
|
25701
25727
|
import useEmblaCarousel from "embla-carousel-react";
|
|
25702
25728
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
25703
|
-
import { jsx as jsx63, jsxs as
|
|
25729
|
+
import { jsx as jsx63, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
25704
25730
|
var CarouselContext = React40.createContext(null);
|
|
25705
25731
|
function useCarousel() {
|
|
25706
25732
|
const context = React40.useContext(CarouselContext);
|
|
@@ -25825,7 +25851,7 @@ CarouselItem.displayName = "CarouselItem";
|
|
|
25825
25851
|
var CarouselPrevious = React40.forwardRef(
|
|
25826
25852
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
25827
25853
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
25828
|
-
return /* @__PURE__ */
|
|
25854
|
+
return /* @__PURE__ */ jsxs38(
|
|
25829
25855
|
Button,
|
|
25830
25856
|
{
|
|
25831
25857
|
ref,
|
|
@@ -25851,7 +25877,7 @@ CarouselPrevious.displayName = "CarouselPrevious";
|
|
|
25851
25877
|
var CarouselNext = React40.forwardRef(
|
|
25852
25878
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
25853
25879
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
25854
|
-
return /* @__PURE__ */
|
|
25880
|
+
return /* @__PURE__ */ jsxs38(
|
|
25855
25881
|
Button,
|
|
25856
25882
|
{
|
|
25857
25883
|
ref,
|
|
@@ -25878,7 +25904,7 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
25878
25904
|
// src/components/ui/chart.tsx
|
|
25879
25905
|
import * as React41 from "react";
|
|
25880
25906
|
import * as RechartsPrimitive from "recharts";
|
|
25881
|
-
import { Fragment as Fragment6, jsx as jsx64, jsxs as
|
|
25907
|
+
import { Fragment as Fragment6, jsx as jsx64, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
25882
25908
|
var THEMES = { light: "", dark: ".dark" };
|
|
25883
25909
|
var ChartContext = React41.createContext(null);
|
|
25884
25910
|
function useChart() {
|
|
@@ -25891,7 +25917,7 @@ function useChart() {
|
|
|
25891
25917
|
var ChartContainer = React41.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
25892
25918
|
const uniqueId = React41.useId();
|
|
25893
25919
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
25894
|
-
return /* @__PURE__ */ jsx64(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */
|
|
25920
|
+
return /* @__PURE__ */ jsx64(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs39(
|
|
25895
25921
|
"div",
|
|
25896
25922
|
{
|
|
25897
25923
|
"data-chart": chartId,
|
|
@@ -25972,7 +25998,7 @@ var ChartTooltipContent = React41.forwardRef(
|
|
|
25972
25998
|
return null;
|
|
25973
25999
|
}
|
|
25974
26000
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
25975
|
-
return /* @__PURE__ */
|
|
26001
|
+
return /* @__PURE__ */ jsxs39(
|
|
25976
26002
|
"div",
|
|
25977
26003
|
{
|
|
25978
26004
|
ref,
|
|
@@ -25993,7 +26019,7 @@ var ChartTooltipContent = React41.forwardRef(
|
|
|
25993
26019
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
25994
26020
|
indicator === "dot" && "items-center"
|
|
25995
26021
|
),
|
|
25996
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
26022
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs39(Fragment6, { children: [
|
|
25997
26023
|
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsx64(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx64(
|
|
25998
26024
|
"div",
|
|
25999
26025
|
{
|
|
@@ -26009,7 +26035,7 @@ var ChartTooltipContent = React41.forwardRef(
|
|
|
26009
26035
|
}
|
|
26010
26036
|
}
|
|
26011
26037
|
),
|
|
26012
|
-
/* @__PURE__ */
|
|
26038
|
+
/* @__PURE__ */ jsxs39(
|
|
26013
26039
|
"div",
|
|
26014
26040
|
{
|
|
26015
26041
|
className: cn(
|
|
@@ -26017,7 +26043,7 @@ var ChartTooltipContent = React41.forwardRef(
|
|
|
26017
26043
|
nestLabel ? "items-end" : "items-center"
|
|
26018
26044
|
),
|
|
26019
26045
|
children: [
|
|
26020
|
-
/* @__PURE__ */
|
|
26046
|
+
/* @__PURE__ */ jsxs39("div", { className: "grid gap-1.5", children: [
|
|
26021
26047
|
nestLabel ? tooltipLabel : null,
|
|
26022
26048
|
/* @__PURE__ */ jsx64("span", { className: "text-muted-foreground", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
26023
26049
|
] }),
|
|
@@ -26050,7 +26076,7 @@ var ChartLegendContent = React41.forwardRef(({ className, hideIcon = false, payl
|
|
|
26050
26076
|
children: payload.map((item) => {
|
|
26051
26077
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
26052
26078
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
26053
|
-
return /* @__PURE__ */
|
|
26079
|
+
return /* @__PURE__ */ jsxs39(
|
|
26054
26080
|
"div",
|
|
26055
26081
|
{
|
|
26056
26082
|
className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
@@ -26117,7 +26143,7 @@ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
|
26117
26143
|
import * as React43 from "react";
|
|
26118
26144
|
import { Command as CommandPrimitive } from "cmdk";
|
|
26119
26145
|
import { Search as Search2 } from "lucide-react";
|
|
26120
|
-
import { jsx as jsx66, jsxs as
|
|
26146
|
+
import { jsx as jsx66, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
26121
26147
|
var Command = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx66(
|
|
26122
26148
|
CommandPrimitive,
|
|
26123
26149
|
{
|
|
@@ -26133,7 +26159,7 @@ Command.displayName = CommandPrimitive.displayName;
|
|
|
26133
26159
|
var CommandDialog = ({ children, ...props }) => {
|
|
26134
26160
|
return /* @__PURE__ */ jsx66(Dialog, { ...props, children: /* @__PURE__ */ jsx66(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx66(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
26135
26161
|
};
|
|
26136
|
-
var CommandInput = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
26162
|
+
var CommandInput = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs40("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
26137
26163
|
/* @__PURE__ */ jsx66(Search2, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
26138
26164
|
/* @__PURE__ */ jsx66(
|
|
26139
26165
|
CommandPrimitive.Input,
|
|
@@ -26194,14 +26220,14 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
26194
26220
|
import * as React44 from "react";
|
|
26195
26221
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
26196
26222
|
import { Check as Check7, ChevronRight as ChevronRight4, Circle as Circle2 } from "lucide-react";
|
|
26197
|
-
import { jsx as jsx67, jsxs as
|
|
26223
|
+
import { jsx as jsx67, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
26198
26224
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
26199
26225
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
26200
26226
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
26201
26227
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
26202
26228
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
26203
26229
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
26204
|
-
var ContextMenuSubTrigger = React44.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */
|
|
26230
|
+
var ContextMenuSubTrigger = React44.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs41(
|
|
26205
26231
|
ContextMenuPrimitive.SubTrigger,
|
|
26206
26232
|
{
|
|
26207
26233
|
ref,
|
|
@@ -26255,7 +26281,7 @@ var ContextMenuItem = React44.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
26255
26281
|
}
|
|
26256
26282
|
));
|
|
26257
26283
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
26258
|
-
var ContextMenuCheckboxItem = React44.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */
|
|
26284
|
+
var ContextMenuCheckboxItem = React44.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs41(
|
|
26259
26285
|
ContextMenuPrimitive.CheckboxItem,
|
|
26260
26286
|
{
|
|
26261
26287
|
ref,
|
|
@@ -26272,7 +26298,7 @@ var ContextMenuCheckboxItem = React44.forwardRef(({ className, children, checked
|
|
|
26272
26298
|
}
|
|
26273
26299
|
));
|
|
26274
26300
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
26275
|
-
var ContextMenuRadioItem = React44.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
26301
|
+
var ContextMenuRadioItem = React44.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs41(
|
|
26276
26302
|
ContextMenuPrimitive.RadioItem,
|
|
26277
26303
|
{
|
|
26278
26304
|
ref,
|
|
@@ -26418,7 +26444,7 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
|
26418
26444
|
import * as React48 from "react";
|
|
26419
26445
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
26420
26446
|
import { Dot } from "lucide-react";
|
|
26421
|
-
import { jsx as jsx71, jsxs as
|
|
26447
|
+
import { jsx as jsx71, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
26422
26448
|
var InputOTP = React48.forwardRef(
|
|
26423
26449
|
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx71(
|
|
26424
26450
|
OTPInput,
|
|
@@ -26438,7 +26464,7 @@ InputOTPGroup.displayName = "InputOTPGroup";
|
|
|
26438
26464
|
var InputOTPSlot = React48.forwardRef(({ index, className, ...props }, ref) => {
|
|
26439
26465
|
const inputOTPContext = React48.useContext(OTPInputContext);
|
|
26440
26466
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
26441
|
-
return /* @__PURE__ */
|
|
26467
|
+
return /* @__PURE__ */ jsxs42(
|
|
26442
26468
|
"div",
|
|
26443
26469
|
{
|
|
26444
26470
|
ref,
|
|
@@ -26465,7 +26491,7 @@ InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
|
26465
26491
|
import * as React49 from "react";
|
|
26466
26492
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
26467
26493
|
import { Check as Check8, ChevronRight as ChevronRight5, Circle as Circle3 } from "lucide-react";
|
|
26468
|
-
import { jsx as jsx72, jsxs as
|
|
26494
|
+
import { jsx as jsx72, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
26469
26495
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
26470
26496
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
26471
26497
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
@@ -26492,7 +26518,7 @@ var MenubarTrigger = React49.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
26492
26518
|
}
|
|
26493
26519
|
));
|
|
26494
26520
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
26495
|
-
var MenubarSubTrigger = React49.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */
|
|
26521
|
+
var MenubarSubTrigger = React49.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs43(
|
|
26496
26522
|
MenubarPrimitive.SubTrigger,
|
|
26497
26523
|
{
|
|
26498
26524
|
ref,
|
|
@@ -26549,7 +26575,7 @@ var MenubarItem = React49.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
26549
26575
|
}
|
|
26550
26576
|
));
|
|
26551
26577
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
26552
|
-
var MenubarCheckboxItem = React49.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */
|
|
26578
|
+
var MenubarCheckboxItem = React49.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs43(
|
|
26553
26579
|
MenubarPrimitive.CheckboxItem,
|
|
26554
26580
|
{
|
|
26555
26581
|
ref,
|
|
@@ -26566,7 +26592,7 @@ var MenubarCheckboxItem = React49.forwardRef(({ className, children, checked, ..
|
|
|
26566
26592
|
}
|
|
26567
26593
|
));
|
|
26568
26594
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
26569
|
-
var MenubarRadioItem = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
26595
|
+
var MenubarRadioItem = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs43(
|
|
26570
26596
|
MenubarPrimitive.RadioItem,
|
|
26571
26597
|
{
|
|
26572
26598
|
ref,
|
|
@@ -26603,8 +26629,8 @@ import * as React50 from "react";
|
|
|
26603
26629
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
26604
26630
|
import { cva as cva5 } from "class-variance-authority";
|
|
26605
26631
|
import { ChevronDown as ChevronDown6 } from "lucide-react";
|
|
26606
|
-
import { jsx as jsx73, jsxs as
|
|
26607
|
-
var NavigationMenu = React50.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
26632
|
+
import { jsx as jsx73, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
26633
|
+
var NavigationMenu = React50.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs44(
|
|
26608
26634
|
NavigationMenuPrimitive.Root,
|
|
26609
26635
|
{
|
|
26610
26636
|
ref,
|
|
@@ -26630,7 +26656,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
26630
26656
|
var navigationMenuTriggerStyle = cva5(
|
|
26631
26657
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
26632
26658
|
);
|
|
26633
|
-
var NavigationMenuTrigger = React50.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
26659
|
+
var NavigationMenuTrigger = React50.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs44(
|
|
26634
26660
|
NavigationMenuPrimitive.Trigger,
|
|
26635
26661
|
{
|
|
26636
26662
|
ref,
|
|
@@ -26692,7 +26718,7 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
|
26692
26718
|
// src/components/ui/pagination.tsx
|
|
26693
26719
|
import * as React51 from "react";
|
|
26694
26720
|
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight6, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
|
|
26695
|
-
import { jsx as jsx74, jsxs as
|
|
26721
|
+
import { jsx as jsx74, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
26696
26722
|
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx74(
|
|
26697
26723
|
"nav",
|
|
26698
26724
|
{
|
|
@@ -26724,17 +26750,17 @@ var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @_
|
|
|
26724
26750
|
}
|
|
26725
26751
|
);
|
|
26726
26752
|
PaginationLink.displayName = "PaginationLink";
|
|
26727
|
-
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */
|
|
26753
|
+
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ jsxs45(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 pl-2.5", className), ...props, children: [
|
|
26728
26754
|
/* @__PURE__ */ jsx74(ChevronLeft2, { className: "h-4 w-4" }),
|
|
26729
26755
|
/* @__PURE__ */ jsx74("span", { children: "Previous" })
|
|
26730
26756
|
] });
|
|
26731
26757
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
26732
|
-
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */
|
|
26758
|
+
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs45(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 pr-2.5", className), ...props, children: [
|
|
26733
26759
|
/* @__PURE__ */ jsx74("span", { children: "Next" }),
|
|
26734
26760
|
/* @__PURE__ */ jsx74(ChevronRight6, { className: "h-4 w-4" })
|
|
26735
26761
|
] });
|
|
26736
26762
|
PaginationNext.displayName = "PaginationNext";
|
|
26737
|
-
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */
|
|
26763
|
+
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs45("span", { "aria-hidden": true, className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [
|
|
26738
26764
|
/* @__PURE__ */ jsx74(MoreHorizontal2, { className: "h-4 w-4" }),
|
|
26739
26765
|
/* @__PURE__ */ jsx74("span", { className: "sr-only", children: "More pages" })
|
|
26740
26766
|
] });
|
|
@@ -26835,7 +26861,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
|
26835
26861
|
import { cva as cva6 } from "class-variance-authority";
|
|
26836
26862
|
import { X as X7 } from "lucide-react";
|
|
26837
26863
|
import * as React55 from "react";
|
|
26838
|
-
import { jsx as jsx79, jsxs as
|
|
26864
|
+
import { jsx as jsx79, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
26839
26865
|
var Sheet = SheetPrimitive.Root;
|
|
26840
26866
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
26841
26867
|
var SheetClose = SheetPrimitive.Close;
|
|
@@ -26877,11 +26903,11 @@ var SheetContent = React55.forwardRef(
|
|
|
26877
26903
|
closeButtonClassName,
|
|
26878
26904
|
closeButtonLabel = "Close",
|
|
26879
26905
|
...props
|
|
26880
|
-
}, ref) => /* @__PURE__ */
|
|
26906
|
+
}, ref) => /* @__PURE__ */ jsxs46(SheetPortal, { children: [
|
|
26881
26907
|
/* @__PURE__ */ jsx79(SheetOverlay, {}),
|
|
26882
|
-
/* @__PURE__ */
|
|
26908
|
+
/* @__PURE__ */ jsxs46(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
26883
26909
|
children,
|
|
26884
|
-
showCloseButton ? /* @__PURE__ */
|
|
26910
|
+
showCloseButton ? /* @__PURE__ */ jsxs46(
|
|
26885
26911
|
SheetPrimitive.Close,
|
|
26886
26912
|
{
|
|
26887
26913
|
className: cn(
|
|
@@ -26931,7 +26957,7 @@ function useIsMobile() {
|
|
|
26931
26957
|
}
|
|
26932
26958
|
|
|
26933
26959
|
// src/components/ui/sidebar.tsx
|
|
26934
|
-
import { jsx as jsx80, jsxs as
|
|
26960
|
+
import { jsx as jsx80, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
26935
26961
|
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
26936
26962
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
26937
26963
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -27033,7 +27059,7 @@ var Sidebar = React57.forwardRef(({ side = "left", variant = "sidebar", collapsi
|
|
|
27033
27059
|
}
|
|
27034
27060
|
) });
|
|
27035
27061
|
}
|
|
27036
|
-
return /* @__PURE__ */
|
|
27062
|
+
return /* @__PURE__ */ jsxs47(
|
|
27037
27063
|
"div",
|
|
27038
27064
|
{
|
|
27039
27065
|
ref,
|
|
@@ -27083,7 +27109,7 @@ Sidebar.displayName = "Sidebar";
|
|
|
27083
27109
|
var SidebarTrigger = React57.forwardRef(
|
|
27084
27110
|
({ className, onClick, ...props }, ref) => {
|
|
27085
27111
|
const { toggleSidebar } = useSidebar();
|
|
27086
|
-
return /* @__PURE__ */
|
|
27112
|
+
return /* @__PURE__ */ jsxs47(
|
|
27087
27113
|
Button,
|
|
27088
27114
|
{
|
|
27089
27115
|
ref,
|
|
@@ -27303,7 +27329,7 @@ var SidebarMenuButton = React57.forwardRef(({ asChild = false, isActive = false,
|
|
|
27303
27329
|
children: tooltip
|
|
27304
27330
|
};
|
|
27305
27331
|
}
|
|
27306
|
-
return /* @__PURE__ */
|
|
27332
|
+
return /* @__PURE__ */ jsxs47(Tooltip, { children: [
|
|
27307
27333
|
/* @__PURE__ */ jsx80(TooltipTrigger, { asChild: true, children: button }),
|
|
27308
27334
|
/* @__PURE__ */ jsx80(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
27309
27335
|
] });
|
|
@@ -27356,7 +27382,7 @@ var SidebarMenuSkeleton = React57.forwardRef(({ className, showIcon = false, ...
|
|
|
27356
27382
|
const width = React57.useMemo(() => {
|
|
27357
27383
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
27358
27384
|
}, []);
|
|
27359
|
-
return /* @__PURE__ */
|
|
27385
|
+
return /* @__PURE__ */ jsxs47(
|
|
27360
27386
|
"div",
|
|
27361
27387
|
{
|
|
27362
27388
|
ref,
|
|
@@ -27424,8 +27450,8 @@ SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
|
27424
27450
|
// src/components/ui/slider.tsx
|
|
27425
27451
|
import * as React58 from "react";
|
|
27426
27452
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
27427
|
-
import { jsx as jsx81, jsxs as
|
|
27428
|
-
var Slider = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
27453
|
+
import { jsx as jsx81, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
27454
|
+
var Slider = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs48(
|
|
27429
27455
|
SliderPrimitive.Root,
|
|
27430
27456
|
{
|
|
27431
27457
|
ref,
|
|
@@ -27565,13 +27591,13 @@ var ToastDescription = React60.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
27565
27591
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
27566
27592
|
|
|
27567
27593
|
// src/components/ui/toaster.tsx
|
|
27568
|
-
import { jsx as jsx84, jsxs as
|
|
27594
|
+
import { jsx as jsx84, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
27569
27595
|
function Toaster2() {
|
|
27570
27596
|
const { toasts } = useToast();
|
|
27571
|
-
return /* @__PURE__ */
|
|
27597
|
+
return /* @__PURE__ */ jsxs49(ToastProvider, { children: [
|
|
27572
27598
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
27573
|
-
return /* @__PURE__ */
|
|
27574
|
-
/* @__PURE__ */
|
|
27599
|
+
return /* @__PURE__ */ jsxs49(Toast, { ...props, children: [
|
|
27600
|
+
/* @__PURE__ */ jsxs49("div", { className: "grid gap-1", children: [
|
|
27575
27601
|
title && /* @__PURE__ */ jsx84(ToastTitle, { children: title }),
|
|
27576
27602
|
description && /* @__PURE__ */ jsx84(ToastDescription, { children: description })
|
|
27577
27603
|
] }),
|