@codapet/design-system 0.2.0 → 0.2.2
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/index.d.mts +18 -10
- package/dist/index.mjs +191 -110
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +0 -14
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2101,7 +2101,7 @@ function DropdownMenuSubContent({
|
|
|
2101
2101
|
// src/components/ui/form.tsx
|
|
2102
2102
|
import * as React19 from "react";
|
|
2103
2103
|
import "@radix-ui/react-label";
|
|
2104
|
-
import { Slot as
|
|
2104
|
+
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
2105
2105
|
import {
|
|
2106
2106
|
Controller,
|
|
2107
2107
|
FormProvider,
|
|
@@ -2110,21 +2110,35 @@ import {
|
|
|
2110
2110
|
} from "react-hook-form";
|
|
2111
2111
|
|
|
2112
2112
|
// src/components/ui/label.tsx
|
|
2113
|
+
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
2114
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
2113
2115
|
import "react";
|
|
2114
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2115
2116
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2117
|
+
var labelTextVariants = cva4("font-sans font-semibold ", {
|
|
2118
|
+
variants: {
|
|
2119
|
+
size: {
|
|
2120
|
+
lg: "text-base md:text-lg md:leading-[1.625rem] leading-[1.5rem]",
|
|
2121
|
+
md: "md:text-base text-sm md:leading-[1.5rem] leading-[1.25rem] ",
|
|
2122
|
+
sm: "md:text-sm text-xs md:leading-[1.25rem] leading-[1.125rem] ",
|
|
2123
|
+
xs: "text-xs leading-[1.125rem]"
|
|
2124
|
+
}
|
|
2125
|
+
},
|
|
2126
|
+
defaultVariants: {
|
|
2127
|
+
size: "md"
|
|
2128
|
+
}
|
|
2129
|
+
});
|
|
2116
2130
|
function Label3({
|
|
2117
2131
|
className,
|
|
2132
|
+
size,
|
|
2133
|
+
asChild = false,
|
|
2118
2134
|
...props
|
|
2119
2135
|
}) {
|
|
2136
|
+
const Comp = asChild ? Slot4 : "label";
|
|
2120
2137
|
return /* @__PURE__ */ jsx20(
|
|
2121
|
-
|
|
2138
|
+
Comp,
|
|
2122
2139
|
{
|
|
2123
2140
|
"data-slot": "label",
|
|
2124
|
-
className: cn(
|
|
2125
|
-
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
2126
|
-
className
|
|
2127
|
-
),
|
|
2141
|
+
className: cn(labelTextVariants({ size, className })),
|
|
2128
2142
|
...props
|
|
2129
2143
|
}
|
|
2130
2144
|
);
|
|
@@ -2193,7 +2207,7 @@ function FormLabel({
|
|
|
2193
2207
|
function FormControl({ ...props }) {
|
|
2194
2208
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2195
2209
|
return /* @__PURE__ */ jsx21(
|
|
2196
|
-
|
|
2210
|
+
Slot5,
|
|
2197
2211
|
{
|
|
2198
2212
|
"data-slot": "form-control",
|
|
2199
2213
|
id: formItemId,
|
|
@@ -2269,30 +2283,134 @@ function HoverCardContent({
|
|
|
2269
2283
|
}
|
|
2270
2284
|
|
|
2271
2285
|
// src/components/ui/input.tsx
|
|
2272
|
-
import "
|
|
2273
|
-
import
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2286
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
2287
|
+
import * as React21 from "react";
|
|
2288
|
+
import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2289
|
+
var inputVariants = cva5(
|
|
2290
|
+
[
|
|
2291
|
+
// Base styles
|
|
2292
|
+
"file:text-zinc-800 placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
2293
|
+
"flex w-full min-w-0 rounded-md border bg-transparent text-base shadow-xs transition-all duration-200",
|
|
2294
|
+
"outline-none font-sans",
|
|
2295
|
+
// File input styles
|
|
2296
|
+
"file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
2297
|
+
// Disabled styles
|
|
2298
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
2299
|
+
// Responsive text size
|
|
2300
|
+
"md:text-sm",
|
|
2301
|
+
// Default state
|
|
2302
|
+
"border-zinc-300 bg-background",
|
|
2303
|
+
// Hover state
|
|
2304
|
+
"hover:border-brand-normal",
|
|
2305
|
+
// Focus state
|
|
2306
|
+
"focus:border-blue-500",
|
|
2307
|
+
"active:border-brand-normal"
|
|
2308
|
+
],
|
|
2309
|
+
{
|
|
2310
|
+
variants: {
|
|
2311
|
+
size: {
|
|
2312
|
+
sm: "h-9 px-3 py-1 text-sm",
|
|
2313
|
+
md: "h-10 px-3 py-2 text-sm",
|
|
2314
|
+
lg: "h-12 px-4 py-3 text-base"
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
defaultVariants: {
|
|
2318
|
+
size: "md"
|
|
2287
2319
|
}
|
|
2288
|
-
|
|
2289
|
-
|
|
2320
|
+
}
|
|
2321
|
+
);
|
|
2322
|
+
var Input = React21.forwardRef(
|
|
2323
|
+
({
|
|
2324
|
+
className,
|
|
2325
|
+
type,
|
|
2326
|
+
size,
|
|
2327
|
+
leftIcon,
|
|
2328
|
+
rightIcon,
|
|
2329
|
+
leftIconClassName,
|
|
2330
|
+
rightIconClassName,
|
|
2331
|
+
error,
|
|
2332
|
+
...props
|
|
2333
|
+
}, ref) => {
|
|
2334
|
+
const errorStyles = error ? [
|
|
2335
|
+
"border-destructive bg-red-subtle",
|
|
2336
|
+
"focus:border-destructive focus:ring-destructive/20",
|
|
2337
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
2338
|
+
] : [];
|
|
2339
|
+
if (leftIcon || rightIcon) {
|
|
2340
|
+
return /* @__PURE__ */ jsxs11("div", { className: "relative", children: [
|
|
2341
|
+
/* @__PURE__ */ jsx23(
|
|
2342
|
+
"input",
|
|
2343
|
+
{
|
|
2344
|
+
type,
|
|
2345
|
+
"data-slot": "input",
|
|
2346
|
+
className: cn(
|
|
2347
|
+
inputVariants({ size }),
|
|
2348
|
+
errorStyles,
|
|
2349
|
+
"peer",
|
|
2350
|
+
leftIcon && "pl-10",
|
|
2351
|
+
rightIcon && "pr-10",
|
|
2352
|
+
className
|
|
2353
|
+
),
|
|
2354
|
+
ref,
|
|
2355
|
+
"aria-invalid": error,
|
|
2356
|
+
...props
|
|
2357
|
+
}
|
|
2358
|
+
),
|
|
2359
|
+
leftIcon && /* @__PURE__ */ jsx23(
|
|
2360
|
+
"div",
|
|
2361
|
+
{
|
|
2362
|
+
className: cn(
|
|
2363
|
+
"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
2364
|
+
"transition-colors",
|
|
2365
|
+
error ? "text-destructive peer-hover:text-destructive peer-focus:text-destructive peer-active:text-destructive" : "text-muted-foreground peer-hover:text-brand-normal peer-focus:text-blue-500 peer-active:text-brand-normal",
|
|
2366
|
+
leftIconClassName
|
|
2367
|
+
),
|
|
2368
|
+
children: React21.isValidElement(leftIcon) ? (() => {
|
|
2369
|
+
const iconEl = leftIcon;
|
|
2370
|
+
return React21.cloneElement(iconEl, {
|
|
2371
|
+
className: cn("h-4 w-4", iconEl.props.className)
|
|
2372
|
+
});
|
|
2373
|
+
})() : leftIcon
|
|
2374
|
+
}
|
|
2375
|
+
),
|
|
2376
|
+
rightIcon && /* @__PURE__ */ jsx23(
|
|
2377
|
+
"div",
|
|
2378
|
+
{
|
|
2379
|
+
className: cn(
|
|
2380
|
+
"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
2381
|
+
"transition-colors",
|
|
2382
|
+
rightIconClassName
|
|
2383
|
+
),
|
|
2384
|
+
children: React21.isValidElement(rightIcon) ? (() => {
|
|
2385
|
+
const iconEl = rightIcon;
|
|
2386
|
+
return React21.cloneElement(iconEl, {
|
|
2387
|
+
className: cn("h-4 w-4", iconEl.props.className)
|
|
2388
|
+
});
|
|
2389
|
+
})() : rightIcon
|
|
2390
|
+
}
|
|
2391
|
+
)
|
|
2392
|
+
] });
|
|
2393
|
+
}
|
|
2394
|
+
return /* @__PURE__ */ jsx23(
|
|
2395
|
+
"input",
|
|
2396
|
+
{
|
|
2397
|
+
type,
|
|
2398
|
+
"data-slot": "input",
|
|
2399
|
+
className: cn(inputVariants({ size }), errorStyles, className),
|
|
2400
|
+
ref,
|
|
2401
|
+
"aria-invalid": error,
|
|
2402
|
+
...props
|
|
2403
|
+
}
|
|
2404
|
+
);
|
|
2405
|
+
}
|
|
2406
|
+
);
|
|
2407
|
+
Input.displayName = "Input";
|
|
2290
2408
|
|
|
2291
2409
|
// src/components/ui/input-otp.tsx
|
|
2292
2410
|
import * as React22 from "react";
|
|
2293
2411
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
2294
2412
|
import { MinusIcon } from "lucide-react";
|
|
2295
|
-
import { jsx as jsx24, jsxs as
|
|
2413
|
+
import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2296
2414
|
function InputOTP({
|
|
2297
2415
|
className,
|
|
2298
2416
|
containerClassName,
|
|
@@ -2328,7 +2446,7 @@ function InputOTPSlot({
|
|
|
2328
2446
|
}) {
|
|
2329
2447
|
const inputOTPContext = React22.useContext(OTPInputContext);
|
|
2330
2448
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
2331
|
-
return /* @__PURE__ */
|
|
2449
|
+
return /* @__PURE__ */ jsxs12(
|
|
2332
2450
|
"div",
|
|
2333
2451
|
{
|
|
2334
2452
|
"data-slot": "input-otp-slot",
|
|
@@ -2353,7 +2471,7 @@ function InputOTPSeparator({ ...props }) {
|
|
|
2353
2471
|
import "react";
|
|
2354
2472
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
2355
2473
|
import { CheckIcon as CheckIcon4, ChevronRightIcon as ChevronRightIcon4, CircleIcon as CircleIcon3 } from "lucide-react";
|
|
2356
|
-
import { jsx as jsx25, jsxs as
|
|
2474
|
+
import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2357
2475
|
function Menubar({
|
|
2358
2476
|
className,
|
|
2359
2477
|
...props
|
|
@@ -2454,7 +2572,7 @@ function MenubarCheckboxItem({
|
|
|
2454
2572
|
checked,
|
|
2455
2573
|
...props
|
|
2456
2574
|
}) {
|
|
2457
|
-
return /* @__PURE__ */
|
|
2575
|
+
return /* @__PURE__ */ jsxs13(
|
|
2458
2576
|
MenubarPrimitive.CheckboxItem,
|
|
2459
2577
|
{
|
|
2460
2578
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -2476,7 +2594,7 @@ function MenubarRadioItem({
|
|
|
2476
2594
|
children,
|
|
2477
2595
|
...props
|
|
2478
2596
|
}) {
|
|
2479
|
-
return /* @__PURE__ */
|
|
2597
|
+
return /* @__PURE__ */ jsxs13(
|
|
2480
2598
|
MenubarPrimitive.RadioItem,
|
|
2481
2599
|
{
|
|
2482
2600
|
"data-slot": "menubar-radio-item",
|
|
@@ -2550,7 +2668,7 @@ function MenubarSubTrigger({
|
|
|
2550
2668
|
children,
|
|
2551
2669
|
...props
|
|
2552
2670
|
}) {
|
|
2553
|
-
return /* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ jsxs13(
|
|
2554
2672
|
MenubarPrimitive.SubTrigger,
|
|
2555
2673
|
{
|
|
2556
2674
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -2587,16 +2705,16 @@ function MenubarSubContent({
|
|
|
2587
2705
|
// src/components/ui/navigation-menu.tsx
|
|
2588
2706
|
import "react";
|
|
2589
2707
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
2590
|
-
import { cva as
|
|
2708
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
2591
2709
|
import { ChevronDownIcon as ChevronDownIcon3 } from "lucide-react";
|
|
2592
|
-
import { jsx as jsx26, jsxs as
|
|
2710
|
+
import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2593
2711
|
function NavigationMenu({
|
|
2594
2712
|
className,
|
|
2595
2713
|
children,
|
|
2596
2714
|
viewport = true,
|
|
2597
2715
|
...props
|
|
2598
2716
|
}) {
|
|
2599
|
-
return /* @__PURE__ */
|
|
2717
|
+
return /* @__PURE__ */ jsxs14(
|
|
2600
2718
|
NavigationMenuPrimitive.Root,
|
|
2601
2719
|
{
|
|
2602
2720
|
"data-slot": "navigation-menu",
|
|
@@ -2642,7 +2760,7 @@ function NavigationMenuItem({
|
|
|
2642
2760
|
}
|
|
2643
2761
|
);
|
|
2644
2762
|
}
|
|
2645
|
-
var navigationMenuTriggerStyle =
|
|
2763
|
+
var navigationMenuTriggerStyle = cva6(
|
|
2646
2764
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
2647
2765
|
);
|
|
2648
2766
|
function NavigationMenuTrigger({
|
|
@@ -2650,7 +2768,7 @@ function NavigationMenuTrigger({
|
|
|
2650
2768
|
children,
|
|
2651
2769
|
...props
|
|
2652
2770
|
}) {
|
|
2653
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsxs14(
|
|
2654
2772
|
NavigationMenuPrimitive.Trigger,
|
|
2655
2773
|
{
|
|
2656
2774
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -2752,7 +2870,7 @@ import {
|
|
|
2752
2870
|
ChevronRightIcon as ChevronRightIcon5,
|
|
2753
2871
|
MoreHorizontalIcon
|
|
2754
2872
|
} from "lucide-react";
|
|
2755
|
-
import { jsx as jsx27, jsxs as
|
|
2873
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2756
2874
|
function Pagination({ className, ...props }) {
|
|
2757
2875
|
return /* @__PURE__ */ jsx27(
|
|
2758
2876
|
"nav",
|
|
@@ -2808,7 +2926,7 @@ function PaginationPrevious({
|
|
|
2808
2926
|
className,
|
|
2809
2927
|
...props
|
|
2810
2928
|
}) {
|
|
2811
|
-
return /* @__PURE__ */
|
|
2929
|
+
return /* @__PURE__ */ jsxs15(
|
|
2812
2930
|
PaginationLink,
|
|
2813
2931
|
{
|
|
2814
2932
|
"aria-label": "Go to previous page",
|
|
@@ -2826,7 +2944,7 @@ function PaginationNext({
|
|
|
2826
2944
|
className,
|
|
2827
2945
|
...props
|
|
2828
2946
|
}) {
|
|
2829
|
-
return /* @__PURE__ */
|
|
2947
|
+
return /* @__PURE__ */ jsxs15(
|
|
2830
2948
|
PaginationLink,
|
|
2831
2949
|
{
|
|
2832
2950
|
"aria-label": "Go to next page",
|
|
@@ -2844,7 +2962,7 @@ function PaginationEllipsis({
|
|
|
2844
2962
|
className,
|
|
2845
2963
|
...props
|
|
2846
2964
|
}) {
|
|
2847
|
-
return /* @__PURE__ */
|
|
2965
|
+
return /* @__PURE__ */ jsxs15(
|
|
2848
2966
|
"span",
|
|
2849
2967
|
{
|
|
2850
2968
|
"aria-hidden": true,
|
|
@@ -3020,13 +3138,13 @@ function ResizableHandle({
|
|
|
3020
3138
|
// src/components/ui/scroll-area.tsx
|
|
3021
3139
|
import "react";
|
|
3022
3140
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3023
|
-
import { jsx as jsx32, jsxs as
|
|
3141
|
+
import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3024
3142
|
function ScrollArea({
|
|
3025
3143
|
className,
|
|
3026
3144
|
children,
|
|
3027
3145
|
...props
|
|
3028
3146
|
}) {
|
|
3029
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ jsxs16(
|
|
3030
3148
|
ScrollAreaPrimitive.Root,
|
|
3031
3149
|
{
|
|
3032
3150
|
"data-slot": "scroll-area",
|
|
@@ -3079,7 +3197,7 @@ function ScrollBar({
|
|
|
3079
3197
|
import "react";
|
|
3080
3198
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3081
3199
|
import { CheckIcon as CheckIcon5, ChevronDownIcon as ChevronDownIcon4, ChevronUpIcon } from "lucide-react";
|
|
3082
|
-
import { jsx as jsx33, jsxs as
|
|
3200
|
+
import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3083
3201
|
function Select({
|
|
3084
3202
|
...props
|
|
3085
3203
|
}) {
|
|
@@ -3101,7 +3219,7 @@ function SelectTrigger({
|
|
|
3101
3219
|
children,
|
|
3102
3220
|
...props
|
|
3103
3221
|
}) {
|
|
3104
|
-
return /* @__PURE__ */
|
|
3222
|
+
return /* @__PURE__ */ jsxs17(
|
|
3105
3223
|
SelectPrimitive.Trigger,
|
|
3106
3224
|
{
|
|
3107
3225
|
"data-slot": "select-trigger",
|
|
@@ -3124,7 +3242,7 @@ function SelectContent({
|
|
|
3124
3242
|
position = "popper",
|
|
3125
3243
|
...props
|
|
3126
3244
|
}) {
|
|
3127
|
-
return /* @__PURE__ */ jsx33(SelectPrimitive.Portal, { children: /* @__PURE__ */
|
|
3245
|
+
return /* @__PURE__ */ jsx33(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs17(
|
|
3128
3246
|
SelectPrimitive.Content,
|
|
3129
3247
|
{
|
|
3130
3248
|
"data-slot": "select-content",
|
|
@@ -3170,7 +3288,7 @@ function SelectItem({
|
|
|
3170
3288
|
children,
|
|
3171
3289
|
...props
|
|
3172
3290
|
}) {
|
|
3173
|
-
return /* @__PURE__ */
|
|
3291
|
+
return /* @__PURE__ */ jsxs17(
|
|
3174
3292
|
SelectPrimitive.Item,
|
|
3175
3293
|
{
|
|
3176
3294
|
"data-slot": "select-item",
|
|
@@ -3263,7 +3381,7 @@ function Separator5({
|
|
|
3263
3381
|
import "react";
|
|
3264
3382
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3265
3383
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
3266
|
-
import { jsx as jsx35, jsxs as
|
|
3384
|
+
import { jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3267
3385
|
function Sheet({ ...props }) {
|
|
3268
3386
|
return /* @__PURE__ */ jsx35(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
3269
3387
|
}
|
|
@@ -3304,9 +3422,9 @@ function SheetContent({
|
|
|
3304
3422
|
side = "right",
|
|
3305
3423
|
...props
|
|
3306
3424
|
}) {
|
|
3307
|
-
return /* @__PURE__ */
|
|
3425
|
+
return /* @__PURE__ */ jsxs18(SheetPortal, { children: [
|
|
3308
3426
|
/* @__PURE__ */ jsx35(SheetOverlay, {}),
|
|
3309
|
-
/* @__PURE__ */
|
|
3427
|
+
/* @__PURE__ */ jsxs18(
|
|
3310
3428
|
SheetPrimitive.Content,
|
|
3311
3429
|
{
|
|
3312
3430
|
"data-slot": "sheet-content",
|
|
@@ -3321,7 +3439,7 @@ function SheetContent({
|
|
|
3321
3439
|
...props,
|
|
3322
3440
|
children: [
|
|
3323
3441
|
children,
|
|
3324
|
-
/* @__PURE__ */
|
|
3442
|
+
/* @__PURE__ */ jsxs18(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
3325
3443
|
/* @__PURE__ */ jsx35(XIcon2, { className: "size-4" }),
|
|
3326
3444
|
/* @__PURE__ */ jsx35("span", { className: "sr-only", children: "Close" })
|
|
3327
3445
|
] })
|
|
@@ -3379,8 +3497,8 @@ function SheetDescription({
|
|
|
3379
3497
|
|
|
3380
3498
|
// src/components/ui/sidebar.tsx
|
|
3381
3499
|
import * as React36 from "react";
|
|
3382
|
-
import { Slot as
|
|
3383
|
-
import { cva as
|
|
3500
|
+
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
3501
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
3384
3502
|
import { PanelLeftIcon } from "lucide-react";
|
|
3385
3503
|
|
|
3386
3504
|
// src/hooks/use-mobile.ts
|
|
@@ -3416,7 +3534,7 @@ function Skeleton({ className, ...props }) {
|
|
|
3416
3534
|
// src/components/ui/tooltip.tsx
|
|
3417
3535
|
import "react";
|
|
3418
3536
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3419
|
-
import { jsx as jsx37, jsxs as
|
|
3537
|
+
import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3420
3538
|
function TooltipProvider({
|
|
3421
3539
|
delayDuration = 0,
|
|
3422
3540
|
...props
|
|
@@ -3446,7 +3564,7 @@ function TooltipContent({
|
|
|
3446
3564
|
children,
|
|
3447
3565
|
...props
|
|
3448
3566
|
}) {
|
|
3449
|
-
return /* @__PURE__ */ jsx37(TooltipPrimitive.Portal, { children: /* @__PURE__ */
|
|
3567
|
+
return /* @__PURE__ */ jsx37(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs19(
|
|
3450
3568
|
TooltipPrimitive.Content,
|
|
3451
3569
|
{
|
|
3452
3570
|
"data-slot": "tooltip-content",
|
|
@@ -3465,7 +3583,7 @@ function TooltipContent({
|
|
|
3465
3583
|
}
|
|
3466
3584
|
|
|
3467
3585
|
// src/components/ui/sidebar.tsx
|
|
3468
|
-
import { jsx as jsx38, jsxs as
|
|
3586
|
+
import { jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3469
3587
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3470
3588
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3471
3589
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -3573,7 +3691,7 @@ function Sidebar({
|
|
|
3573
3691
|
);
|
|
3574
3692
|
}
|
|
3575
3693
|
if (isMobile) {
|
|
3576
|
-
return /* @__PURE__ */ jsx38(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */
|
|
3694
|
+
return /* @__PURE__ */ jsx38(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs20(
|
|
3577
3695
|
SheetContent,
|
|
3578
3696
|
{
|
|
3579
3697
|
"data-sidebar": "sidebar",
|
|
@@ -3585,7 +3703,7 @@ function Sidebar({
|
|
|
3585
3703
|
},
|
|
3586
3704
|
side,
|
|
3587
3705
|
children: [
|
|
3588
|
-
/* @__PURE__ */
|
|
3706
|
+
/* @__PURE__ */ jsxs20(SheetHeader, { className: "sr-only", children: [
|
|
3589
3707
|
/* @__PURE__ */ jsx38(SheetTitle, { children: "Sidebar" }),
|
|
3590
3708
|
/* @__PURE__ */ jsx38(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
3591
3709
|
] }),
|
|
@@ -3594,7 +3712,7 @@ function Sidebar({
|
|
|
3594
3712
|
}
|
|
3595
3713
|
) });
|
|
3596
3714
|
}
|
|
3597
|
-
return /* @__PURE__ */
|
|
3715
|
+
return /* @__PURE__ */ jsxs20(
|
|
3598
3716
|
"div",
|
|
3599
3717
|
{
|
|
3600
3718
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
@@ -3649,7 +3767,7 @@ function SidebarTrigger({
|
|
|
3649
3767
|
...props
|
|
3650
3768
|
}) {
|
|
3651
3769
|
const { toggleSidebar } = useSidebar();
|
|
3652
|
-
return /* @__PURE__ */
|
|
3770
|
+
return /* @__PURE__ */ jsxs20(
|
|
3653
3771
|
Button,
|
|
3654
3772
|
{
|
|
3655
3773
|
"data-sidebar": "trigger",
|
|
@@ -3787,7 +3905,7 @@ function SidebarGroupLabel({
|
|
|
3787
3905
|
asChild = false,
|
|
3788
3906
|
...props
|
|
3789
3907
|
}) {
|
|
3790
|
-
const Comp = asChild ?
|
|
3908
|
+
const Comp = asChild ? Slot6 : "div";
|
|
3791
3909
|
return /* @__PURE__ */ jsx38(
|
|
3792
3910
|
Comp,
|
|
3793
3911
|
{
|
|
@@ -3807,7 +3925,7 @@ function SidebarGroupAction({
|
|
|
3807
3925
|
asChild = false,
|
|
3808
3926
|
...props
|
|
3809
3927
|
}) {
|
|
3810
|
-
const Comp = asChild ?
|
|
3928
|
+
const Comp = asChild ? Slot6 : "button";
|
|
3811
3929
|
return /* @__PURE__ */ jsx38(
|
|
3812
3930
|
Comp,
|
|
3813
3931
|
{
|
|
@@ -3860,7 +3978,7 @@ function SidebarMenuItem({ className, ...props }) {
|
|
|
3860
3978
|
}
|
|
3861
3979
|
);
|
|
3862
3980
|
}
|
|
3863
|
-
var sidebarMenuButtonVariants =
|
|
3981
|
+
var sidebarMenuButtonVariants = cva7(
|
|
3864
3982
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3865
3983
|
{
|
|
3866
3984
|
variants: {
|
|
@@ -3889,7 +4007,7 @@ function SidebarMenuButton({
|
|
|
3889
4007
|
className,
|
|
3890
4008
|
...props
|
|
3891
4009
|
}) {
|
|
3892
|
-
const Comp = asChild ?
|
|
4010
|
+
const Comp = asChild ? Slot6 : "button";
|
|
3893
4011
|
const { isMobile, state } = useSidebar();
|
|
3894
4012
|
const button = /* @__PURE__ */ jsx38(
|
|
3895
4013
|
Comp,
|
|
@@ -3910,7 +4028,7 @@ function SidebarMenuButton({
|
|
|
3910
4028
|
children: tooltip
|
|
3911
4029
|
};
|
|
3912
4030
|
}
|
|
3913
|
-
return /* @__PURE__ */
|
|
4031
|
+
return /* @__PURE__ */ jsxs20(Tooltip2, { children: [
|
|
3914
4032
|
/* @__PURE__ */ jsx38(TooltipTrigger, { asChild: true, children: button }),
|
|
3915
4033
|
/* @__PURE__ */ jsx38(
|
|
3916
4034
|
TooltipContent,
|
|
@@ -3929,7 +4047,7 @@ function SidebarMenuAction({
|
|
|
3929
4047
|
showOnHover = false,
|
|
3930
4048
|
...props
|
|
3931
4049
|
}) {
|
|
3932
|
-
const Comp = asChild ?
|
|
4050
|
+
const Comp = asChild ? Slot6 : "button";
|
|
3933
4051
|
return /* @__PURE__ */ jsx38(
|
|
3934
4052
|
Comp,
|
|
3935
4053
|
{
|
|
@@ -3980,7 +4098,7 @@ function SidebarMenuSkeleton({
|
|
|
3980
4098
|
const width = React36.useMemo(() => {
|
|
3981
4099
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
3982
4100
|
}, []);
|
|
3983
|
-
return /* @__PURE__ */
|
|
4101
|
+
return /* @__PURE__ */ jsxs20(
|
|
3984
4102
|
"div",
|
|
3985
4103
|
{
|
|
3986
4104
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -4045,7 +4163,7 @@ function SidebarMenuSubButton({
|
|
|
4045
4163
|
className,
|
|
4046
4164
|
...props
|
|
4047
4165
|
}) {
|
|
4048
|
-
const Comp = asChild ?
|
|
4166
|
+
const Comp = asChild ? Slot6 : "a";
|
|
4049
4167
|
return /* @__PURE__ */ jsx38(
|
|
4050
4168
|
Comp,
|
|
4051
4169
|
{
|
|
@@ -4069,7 +4187,7 @@ function SidebarMenuSubButton({
|
|
|
4069
4187
|
// src/components/ui/slider.tsx
|
|
4070
4188
|
import * as React37 from "react";
|
|
4071
4189
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4072
|
-
import { jsx as jsx39, jsxs as
|
|
4190
|
+
import { jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4073
4191
|
function Slider({
|
|
4074
4192
|
className,
|
|
4075
4193
|
defaultValue,
|
|
@@ -4082,7 +4200,7 @@ function Slider({
|
|
|
4082
4200
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
4083
4201
|
[value, defaultValue, min, max]
|
|
4084
4202
|
);
|
|
4085
|
-
return /* @__PURE__ */
|
|
4203
|
+
return /* @__PURE__ */ jsxs21(
|
|
4086
4204
|
SliderPrimitive.Root,
|
|
4087
4205
|
{
|
|
4088
4206
|
"data-slot": "slider",
|
|
@@ -4367,9 +4485,9 @@ function Textarea({ className, ...props }) {
|
|
|
4367
4485
|
// src/components/ui/toggle.tsx
|
|
4368
4486
|
import "react";
|
|
4369
4487
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4370
|
-
import { cva as
|
|
4488
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
4371
4489
|
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4372
|
-
var toggleVariants =
|
|
4490
|
+
var toggleVariants = cva8(
|
|
4373
4491
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
4374
4492
|
{
|
|
4375
4493
|
variants: {
|
|
@@ -4463,43 +4581,6 @@ function ToggleGroupItem({
|
|
|
4463
4581
|
}
|
|
4464
4582
|
);
|
|
4465
4583
|
}
|
|
4466
|
-
|
|
4467
|
-
// src/components/ui/typography.tsx
|
|
4468
|
-
import "react";
|
|
4469
|
-
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
4470
|
-
import { cva as cva7 } from "class-variance-authority";
|
|
4471
|
-
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4472
|
-
var displayTextVariants = cva7(
|
|
4473
|
-
"tracking-normal font-normal leading-none text-brand-dark font-serif italic",
|
|
4474
|
-
{
|
|
4475
|
-
variants: {
|
|
4476
|
-
size: {
|
|
4477
|
-
md: "text-[1.75rem] md:text-4xl leading-[2.75rem] md:leading-[4rem]",
|
|
4478
|
-
sm: "text-lg md:text-xl leading-[2.5rem] md:leading-[3rem]",
|
|
4479
|
-
lg: "text-4xl md:text-[3.25rem] leading-[4rem] md:leading-[5rem]"
|
|
4480
|
-
}
|
|
4481
|
-
},
|
|
4482
|
-
defaultVariants: {
|
|
4483
|
-
size: "md"
|
|
4484
|
-
}
|
|
4485
|
-
}
|
|
4486
|
-
);
|
|
4487
|
-
function DisplayHeading({
|
|
4488
|
-
className,
|
|
4489
|
-
size,
|
|
4490
|
-
asChild = false,
|
|
4491
|
-
...props
|
|
4492
|
-
}) {
|
|
4493
|
-
const Comp = asChild ? Slot6 : "h1";
|
|
4494
|
-
return /* @__PURE__ */ jsx47(
|
|
4495
|
-
Comp,
|
|
4496
|
-
{
|
|
4497
|
-
"data-slot": "h1",
|
|
4498
|
-
className: cn(displayTextVariants({ size, className })),
|
|
4499
|
-
...props
|
|
4500
|
-
}
|
|
4501
|
-
);
|
|
4502
|
-
}
|
|
4503
4584
|
export {
|
|
4504
4585
|
Accordion,
|
|
4505
4586
|
AccordionContent,
|
|
@@ -4590,7 +4671,6 @@ export {
|
|
|
4590
4671
|
DialogPortal,
|
|
4591
4672
|
DialogTitle,
|
|
4592
4673
|
DialogTrigger,
|
|
4593
|
-
DisplayHeading,
|
|
4594
4674
|
Drawer,
|
|
4595
4675
|
DrawerClose,
|
|
4596
4676
|
DrawerContent,
|
|
@@ -4744,7 +4824,8 @@ export {
|
|
|
4744
4824
|
badgeVariants,
|
|
4745
4825
|
buttonVariants,
|
|
4746
4826
|
cn,
|
|
4747
|
-
|
|
4827
|
+
inputVariants,
|
|
4828
|
+
labelTextVariants,
|
|
4748
4829
|
navigationMenuTriggerStyle,
|
|
4749
4830
|
toggleVariants,
|
|
4750
4831
|
useFormField,
|