@crossangle-org/cs-ui 0.0.1 → 0.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 +1 -1
- package/dist/cs-ui.css +2934 -700
- package/dist/index.cjs.js +1035 -424
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +1036 -425
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -3314,16 +3314,16 @@ const csAccordionItemVariants = cva(
|
|
|
3314
3314
|
variants: {
|
|
3315
3315
|
variant: {
|
|
3316
3316
|
default: [
|
|
3317
|
-
"bg-(--
|
|
3318
|
-
"data-[state=open]:pb-
|
|
3317
|
+
"bg-(--accordion-common-bg) border-b-(length:--accordion-default-border-width) border-b-(--accordion-default-border)",
|
|
3318
|
+
"data-[state=open]:pb-(--accordion-default-padding-y)"
|
|
3319
3319
|
],
|
|
3320
3320
|
custom: [
|
|
3321
|
-
"rounded-(--radius
|
|
3322
|
-
"data-[state=open]:pb-
|
|
3323
|
-
"bg-(--
|
|
3324
|
-
"data-[state=open]:bg-(--
|
|
3325
|
-
"hover:bg-(--
|
|
3326
|
-
"data-[state=open]:hover:bg-(--
|
|
3321
|
+
"rounded-(--accordion-custom-radius) px-(--accordion-custom-padding-x) border-(length:--accordion-custom-border-width)",
|
|
3322
|
+
"data-[state=open]:pb-(--accordion-custom-padding-y)",
|
|
3323
|
+
"bg-(--accordion-custom-closed-bg) border-(--accordion-custom-closed-border)",
|
|
3324
|
+
"data-[state=open]:bg-(--accordion-custom-open-bg) data-[state=open]:border-(--accordion-custom-open-border)",
|
|
3325
|
+
"hover:bg-(--accordion-custom-hover-bg) hover:border-(--accordion-custom-hover-border)",
|
|
3326
|
+
"data-[state=open]:hover:bg-(--accordion-custom-open-bg) data-[state=open]:hover:border-(--accordion-custom-open-border)"
|
|
3327
3327
|
]
|
|
3328
3328
|
}
|
|
3329
3329
|
},
|
|
@@ -3360,19 +3360,19 @@ function CsAccordionTrigger({
|
|
|
3360
3360
|
"flex flex-1 items-center justify-between text-left typo-body-md transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-(--opacity-state-disabled) [&[data-state=open]>svg]:rotate-180",
|
|
3361
3361
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-transform [&_svg]:duration-200",
|
|
3362
3362
|
// default
|
|
3363
|
-
"group-data-[variant=default]/accordion:py-
|
|
3364
|
-
"group-data-[variant=default]/accordion:data-[state=closed]:text-(--
|
|
3365
|
-
"group-data-[variant=default]/accordion:
|
|
3366
|
-
"group-data-[variant=default]/accordion:hover:text(--
|
|
3367
|
-
"group-data-[variant=default]/accordion:
|
|
3368
|
-
"group-data-[variant=default]/accordion:[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
3363
|
+
"group-data-[variant=default]/accordion:py-(--accordion-default-padding-y) group-data-[variant=default]/accordion:gap-(--accordion-default-gap)",
|
|
3364
|
+
"group-data-[variant=default]/accordion:data-[state=closed]:text-(--accordion-default-closed-title) group-data-[variant=default]/accordion:data-[state=closed]:[&_svg]:text-(--accordion-default-closed-icon)",
|
|
3365
|
+
"group-data-[variant=default]/accordion:data-[state=open]:text-(--accordion-default-open-title) group-data-[variant=default]/accordion:data-[state=open]:[&_svg]:text-(--accordion-default-open-icon)",
|
|
3366
|
+
"group-data-[variant=default]/accordion:hover:text-(--accordion-default-hover-title) group-data-[variant=default]/accordion:hover:[&_svg]:text-(--accordion-default-hover-icon)",
|
|
3367
|
+
"group-data-[variant=default]/accordion:data-[state=open]:hover:text-(--accordion-default-open-title) group-data-[variant=default]/accordion:data-[state=open]:hover:[&_svg]:text-(--accordion-default-open-icon)",
|
|
3368
|
+
"group-data-[variant=default]/accordion:[&_svg:not([class*='size-'])]:size-(--accordion-default-icon-size)",
|
|
3369
3369
|
// custom
|
|
3370
|
-
"group-data-[variant=custom]/accordion:py-
|
|
3371
|
-
"group-data-[variant=custom]/accordion:data-[state=closed]:text-(--
|
|
3372
|
-
"group-data-[variant=custom]/accordion:
|
|
3373
|
-
"group-data-[variant=custom]/accordion:hover:text(--
|
|
3374
|
-
"group-data-[variant=custom]/accordion:
|
|
3375
|
-
"group-data-[variant=custom]/accordion:[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
3370
|
+
"group-data-[variant=custom]/accordion:py-(--accordion-custom-padding-y) group-data-[variant=custom]/accordion:gap-(--accordion-custom-gap)",
|
|
3371
|
+
"group-data-[variant=custom]/accordion:data-[state=closed]:text-(--accordion-custom-closed-title) group-data-[variant=custom]/accordion:data-[state=closed]:[&_svg]:text-(--accordion-custom-closed-icon)",
|
|
3372
|
+
"group-data-[variant=custom]/accordion:data-[state=open]:text-(--accordion-custom-open-title) group-data-[variant=custom]/accordion:data-[state=open]:[&_svg]:text-(--accordion-custom-open-icon)",
|
|
3373
|
+
"group-data-[variant=custom]/accordion:hover:text-(--accordion-custom-hover-title) group-data-[variant=custom]/accordion:hover:[&_svg]:text-(--accordion-custom-hover-icon)",
|
|
3374
|
+
"group-data-[variant=custom]/accordion:data-[state=open]:hover:text-(--accordion-custom-open-title) group-data-[variant=custom]/accordion:data-[state=open]:hover:[&_svg]:text-(--accordion-custom-open-icon)",
|
|
3375
|
+
"group-data-[variant=custom]/accordion:[&_svg:not([class*='size-'])]:size-(--accordion-custom-icon-size)",
|
|
3376
3376
|
className
|
|
3377
3377
|
),
|
|
3378
3378
|
...props,
|
|
@@ -3396,64 +3396,69 @@ function CsAccordionContent({
|
|
|
3396
3396
|
...props,
|
|
3397
3397
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn$1(
|
|
3398
3398
|
"typo-body-sm",
|
|
3399
|
-
"group-data-[variant=default]/accordion:pt-
|
|
3400
|
-
"group-data-[variant=default]/accordion:text-(--
|
|
3401
|
-
"group-data-[variant=custom]/accordion:pt-
|
|
3402
|
-
"group-data-[variant=custom]/accordion:typo-body-sm group-data-[variant=custom]/accordion:text-(--
|
|
3399
|
+
"group-data-[variant=default]/accordion:pt-(--accordion-default-open-gap)",
|
|
3400
|
+
"group-data-[variant=default]/accordion:text-(--accordion-default-open-description)",
|
|
3401
|
+
"group-data-[variant=custom]/accordion:pt-(--accordion-custom-open-gap)",
|
|
3402
|
+
"group-data-[variant=custom]/accordion:typo-body-sm group-data-[variant=custom]/accordion:text-(--accordion-custom-open-description)",
|
|
3403
3403
|
className
|
|
3404
3404
|
), children })
|
|
3405
3405
|
}
|
|
3406
3406
|
);
|
|
3407
3407
|
}
|
|
3408
3408
|
const csButtonVariants = cva(
|
|
3409
|
-
"inline-flex items-center justify-center whitespace-nowrap
|
|
3409
|
+
"inline-flex items-center justify-center whitespace-nowrap transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-(--button-common-opacity) shrink-0 [&_svg]:shrink-0 ring-0 focus:ring-0 focus-visible:ring-0 outline-none",
|
|
3410
3410
|
{
|
|
3411
3411
|
variants: {
|
|
3412
3412
|
variant: {
|
|
3413
3413
|
"solid-primary": [
|
|
3414
|
-
"bg-(--
|
|
3415
|
-
"hover:bg-(--
|
|
3416
|
-
"disabled:bg-(--
|
|
3414
|
+
"bg-(--button-solid-primary-default-bg) text-(--button-solid-primary-default-font) [&_svg]:text-(--button-solid-primary-default-icon)",
|
|
3415
|
+
"hover:bg-(--button-solid-primary-hover-bg) hover:text-(--button-solid-primary-hover-font) hover:[&_svg]:text-(--button-solid-primary-hover-icon)",
|
|
3416
|
+
"disabled:bg-(--button-solid-primary-disabled-bg) disabled:text-(--button-solid-primary-disabled-font) disabled:[&_svg]:text-(--button-solid-primary-disabled-icon)"
|
|
3417
3417
|
].join(" "),
|
|
3418
3418
|
"solid-secondary": [
|
|
3419
|
-
"bg-(--
|
|
3420
|
-
"hover:bg-(--
|
|
3421
|
-
"disabled:bg-(--
|
|
3419
|
+
"bg-(--button-solid-secondary-default-bg) text-(--button-solid-secondary-default-font) [&_svg]:text-(--button-solid-secondary-default-icon)",
|
|
3420
|
+
"hover:bg-(--button-solid-secondary-hover-bg) hover:text-(--button-solid-secondary-hover-font) hover:[&_svg]:text-(--button-solid-secondary-hover-icon)",
|
|
3421
|
+
"disabled:bg-(--button-solid-secondary-disabled-bg) disabled:text-(--button-solid-secondary-disabled-font) disabled:[&_svg]:text-(--button-solid-secondary-disabled-icon)"
|
|
3422
3422
|
].join(" "),
|
|
3423
3423
|
outline: [
|
|
3424
|
-
"bg-(--
|
|
3425
|
-
"hover:bg-(--
|
|
3426
|
-
"disabled:bg-(--
|
|
3424
|
+
"bg-(--button-outline-default-bg) border-(length:--button-outline-border-width) border-(--button-outline-default-border) text-(--button-outline-default-font) [&_svg]:text-(--button-outline-default-icon)",
|
|
3425
|
+
"hover:bg-(--button-outline-hover-bg) hover:border-(--button-outline-hover-border) hover:text-(--button-outline-hover-font) hover:[&_svg]:text-(--button-outline-hover-icon)",
|
|
3426
|
+
"disabled:bg-(--button-outline-disabled-bg) disabled:border-(--button-outline-disabled-border) disabled:text-(--button-outline-disabled-font) disabled:[&_svg]:text-(--button-outline-disabled-icon)"
|
|
3427
3427
|
].join(" "),
|
|
3428
3428
|
ghost: [
|
|
3429
|
-
"text-(--
|
|
3430
|
-
"hover:bg-(--
|
|
3431
|
-
"disabled:text-(--
|
|
3429
|
+
"text-(--button-ghost-default-font) [&_svg]:text-(--button-ghost-default-icon)",
|
|
3430
|
+
"hover:bg-(--button-ghost-hover-bg) hover:text-(--button-ghost-hover-font) hover:[&_svg]:text-(--button-ghost-hover-icon)",
|
|
3431
|
+
"disabled:text-(--button-ghost-disabled-font) disabled:[&_svg]:text-(--button-ghost-disabled-icon)"
|
|
3432
3432
|
].join(" "),
|
|
3433
3433
|
link: [
|
|
3434
|
-
"text-(--
|
|
3435
|
-
"hover:text-(--
|
|
3436
|
-
"disabled:text-(--
|
|
3434
|
+
"text-(--button-link-default-font) [&_svg]:text-(--button-link-default-icon)",
|
|
3435
|
+
"hover:bg-(--button-link-hover-bg) hover:text-(--button-link-hover-font) hover:[&_svg]:text-(--button-link-hover-icon)",
|
|
3436
|
+
"disabled:text-(--button-link-disabled-font) disabled:[&_svg]:text-(--button-link-disabled-icon)"
|
|
3437
3437
|
].join(" "),
|
|
3438
3438
|
gradient: [
|
|
3439
|
-
"gradient-primary-vertical text-(--
|
|
3440
|
-
"hover:gradient-primary-hover-vertical hover:text-(--
|
|
3441
|
-
"disabled:gradient-primary-vertical disabled:text-(--
|
|
3439
|
+
"gradient-primary-vertical text-(--button-gradient-default-font) [&_svg]:text-(--button-gradient-default-icon)",
|
|
3440
|
+
"hover:gradient-primary-hover-vertical hover:text-(--button-gradient-hover-font) hover:[&_svg]:text-(--button-gradient-hover-icon)",
|
|
3441
|
+
"disabled:gradient-primary-vertical disabled:text-(--button-gradient-disabled-font) disabled:[&_svg]:text-(--button-gradient-disabled-icon)"
|
|
3442
3442
|
].join(" ")
|
|
3443
3443
|
},
|
|
3444
3444
|
size: {
|
|
3445
|
-
default:
|
|
3445
|
+
default: [
|
|
3446
|
+
"h-(--button-size-medium-height) typo-body-sm px-(--button-size-medium-padding-x) gap-(--button-size-medium-gap) rounded-(--button-size-medium-radius) [&_svg]:size-(--button-size-medium-icon-size)"
|
|
3447
|
+
].join(" "),
|
|
3446
3448
|
small: [
|
|
3447
|
-
"h-(--
|
|
3448
|
-
"
|
|
3449
|
+
"h-(--button-size-small-height) typo-body-xs font-weight-(--font-weight-body-bold)",
|
|
3450
|
+
"px-(--button-size-small-padding-x) gap-(--button-size-small-gap) rounded-(--button-size-small-radius)",
|
|
3451
|
+
"[&_svg]:size-(--button-size-small-icon-size)"
|
|
3449
3452
|
].join(" "),
|
|
3450
3453
|
medium: [
|
|
3451
|
-
"h-(--
|
|
3452
|
-
"
|
|
3454
|
+
"h-(--button-size-medium-height) typo-body-sm",
|
|
3455
|
+
"px-(--button-size-medium-padding-x) gap-(--button-size-medium-gap) rounded-(--button-size-medium-radius)",
|
|
3456
|
+
"[&_svg]:size-(--button-size-medium-icon-size)"
|
|
3453
3457
|
].join(" "),
|
|
3454
3458
|
large: [
|
|
3455
|
-
"h-(--
|
|
3456
|
-
"
|
|
3459
|
+
"h-(--button-size-large-height) typo-body-sm",
|
|
3460
|
+
"px-(--button-size-large-padding-x) gap-(--button-size-large-gap) rounded-(--button-size-large-radius)",
|
|
3461
|
+
"[&_svg]:size-(--button-size-large-icon-size)"
|
|
3457
3462
|
].join(" ")
|
|
3458
3463
|
}
|
|
3459
3464
|
},
|
|
@@ -3504,7 +3509,7 @@ function CsAlertDialogOverlay({
|
|
|
3504
3509
|
{
|
|
3505
3510
|
"data-slot": "alert-dialog-overlay",
|
|
3506
3511
|
className: cn$1(
|
|
3507
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-(--
|
|
3512
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-(--dialog-common-bg-overlay)",
|
|
3508
3513
|
className
|
|
3509
3514
|
),
|
|
3510
3515
|
...props
|
|
@@ -3522,7 +3527,7 @@ function CsAlertDialogContent({
|
|
|
3522
3527
|
{
|
|
3523
3528
|
"data-slot": "alert-dialog-content",
|
|
3524
3529
|
className: cn$1(
|
|
3525
|
-
"bg-(--
|
|
3530
|
+
"bg-(--dialog-common-bg) data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-(2*var(--dialog-common-padding-x)))] translate-x-[-50%] translate-y-[-50%] gap-(--dialog-common-gap) rounded-(--dialog-common-radius) border-(--dialog-common-border) border-(length:--dialog-common-border-width) px-(--dialog-common-padding-x) py-(--dialog-common-padding-y) duration-200",
|
|
3526
3531
|
className
|
|
3527
3532
|
),
|
|
3528
3533
|
...props
|
|
@@ -3538,7 +3543,7 @@ function CsAlertDialogHeader({
|
|
|
3538
3543
|
"div",
|
|
3539
3544
|
{
|
|
3540
3545
|
"data-slot": "alert-dialog-header",
|
|
3541
|
-
className: cn$1("flex flex-col gap-
|
|
3546
|
+
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) mobile:text-center text-left", className),
|
|
3542
3547
|
...props
|
|
3543
3548
|
}
|
|
3544
3549
|
);
|
|
@@ -3552,7 +3557,7 @@ function CsAlertDialogFooter({
|
|
|
3552
3557
|
{
|
|
3553
3558
|
"data-slot": "alert-dialog-footer",
|
|
3554
3559
|
className: cn$1(
|
|
3555
|
-
"flex flex-col-reverse gap-
|
|
3560
|
+
"flex flex-col-reverse gap-(--dialog-container-footer-gap) mobile:flex-row mobile:justify-end",
|
|
3556
3561
|
className
|
|
3557
3562
|
),
|
|
3558
3563
|
...props
|
|
@@ -3567,7 +3572,7 @@ function CsAlertDialogTitle({
|
|
|
3567
3572
|
AlertDialogPrimitive__namespace.Title,
|
|
3568
3573
|
{
|
|
3569
3574
|
"data-slot": "alert-dialog-title",
|
|
3570
|
-
className: cn$1("typo-heading-sm text-(--
|
|
3575
|
+
className: cn$1("typo-heading-sm text-(--dialog-container-header-title)", className),
|
|
3571
3576
|
...props
|
|
3572
3577
|
}
|
|
3573
3578
|
);
|
|
@@ -3580,7 +3585,7 @@ function CsAlertDialogDescription({
|
|
|
3580
3585
|
AlertDialogPrimitive__namespace.Description,
|
|
3581
3586
|
{
|
|
3582
3587
|
"data-slot": "alert-dialog-description",
|
|
3583
|
-
className: cn$1("typo-body-sm text-(--
|
|
3588
|
+
className: cn$1("typo-body-sm text-(--dialog-container-header-description)", className),
|
|
3584
3589
|
...props
|
|
3585
3590
|
}
|
|
3586
3591
|
);
|
|
@@ -3610,13 +3615,13 @@ function CsAlertDialogCancel({
|
|
|
3610
3615
|
);
|
|
3611
3616
|
}
|
|
3612
3617
|
const csBadgeVariants = cva(
|
|
3613
|
-
"inline-flex items-center justify-center rounded-(--radius
|
|
3618
|
+
"inline-flex items-center justify-center rounded-(--badge-common-radius) border-(length:--badge-outline-border-width) px-(--badge-common-padding-x) py-(--badge-common-padding-y) gap-(--badge-common-gap) typo-productive-label-sm w-fit whitespace-nowrap shrink-0 [&>svg]:size-(--badge-common-icon-size) [&>svg]:pointer-events-none focus-visible:ring-0 transition-[color,box-shadow] overflow-hidden",
|
|
3614
3619
|
{
|
|
3615
3620
|
variants: {
|
|
3616
3621
|
variant: {
|
|
3617
|
-
solid: "bg-(--
|
|
3618
|
-
outline: "bg-(--
|
|
3619
|
-
gradient: "gradient-primary-vertical text-(--
|
|
3622
|
+
solid: "bg-(--badge-solid-bg) text-(--badge-solid-font) [&_svg]:text-(--badge-solid-icon) border-transparent",
|
|
3623
|
+
outline: "bg-(--badge-outline-bg) text-(--badge-outline-font) [&_svg]:text-(--badge-outline-icon) border-(--badge-outline-border)",
|
|
3624
|
+
gradient: "gradient-primary-vertical text-(--badge-gradient-font) [&_svg]:text-(--badge-gradient-icon) border-transparent"
|
|
3620
3625
|
}
|
|
3621
3626
|
},
|
|
3622
3627
|
defaultVariants: {
|
|
@@ -3641,12 +3646,12 @@ function CsBadge({
|
|
|
3641
3646
|
);
|
|
3642
3647
|
}
|
|
3643
3648
|
const csBoxVariants = cva(
|
|
3644
|
-
"flex flex-col
|
|
3649
|
+
"flex flex-col",
|
|
3645
3650
|
{
|
|
3646
3651
|
variants: {
|
|
3647
3652
|
variant: {
|
|
3648
|
-
solid: "
|
|
3649
|
-
outline: "
|
|
3653
|
+
solid: "rounded-(--box-solid-radius) bg-(--box-solid-bg) gap-(--box-solid-gap) mobile:gap-(--box-solid-gap-mobile) py-(--box-solid-padding-y) mobile:py-(--box-solid-padding-y-mobile) px-(--box-solid-padding-x) mobile:px-(--box-solid-padding-x-mobile)",
|
|
3654
|
+
outline: "rounded-(--box-outline-radius) bg-(--box-outline-bg) border-(--box-outline-border) border-(length:--box-outline-border-width) gap-(--box-outline-gap) mobile:gap-(--box-outline-gap-mobile) py-(--box-outline-padding-y) mobile:py-(--box-outline-padding-y-mobile) px-(--box-outline-padding-x) mobile:px-(--box-outline-padding-x-mobile)"
|
|
3650
3655
|
}
|
|
3651
3656
|
},
|
|
3652
3657
|
defaultVariants: {
|
|
@@ -7626,7 +7631,7 @@ function CsCalendar({
|
|
|
7626
7631
|
{
|
|
7627
7632
|
showOutsideDays,
|
|
7628
7633
|
className: cn$1(
|
|
7629
|
-
"bg-(--
|
|
7634
|
+
"bg-(--calendar-container-bg) border-(length:--calendar-container-border-width) border-(--calendar-container-border) rounded-(--calendar-container-radius) group/calendar px-(--calendar-container-padding-x) py-(--calendar-container-padding-y) [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
7630
7635
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
7631
7636
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
7632
7637
|
className
|
|
@@ -7639,22 +7644,22 @@ function CsCalendar({
|
|
|
7639
7644
|
classNames: {
|
|
7640
7645
|
root: cn$1("w-fit", defaultClassNames.root),
|
|
7641
7646
|
months: cn$1(
|
|
7642
|
-
"flex gap-
|
|
7647
|
+
"flex gap-(--calendar-container-gap) flex-col md:flex-row relative typo-body-sm",
|
|
7643
7648
|
defaultClassNames.months
|
|
7644
7649
|
),
|
|
7645
|
-
month: cn$1("flex flex-col w-full gap-
|
|
7650
|
+
month: cn$1("flex flex-col w-full gap-(--calendar-container-gap)", defaultClassNames.month),
|
|
7646
7651
|
nav: cn$1(
|
|
7647
|
-
"flex items-center gap-
|
|
7652
|
+
"flex items-center gap-(--calendar-days-radius) w-full absolute top-0 inset-x-0 justify-between",
|
|
7648
7653
|
defaultClassNames.nav
|
|
7649
7654
|
),
|
|
7650
7655
|
button_previous: cn$1(
|
|
7651
7656
|
csButtonVariants({ variant: "ghost" }),
|
|
7652
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-(--
|
|
7657
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-(--calendar-container-icon) border-(length:--calendar-container-border-width) border-(--calendar-container-border) rounded-(--calendar-container-radius)",
|
|
7653
7658
|
defaultClassNames.button_previous
|
|
7654
7659
|
),
|
|
7655
7660
|
button_next: cn$1(
|
|
7656
7661
|
csButtonVariants({ variant: "ghost" }),
|
|
7657
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-(--
|
|
7662
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-(--calendar-container-icon) border-(length:--calendar-container-border-width) border-(--calendar-container-border) rounded-(--calendar-container-radius)",
|
|
7658
7663
|
defaultClassNames.button_next
|
|
7659
7664
|
),
|
|
7660
7665
|
month_caption: cn$1(
|
|
@@ -7666,29 +7671,29 @@ function CsCalendar({
|
|
|
7666
7671
|
defaultClassNames.month_grid
|
|
7667
7672
|
),
|
|
7668
7673
|
dropdowns: cn$1(
|
|
7669
|
-
"w-full flex items-center font-medium justify-center h-(--cell-size) gap-
|
|
7674
|
+
"w-full flex items-center font-medium justify-center h-(--cell-size) gap-(--calendar-days-radius)",
|
|
7670
7675
|
defaultClassNames.dropdowns
|
|
7671
7676
|
),
|
|
7672
7677
|
dropdown_root: cn$1(
|
|
7673
|
-
"relative border-(length:--border-width
|
|
7678
|
+
"relative border-(length:--calendar-container-border-width) border-(--calendar-container-border) rounded-(--calendar-container-radius)",
|
|
7674
7679
|
defaultClassNames.dropdown_root
|
|
7675
7680
|
),
|
|
7676
7681
|
dropdown: cn$1(
|
|
7677
|
-
"absolute bg-(--
|
|
7682
|
+
"absolute bg-(--calendar-container-bg) inset-0 opacity-0",
|
|
7678
7683
|
defaultClassNames.dropdown
|
|
7679
7684
|
),
|
|
7680
7685
|
caption_label: cn$1(
|
|
7681
7686
|
"select-none font-medium",
|
|
7682
|
-
captionLayout === "label" ? "" : "rounded-(--radius
|
|
7687
|
+
captionLayout === "label" ? "" : "rounded-(--calendar-container-radius) px-(--calendar-container-padding-x) py-(--calendar-container-padding-y) flex items-center gap-(--calendar-container-gap) h-(--scale-control-lg) [&>svg]:size-(--calendar-container-icon-size)",
|
|
7683
7688
|
defaultClassNames.caption_label
|
|
7684
7689
|
),
|
|
7685
7690
|
table: "w-full border-collapse",
|
|
7686
7691
|
weekdays: cn$1("flex", defaultClassNames.weekdays),
|
|
7687
7692
|
weekday: cn$1(
|
|
7688
|
-
"rounded-(--radius
|
|
7693
|
+
"rounded-(--calendar-container-radius) flex-1 font-normal select-none text-(--calendar-days-default-font)",
|
|
7689
7694
|
defaultClassNames.weekday
|
|
7690
7695
|
),
|
|
7691
|
-
week: cn$1("flex w-full mt-
|
|
7696
|
+
week: cn$1("flex w-full mt-(--calendar-container-gap)", defaultClassNames.week),
|
|
7692
7697
|
week_number_header: cn$1(
|
|
7693
7698
|
"select-none w-(--cell-size)",
|
|
7694
7699
|
defaultClassNames.week_number_header
|
|
@@ -7703,11 +7708,11 @@ function CsCalendar({
|
|
|
7703
7708
|
defaultClassNames.day
|
|
7704
7709
|
),
|
|
7705
7710
|
range_start: cn$1(
|
|
7706
|
-
"rounded-l-md bg-(--
|
|
7711
|
+
"rounded-l-md bg-(--calendar-days-current-bg) text-(--calendar-days-current-font)",
|
|
7707
7712
|
defaultClassNames.range_start
|
|
7708
7713
|
),
|
|
7709
|
-
range_middle: cn$1("rounded-none bg-(--
|
|
7710
|
-
range_end: cn$1("rounded-r-md bg-(--
|
|
7714
|
+
range_middle: cn$1("rounded-none bg-(--calendar-days-selected-bg) text-(--calendar-days-selected-font)", defaultClassNames.range_middle),
|
|
7715
|
+
range_end: cn$1("rounded-r-md bg-(--calendar-days-current-bg) text-(--calendar-days-current-font)", defaultClassNames.range_end),
|
|
7711
7716
|
today: cn$1(
|
|
7712
7717
|
"",
|
|
7713
7718
|
defaultClassNames.today
|
|
@@ -7717,7 +7722,7 @@ function CsCalendar({
|
|
|
7717
7722
|
defaultClassNames.outside
|
|
7718
7723
|
),
|
|
7719
7724
|
disabled: cn$1(
|
|
7720
|
-
"text-(--
|
|
7725
|
+
"text-(--calendar-days-disabled-font) opacity-50",
|
|
7721
7726
|
defaultClassNames.disabled
|
|
7722
7727
|
),
|
|
7723
7728
|
hidden: cn$1("invisible", defaultClassNames.hidden),
|
|
@@ -7781,14 +7786,16 @@ function CsCalendarDayButton({
|
|
|
7781
7786
|
"data-range-start": modifiers.range_start,
|
|
7782
7787
|
"data-range-end": modifiers.range_end,
|
|
7783
7788
|
"data-range-middle": modifiers.range_middle,
|
|
7789
|
+
"data-range-middle-start": modifiers.range_middle,
|
|
7790
|
+
"data-range-middle-end": modifiers.range_middle,
|
|
7784
7791
|
className: cn$1(
|
|
7785
|
-
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-
|
|
7786
|
-
"text-(--
|
|
7787
|
-
"data-[selected-single=true]:bg-(--
|
|
7788
|
-
"data-[range-middle=true]:bg-(--
|
|
7789
|
-
"data-[range-start=true]:bg-(--
|
|
7790
|
-
"data-[range-end=true]:bg-(--
|
|
7791
|
-
"data-[range-end=true]:rounded-(--radius
|
|
7792
|
+
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-(--calendar-days-radius) leading-none font-normal rounded-(--calendar-days-radius)",
|
|
7793
|
+
"text-(--calendar-days-default-font) hover:bg-(--calendar-days-hover-bg) hover:text-(--calendar-days-hover-font)",
|
|
7794
|
+
"data-[selected-single=true]:bg-(--calendar-days-current-bg) data-[selected-single=true]:text-(--calendar-days-current-font)",
|
|
7795
|
+
"data-[range-middle=true]:bg-(--calendar-days-selected-bg) data-[range-middle=true]:text-(--calendar-days-selected-font)",
|
|
7796
|
+
"data-[range-start=true]:bg-(--calendar-days-current-bg) data-[range-start=true]:text-(--calendar-days-current-font)",
|
|
7797
|
+
"data-[range-end=true]:bg-(--calendar-days-current-bg) data-[range-end=true]:text-(--calendar-days-current-font)",
|
|
7798
|
+
"data-[range-end=true]:rounded-(--calendar-days-radius) data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--calendar-days-radius) data-[range-start=true]:rounded-l-md",
|
|
7792
7799
|
defaultClassNames.day,
|
|
7793
7800
|
className
|
|
7794
7801
|
),
|
|
@@ -7802,7 +7809,7 @@ function CsCard({ className, ...props }) {
|
|
|
7802
7809
|
{
|
|
7803
7810
|
"data-slot": "card",
|
|
7804
7811
|
className: cn$1(
|
|
7805
|
-
"bg-(--
|
|
7812
|
+
"bg-(--card-common-bg) flex flex-col rounded-(--card-common-radius) border-(length:--card-common-border-width) border-(--card-common-border) gap-(--card-common-gap) mobile:gap-(--card-common-gap-mobile) py-(--card-common-padding-y) mobile:py-(--card-common-padding-y-mobile) px-(--card-common-padding-x) mobile:px-(--card-common-padding-x-mobile) hover:bg-(--card-common-bg-hover) hover:border-(--card-common-border-hover)",
|
|
7806
7813
|
className
|
|
7807
7814
|
),
|
|
7808
7815
|
...props
|
|
@@ -7815,7 +7822,7 @@ function CsCardHeader({ className, ...props }) {
|
|
|
7815
7822
|
{
|
|
7816
7823
|
"data-slot": "card-header",
|
|
7817
7824
|
className: cn$1(
|
|
7818
|
-
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-
|
|
7825
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-(--card-container-header-gap) has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-(--card-common-padding-y) [.border-b]:border-(--card-common-border)",
|
|
7819
7826
|
className
|
|
7820
7827
|
),
|
|
7821
7828
|
...props
|
|
@@ -7829,7 +7836,7 @@ function CsCardTitle({ className, ...props }) {
|
|
|
7829
7836
|
"data-slot": "card-title",
|
|
7830
7837
|
className: cn$1(
|
|
7831
7838
|
"typo-heading-md",
|
|
7832
|
-
"text-(--
|
|
7839
|
+
"text-(--card-container-header-title)",
|
|
7833
7840
|
className
|
|
7834
7841
|
),
|
|
7835
7842
|
...props
|
|
@@ -7841,7 +7848,7 @@ function CsCardDescription({ className, ...props }) {
|
|
|
7841
7848
|
"div",
|
|
7842
7849
|
{
|
|
7843
7850
|
"data-slot": "card-description",
|
|
7844
|
-
className: cn$1("typo-body-sm text-(--
|
|
7851
|
+
className: cn$1("typo-body-sm text-(--card-container-header-description)", className),
|
|
7845
7852
|
...props
|
|
7846
7853
|
}
|
|
7847
7854
|
);
|
|
@@ -7864,7 +7871,7 @@ function CsCardContent({ className, ...props }) {
|
|
|
7864
7871
|
"div",
|
|
7865
7872
|
{
|
|
7866
7873
|
"data-slot": "card-content",
|
|
7867
|
-
className: cn$1("flex flex-col gap-
|
|
7874
|
+
className: cn$1("flex flex-col gap-(--card-container-content-gap)", className),
|
|
7868
7875
|
...props
|
|
7869
7876
|
}
|
|
7870
7877
|
);
|
|
@@ -7874,7 +7881,7 @@ function CsCardFooter({ className, ...props }) {
|
|
|
7874
7881
|
"div",
|
|
7875
7882
|
{
|
|
7876
7883
|
"data-slot": "card-footer",
|
|
7877
|
-
className: cn$1("flex items-center gap-
|
|
7884
|
+
className: cn$1("flex items-center gap-(--card-container-footer-gap) [.border-t]:pt-(--card-common-padding-y) [.border-t]:border-(--card-common-border)", className),
|
|
7878
7885
|
...props
|
|
7879
7886
|
}
|
|
7880
7887
|
);
|
|
@@ -8674,7 +8681,7 @@ function disableUserSelect(dom) {
|
|
|
8674
8681
|
function hasOwn(own, prop) {
|
|
8675
8682
|
return own.hasOwnProperty(prop);
|
|
8676
8683
|
}
|
|
8677
|
-
function noop$
|
|
8684
|
+
function noop$3() {
|
|
8678
8685
|
}
|
|
8679
8686
|
var RADIAN_TO_DEGREE = 180 / Math.PI;
|
|
8680
8687
|
const util$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -8720,7 +8727,7 @@ const util$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
8720
8727
|
merge: merge$1,
|
|
8721
8728
|
mergeAll,
|
|
8722
8729
|
mixin,
|
|
8723
|
-
noop: noop$
|
|
8730
|
+
noop: noop$3,
|
|
8724
8731
|
normalizeCssArray: normalizeCssArray$1,
|
|
8725
8732
|
reduce,
|
|
8726
8733
|
retrieve,
|
|
@@ -11313,9 +11320,9 @@ var Clip = (function() {
|
|
|
11313
11320
|
this._life = opts.life || 1e3;
|
|
11314
11321
|
this._delay = opts.delay || 0;
|
|
11315
11322
|
this.loop = opts.loop || false;
|
|
11316
|
-
this.onframe = opts.onframe || noop$
|
|
11317
|
-
this.ondestroy = opts.ondestroy || noop$
|
|
11318
|
-
this.onrestart = opts.onrestart || noop$
|
|
11323
|
+
this.onframe = opts.onframe || noop$3;
|
|
11324
|
+
this.ondestroy = opts.ondestroy || noop$3;
|
|
11325
|
+
this.onrestart = opts.onrestart || noop$3;
|
|
11319
11326
|
opts.easing && this.setEasing(opts.easing);
|
|
11320
11327
|
}
|
|
11321
11328
|
Clip2.prototype.step = function(globalTime, deltaTime) {
|
|
@@ -12990,9 +12997,9 @@ function isLocalEl(instance, el) {
|
|
|
12990
12997
|
}
|
|
12991
12998
|
var FakeGlobalEvent = /* @__PURE__ */ (function() {
|
|
12992
12999
|
function FakeGlobalEvent2(instance, event) {
|
|
12993
|
-
this.stopPropagation = noop$
|
|
12994
|
-
this.stopImmediatePropagation = noop$
|
|
12995
|
-
this.preventDefault = noop$
|
|
13000
|
+
this.stopPropagation = noop$3;
|
|
13001
|
+
this.stopImmediatePropagation = noop$3;
|
|
13002
|
+
this.preventDefault = noop$3;
|
|
12996
13003
|
this.type = event.type;
|
|
12997
13004
|
this.target = this.currentTarget = instance.dom;
|
|
12998
13005
|
this.pointerType = event.pointerType;
|
|
@@ -28775,7 +28782,7 @@ ecModelMock.eachComponent = function(cond) {
|
|
|
28775
28782
|
};
|
|
28776
28783
|
function mockMethods(target, Clz) {
|
|
28777
28784
|
for (var name_1 in Clz.prototype) {
|
|
28778
|
-
target[name_1] = noop$
|
|
28785
|
+
target[name_1] = noop$3;
|
|
28779
28786
|
}
|
|
28780
28787
|
}
|
|
28781
28788
|
var colorAll = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3", "#9d96f5", "#8378EA", "#96BFFF"];
|
|
@@ -32239,27 +32246,27 @@ registerAction({
|
|
|
32239
32246
|
type: HIGHLIGHT_ACTION_TYPE,
|
|
32240
32247
|
event: HIGHLIGHT_ACTION_TYPE,
|
|
32241
32248
|
update: HIGHLIGHT_ACTION_TYPE
|
|
32242
|
-
}, noop$
|
|
32249
|
+
}, noop$3);
|
|
32243
32250
|
registerAction({
|
|
32244
32251
|
type: DOWNPLAY_ACTION_TYPE,
|
|
32245
32252
|
event: DOWNPLAY_ACTION_TYPE,
|
|
32246
32253
|
update: DOWNPLAY_ACTION_TYPE
|
|
32247
|
-
}, noop$
|
|
32254
|
+
}, noop$3);
|
|
32248
32255
|
registerAction({
|
|
32249
32256
|
type: SELECT_ACTION_TYPE,
|
|
32250
32257
|
event: SELECT_ACTION_TYPE,
|
|
32251
32258
|
update: SELECT_ACTION_TYPE
|
|
32252
|
-
}, noop$
|
|
32259
|
+
}, noop$3);
|
|
32253
32260
|
registerAction({
|
|
32254
32261
|
type: UNSELECT_ACTION_TYPE,
|
|
32255
32262
|
event: UNSELECT_ACTION_TYPE,
|
|
32256
32263
|
update: UNSELECT_ACTION_TYPE
|
|
32257
|
-
}, noop$
|
|
32264
|
+
}, noop$3);
|
|
32258
32265
|
registerAction({
|
|
32259
32266
|
type: TOGGLE_SELECT_ACTION_TYPE,
|
|
32260
32267
|
event: TOGGLE_SELECT_ACTION_TYPE,
|
|
32261
32268
|
update: TOGGLE_SELECT_ACTION_TYPE
|
|
32262
|
-
}, noop$
|
|
32269
|
+
}, noop$3);
|
|
32263
32270
|
registerTheme("light", lightTheme);
|
|
32264
32271
|
registerTheme("dark", theme);
|
|
32265
32272
|
var dataTool = {};
|
|
@@ -38976,7 +38983,7 @@ function createBackgroundVNode(width, height, backgroundColor2, scope) {
|
|
|
38976
38983
|
style: {
|
|
38977
38984
|
fill: backgroundColor2
|
|
38978
38985
|
},
|
|
38979
|
-
dirty: noop$
|
|
38986
|
+
dirty: noop$3,
|
|
38980
38987
|
getBoundingRect: function() {
|
|
38981
38988
|
return { width, height };
|
|
38982
38989
|
}
|
|
@@ -47407,7 +47414,7 @@ registerAction({
|
|
|
47407
47414
|
type: "takeGlobalCursor",
|
|
47408
47415
|
event: "globalCursorTaken",
|
|
47409
47416
|
update: "update"
|
|
47410
|
-
}, noop$
|
|
47417
|
+
}, noop$3);
|
|
47411
47418
|
var RoamController = (
|
|
47412
47419
|
/** @class */
|
|
47413
47420
|
(function(_super) {
|
|
@@ -51658,7 +51665,7 @@ function installTreemapAction(registers) {
|
|
|
51658
51665
|
registers.registerAction({
|
|
51659
51666
|
type: actionTypes[i],
|
|
51660
51667
|
update: "updateView"
|
|
51661
|
-
}, noop$
|
|
51668
|
+
}, noop$3);
|
|
51662
51669
|
}
|
|
51663
51670
|
registers.registerAction({
|
|
51664
51671
|
type: "treemapRootToNode",
|
|
@@ -53193,7 +53200,7 @@ var normalizers = {
|
|
|
53193
53200
|
var index = this.option.categories ? this.option.categoryMap[value] : value;
|
|
53194
53201
|
return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;
|
|
53195
53202
|
},
|
|
53196
|
-
fixed: noop$
|
|
53203
|
+
fixed: noop$3
|
|
53197
53204
|
};
|
|
53198
53205
|
function littleThan(close, a, b) {
|
|
53199
53206
|
return close ? a <= b : a < b;
|
|
@@ -55867,12 +55874,12 @@ function install$F(registers) {
|
|
|
55867
55874
|
type: "focusNodeAdjacency",
|
|
55868
55875
|
event: "focusNodeAdjacency",
|
|
55869
55876
|
update: "series:focusNodeAdjacency"
|
|
55870
|
-
}, noop$
|
|
55877
|
+
}, noop$3);
|
|
55871
55878
|
registers.registerAction({
|
|
55872
55879
|
type: "unfocusNodeAdjacency",
|
|
55873
55880
|
event: "unfocusNodeAdjacency",
|
|
55874
55881
|
update: "series:unfocusNodeAdjacency"
|
|
55875
|
-
}, noop$
|
|
55882
|
+
}, noop$3);
|
|
55876
55883
|
registers.registerAction(actionInfo$1, function(payload, ecModel, api) {
|
|
55877
55884
|
ecModel.eachComponent({
|
|
55878
55885
|
mainType: "series",
|
|
@@ -72671,12 +72678,12 @@ function install$i(registers) {
|
|
|
72671
72678
|
type: "showTip",
|
|
72672
72679
|
event: "showTip",
|
|
72673
72680
|
update: "tooltip:manuallyShowTip"
|
|
72674
|
-
}, noop$
|
|
72681
|
+
}, noop$3);
|
|
72675
72682
|
registers.registerAction({
|
|
72676
72683
|
type: "hideTip",
|
|
72677
72684
|
event: "hideTip",
|
|
72678
72685
|
update: "tooltip:manuallyHideTip"
|
|
72679
|
-
}, noop$
|
|
72686
|
+
}, noop$3);
|
|
72680
72687
|
}
|
|
72681
72688
|
var DEFAULT_TOOLBOX_BTNS = ["rect", "polygon", "keep", "clear"];
|
|
72682
72689
|
function brushPreprocessor(option, isNew) {
|
|
@@ -73316,12 +73323,12 @@ function install$h(registers) {
|
|
|
73316
73323
|
type: "brushSelect",
|
|
73317
73324
|
event: "brushSelected",
|
|
73318
73325
|
update: "none"
|
|
73319
|
-
}, noop$
|
|
73326
|
+
}, noop$3);
|
|
73320
73327
|
registers.registerAction({
|
|
73321
73328
|
type: "brushEnd",
|
|
73322
73329
|
event: "brushEnd",
|
|
73323
73330
|
update: "none"
|
|
73324
|
-
}, noop$
|
|
73331
|
+
}, noop$3);
|
|
73325
73332
|
registerFeature("brush", BrushFeature);
|
|
73326
73333
|
}
|
|
73327
73334
|
var TitleModel = (
|
|
@@ -82733,10 +82740,10 @@ const getFillerColor = () => {
|
|
|
82733
82740
|
const fillerOpacity = getCssVariable("--opacity-state-muted");
|
|
82734
82741
|
return addOpacityToColor(fillerColor, convertOpacity(fillerOpacity));
|
|
82735
82742
|
};
|
|
82736
|
-
const tooltipBaseStyles = "typo-body-xs z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-(--radius
|
|
82743
|
+
const tooltipBaseStyles = "typo-body-xs z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-(--tooltip-radius) px-(--tooltip-padding-x) py-(--tooltip-padding-y) text-balance text-(--tooltip-font) empty:hidden";
|
|
82737
82744
|
const tooltipVariants = {
|
|
82738
|
-
solid: "bg-(--
|
|
82739
|
-
outline: "bg-(--
|
|
82745
|
+
solid: "bg-(--tooltip-solid-bg) boxshadow-sm",
|
|
82746
|
+
outline: "bg-(--tooltip-outline-bg) border-(--tooltip-outline-border) border-(length:--tooltip-outline-border-width)"
|
|
82740
82747
|
};
|
|
82741
82748
|
const csTooltipContentVariants = cva(
|
|
82742
82749
|
`${tooltipBaseStyles} animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,
|
|
@@ -82803,7 +82810,7 @@ const CsChartBaseOptions = {
|
|
|
82803
82810
|
itemHeight: 12,
|
|
82804
82811
|
itemGap: 12,
|
|
82805
82812
|
textStyle: {
|
|
82806
|
-
color: "var(--
|
|
82813
|
+
color: "var(--chart-data-label-font)"
|
|
82807
82814
|
}
|
|
82808
82815
|
}
|
|
82809
82816
|
};
|
|
@@ -82823,36 +82830,36 @@ const CsChartAxisOptions = {
|
|
|
82823
82830
|
bottom: 40,
|
|
82824
82831
|
left: 10,
|
|
82825
82832
|
right: 10,
|
|
82826
|
-
borderColor: "var(--
|
|
82833
|
+
borderColor: "var(--chart-wrapper-grid-color)",
|
|
82827
82834
|
show: false
|
|
82828
82835
|
},
|
|
82829
82836
|
xAxis: {
|
|
82830
82837
|
axisLine: {
|
|
82831
82838
|
lineStyle: {
|
|
82832
|
-
color: "var(--
|
|
82839
|
+
color: "var(--chart-wrapper-axis-color)"
|
|
82833
82840
|
}
|
|
82834
82841
|
},
|
|
82835
82842
|
axisLabel: {
|
|
82836
|
-
color: "var(--
|
|
82843
|
+
color: "var(--chart-wrapper-label)"
|
|
82837
82844
|
},
|
|
82838
82845
|
splitLine: {
|
|
82839
82846
|
lineStyle: {
|
|
82840
|
-
color: "var(--
|
|
82847
|
+
color: "var(--chart-wrapper-grid-color)"
|
|
82841
82848
|
}
|
|
82842
82849
|
}
|
|
82843
82850
|
},
|
|
82844
82851
|
yAxis: {
|
|
82845
82852
|
axisLine: {
|
|
82846
82853
|
lineStyle: {
|
|
82847
|
-
color: "var(--
|
|
82854
|
+
color: "var(--chart-wrapper-axis-color)"
|
|
82848
82855
|
}
|
|
82849
82856
|
},
|
|
82850
82857
|
axisLabel: {
|
|
82851
|
-
color: "var(--
|
|
82858
|
+
color: "var(--chart-wrapper-label)"
|
|
82852
82859
|
},
|
|
82853
82860
|
splitLine: {
|
|
82854
82861
|
lineStyle: {
|
|
82855
|
-
color: "var(--
|
|
82862
|
+
color: "var(--chart-wrapper-grid-color)"
|
|
82856
82863
|
}
|
|
82857
82864
|
}
|
|
82858
82865
|
}
|
|
@@ -82872,17 +82879,17 @@ const getCsChartZoomOptions = () => ({
|
|
|
82872
82879
|
end: 100,
|
|
82873
82880
|
bottom: 20,
|
|
82874
82881
|
height: 24,
|
|
82875
|
-
borderColor: "var(--
|
|
82876
|
-
backgroundColor: "var(--
|
|
82882
|
+
borderColor: "var(--chart-range-slider-track-border)",
|
|
82883
|
+
backgroundColor: "var(--chart-range-slider-track-bg)",
|
|
82877
82884
|
fillerColor: getFillerColor(),
|
|
82878
82885
|
handleSize: "100%",
|
|
82879
82886
|
handleStyle: {
|
|
82880
|
-
color: "var(--
|
|
82881
|
-
borderColor: "var(--
|
|
82887
|
+
color: "var(--chart-range-slider-thumb-handle)",
|
|
82888
|
+
borderColor: "var(--chart-range-slider-thumb-handle-border)",
|
|
82882
82889
|
borderWidth: 1
|
|
82883
82890
|
},
|
|
82884
82891
|
moveHandleStyle: {
|
|
82885
|
-
color: "var(--
|
|
82892
|
+
color: "var(--chart-range-slider-thumb-bar)"
|
|
82886
82893
|
}
|
|
82887
82894
|
}
|
|
82888
82895
|
]
|
|
@@ -82962,18 +82969,18 @@ function CsPieChart(props) {
|
|
|
82962
82969
|
);
|
|
82963
82970
|
}
|
|
82964
82971
|
const csCheckboxVariants = cva(
|
|
82965
|
-
"peer focus-visible:ring-0 size-(--
|
|
82972
|
+
"peer focus-visible:ring-0 size-(--checkbox-common-scale) shrink-0 transition-colors outline-none disabled:cursor-not-allowed rounded-(--checkbox-common-radius) disabled:opacity-(--checkbox-common-opacity) [&_svg]:size-(--checkbox-common-icon-size)",
|
|
82966
82973
|
{
|
|
82967
82974
|
variants: {
|
|
82968
82975
|
variant: {
|
|
82969
82976
|
solid: [
|
|
82970
|
-
"bg-(--
|
|
82971
|
-
"data-[state=checked]:bg-(--
|
|
82977
|
+
"bg-(--checkbox-solid-default-bg) hover:bg-(--checkbox-solid-hover-bg)",
|
|
82978
|
+
"data-[state=checked]:bg-(--checkbox-solid-checked-bg) data-[state=checked]:[&_svg]:text-(--checkbox-solid-checked-icon)"
|
|
82972
82979
|
].join(" "),
|
|
82973
82980
|
outline: [
|
|
82974
|
-
"bg-(--
|
|
82975
|
-
"hover:bg-(--
|
|
82976
|
-
"data-[state=checked]:bg-(--
|
|
82981
|
+
"bg-(--checkbox-outline-default-bg) border-(length:--checkbox-outline-border-width) border-(--checkbox-outline-default-border)",
|
|
82982
|
+
"hover:bg-(--checkbox-outline-hover-bg) hover:border-(--checkbox-outline-hover-border)",
|
|
82983
|
+
"data-[state=checked]:bg-(--checkbox-outline-checked-bg) data-[state=checked]:border-(--checkbox-outline-checked-border) data-[state=checked]:[&_svg]:text-(--checkbox-outline-checked-icon)"
|
|
82977
82984
|
].join(" ")
|
|
82978
82985
|
}
|
|
82979
82986
|
},
|
|
@@ -83041,8 +83048,8 @@ function CsScrollBar({
|
|
|
83041
83048
|
orientation,
|
|
83042
83049
|
className: cn$1(
|
|
83043
83050
|
"flex touch-none p-px transition-colors select-none",
|
|
83044
|
-
orientation === "vertical" && "h-full w-(--
|
|
83045
|
-
orientation === "horizontal" && "h-(--
|
|
83051
|
+
orientation === "vertical" && "h-full w-(--scrollbar-vertical-width) border-l border-l-transparent",
|
|
83052
|
+
orientation === "horizontal" && "h-(--scrollbar-horizontal-height) flex-col border-t border-t-transparent",
|
|
83046
83053
|
className
|
|
83047
83054
|
),
|
|
83048
83055
|
...props,
|
|
@@ -83050,19 +83057,19 @@ function CsScrollBar({
|
|
|
83050
83057
|
ScrollAreaPrimitive__namespace.ScrollAreaThumb,
|
|
83051
83058
|
{
|
|
83052
83059
|
"data-slot": "scroll-area-thumb",
|
|
83053
|
-
className: cn$1("bg-(--
|
|
83060
|
+
className: cn$1("bg-(--scrollbar-fill) relative flex-1 rounded-(--scrollbar-radius)", thumbClassName)
|
|
83054
83061
|
}
|
|
83055
83062
|
)
|
|
83056
83063
|
}
|
|
83057
83064
|
);
|
|
83058
83065
|
}
|
|
83059
83066
|
const csCodeBlockVariants = cva(
|
|
83060
|
-
"
|
|
83067
|
+
"text-(--code-block-solid-font)",
|
|
83061
83068
|
{
|
|
83062
83069
|
variants: {
|
|
83063
83070
|
variant: {
|
|
83064
|
-
solid: "bg-(--
|
|
83065
|
-
outline: "bg-(--
|
|
83071
|
+
solid: "bg-(--code-block-solid-bg) rounded-(--code-block-solid-radius)",
|
|
83072
|
+
outline: "bg-(--code-block-outline-bg) border-(--code-block-outline-border) border-(length:--code-block-outline-border-width) rounded-(--code-block-outline-radius) text-(--code-block-outline-font)"
|
|
83066
83073
|
}
|
|
83067
83074
|
},
|
|
83068
83075
|
defaultVariants: {
|
|
@@ -83072,15 +83079,16 @@ const csCodeBlockVariants = cva(
|
|
|
83072
83079
|
);
|
|
83073
83080
|
function CsCodeBlock({
|
|
83074
83081
|
className,
|
|
83075
|
-
variant,
|
|
83082
|
+
variant = "solid",
|
|
83076
83083
|
...props
|
|
83077
83084
|
}) {
|
|
83085
|
+
const paddingClass = variant === "outline" ? "px-(--code-block-outline-padding-x) py-(--code-block-outline-padding-y)" : "px-(--code-block-solid-padding-x) py-(--code-block-solid-padding-y)";
|
|
83078
83086
|
return /* @__PURE__ */ jsxRuntime.jsxs(CsScrollArea, { className: cn$1("h-full max-h-48", csCodeBlockVariants({ variant }), className), children: [
|
|
83079
83087
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
83080
83088
|
"pre",
|
|
83081
83089
|
{
|
|
83082
83090
|
"data-slot": "code-block",
|
|
83083
|
-
className: "typo-productive-code-sm
|
|
83091
|
+
className: cn$1("typo-productive-code-sm whitespace-pre-wrap", paddingClass),
|
|
83084
83092
|
...props
|
|
83085
83093
|
}
|
|
83086
83094
|
),
|
|
@@ -83088,12 +83096,12 @@ function CsCodeBlock({
|
|
|
83088
83096
|
] });
|
|
83089
83097
|
}
|
|
83090
83098
|
const csPopoverVariants = cva(
|
|
83091
|
-
"z-50 w-72 rounded-(--radius
|
|
83099
|
+
"z-50 w-72 rounded-(--popover-common-radius) border px-(--popover-common-padding-x) py-(--popover-common-padding-y) text-popover-foreground outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
83092
83100
|
{
|
|
83093
83101
|
variants: {
|
|
83094
83102
|
variant: {
|
|
83095
|
-
solid: "bg-(--
|
|
83096
|
-
outline: "bg-(--
|
|
83103
|
+
solid: "bg-(--popover-solid-bg) boxshadow-md",
|
|
83104
|
+
outline: "bg-(--popover-outline-bg) border-(--popover-outline-border) border-(length:--popover-outline-border-width)"
|
|
83097
83105
|
}
|
|
83098
83106
|
},
|
|
83099
83107
|
defaultVariants: {
|
|
@@ -83163,7 +83171,7 @@ function CsDialogOverlay({
|
|
|
83163
83171
|
{
|
|
83164
83172
|
"data-slot": "dialog-overlay",
|
|
83165
83173
|
className: cn$1(
|
|
83166
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-(--
|
|
83174
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-(--dialog-common-bg-overlay)",
|
|
83167
83175
|
className
|
|
83168
83176
|
),
|
|
83169
83177
|
...props
|
|
@@ -83183,7 +83191,7 @@ function CsDialogContent({
|
|
|
83183
83191
|
{
|
|
83184
83192
|
"data-slot": "dialog-content",
|
|
83185
83193
|
className: cn$1(
|
|
83186
|
-
"bg-(--
|
|
83194
|
+
"bg-(--dialog-common-bg) data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-(2*var(--dialog-common-padding-x)))] translate-x-[-50%] translate-y-[-50%] gap-(--dialog-common-gap) rounded-(--dialog-common-radius) border-(--dialog-common-border) border-(length:--dialog-common-border-width) px-(--dialog-common-padding-x) py-(--dialog-common-padding-y) duration-200",
|
|
83187
83195
|
className
|
|
83188
83196
|
),
|
|
83189
83197
|
...props,
|
|
@@ -83210,7 +83218,7 @@ function CsDialogHeader({ className, ...props }) {
|
|
|
83210
83218
|
"div",
|
|
83211
83219
|
{
|
|
83212
83220
|
"data-slot": "dialog-header",
|
|
83213
|
-
className: cn$1("flex flex-col gap-
|
|
83221
|
+
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) mobile:text-center text-left", className),
|
|
83214
83222
|
...props
|
|
83215
83223
|
}
|
|
83216
83224
|
);
|
|
@@ -83221,7 +83229,7 @@ function CsDialogFooter({ className, ...props }) {
|
|
|
83221
83229
|
{
|
|
83222
83230
|
"data-slot": "dialog-footer",
|
|
83223
83231
|
className: cn$1(
|
|
83224
|
-
"flex flex-col-reverse gap-
|
|
83232
|
+
"flex flex-col-reverse gap-(--dialog-container-footer-gap) mobile:flex-row mobile:justify-end",
|
|
83225
83233
|
className
|
|
83226
83234
|
),
|
|
83227
83235
|
...props
|
|
@@ -83236,7 +83244,7 @@ function CsDialogTitle({
|
|
|
83236
83244
|
DialogPrimitive__namespace.Title,
|
|
83237
83245
|
{
|
|
83238
83246
|
"data-slot": "dialog-title",
|
|
83239
|
-
className: cn$1("typo-heading-sm text-(--
|
|
83247
|
+
className: cn$1("typo-heading-sm text-(--dialog-container-header-title)", className),
|
|
83240
83248
|
...props
|
|
83241
83249
|
}
|
|
83242
83250
|
);
|
|
@@ -83249,7 +83257,7 @@ function CsDialogDescription({
|
|
|
83249
83257
|
DialogPrimitive__namespace.Description,
|
|
83250
83258
|
{
|
|
83251
83259
|
"data-slot": "dialog-description",
|
|
83252
|
-
className: cn$1("typo-body-sm text-(--
|
|
83260
|
+
className: cn$1("typo-body-sm text-(--dialog-container-header-description)", className),
|
|
83253
83261
|
...props
|
|
83254
83262
|
}
|
|
83255
83263
|
);
|
|
@@ -83867,7 +83875,7 @@ function useSnapPoints({ activeSnapPointProp, setActiveSnapPointProp, snapPoints
|
|
|
83867
83875
|
snapPointsOffset
|
|
83868
83876
|
};
|
|
83869
83877
|
}
|
|
83870
|
-
const noop$
|
|
83878
|
+
const noop$2 = () => () => {
|
|
83871
83879
|
};
|
|
83872
83880
|
function useScaleBackground() {
|
|
83873
83881
|
const { direction, isOpen, shouldScaleBackground, setBackgroundColorOnScale, noBodyStyles } = useDrawerContext();
|
|
@@ -83883,7 +83891,7 @@ function useScaleBackground() {
|
|
|
83883
83891
|
if (!wrapper) return;
|
|
83884
83892
|
chain(setBackgroundColorOnScale && !noBodyStyles ? assignStyle(document.body, {
|
|
83885
83893
|
background: "black"
|
|
83886
|
-
}) : noop$
|
|
83894
|
+
}) : noop$2, assignStyle(wrapper, {
|
|
83887
83895
|
transformOrigin: isVertical(direction) ? "top" : "left",
|
|
83888
83896
|
transitionProperty: "transform, border-radius",
|
|
83889
83897
|
transitionDuration: `${TRANSITIONS.DURATION}s`,
|
|
@@ -84703,6 +84711,31 @@ const Handle = /* @__PURE__ */ React.forwardRef(function({ preventCycle = false,
|
|
|
84703
84711
|
}, children));
|
|
84704
84712
|
});
|
|
84705
84713
|
Handle.displayName = "Drawer.Handle";
|
|
84714
|
+
function NestedRoot({ onDrag, onOpenChange, open: nestedIsOpen, ...rest }) {
|
|
84715
|
+
const { onNestedDrag, onNestedOpenChange, onNestedRelease } = useDrawerContext();
|
|
84716
|
+
if (!onNestedDrag) {
|
|
84717
|
+
throw new Error("Drawer.NestedRoot must be placed in another drawer");
|
|
84718
|
+
}
|
|
84719
|
+
return /* @__PURE__ */ React.createElement(Root, {
|
|
84720
|
+
nested: true,
|
|
84721
|
+
open: nestedIsOpen,
|
|
84722
|
+
onClose: () => {
|
|
84723
|
+
onNestedOpenChange(false);
|
|
84724
|
+
},
|
|
84725
|
+
onDrag: (e2, p) => {
|
|
84726
|
+
onNestedDrag(e2, p);
|
|
84727
|
+
onDrag == null ? void 0 : onDrag(e2, p);
|
|
84728
|
+
},
|
|
84729
|
+
onOpenChange: (o) => {
|
|
84730
|
+
if (o) {
|
|
84731
|
+
onNestedOpenChange(o);
|
|
84732
|
+
}
|
|
84733
|
+
onOpenChange == null ? void 0 : onOpenChange(o);
|
|
84734
|
+
},
|
|
84735
|
+
onRelease: onNestedRelease,
|
|
84736
|
+
...rest
|
|
84737
|
+
});
|
|
84738
|
+
}
|
|
84706
84739
|
function Portal(props) {
|
|
84707
84740
|
const context = useDrawerContext();
|
|
84708
84741
|
const { container = context.container, ...portalProps } = props;
|
|
@@ -84713,10 +84746,12 @@ function Portal(props) {
|
|
|
84713
84746
|
}
|
|
84714
84747
|
const Drawer = {
|
|
84715
84748
|
Root,
|
|
84749
|
+
NestedRoot,
|
|
84716
84750
|
Content,
|
|
84717
84751
|
Overlay,
|
|
84718
84752
|
Trigger: DialogPrimitive__namespace.Trigger,
|
|
84719
84753
|
Portal,
|
|
84754
|
+
Handle,
|
|
84720
84755
|
Close: DialogPrimitive__namespace.Close,
|
|
84721
84756
|
Title: DialogPrimitive__namespace.Title,
|
|
84722
84757
|
Description: DialogPrimitive__namespace.Description
|
|
@@ -84770,11 +84805,11 @@ function CsDrawerContent({
|
|
|
84770
84805
|
"data-slot": "drawer-content",
|
|
84771
84806
|
className: cn$1(
|
|
84772
84807
|
"group/drawer-content fixed z-50 flex h-auto flex-col",
|
|
84773
|
-
"bg-(--
|
|
84774
|
-
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-(--radius
|
|
84775
|
-
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-(--radius
|
|
84776
|
-
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l-[length:--border-width
|
|
84777
|
-
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r-[length:--border-width
|
|
84808
|
+
"bg-(--drawer-common-bg) border-(--drawer-common-border)",
|
|
84809
|
+
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-(--drawer-common-radius) data-[vaul-drawer-direction=top]:border-b-[length:--drawer-common-border-width]",
|
|
84810
|
+
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-(--drawer-common-radius) data-[vaul-drawer-direction=bottom]:border-t-[length:--drawer-common-border-width]",
|
|
84811
|
+
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l-[length:--drawer-common-border-width] data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
84812
|
+
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r-[length:--drawer-common-border-width] data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
84778
84813
|
className
|
|
84779
84814
|
),
|
|
84780
84815
|
...props,
|
|
@@ -84792,7 +84827,7 @@ function CsDrawerHeader({ className, ...props }) {
|
|
|
84792
84827
|
{
|
|
84793
84828
|
"data-slot": "drawer-header",
|
|
84794
84829
|
className: cn$1(
|
|
84795
|
-
"flex flex-col gap-
|
|
84830
|
+
"flex flex-col gap-(--drawer-container-header-gap) px-(--drawer-common-padding-x) py-(--drawer-common-padding-y) group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:text-left",
|
|
84796
84831
|
className
|
|
84797
84832
|
),
|
|
84798
84833
|
...props
|
|
@@ -84804,7 +84839,7 @@ function CsDrawerFooter({ className, ...props }) {
|
|
|
84804
84839
|
"div",
|
|
84805
84840
|
{
|
|
84806
84841
|
"data-slot": "drawer-footer",
|
|
84807
|
-
className: cn$1("mt-auto flex flex-col gap-
|
|
84842
|
+
className: cn$1("mt-auto flex flex-col gap-(--drawer-container-footer-gap) px-(--drawer-common-padding-x) py-(--drawer-common-padding-y)", className),
|
|
84808
84843
|
...props
|
|
84809
84844
|
}
|
|
84810
84845
|
);
|
|
@@ -84817,7 +84852,7 @@ function CsDrawerTitle({
|
|
|
84817
84852
|
Drawer.Title,
|
|
84818
84853
|
{
|
|
84819
84854
|
"data-slot": "drawer-title",
|
|
84820
|
-
className: cn$1("text-(--
|
|
84855
|
+
className: cn$1("text-(--drawer-container-header-title) typo-heading-sm", className),
|
|
84821
84856
|
...props
|
|
84822
84857
|
}
|
|
84823
84858
|
);
|
|
@@ -84830,16 +84865,16 @@ function CsDrawerDescription({
|
|
|
84830
84865
|
Drawer.Description,
|
|
84831
84866
|
{
|
|
84832
84867
|
"data-slot": "drawer-description",
|
|
84833
|
-
className: cn$1("text-(--
|
|
84868
|
+
className: cn$1("text-(--drawer-container-header-description) typo-body-sm", className),
|
|
84834
84869
|
...props
|
|
84835
84870
|
}
|
|
84836
84871
|
);
|
|
84837
84872
|
}
|
|
84838
84873
|
const csDropdownMenuItemCommonClassName = [
|
|
84839
|
-
"flex cursor-default items-center gap-
|
|
84840
|
-
"
|
|
84841
|
-
"typo-body-sm text-(--
|
|
84842
|
-
"[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
84874
|
+
"flex cursor-default items-center gap-(--dropdown-item-icon-gap) outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
84875
|
+
"rounded-(--dropdown-item-common-radius) px-(--dropdown-item-common-padding-x) py-(--dropdown-item-common-padding-y) h-(--dropdown-item-common-height) bg-(--dropdown-item-common-bg)",
|
|
84876
|
+
"typo-body-sm text-(--dropdown-item-simple-default-font) hover:text-(--dropdown-item-simple-hover-font) hover:bg-(--dropdown-item-simple-hover-bg) data-[state=checked]:text-(--dropdown-item-simple-active-font) data-[disabled]:text-(--dropdown-item-simple-disabled-font)",
|
|
84877
|
+
"[&_svg:not([class*='size-'])]:size-(--dropdown-item-icon-icon-size) [&_svg]:text-(--dropdown-item-icon-default-icon) data-[state=checked]:[&_svg]:text-(--dropdown-item-simple-active-icon) data-[disabled]:[&_svg]:text-(--dropdown-item-icon-disabled-icon)"
|
|
84843
84878
|
].join(" ");
|
|
84844
84879
|
function CsDropdownMenu({
|
|
84845
84880
|
...props
|
|
@@ -84874,7 +84909,7 @@ function CsDropdownMenuContent({
|
|
|
84874
84909
|
sideOffset,
|
|
84875
84910
|
className: cn$1(
|
|
84876
84911
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto",
|
|
84877
|
-
"rounded-(--radius
|
|
84912
|
+
"rounded-(--dropdown-container-radius) gap-(--dropdown-container-gap) px-(--dropdown-container-padding-x) py-(--dropdown-container-padding-y) bg-(--dropdown-container-bg) border-(--dropdown-container-border) border-(length:--dropdown-container-border-width) boxshadow-sm",
|
|
84878
84913
|
className
|
|
84879
84914
|
),
|
|
84880
84915
|
...props
|
|
@@ -84900,7 +84935,7 @@ function CsDropdownMenuItem({
|
|
|
84900
84935
|
"data-variant": variant,
|
|
84901
84936
|
className: cn$1(
|
|
84902
84937
|
csDropdownMenuItemCommonClassName,
|
|
84903
|
-
"relative data-
|
|
84938
|
+
"relative data-disabled:pointer-events-none",
|
|
84904
84939
|
className
|
|
84905
84940
|
),
|
|
84906
84941
|
...props
|
|
@@ -84919,13 +84954,13 @@ function CsDropdownMenuCheckboxItem({
|
|
|
84919
84954
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
84920
84955
|
className: cn$1(
|
|
84921
84956
|
csDropdownMenuItemCommonClassName,
|
|
84922
|
-
"data-
|
|
84957
|
+
"data-disabled:pointer-events-none",
|
|
84923
84958
|
className
|
|
84924
84959
|
),
|
|
84925
84960
|
checked,
|
|
84926
84961
|
...props,
|
|
84927
84962
|
children: [
|
|
84928
|
-
checked ? /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(Check, {}) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-(--icon-size
|
|
84963
|
+
checked ? /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(Check, {}) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-(--dropdown-item-icon-icon-size)" }),
|
|
84929
84964
|
children
|
|
84930
84965
|
]
|
|
84931
84966
|
}
|
|
@@ -84953,13 +84988,13 @@ function CsDropdownMenuRadioItem({
|
|
|
84953
84988
|
"data-slot": "dropdown-menu-radio-item",
|
|
84954
84989
|
className: cn$1(
|
|
84955
84990
|
csDropdownMenuItemCommonClassName,
|
|
84956
|
-
"group data-
|
|
84991
|
+
"group data-disabled:pointer-events-none",
|
|
84957
84992
|
className
|
|
84958
84993
|
),
|
|
84959
84994
|
...props,
|
|
84960
84995
|
children: [
|
|
84961
84996
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(Circle$1, { className: "fill-current" }) }),
|
|
84962
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-(--icon-size
|
|
84997
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-(--dropdown-item-icon-icon-size) group-data-[state=checked]:hidden" }),
|
|
84963
84998
|
children
|
|
84964
84999
|
]
|
|
84965
85000
|
}
|
|
@@ -84977,7 +85012,7 @@ function CsDropdownMenuLabel({
|
|
|
84977
85012
|
"data-inset": inset,
|
|
84978
85013
|
className: cn$1(
|
|
84979
85014
|
csDropdownMenuItemCommonClassName,
|
|
84980
|
-
"typo-productive-label-md text-(--
|
|
85015
|
+
"typo-productive-label-md text-(--dropdown-item-header-font)",
|
|
84981
85016
|
className
|
|
84982
85017
|
),
|
|
84983
85018
|
...props
|
|
@@ -84992,7 +85027,7 @@ function CsDropdownMenuSeparator({
|
|
|
84992
85027
|
DropdownMenuPrimitive__namespace.Separator,
|
|
84993
85028
|
{
|
|
84994
85029
|
"data-slot": "dropdown-menu-separator",
|
|
84995
|
-
className: cn$1("bg-(--
|
|
85030
|
+
className: cn$1("bg-(--dropdown-item-common-border) w-full h-(--dropdown-item-common-border-width)", className),
|
|
84996
85031
|
...props
|
|
84997
85032
|
}
|
|
84998
85033
|
);
|
|
@@ -85006,7 +85041,7 @@ function CsDropdownMenuShortcut({
|
|
|
85006
85041
|
{
|
|
85007
85042
|
"data-slot": "dropdown-menu-shortcut",
|
|
85008
85043
|
className: cn$1(
|
|
85009
|
-
"text-(--icon-
|
|
85044
|
+
"text-(--dropdown-item-icon-default-icon) ml-auto typo-body-xs",
|
|
85010
85045
|
className
|
|
85011
85046
|
),
|
|
85012
85047
|
...props
|
|
@@ -85031,9 +85066,7 @@ function CsDropdownMenuSubTrigger({
|
|
|
85031
85066
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
85032
85067
|
"data-inset": inset,
|
|
85033
85068
|
className: cn$1(
|
|
85034
|
-
|
|
85035
|
-
"data-[state=open]:text-(--font-color-primary-default) data-[state=open]:bg-(--color-bg-surface-muted)",
|
|
85036
|
-
"[&_svg]:ml-auto",
|
|
85069
|
+
"relative flex cursor-default select-none items-center rounded-(--dropdown-item-common-radius) py-(--dropdown-item-common-padding-y) pl-8 pr-2 outline-none transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 focus:bg-(--dropdown-item-simple-hover-bg) focus:text-(--dropdown-item-simple-hover-font)",
|
|
85037
85070
|
className
|
|
85038
85071
|
),
|
|
85039
85072
|
...props,
|
|
@@ -85053,7 +85086,7 @@ function CsDropdownMenuSubContent({
|
|
|
85053
85086
|
{
|
|
85054
85087
|
"data-slot": "dropdown-menu-sub-content",
|
|
85055
85088
|
className: cn$1(
|
|
85056
|
-
"
|
|
85089
|
+
"z-50 min-w-32 overflow-hidden text-popover-foreground boxshadow-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin) rounded-(--dropdown-container-radius) border-(--dropdown-container-border) p-(--dropdown-container-padding-x) shadow-lg bg-(--dropdown-container-bg)",
|
|
85057
85090
|
className
|
|
85058
85091
|
),
|
|
85059
85092
|
...props
|
|
@@ -87491,6 +87524,12 @@ var FILE_INVALID_TYPE = "file-invalid-type";
|
|
|
87491
87524
|
var FILE_TOO_LARGE = "file-too-large";
|
|
87492
87525
|
var FILE_TOO_SMALL = "file-too-small";
|
|
87493
87526
|
var TOO_MANY_FILES = "too-many-files";
|
|
87527
|
+
var ErrorCode = {
|
|
87528
|
+
FileInvalidType: FILE_INVALID_TYPE,
|
|
87529
|
+
FileTooLarge: FILE_TOO_LARGE,
|
|
87530
|
+
FileTooSmall: FILE_TOO_SMALL,
|
|
87531
|
+
TooManyFiles: TOO_MANY_FILES
|
|
87532
|
+
};
|
|
87494
87533
|
var getInvalidTypeRejectionErr = function getInvalidTypeRejectionErr2() {
|
|
87495
87534
|
var accept = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
87496
87535
|
var acceptArr = accept.split(",");
|
|
@@ -87976,10 +88015,10 @@ function useDropzone() {
|
|
|
87976
88015
|
return pickerOptionsFromAccept(accept);
|
|
87977
88016
|
}, [accept]);
|
|
87978
88017
|
var onFileDialogOpenCb = React.useMemo(function() {
|
|
87979
|
-
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop;
|
|
88018
|
+
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop$1;
|
|
87980
88019
|
}, [onFileDialogOpen]);
|
|
87981
88020
|
var onFileDialogCancelCb = React.useMemo(function() {
|
|
87982
|
-
return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop;
|
|
88021
|
+
return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop$1;
|
|
87983
88022
|
}, [onFileDialogCancel]);
|
|
87984
88023
|
var rootRef = React.useRef(null);
|
|
87985
88024
|
var inputRef = React.useRef(null);
|
|
@@ -88364,7 +88403,7 @@ function reducer(state, action) {
|
|
|
88364
88403
|
return state;
|
|
88365
88404
|
}
|
|
88366
88405
|
}
|
|
88367
|
-
function noop() {
|
|
88406
|
+
function noop$1() {
|
|
88368
88407
|
}
|
|
88369
88408
|
const renderBytes = (bytes) => {
|
|
88370
88409
|
const units = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
@@ -88418,8 +88457,8 @@ const CsDropzone = ({
|
|
|
88418
88457
|
{
|
|
88419
88458
|
className: cn$1(
|
|
88420
88459
|
"relative h-auto w-full flex-col overflow-hidden border-dashed",
|
|
88421
|
-
"rounded-(--radius
|
|
88422
|
-
"bg-(--
|
|
88460
|
+
"rounded-(--dropzone-common-radius) px-(--dropzone-common-padding-x) py-(--dropzone-common-padding-y) gap-(--dropzone-common-gap)",
|
|
88461
|
+
"bg-(--dropzone-common-bg) hover:bg-(--dropzone-common-bg) border-(--dropzone-common-border) border-(length:--dropzone-common-border-width)",
|
|
88423
88462
|
isDragActive && "outline-none border-solid",
|
|
88424
88463
|
className
|
|
88425
88464
|
),
|
|
@@ -88456,12 +88495,12 @@ const CsDropzoneContent = ({
|
|
|
88456
88495
|
if (children) {
|
|
88457
88496
|
return children;
|
|
88458
88497
|
}
|
|
88459
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn$1("flex flex-col items-center justify-center gap-
|
|
88460
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 items-center justify-center bg-(--
|
|
88461
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "w-full truncate typo-body-sm text-(--
|
|
88498
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn$1("flex flex-col items-center justify-center gap-(--dropzone-container-content-gap)", className), children: [
|
|
88499
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 items-center justify-center bg-(--dropzone-container-icon-bg) text-(--dropzone-container-icon-color) rounded-(--dropzone-container-icon-radius)", children: /* @__PURE__ */ jsxRuntime.jsx(Upload, { size: 16 }) }),
|
|
88500
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "w-full truncate typo-body-sm text-(--dropzone-container-content-title)", children: src.length > maxLabelItems ? `${new Intl.ListFormat("en").format(
|
|
88462
88501
|
src.slice(0, maxLabelItems).map((file) => file.name)
|
|
88463
88502
|
)} and ${src.length - maxLabelItems} more` : new Intl.ListFormat("en").format(src.map((file) => file.name)) }),
|
|
88464
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "w-full text-wrap typo-body-xs text-(--
|
|
88503
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "w-full text-wrap typo-body-xs text-(--dropzone-container-content-description)", children: "Drag and drop or click to replace" })
|
|
88465
88504
|
] });
|
|
88466
88505
|
};
|
|
88467
88506
|
const CsDropzoneEmptyState = ({
|
|
@@ -88487,14 +88526,14 @@ const CsDropzoneEmptyState = ({
|
|
|
88487
88526
|
} else if (maxSize) {
|
|
88488
88527
|
caption += ` less than ${renderBytes(maxSize)}`;
|
|
88489
88528
|
}
|
|
88490
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn$1("flex flex-col items-center justify-center gap-
|
|
88491
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 items-center justify-center bg-(--
|
|
88492
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "w-full truncate text-wrap typo-body-sm text-(--
|
|
88529
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn$1("flex flex-col items-center justify-center gap-(--dropzone-container-content-gap)", className), children: [
|
|
88530
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 items-center justify-center bg-(--dropzone-container-icon-bg) text-(--dropzone-container-icon-color) rounded-(--dropzone-container-icon-radius)", children: /* @__PURE__ */ jsxRuntime.jsx(Upload, { size: 16 }) }),
|
|
88531
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "w-full truncate text-wrap typo-body-sm text-(--dropzone-container-content-title)", children: [
|
|
88493
88532
|
"Upload ",
|
|
88494
88533
|
maxFiles === 1 ? "a file" : "files"
|
|
88495
88534
|
] }),
|
|
88496
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "w-full truncate text-wrap typo-body-xs text-(--
|
|
88497
|
-
caption && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-wrap typo-body-xs text-(--
|
|
88535
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "w-full truncate text-wrap typo-body-xs text-(--dropzone-container-content-description)", children: "Drag and drop or click to upload" }),
|
|
88536
|
+
caption && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-wrap typo-body-xs text-(--dropzone-container-content-description)", children: [
|
|
88498
88537
|
caption,
|
|
88499
88538
|
"."
|
|
88500
88539
|
] })
|
|
@@ -88507,7 +88546,7 @@ function CsEmpty({ className, ...props }) {
|
|
|
88507
88546
|
"data-slot": "empty",
|
|
88508
88547
|
className: cn$1(
|
|
88509
88548
|
"flex min-w-0 flex-1 flex-col items-center justify-center text-center text-balance",
|
|
88510
|
-
"gap-(--
|
|
88549
|
+
"gap-(--empty-common-gap) px-(--empty-common-padding-x) py-(--empty-common-padding-y) rounded-(--empty-common-radius)",
|
|
88511
88550
|
className
|
|
88512
88551
|
),
|
|
88513
88552
|
...props
|
|
@@ -88521,7 +88560,7 @@ function CsEmptyHeader({ className, ...props }) {
|
|
|
88521
88560
|
"data-slot": "empty-header",
|
|
88522
88561
|
className: cn$1(
|
|
88523
88562
|
"flex max-w-sm flex-col items-center text-center",
|
|
88524
|
-
"gap-(--
|
|
88563
|
+
"gap-(--empty-container-content-gap)",
|
|
88525
88564
|
className
|
|
88526
88565
|
),
|
|
88527
88566
|
...props
|
|
@@ -88534,7 +88573,7 @@ const csEmptyMediaVariants = cva(
|
|
|
88534
88573
|
variants: {
|
|
88535
88574
|
variant: {
|
|
88536
88575
|
default: "bg-transparent",
|
|
88537
|
-
icon: "flex size-10 shrink-0 items-center justify-center [&_svg:not([class*='size-'])]:size-6 bg-(--
|
|
88576
|
+
icon: "flex size-10 shrink-0 items-center justify-center [&_svg:not([class*='size-'])]:size-6 bg-(--empty-container-content-icon-bg) text-(--empty-container-content-icon) rounded-(--empty-common-radius)"
|
|
88538
88577
|
}
|
|
88539
88578
|
},
|
|
88540
88579
|
defaultVariants: {
|
|
@@ -88562,7 +88601,7 @@ function CsEmptyTitle({ className, ...props }) {
|
|
|
88562
88601
|
"div",
|
|
88563
88602
|
{
|
|
88564
88603
|
"data-slot": "empty-title",
|
|
88565
|
-
className: cn$1("text-(--
|
|
88604
|
+
className: cn$1("text-(--empty-container-content-title) typo-heading-sm", className),
|
|
88566
88605
|
...props
|
|
88567
88606
|
}
|
|
88568
88607
|
);
|
|
@@ -88573,7 +88612,7 @@ function CsEmptyDescription({ className, ...props }) {
|
|
|
88573
88612
|
{
|
|
88574
88613
|
"data-slot": "empty-description",
|
|
88575
88614
|
className: cn$1(
|
|
88576
|
-
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 text-(--
|
|
88615
|
+
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 text-(--empty-container-content-description) typo-body-sm",
|
|
88577
88616
|
className
|
|
88578
88617
|
),
|
|
88579
88618
|
...props
|
|
@@ -88587,7 +88626,7 @@ function CsEmptyContent({ className, ...props }) {
|
|
|
88587
88626
|
"data-slot": "empty-content",
|
|
88588
88627
|
className: cn$1(
|
|
88589
88628
|
"flex w-full max-w-sm min-w-0 flex-col items-center text-balance",
|
|
88590
|
-
"gap-(--
|
|
88629
|
+
"gap-(--empty-container-footer-gap)",
|
|
88591
88630
|
className
|
|
88592
88631
|
),
|
|
88593
88632
|
...props
|
|
@@ -88605,7 +88644,7 @@ function CsLabel({
|
|
|
88605
88644
|
"data-slot": "label",
|
|
88606
88645
|
"data-disabled": disabled,
|
|
88607
88646
|
className: cn$1(
|
|
88608
|
-
"flex items-center gap-
|
|
88647
|
+
"flex items-center gap-(--label-gap) typo-productive-label-md text-(--label-font-default) select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:text-(--label-font-disabled) peer-disabled:cursor-not-allowed peer-disabled:text-(--label-font-disabled) peer-data-[disabled=true]:pointer-events-none peer-data-[disabled=true]:text-(--label-font-disabled) has-[[data-slot=input-group][data-disabled=true]]:pointer-events-none has-[[data-slot=input-group][data-disabled=true]]:text-(--label-font-disabled)",
|
|
88609
88648
|
className
|
|
88610
88649
|
),
|
|
88611
88650
|
...props
|
|
@@ -88625,7 +88664,7 @@ function CsSeparator({
|
|
|
88625
88664
|
decorative,
|
|
88626
88665
|
orientation,
|
|
88627
88666
|
className: cn$1(
|
|
88628
|
-
"bg-(--border
|
|
88667
|
+
"bg-(--separator-border) shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
88629
88668
|
className
|
|
88630
88669
|
),
|
|
88631
88670
|
...props
|
|
@@ -88638,8 +88677,8 @@ function CsFieldSet({ className, ...props }) {
|
|
|
88638
88677
|
{
|
|
88639
88678
|
"data-slot": "field-set",
|
|
88640
88679
|
className: cn$1(
|
|
88641
|
-
"flex flex-col gap-component-gap-lg",
|
|
88642
|
-
"has-[>[data-slot=checkbox-group]]:gap-component-gap-md has-[>[data-slot=radio-group]]:gap-component-gap-md",
|
|
88680
|
+
"flex flex-col gap-(--spacing-component-gap-lg)",
|
|
88681
|
+
"has-[>[data-slot=checkbox-group]]:gap-(--spacing-component-gap-md) has-[>[data-slot=radio-group]]:gap-(--spacing-component-gap-md)",
|
|
88643
88682
|
className
|
|
88644
88683
|
),
|
|
88645
88684
|
...props
|
|
@@ -88672,7 +88711,7 @@ function CsFieldGroup({ className, ...props }) {
|
|
|
88672
88711
|
{
|
|
88673
88712
|
"data-slot": "field-group",
|
|
88674
88713
|
className: cn$1(
|
|
88675
|
-
"group/field-group @container/field-group flex w-full flex-col gap-component-gap-lg data-[slot=checkbox-group]:gap-component-gap-md
|
|
88714
|
+
"group/field-group @container/field-group flex w-full flex-col gap-(--spacing-component-gap-lg) data-[slot=checkbox-group]:gap-(--spacing-component-gap-md) *:data-[slot=field-group]:gap-(--spacing-component-gap-md)",
|
|
88676
88715
|
className
|
|
88677
88716
|
),
|
|
88678
88717
|
...props
|
|
@@ -88680,7 +88719,7 @@ function CsFieldGroup({ className, ...props }) {
|
|
|
88680
88719
|
);
|
|
88681
88720
|
}
|
|
88682
88721
|
const csFieldVariants = cva(
|
|
88683
|
-
"group/field flex w-full gap-
|
|
88722
|
+
"group/field flex w-full gap-(--input-common-group-gap) data-[invalid=true]:text-(--color-state-error-default)",
|
|
88684
88723
|
{
|
|
88685
88724
|
variants: {
|
|
88686
88725
|
orientation: {
|
|
@@ -88724,7 +88763,7 @@ function CsFieldContent({ className, ...props }) {
|
|
|
88724
88763
|
{
|
|
88725
88764
|
"data-slot": "field-content",
|
|
88726
88765
|
className: cn$1(
|
|
88727
|
-
"group/field-content flex flex-1 flex-col gap-
|
|
88766
|
+
"group/field-content flex flex-1 flex-col gap-(--input-common-group-gap) leading-snug",
|
|
88728
88767
|
className
|
|
88729
88768
|
),
|
|
88730
88769
|
...props
|
|
@@ -88812,7 +88851,7 @@ function CsFieldError({
|
|
|
88812
88851
|
if (uniqueErrors?.length == 1) {
|
|
88813
88852
|
return uniqueErrors[0]?.message;
|
|
88814
88853
|
}
|
|
88815
|
-
return /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex list-disc flex-col gap-
|
|
88854
|
+
return /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex list-disc flex-col gap-(--label-gap)", children: uniqueErrors.map(
|
|
88816
88855
|
(error2, index) => error2?.message && /* @__PURE__ */ jsxRuntime.jsx("li", { children: error2.message }, index)
|
|
88817
88856
|
) });
|
|
88818
88857
|
}, [children, errors]);
|
|
@@ -88824,30 +88863,30 @@ function CsFieldError({
|
|
|
88824
88863
|
{
|
|
88825
88864
|
role: "alert",
|
|
88826
88865
|
"data-slot": "field-error",
|
|
88827
|
-
className: cn$1(" text-(--
|
|
88866
|
+
className: cn$1(" text-(--input-outline-fail-icon) typo-productive-caption", className),
|
|
88828
88867
|
...props,
|
|
88829
88868
|
children: content
|
|
88830
88869
|
}
|
|
88831
88870
|
);
|
|
88832
88871
|
}
|
|
88833
88872
|
const csInputGroupVariants = cva(
|
|
88834
|
-
"group/input-group relative flex w-full items-center transition-[color,box-shadow] outline-none min-w-0 border-none ring-(length:--border-width
|
|
88873
|
+
"group/input-group relative flex w-full items-center transition-[color,box-shadow] outline-none min-w-0 border-none ring-(length:--input-common-border-width) rounded-(--input-common-radius) px-(--input-common-padding-x) py-(--input-common-padding-y) gap-(--input-common-gap) has-[>input:disabled]:opacity-(--input-common-opacity) has-[>textarea:disabled]:opacity-(--input-common-opacity)has-[>textarea]:h-auto min-h-(--input-common-height) has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[[data-slot~=input-group-control]:focus-visible]:border-none has-[[data-slot~=input-group-control]:focus-visible]:ring-(--input-solid-focus-border) has-[[data-slot~=input-group-control]:focus-visible]:ring-(--input-common-border-width) ",
|
|
88835
88874
|
{
|
|
88836
88875
|
variants: {
|
|
88837
88876
|
variant: {
|
|
88838
88877
|
solid: [
|
|
88839
|
-
"bg-(--
|
|
88840
|
-
"hover:bg-(--
|
|
88841
|
-
"has-[[data-slot~=input-group-control]:focus-visible]:bg-(--
|
|
88842
|
-
"has-[[data-slot~=input-group-control][aria-invalid=true]]:bg-(--
|
|
88843
|
-
"has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]:bg-(--
|
|
88878
|
+
"bg-(--input-solid-default-bg) ring-transparent",
|
|
88879
|
+
"hover:bg-(--input-solid-hover-bg) hover:ring-transparent",
|
|
88880
|
+
"has-[[data-slot~=input-group-control]:focus-visible]:bg-(--input-solid-focus-bg) has-[[data-slot~=input-group-control]:focus-visible]:ring-(--input-solid-focus-border)",
|
|
88881
|
+
"has-[[data-slot~=input-group-control][aria-invalid=true]]:bg-(--input-solid-fail-bg) has-[[data-slot~=input-group-control][aria-invalid=true]]:ring-(--input-solid-fail-border)",
|
|
88882
|
+
"has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]:bg-(--input-solid-success-bg) has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]:ring-(--input-solid-success-border)"
|
|
88844
88883
|
].join(" "),
|
|
88845
88884
|
outline: [
|
|
88846
|
-
"bg-(--
|
|
88847
|
-
"hover:bg-(--
|
|
88848
|
-
"has-[[data-slot~=input-group-control]:focus-visible]:bg-(--
|
|
88849
|
-
"has-[[data-slot~=input-group-control][aria-invalid=true]]:bg-(--
|
|
88850
|
-
"has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]:bg-(--
|
|
88885
|
+
"bg-(--input-outline-default-bg) ring-(length:--input-common-border-width) ring-(--input-outline-default-border)",
|
|
88886
|
+
"hover:bg-(--input-outline-hover-bg) hover:ring-(--input-outline-hover-border)",
|
|
88887
|
+
"has-[[data-slot~=input-group-control]:focus-visible]:bg-(--input-outline-focus-bg) has-[[data-slot~=input-group-control]:focus-visible]:ring-(--input-outline-focus-border)",
|
|
88888
|
+
"has-[[data-slot~=input-group-control][aria-invalid=true]]:bg-(--input-outline-fail-bg) has-[[data-slot~=input-group-control][aria-invalid=true]]:ring-(--input-outline-fail-border)",
|
|
88889
|
+
"has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]:bg-(--input-outline-success-bg) has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]:ring-(--input-outline-success-border)"
|
|
88851
88890
|
].join(" ")
|
|
88852
88891
|
}
|
|
88853
88892
|
},
|
|
@@ -88875,7 +88914,7 @@ function CsInputGroup({
|
|
|
88875
88914
|
);
|
|
88876
88915
|
}
|
|
88877
88916
|
const csInputGroupAddonVariants = cva(
|
|
88878
|
-
"flex cursor-text items-center justify-center gap-
|
|
88917
|
+
"flex cursor-text items-center justify-center gap-(--input-common-gap) select-none [&>kbd]:rounded-[calc(var(--input-common-radius)-5px)] group-data-[disabled=true]/input-group:opacity-(--input-common-opacity) [&>svg:not([class*='size-'])]:size-(--input-common-icon-size-sm) [&>svg]:text-(--input-solid-default-icon) flex cursor-text items-center justify-center gap-(--input-common-gap) select-none [&>kbd]:rounded-[calc(var(--input-common-radius)-5px)] group-data-[disabled=true]/input-group:opacity-(--input-common-opacity) [&>svg:not([class*='size-'])]:size-(--input-common-icon-size-sm) [&>svg]:text-(--input-solid-default-icon) group-data-[variant=solid]/input-group:group-has-[[data-slot~=input-group-control]:placeholder-shown]/input-group:[&>svg]:text-(--input-solid-default-icon) group-data-[variant=solid]/input-group:group-has-[[data-slot~=input-group-control][aria-invalid=true]]/input-group:[&>svg]:text-(--input-solid-fail-icon) group-data-[variant=solid]/input-group:group-has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]/input-group:[&>svg]:text-(--input-solid-success-icon) group-data-[variant=outline]/input-group:group-has-[[data-slot~=input-group-control]:placeholder-shown]/input-group:[&>svg]:text-(--input-outline-default-icon) group-data-[variant=outline]/input-group:group-has-[[data-slot~=input-group-control][aria-invalid=true]]/input-group:[&>svg]:text-(--input-outline-fail-icon) group-data-[variant=outline]/input-group:group-has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]/input-group:[&>svg]:text-(--input-outline-success-icon) ",
|
|
88879
88918
|
{
|
|
88880
88919
|
variants: {
|
|
88881
88920
|
align: {
|
|
@@ -88913,7 +88952,7 @@ function CsInputGroupAddon({
|
|
|
88913
88952
|
);
|
|
88914
88953
|
}
|
|
88915
88954
|
const csInputGroupButtonVariants = cva(
|
|
88916
|
-
"[&_svg]:size-(--icon-size-
|
|
88955
|
+
"[&_svg]:size-(--input-common-icon-size-sm) px-(--input-common-padding-x) py-(--input-common-padding-y) gap-(--input-common-gap)",
|
|
88917
88956
|
{
|
|
88918
88957
|
variants: {
|
|
88919
88958
|
size: {
|
|
@@ -88970,12 +89009,12 @@ function CsInputGroupInput({
|
|
|
88970
89009
|
"w-full min-w-0 outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
|
|
88971
89010
|
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 p-0",
|
|
88972
89011
|
"typo-body-sm",
|
|
88973
|
-
"group-data-[variant=solid]/input-group:text-(--
|
|
88974
|
-
"group-data-[variant=outline]/input-group:text-(--
|
|
88975
|
-
"group-data-[variant=solid]/input-group:aria-invalid:text-(--
|
|
88976
|
-
"group-data-[variant=outline]/input-group:aria-invalid:text-(--
|
|
88977
|
-
"group-data-[variant=solid]/input-group:aria-[aria-invalid=false]:text-(--
|
|
88978
|
-
"group-data-[variant=outline]/input-group:aria-[aria-invalid=false]:text-(--
|
|
89012
|
+
"group-data-[variant=solid]/input-group:text-(--input-solid-default-font) group-data-[variant=solid]/input-group:placeholder:text-(--input-solid-default-font) ",
|
|
89013
|
+
"group-data-[variant=outline]/input-group:text-(--input-outline-default-font) group-data-[variant=outline]/input-group:placeholder:text-(--input-outline-default-font) ",
|
|
89014
|
+
"group-data-[variant=solid]/input-group:aria-invalid:text-(--input-solid-fail-font) ",
|
|
89015
|
+
"group-data-[variant=outline]/input-group:aria-invalid:text-(--input-outline-fail-font) ",
|
|
89016
|
+
"group-data-[variant=solid]/input-group:aria-[aria-invalid=false]:text-(--input-solid-success-font) ",
|
|
89017
|
+
"group-data-[variant=outline]/input-group:aria-[aria-invalid=false]:text-(--input-outline-success-font) ",
|
|
88979
89018
|
className
|
|
88980
89019
|
),
|
|
88981
89020
|
...props
|
|
@@ -88995,8 +89034,8 @@ function CsInputGroupTextarea({
|
|
|
88995
89034
|
"w-full min-w-0 outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
|
|
88996
89035
|
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 p-0",
|
|
88997
89036
|
"typo-body-sm",
|
|
88998
|
-
"group-data-[variant=solid]/input-group:text-(--
|
|
88999
|
-
"group-data-[variant=outline]/input-group:text-(--
|
|
89037
|
+
"group-data-[variant=solid]/input-group:text-(--input-solid-default-font) group-data-[variant=solid]/input-group:placeholder:text-(--input-solid-default-font) ",
|
|
89038
|
+
"group-data-[variant=outline]/input-group:text-(--input-outline-default-font) group-data-[variant=outline]/input-group:placeholder:text-(--input-outline-default-font) ",
|
|
89000
89039
|
resizable ? "resize-y" : "resize-none",
|
|
89001
89040
|
className
|
|
89002
89041
|
),
|
|
@@ -89051,7 +89090,7 @@ function CsNavigationMenu({
|
|
|
89051
89090
|
"data-viewport": viewport,
|
|
89052
89091
|
"data-variant": variant,
|
|
89053
89092
|
className: cn$1(
|
|
89054
|
-
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center gap-
|
|
89093
|
+
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center gap-(--navigation-button-container-gap)",
|
|
89055
89094
|
className
|
|
89056
89095
|
),
|
|
89057
89096
|
...props,
|
|
@@ -89071,7 +89110,7 @@ function CsNavigationMenuList({
|
|
|
89071
89110
|
{
|
|
89072
89111
|
"data-slot": "navigation-menu-list",
|
|
89073
89112
|
className: cn$1(
|
|
89074
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
89113
|
+
"group flex flex-1 list-none items-center justify-center gap-(--navigation-button-container-gap)",
|
|
89075
89114
|
className
|
|
89076
89115
|
),
|
|
89077
89116
|
...props
|
|
@@ -89092,13 +89131,13 @@ function CsNavigationMenuItem({
|
|
|
89092
89131
|
);
|
|
89093
89132
|
}
|
|
89094
89133
|
const csNavigationMenuTriggerStyle = cva(
|
|
89095
|
-
"typo-body-sm group inline-flex w-max items-center justify-center px-
|
|
89134
|
+
"typo-body-sm group inline-flex w-max items-center justify-center px-(--navigation-button-common-padding-x) py-(--navigation-button-common-padding-y) gap-(--navigation-button-common-gap) outline-none transition-[color,background-color] disabled:pointer-events-none disabled:opacity-(--opacity-state-disabled) [&_svg]:size-(--navigation-button-common-icon-size)",
|
|
89096
89135
|
{
|
|
89097
89136
|
variants: {
|
|
89098
89137
|
variant: {
|
|
89099
|
-
"solid-ghost": "rounded-(--radius
|
|
89100
|
-
"bottom-border": "
|
|
89101
|
-
"gradient": "rounded-(--radius
|
|
89138
|
+
"solid-ghost": "rounded-(--navigation-button-common-radius) text-(--navigation-button-solid-ghost-default-font) hover:bg-(--navigation-button-solid-ghost-active-bg) hover:text-(--navigation-button-solid-ghost-active-font) data-[state=open]:bg-(--navigation-button-solid-ghost-active-bg) data-[state=open]:text-(--navigation-button-solid-ghost-active-font) disabled:text-(--navigation-button-solid-ghost-disabled-font) [&_svg]:text-(--navigation-button-solid-ghost-default-icon) [&_svg]:hover:text-(--navigation-button-solid-ghost-active-icon) [&_svg]:disabled:text-(--navigation-button-solid-ghost-disabled-icon)",
|
|
89139
|
+
"bottom-border": "text-(--navigation-button-bottom-border-default-font) hover:text-(--navigation-button-bottom-border-hover-font) data-[state=open]:text-(--navigation-button-bottom-border-active-font) disabled:text-(--navigation-button-bottom-border-disabled-font) [&_svg]:text-(--navigation-button-bottom-border-default-icon) [&_svg]:hover:text-(--navigation-button-bottom-border-hover-icon) [&_svg]:data-[state=open]:text-(--navigation-button-bottom-border-active-icon) [&_svg]:disabled:text-(--navigation-button-bottom-border-disabled-icon) border-b-transparent border-b-(length:--navigation-button-bottom-border-active-border-width) data-[state=open]:border-b-(--navigation-button-bottom-border-active-border)",
|
|
89140
|
+
"gradient": "rounded-(--navigation-button-common-radius) text-(--navigation-button-gradient-default-font) hover:gradient-primary-vertical data-[state=open]:text-(--navigation-button-gradient-active-font) disabled:text-(--navigation-button-gradient-disabled-font) [&_svg]:text-(--navigation-button-gradient-default-icon) [&_svg]:data-[state=open]:text-(--navigation-button-gradient-active-icon) [&_svg]:disabled:text-(--navigation-button-gradient-disabled-icon)"
|
|
89102
89141
|
}
|
|
89103
89142
|
},
|
|
89104
89143
|
defaultVariants: {
|
|
@@ -89118,7 +89157,7 @@ function CsNavigationMenuTrigger({
|
|
|
89118
89157
|
"data-slot": "navigation-menu-trigger",
|
|
89119
89158
|
className: cn$1(
|
|
89120
89159
|
csNavigationMenuTriggerStyle({ variant }),
|
|
89121
|
-
"group flex items-center gap-
|
|
89160
|
+
"group flex items-center gap-(--navigation-button-common-gap)",
|
|
89122
89161
|
className
|
|
89123
89162
|
),
|
|
89124
89163
|
...props,
|
|
@@ -89127,7 +89166,7 @@ function CsNavigationMenuTrigger({
|
|
|
89127
89166
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
89128
89167
|
ChevronDown,
|
|
89129
89168
|
{
|
|
89130
|
-
className: "relative size-(--icon-size
|
|
89169
|
+
className: "relative size-(--navigation-button-common-icon-size) transition duration-300 group-data-[state=open]:rotate-180",
|
|
89131
89170
|
"aria-hidden": "true"
|
|
89132
89171
|
}
|
|
89133
89172
|
)
|
|
@@ -89144,7 +89183,7 @@ function CsNavigationMenuContent({
|
|
|
89144
89183
|
{
|
|
89145
89184
|
"data-slot": "navigation-menu-content",
|
|
89146
89185
|
className: cn$1(
|
|
89147
|
-
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full bg-(--
|
|
89186
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full bg-(--navigation-item-container-bg) text-(--font-color-primary-default) rounded-(--navigation-item-container-radius) border-(--navigation-item-container-border) border-(length:--navigation-item-container-border-width) px-(--navigation-item-container-padding-x) py-(--navigation-item-container-padding-y) gap-(--navigation-item-container-gap) absolute w-auto mobile:static mobile:w-full",
|
|
89148
89187
|
"group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:outline-none",
|
|
89149
89188
|
"boxshadow-lg",
|
|
89150
89189
|
className
|
|
@@ -89183,8 +89222,8 @@ const csNavigationMenuLinkVariants = cva(
|
|
|
89183
89222
|
{
|
|
89184
89223
|
variants: {
|
|
89185
89224
|
variant: {
|
|
89186
|
-
item: "items-center gap-
|
|
89187
|
-
"item-content": "flex-col gap-
|
|
89225
|
+
item: "items-center gap-(--navigation-item-common-gap) rounded-(--navigation-item-common-radius) px-(--navigation-item-common-padding-x) py-(--navigation-item-common-padding-y) data-[active=true]:bg-(--navigation-item-hover-bg) data-[active=true]:text-(--navigation-item-hover-font) hover:bg-(--navigation-item-hover-bg) hover:text-(--navigation-item-hover-font) focus:bg-(--navigation-item-hover-bg) focus:text-(--navigation-item-hover-font) text-(--navigation-item-default-font) [&_svg:not([class*='text-'])]:text-(--navigation-item-default-icon) [&_svg:not([class*='size-'])]:size-(--navigation-item-common-icon-size)",
|
|
89226
|
+
"item-content": "flex-col gap-(--navigation-item-content-common-gap) rounded-(--navigation-item-content-common-radius) px-(--navigation-item-content-common-padding-x) py-(--navigation-item-content-common-padding-y) data-[active=true]:bg-(--navigation-item-content-hover-bg) data-[active=true]:text-(--navigation-item-content-hover-title) hover:bg-(--navigation-item-content-hover-bg) hover:text-(--navigation-item-content-hover-title) focus:bg-(--navigation-item-content-hover-bg) focus:text-(--navigation-item-content-hover-title) text-(--navigation-item-content-default-title) [&_svg:not([class*='text-'])]:text-(--navigation-item-content-default-icon) [&_svg:not([class*='size-'])]:size-(--navigation-item-content-common-icon-size) [&_svg]:data-[active=true]:text-(--navigation-item-content-hover-icon) [&_svg]:hover:text-(--navigation-item-content-hover-icon)"
|
|
89188
89227
|
}
|
|
89189
89228
|
},
|
|
89190
89229
|
defaultVariants: {
|
|
@@ -89222,7 +89261,7 @@ function CsNavigationMenuIndicator({
|
|
|
89222
89261
|
className
|
|
89223
89262
|
),
|
|
89224
89263
|
...props,
|
|
89225
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-(--
|
|
89264
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-(--navigation-item-container-border) relative top-[60%] h-2 w-2 rotate-45 rounded-(--radius-small)" })
|
|
89226
89265
|
}
|
|
89227
89266
|
);
|
|
89228
89267
|
}
|
|
@@ -89246,7 +89285,7 @@ function CsPaginationContent({
|
|
|
89246
89285
|
"ul",
|
|
89247
89286
|
{
|
|
89248
89287
|
"data-slot": "pagination-content",
|
|
89249
|
-
className: cn$1("flex flex-row items-center gap-
|
|
89288
|
+
className: cn$1("flex flex-row items-center gap-(--pagination-common-gap)", className),
|
|
89250
89289
|
...props
|
|
89251
89290
|
}
|
|
89252
89291
|
);
|
|
@@ -89266,9 +89305,9 @@ function CsPaginationLink({
|
|
|
89266
89305
|
"data-slot": "pagination-link",
|
|
89267
89306
|
"data-active": isActive,
|
|
89268
89307
|
className: cn$1(
|
|
89269
|
-
"typo-body-sm transition-colors cursor-pointer flex items-center justify-center h-(--
|
|
89270
|
-
"hover:bg-(--
|
|
89271
|
-
isActive && "bg-(--
|
|
89308
|
+
"typo-body-sm transition-colors cursor-pointer flex items-center justify-center h-(--pagination-common-item-size) min-w-(--pagination-common-item-size) rounded-(--pagination-common-radius) text-(--pagination-link-default-font) [&_svg]:size-(--pagination-common-icon-size)",
|
|
89309
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) aria-disabled:cursor-not-allowed aria-disabled:opacity-(--opacity-state-disabled)",
|
|
89310
|
+
isActive && "bg-(--pagination-item-active-bg) text-(--pagination-item-active-font) border-(length:--pagination-item-active-border-width) border-(--pagination-item-active-border) hover:bg-(--pagination-item-active-hover-bg) hover:text-(--pagination-item-active-hover-font) hover:border-(length:--pagination-item-active-hover-border-width) hover:border-(--pagination-item-active-hover-border)",
|
|
89272
89311
|
className
|
|
89273
89312
|
),
|
|
89274
89313
|
...props
|
|
@@ -89285,8 +89324,8 @@ function CsPaginationPrevious({
|
|
|
89285
89324
|
{
|
|
89286
89325
|
"aria-label": "Go to previous page",
|
|
89287
89326
|
className: cn$1(
|
|
89288
|
-
"gap-
|
|
89289
|
-
"hover:bg-(--
|
|
89327
|
+
"gap-(--pagination-common-gap) mobile:px-(--pagination-common-padding-sm) pr-(--pagination-common-padding-md) pl-(--pagination-common-padding-sm) text-(--pagination-link-default-font) [&_svg]:text-(--pagination-link-default-icon)",
|
|
89328
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) [&_svg]:hover:text-(--pagination-link-hover-icon)",
|
|
89290
89329
|
className
|
|
89291
89330
|
),
|
|
89292
89331
|
...props,
|
|
@@ -89307,8 +89346,8 @@ function CsPaginationNext({
|
|
|
89307
89346
|
{
|
|
89308
89347
|
"aria-label": "Go to next page",
|
|
89309
89348
|
className: cn$1(
|
|
89310
|
-
"gap-
|
|
89311
|
-
"hover:bg-(--
|
|
89349
|
+
"gap-(--pagination-common-gap) mobile:px-(--pagination-common-padding-sm) pl-(--pagination-common-padding-md) pr-(--pagination-common-padding-sm) text-(--pagination-link-default-font) [&_svg]:text-(--pagination-link-default-icon)",
|
|
89350
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) [&_svg]:hover:text-(--pagination-link-hover-icon)",
|
|
89312
89351
|
className
|
|
89313
89352
|
),
|
|
89314
89353
|
...props,
|
|
@@ -89328,22 +89367,22 @@ function CsPaginationEllipsis({
|
|
|
89328
89367
|
{
|
|
89329
89368
|
"aria-hidden": true,
|
|
89330
89369
|
"data-slot": "pagination-ellipsis",
|
|
89331
|
-
className: cn$1("flex size-(--
|
|
89370
|
+
className: cn$1("flex size-(--pagination-common-item-size) items-center justify-center text-(--pagination-item-ellipsis-font)", className),
|
|
89332
89371
|
...props,
|
|
89333
89372
|
children: [
|
|
89334
|
-
/* @__PURE__ */ jsxRuntime.jsx(Ellipsis, { className: "size-(--icon-size
|
|
89373
|
+
/* @__PURE__ */ jsxRuntime.jsx(Ellipsis, { className: "size-(--pagination-common-icon-size)" }),
|
|
89335
89374
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
|
|
89336
89375
|
]
|
|
89337
89376
|
}
|
|
89338
89377
|
);
|
|
89339
89378
|
}
|
|
89340
89379
|
const csProgressVariants = cva(
|
|
89341
|
-
"relative h-(--
|
|
89380
|
+
"relative h-(--progress-height) w-full overflow-hidden rounded-(--progress-radius)",
|
|
89342
89381
|
{
|
|
89343
89382
|
variants: {
|
|
89344
89383
|
variant: {
|
|
89345
|
-
solid: "bg-(--
|
|
89346
|
-
gradient: "bg-(--
|
|
89384
|
+
solid: "bg-(--progress-solid-track)",
|
|
89385
|
+
gradient: "bg-(--progress-gradient-track)"
|
|
89347
89386
|
}
|
|
89348
89387
|
},
|
|
89349
89388
|
defaultVariants: {
|
|
@@ -89356,7 +89395,7 @@ const csProgressIndicatorVariants = cva(
|
|
|
89356
89395
|
{
|
|
89357
89396
|
variants: {
|
|
89358
89397
|
variant: {
|
|
89359
|
-
solid: "bg-(--
|
|
89398
|
+
solid: "bg-(--progress-solid-fill)",
|
|
89360
89399
|
gradient: "gradient-primary-horizontal"
|
|
89361
89400
|
}
|
|
89362
89401
|
},
|
|
@@ -89404,12 +89443,12 @@ function CsSelectValue({
|
|
|
89404
89443
|
return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Value, { "data-slot": "select-value", ...props });
|
|
89405
89444
|
}
|
|
89406
89445
|
const csSelectTriggerVariants = cva(
|
|
89407
|
-
"focus-visible:ring-0 flex w-fit items-center justify-between whitespace-nowrap transition-[color,box-shadow] outline-none disabled:cursor-not-allowed *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center rounded-(--radius
|
|
89446
|
+
"focus-visible:ring-0 flex w-fit items-center justify-between whitespace-nowrap transition-[color,box-shadow] outline-none disabled:cursor-not-allowed *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center rounded-(--select-default-common-radius) border-(length:--select-default-common-border-width) [&_svg:not([class*='size-'])]:size-(--select-default-common-icon-size) bg-(--select-default-default-bg) border-(--select-default-default-border) text-(--select-default-default-font) data-[placeholder]:text-(--font-color-primary-muted) [&_svg]:text-(--select-default-default-icon) hover:bg-(--select-default-hover-bg) hover:border-(--select-default-hover-border) hover:text-(--select-default-hover-font) hover:[&_svg]:text-(--select-default-hover-icon) disabled:bg-(--select-default-disabled-bg) disabled:border-(--select-default-disabled-border) disabled:text-(--select-default-disabled-font) disabled:[&_svg]:text-(--select-default-disabled-icon)",
|
|
89408
89447
|
{
|
|
89409
89448
|
variants: {
|
|
89410
89449
|
size: {
|
|
89411
|
-
default: "typo-body-sm h-(--
|
|
89412
|
-
sm: "typo-body-xs h-(--
|
|
89450
|
+
default: "typo-body-sm h-(--select-default-common-height) px-(--select-default-common-padding-x) gap-(--select-default-common-gap) *:data-[slot=select-value]:gap-(--select-default-common-gap)",
|
|
89451
|
+
sm: "typo-body-xs h-(--select-small-common-height) px-(--select-small-common-padding-x) gap-(--select-small-common-gap) *:data-[slot=select-value]:gap-(--select-small-common-gap)"
|
|
89413
89452
|
}
|
|
89414
89453
|
},
|
|
89415
89454
|
defaultVariants: {
|
|
@@ -89448,7 +89487,7 @@ function CsSelectContent({
|
|
|
89448
89487
|
className: cn$1(
|
|
89449
89488
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto",
|
|
89450
89489
|
position2 === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
89451
|
-
"min-w-[8rem] rounded-(--radius
|
|
89490
|
+
"min-w-[8rem] rounded-(--select-dropdown-radius) gap-(--select-dropdown-gap) px-(--select-dropdown-padding-x) py-(--select-dropdown-padding-y) bg-(--select-dropdown-bg) border-(--select-dropdown-border) border-(length:--dropdown-container-border-width) boxshadow-sm",
|
|
89452
89491
|
className
|
|
89453
89492
|
),
|
|
89454
89493
|
position: position2,
|
|
@@ -89480,7 +89519,7 @@ function CsSelectLabel({
|
|
|
89480
89519
|
"data-slot": "select-label",
|
|
89481
89520
|
className: cn$1(
|
|
89482
89521
|
csDropdownMenuItemCommonClassName,
|
|
89483
|
-
"typo-productive-label-md text-(--
|
|
89522
|
+
"typo-productive-label-md text-(--dropdown-item-header-font)",
|
|
89484
89523
|
className
|
|
89485
89524
|
),
|
|
89486
89525
|
...props
|
|
@@ -89498,14 +89537,14 @@ function CsSelectItem({
|
|
|
89498
89537
|
"data-slot": "select-item",
|
|
89499
89538
|
className: cn$1(
|
|
89500
89539
|
csDropdownMenuItemCommonClassName,
|
|
89501
|
-
"group data-[disabled]:pointer-events-none *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-
|
|
89540
|
+
"group data-[disabled]:pointer-events-none *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-(--dropdown-item-icon-gap)",
|
|
89502
89541
|
className
|
|
89503
89542
|
),
|
|
89504
89543
|
...props,
|
|
89505
89544
|
children: [
|
|
89506
89545
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children }),
|
|
89507
89546
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { className: "ml-auto", children: /* @__PURE__ */ jsxRuntime.jsx(Check, {}) }),
|
|
89508
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ml-auto size-(--icon-size
|
|
89547
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ml-auto size-(--select-default-common-icon-size) group-data-[state=checked]:hidden" })
|
|
89509
89548
|
]
|
|
89510
89549
|
}
|
|
89511
89550
|
);
|
|
@@ -89518,7 +89557,7 @@ function CsSelectSeparator({
|
|
|
89518
89557
|
SelectPrimitive__namespace.Separator,
|
|
89519
89558
|
{
|
|
89520
89559
|
"data-slot": "select-separator",
|
|
89521
|
-
className: cn$1("bg-(--
|
|
89560
|
+
className: cn$1("bg-(--dropdown-item-common-border) w-full h-(--dropdown-item-common-border-width)", className),
|
|
89522
89561
|
...props
|
|
89523
89562
|
}
|
|
89524
89563
|
);
|
|
@@ -89534,7 +89573,7 @@ function CsSelectScrollUpButton({
|
|
|
89534
89573
|
"data-slot": "select-scroll-up-button",
|
|
89535
89574
|
className: cn$1(
|
|
89536
89575
|
csDropdownMenuItemCommonClassName,
|
|
89537
|
-
"[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
89576
|
+
"[&_svg:not([class*='size-'])]:size-(--select-default-common-icon-size) [&_svg]:text-(--select-default-default-icon)",
|
|
89538
89577
|
className
|
|
89539
89578
|
),
|
|
89540
89579
|
...props,
|
|
@@ -89553,7 +89592,7 @@ function CsSelectScrollDownButton({
|
|
|
89553
89592
|
"data-slot": "select-scroll-down-button",
|
|
89554
89593
|
className: cn$1(
|
|
89555
89594
|
csDropdownMenuItemCommonClassName,
|
|
89556
|
-
"[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
89595
|
+
"[&_svg:not([class*='size-'])]:size-(--select-default-common-icon-size) [&_svg]:text-(--select-default-default-icon)",
|
|
89557
89596
|
className
|
|
89558
89597
|
),
|
|
89559
89598
|
...props,
|
|
@@ -89586,12 +89625,12 @@ const CsSimpleSelect = React.forwardRef(
|
|
|
89586
89625
|
);
|
|
89587
89626
|
CsSimpleSelect.displayName = "CsSimpleSelect";
|
|
89588
89627
|
const csSkeletonVariants = cva(
|
|
89589
|
-
"bg-(--
|
|
89628
|
+
"bg-(--skeleton-fill) animate-pulse",
|
|
89590
89629
|
{
|
|
89591
89630
|
variants: {
|
|
89592
89631
|
radius: {
|
|
89593
|
-
default: "rounded-(--radius
|
|
89594
|
-
max: "rounded-(--radius-
|
|
89632
|
+
default: "rounded-(--skeleton-radius)",
|
|
89633
|
+
max: "rounded-(--skeleton-radius-full)"
|
|
89595
89634
|
}
|
|
89596
89635
|
},
|
|
89597
89636
|
defaultVariants: {
|
|
@@ -89776,31 +89815,31 @@ class Observer {
|
|
|
89776
89815
|
var _data_id;
|
|
89777
89816
|
const { message: message2, ...rest } = data;
|
|
89778
89817
|
const id2 = typeof (data == null ? void 0 : data.id) === "number" || ((_data_id = data.id) == null ? void 0 : _data_id.length) > 0 ? data.id : toastsCounter++;
|
|
89779
|
-
const alreadyExists = this.toasts.find((
|
|
89780
|
-
return
|
|
89818
|
+
const alreadyExists = this.toasts.find((toast2) => {
|
|
89819
|
+
return toast2.id === id2;
|
|
89781
89820
|
});
|
|
89782
89821
|
const dismissible = data.dismissible === void 0 ? true : data.dismissible;
|
|
89783
89822
|
if (this.dismissedToasts.has(id2)) {
|
|
89784
89823
|
this.dismissedToasts.delete(id2);
|
|
89785
89824
|
}
|
|
89786
89825
|
if (alreadyExists) {
|
|
89787
|
-
this.toasts = this.toasts.map((
|
|
89788
|
-
if (
|
|
89826
|
+
this.toasts = this.toasts.map((toast2) => {
|
|
89827
|
+
if (toast2.id === id2) {
|
|
89789
89828
|
this.publish({
|
|
89790
|
-
...
|
|
89829
|
+
...toast2,
|
|
89791
89830
|
...data,
|
|
89792
89831
|
id: id2,
|
|
89793
89832
|
title: message2
|
|
89794
89833
|
});
|
|
89795
89834
|
return {
|
|
89796
|
-
...
|
|
89835
|
+
...toast2,
|
|
89797
89836
|
...data,
|
|
89798
89837
|
id: id2,
|
|
89799
89838
|
dismissible,
|
|
89800
89839
|
title: message2
|
|
89801
89840
|
};
|
|
89802
89841
|
}
|
|
89803
|
-
return
|
|
89842
|
+
return toast2;
|
|
89804
89843
|
});
|
|
89805
89844
|
} else {
|
|
89806
89845
|
this.addToast({
|
|
@@ -89820,9 +89859,9 @@ class Observer {
|
|
|
89820
89859
|
dismiss: true
|
|
89821
89860
|
})));
|
|
89822
89861
|
} else {
|
|
89823
|
-
this.toasts.forEach((
|
|
89862
|
+
this.toasts.forEach((toast2) => {
|
|
89824
89863
|
this.subscribers.forEach((subscriber) => subscriber({
|
|
89825
|
-
id:
|
|
89864
|
+
id: toast2.id,
|
|
89826
89865
|
dismiss: true
|
|
89827
89866
|
}));
|
|
89828
89867
|
});
|
|
@@ -89991,7 +90030,7 @@ class Observer {
|
|
|
89991
90030
|
return id2;
|
|
89992
90031
|
};
|
|
89993
90032
|
this.getActiveToasts = () => {
|
|
89994
|
-
return this.toasts.filter((
|
|
90033
|
+
return this.toasts.filter((toast2) => !this.dismissedToasts.has(toast2.id));
|
|
89995
90034
|
};
|
|
89996
90035
|
this.subscribers = [];
|
|
89997
90036
|
this.toasts = [];
|
|
@@ -90014,7 +90053,7 @@ const isHttpResponse = (data) => {
|
|
|
90014
90053
|
const basicToast = toastFunction;
|
|
90015
90054
|
const getHistory = () => ToastState.toasts;
|
|
90016
90055
|
const getToasts = () => ToastState.getActiveToasts();
|
|
90017
|
-
Object.assign(basicToast, {
|
|
90056
|
+
const toast = Object.assign(basicToast, {
|
|
90018
90057
|
success: ToastState.success,
|
|
90019
90058
|
info: ToastState.info,
|
|
90020
90059
|
warning: ToastState.warning,
|
|
@@ -90056,7 +90095,7 @@ function getDefaultSwipeDirections(position2) {
|
|
|
90056
90095
|
}
|
|
90057
90096
|
const Toast = (props) => {
|
|
90058
90097
|
var _toast_classNames, _toast_classNames1, _toast_classNames2, _toast_classNames3, _toast_classNames4, _toast_classNames5, _toast_classNames6, _toast_classNames7, _toast_classNames8;
|
|
90059
|
-
const { invert: ToasterInvert, toast, unstyled, interacting, setHeights, visibleToasts, heights, index, toasts, expanded, removeToast, defaultRichColors, closeButton: closeButtonFromToaster, style, cancelButtonStyle, actionButtonStyle, className = "", descriptionClassName = "", duration: durationFromToaster, position: position2, gap, expandByDefault, classNames, icons, closeButtonAriaLabel = "Close toast" } = props;
|
|
90098
|
+
const { invert: ToasterInvert, toast: toast2, unstyled, interacting, setHeights, visibleToasts, heights, index, toasts, expanded, removeToast, defaultRichColors, closeButton: closeButtonFromToaster, style, cancelButtonStyle, actionButtonStyle, className = "", descriptionClassName = "", duration: durationFromToaster, position: position2, gap, expandByDefault, classNames, icons, closeButtonAriaLabel = "Close toast" } = props;
|
|
90060
90099
|
const [swipeDirection, setSwipeDirection] = React.useState(null);
|
|
90061
90100
|
const [swipeOutDirection, setSwipeOutDirection] = React.useState(null);
|
|
90062
90101
|
const [mounted, setMounted] = React.useState(false);
|
|
@@ -90066,28 +90105,28 @@ const Toast = (props) => {
|
|
|
90066
90105
|
const [isSwiped, setIsSwiped] = React.useState(false);
|
|
90067
90106
|
const [offsetBeforeRemove, setOffsetBeforeRemove] = React.useState(0);
|
|
90068
90107
|
const [initialHeight, setInitialHeight] = React.useState(0);
|
|
90069
|
-
const remainingTime = React.useRef(
|
|
90108
|
+
const remainingTime = React.useRef(toast2.duration || durationFromToaster || TOAST_LIFETIME);
|
|
90070
90109
|
const dragStartTime = React.useRef(null);
|
|
90071
90110
|
const toastRef = React.useRef(null);
|
|
90072
90111
|
const isFront = index === 0;
|
|
90073
90112
|
const isVisible = index + 1 <= visibleToasts;
|
|
90074
|
-
const toastType =
|
|
90075
|
-
const dismissible =
|
|
90076
|
-
const toastClassname =
|
|
90077
|
-
const toastDescriptionClassname =
|
|
90078
|
-
const heightIndex = React.useMemo(() => heights.findIndex((height) => height.toastId ===
|
|
90113
|
+
const toastType = toast2.type;
|
|
90114
|
+
const dismissible = toast2.dismissible !== false;
|
|
90115
|
+
const toastClassname = toast2.className || "";
|
|
90116
|
+
const toastDescriptionClassname = toast2.descriptionClassName || "";
|
|
90117
|
+
const heightIndex = React.useMemo(() => heights.findIndex((height) => height.toastId === toast2.id) || 0, [
|
|
90079
90118
|
heights,
|
|
90080
|
-
|
|
90119
|
+
toast2.id
|
|
90081
90120
|
]);
|
|
90082
90121
|
const closeButton = React.useMemo(() => {
|
|
90083
90122
|
var _toast_closeButton;
|
|
90084
|
-
return (_toast_closeButton =
|
|
90123
|
+
return (_toast_closeButton = toast2.closeButton) != null ? _toast_closeButton : closeButtonFromToaster;
|
|
90085
90124
|
}, [
|
|
90086
|
-
|
|
90125
|
+
toast2.closeButton,
|
|
90087
90126
|
closeButtonFromToaster
|
|
90088
90127
|
]);
|
|
90089
|
-
const duration = React.useMemo(() =>
|
|
90090
|
-
|
|
90128
|
+
const duration = React.useMemo(() => toast2.duration || durationFromToaster || TOAST_LIFETIME, [
|
|
90129
|
+
toast2.duration,
|
|
90091
90130
|
durationFromToaster
|
|
90092
90131
|
]);
|
|
90093
90132
|
const closeTimerStartTimeRef = React.useRef(0);
|
|
@@ -90107,7 +90146,7 @@ const Toast = (props) => {
|
|
|
90107
90146
|
heightIndex
|
|
90108
90147
|
]);
|
|
90109
90148
|
const isDocumentHidden = useIsDocumentHidden();
|
|
90110
|
-
const invert2 =
|
|
90149
|
+
const invert2 = toast2.invert || ToasterInvert;
|
|
90111
90150
|
const disabled = toastType === "loading";
|
|
90112
90151
|
offset.current = React.useMemo(() => heightIndex * gap + toastsHeightBefore, [
|
|
90113
90152
|
heightIndex,
|
|
@@ -90128,17 +90167,17 @@ const Toast = (props) => {
|
|
|
90128
90167
|
setInitialHeight(height);
|
|
90129
90168
|
setHeights((h) => [
|
|
90130
90169
|
{
|
|
90131
|
-
toastId:
|
|
90170
|
+
toastId: toast2.id,
|
|
90132
90171
|
height,
|
|
90133
|
-
position:
|
|
90172
|
+
position: toast2.position
|
|
90134
90173
|
},
|
|
90135
90174
|
...h
|
|
90136
90175
|
]);
|
|
90137
|
-
return () => setHeights((h) => h.filter((height2) => height2.toastId !==
|
|
90176
|
+
return () => setHeights((h) => h.filter((height2) => height2.toastId !== toast2.id));
|
|
90138
90177
|
}
|
|
90139
90178
|
}, [
|
|
90140
90179
|
setHeights,
|
|
90141
|
-
|
|
90180
|
+
toast2.id
|
|
90142
90181
|
]);
|
|
90143
90182
|
React.useLayoutEffect(() => {
|
|
90144
90183
|
if (!mounted) return;
|
|
@@ -90149,18 +90188,18 @@ const Toast = (props) => {
|
|
|
90149
90188
|
toastNode.style.height = originalHeight;
|
|
90150
90189
|
setInitialHeight(newHeight);
|
|
90151
90190
|
setHeights((heights2) => {
|
|
90152
|
-
const alreadyExists = heights2.find((height) => height.toastId ===
|
|
90191
|
+
const alreadyExists = heights2.find((height) => height.toastId === toast2.id);
|
|
90153
90192
|
if (!alreadyExists) {
|
|
90154
90193
|
return [
|
|
90155
90194
|
{
|
|
90156
|
-
toastId:
|
|
90195
|
+
toastId: toast2.id,
|
|
90157
90196
|
height: newHeight,
|
|
90158
|
-
position:
|
|
90197
|
+
position: toast2.position
|
|
90159
90198
|
},
|
|
90160
90199
|
...heights2
|
|
90161
90200
|
];
|
|
90162
90201
|
} else {
|
|
90163
|
-
return heights2.map((height) => height.toastId ===
|
|
90202
|
+
return heights2.map((height) => height.toastId === toast2.id ? {
|
|
90164
90203
|
...height,
|
|
90165
90204
|
height: newHeight
|
|
90166
90205
|
} : height);
|
|
@@ -90168,29 +90207,29 @@ const Toast = (props) => {
|
|
|
90168
90207
|
});
|
|
90169
90208
|
}, [
|
|
90170
90209
|
mounted,
|
|
90171
|
-
|
|
90172
|
-
|
|
90210
|
+
toast2.title,
|
|
90211
|
+
toast2.description,
|
|
90173
90212
|
setHeights,
|
|
90174
|
-
|
|
90175
|
-
|
|
90176
|
-
|
|
90177
|
-
|
|
90213
|
+
toast2.id,
|
|
90214
|
+
toast2.jsx,
|
|
90215
|
+
toast2.action,
|
|
90216
|
+
toast2.cancel
|
|
90178
90217
|
]);
|
|
90179
90218
|
const deleteToast = React.useCallback(() => {
|
|
90180
90219
|
setRemoved(true);
|
|
90181
90220
|
setOffsetBeforeRemove(offset.current);
|
|
90182
|
-
setHeights((h) => h.filter((height) => height.toastId !==
|
|
90221
|
+
setHeights((h) => h.filter((height) => height.toastId !== toast2.id));
|
|
90183
90222
|
setTimeout(() => {
|
|
90184
|
-
removeToast(
|
|
90223
|
+
removeToast(toast2);
|
|
90185
90224
|
}, TIME_BEFORE_UNMOUNT);
|
|
90186
90225
|
}, [
|
|
90187
|
-
|
|
90226
|
+
toast2,
|
|
90188
90227
|
removeToast,
|
|
90189
90228
|
setHeights,
|
|
90190
90229
|
offset
|
|
90191
90230
|
]);
|
|
90192
90231
|
React.useEffect(() => {
|
|
90193
|
-
if (
|
|
90232
|
+
if (toast2.promise && toastType === "loading" || toast2.duration === Infinity || toast2.type === "loading") return;
|
|
90194
90233
|
let timeoutId;
|
|
90195
90234
|
const pauseTimer = () => {
|
|
90196
90235
|
if (lastCloseTimerStartTimeRef.current < closeTimerStartTimeRef.current) {
|
|
@@ -90203,7 +90242,7 @@ const Toast = (props) => {
|
|
|
90203
90242
|
if (remainingTime.current === Infinity) return;
|
|
90204
90243
|
closeTimerStartTimeRef.current = (/* @__PURE__ */ new Date()).getTime();
|
|
90205
90244
|
timeoutId = setTimeout(() => {
|
|
90206
|
-
|
|
90245
|
+
toast2.onAutoClose == null ? void 0 : toast2.onAutoClose.call(toast2, toast2);
|
|
90207
90246
|
deleteToast();
|
|
90208
90247
|
}, remainingTime.current);
|
|
90209
90248
|
};
|
|
@@ -90216,45 +90255,45 @@ const Toast = (props) => {
|
|
|
90216
90255
|
}, [
|
|
90217
90256
|
expanded,
|
|
90218
90257
|
interacting,
|
|
90219
|
-
|
|
90258
|
+
toast2,
|
|
90220
90259
|
toastType,
|
|
90221
90260
|
isDocumentHidden,
|
|
90222
90261
|
deleteToast
|
|
90223
90262
|
]);
|
|
90224
90263
|
React.useEffect(() => {
|
|
90225
|
-
if (
|
|
90264
|
+
if (toast2.delete) {
|
|
90226
90265
|
deleteToast();
|
|
90227
|
-
|
|
90266
|
+
toast2.onDismiss == null ? void 0 : toast2.onDismiss.call(toast2, toast2);
|
|
90228
90267
|
}
|
|
90229
90268
|
}, [
|
|
90230
90269
|
deleteToast,
|
|
90231
|
-
|
|
90270
|
+
toast2.delete
|
|
90232
90271
|
]);
|
|
90233
90272
|
function getLoadingIcon() {
|
|
90234
90273
|
var _toast_classNames9;
|
|
90235
90274
|
if (icons == null ? void 0 : icons.loading) {
|
|
90236
90275
|
var _toast_classNames12;
|
|
90237
90276
|
return /* @__PURE__ */ React.createElement("div", {
|
|
90238
|
-
className: cn(classNames == null ? void 0 : classNames.loader,
|
|
90277
|
+
className: cn(classNames == null ? void 0 : classNames.loader, toast2 == null ? void 0 : (_toast_classNames12 = toast2.classNames) == null ? void 0 : _toast_classNames12.loader, "sonner-loader"),
|
|
90239
90278
|
"data-visible": toastType === "loading"
|
|
90240
90279
|
}, icons.loading);
|
|
90241
90280
|
}
|
|
90242
90281
|
return /* @__PURE__ */ React.createElement(Loader, {
|
|
90243
|
-
className: cn(classNames == null ? void 0 : classNames.loader,
|
|
90282
|
+
className: cn(classNames == null ? void 0 : classNames.loader, toast2 == null ? void 0 : (_toast_classNames9 = toast2.classNames) == null ? void 0 : _toast_classNames9.loader),
|
|
90244
90283
|
visible: toastType === "loading"
|
|
90245
90284
|
});
|
|
90246
90285
|
}
|
|
90247
|
-
const icon =
|
|
90286
|
+
const icon = toast2.icon || (icons == null ? void 0 : icons[toastType]) || getAsset(toastType);
|
|
90248
90287
|
var _toast_richColors, _icons_close;
|
|
90249
90288
|
return /* @__PURE__ */ React.createElement("li", {
|
|
90250
90289
|
tabIndex: 0,
|
|
90251
90290
|
ref: toastRef,
|
|
90252
|
-
className: cn(className, toastClassname, classNames == null ? void 0 : classNames.toast,
|
|
90291
|
+
className: cn(className, toastClassname, classNames == null ? void 0 : classNames.toast, toast2 == null ? void 0 : (_toast_classNames = toast2.classNames) == null ? void 0 : _toast_classNames.toast, classNames == null ? void 0 : classNames.default, classNames == null ? void 0 : classNames[toastType], toast2 == null ? void 0 : (_toast_classNames1 = toast2.classNames) == null ? void 0 : _toast_classNames1[toastType]),
|
|
90253
90292
|
"data-sonner-toast": "",
|
|
90254
|
-
"data-rich-colors": (_toast_richColors =
|
|
90255
|
-
"data-styled": !Boolean(
|
|
90293
|
+
"data-rich-colors": (_toast_richColors = toast2.richColors) != null ? _toast_richColors : defaultRichColors,
|
|
90294
|
+
"data-styled": !Boolean(toast2.jsx || toast2.unstyled || unstyled),
|
|
90256
90295
|
"data-mounted": mounted,
|
|
90257
|
-
"data-promise": Boolean(
|
|
90296
|
+
"data-promise": Boolean(toast2.promise),
|
|
90258
90297
|
"data-swiped": isSwiped,
|
|
90259
90298
|
"data-removed": removed,
|
|
90260
90299
|
"data-visible": isVisible,
|
|
@@ -90269,7 +90308,7 @@ const Toast = (props) => {
|
|
|
90269
90308
|
"data-swipe-out": swipeOut,
|
|
90270
90309
|
"data-swipe-direction": swipeOutDirection,
|
|
90271
90310
|
"data-expanded": Boolean(expanded || expandByDefault && mounted),
|
|
90272
|
-
"data-testid":
|
|
90311
|
+
"data-testid": toast2.testId,
|
|
90273
90312
|
style: {
|
|
90274
90313
|
"--index": index,
|
|
90275
90314
|
"--toasts-before": index,
|
|
@@ -90277,7 +90316,7 @@ const Toast = (props) => {
|
|
|
90277
90316
|
"--offset": `${removed ? offsetBeforeRemove : offset.current}px`,
|
|
90278
90317
|
"--initial-height": expandByDefault ? "auto" : `${initialHeight}px`,
|
|
90279
90318
|
...style,
|
|
90280
|
-
...
|
|
90319
|
+
...toast2.style
|
|
90281
90320
|
},
|
|
90282
90321
|
onDragEnd: () => {
|
|
90283
90322
|
setSwiping(false);
|
|
@@ -90308,7 +90347,7 @@ const Toast = (props) => {
|
|
|
90308
90347
|
const velocity = Math.abs(swipeAmount) / timeTaken;
|
|
90309
90348
|
if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {
|
|
90310
90349
|
setOffsetBeforeRemove(offset.current);
|
|
90311
|
-
|
|
90350
|
+
toast2.onDismiss == null ? void 0 : toast2.onDismiss.call(toast2, toast2);
|
|
90312
90351
|
if (swipeDirection === "x") {
|
|
90313
90352
|
setSwipeOutDirection(swipeAmountX > 0 ? "right" : "left");
|
|
90314
90353
|
} else {
|
|
@@ -90371,51 +90410,51 @@ const Toast = (props) => {
|
|
|
90371
90410
|
(_toastRef_current = toastRef.current) == null ? void 0 : _toastRef_current.style.setProperty("--swipe-amount-x", `${swipeAmount.x}px`);
|
|
90372
90411
|
(_toastRef_current1 = toastRef.current) == null ? void 0 : _toastRef_current1.style.setProperty("--swipe-amount-y", `${swipeAmount.y}px`);
|
|
90373
90412
|
}
|
|
90374
|
-
}, closeButton && !
|
|
90413
|
+
}, closeButton && !toast2.jsx && toastType !== "loading" ? /* @__PURE__ */ React.createElement("button", {
|
|
90375
90414
|
"aria-label": closeButtonAriaLabel,
|
|
90376
90415
|
"data-disabled": disabled,
|
|
90377
90416
|
"data-close-button": true,
|
|
90378
90417
|
onClick: disabled || !dismissible ? () => {
|
|
90379
90418
|
} : () => {
|
|
90380
90419
|
deleteToast();
|
|
90381
|
-
|
|
90420
|
+
toast2.onDismiss == null ? void 0 : toast2.onDismiss.call(toast2, toast2);
|
|
90382
90421
|
},
|
|
90383
|
-
className: cn(classNames == null ? void 0 : classNames.closeButton,
|
|
90384
|
-
}, (_icons_close = icons == null ? void 0 : icons.close) != null ? _icons_close : CloseIcon) : null, (toastType ||
|
|
90422
|
+
className: cn(classNames == null ? void 0 : classNames.closeButton, toast2 == null ? void 0 : (_toast_classNames2 = toast2.classNames) == null ? void 0 : _toast_classNames2.closeButton)
|
|
90423
|
+
}, (_icons_close = icons == null ? void 0 : icons.close) != null ? _icons_close : CloseIcon) : null, (toastType || toast2.icon || toast2.promise) && toast2.icon !== null && ((icons == null ? void 0 : icons[toastType]) !== null || toast2.icon) ? /* @__PURE__ */ React.createElement("div", {
|
|
90385
90424
|
"data-icon": "",
|
|
90386
|
-
className: cn(classNames == null ? void 0 : classNames.icon,
|
|
90387
|
-
},
|
|
90425
|
+
className: cn(classNames == null ? void 0 : classNames.icon, toast2 == null ? void 0 : (_toast_classNames3 = toast2.classNames) == null ? void 0 : _toast_classNames3.icon)
|
|
90426
|
+
}, toast2.promise || toast2.type === "loading" && !toast2.icon ? toast2.icon || getLoadingIcon() : null, toast2.type !== "loading" ? icon : null) : null, /* @__PURE__ */ React.createElement("div", {
|
|
90388
90427
|
"data-content": "",
|
|
90389
|
-
className: cn(classNames == null ? void 0 : classNames.content,
|
|
90428
|
+
className: cn(classNames == null ? void 0 : classNames.content, toast2 == null ? void 0 : (_toast_classNames4 = toast2.classNames) == null ? void 0 : _toast_classNames4.content)
|
|
90390
90429
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
90391
90430
|
"data-title": "",
|
|
90392
|
-
className: cn(classNames == null ? void 0 : classNames.title,
|
|
90393
|
-
},
|
|
90431
|
+
className: cn(classNames == null ? void 0 : classNames.title, toast2 == null ? void 0 : (_toast_classNames5 = toast2.classNames) == null ? void 0 : _toast_classNames5.title)
|
|
90432
|
+
}, toast2.jsx ? toast2.jsx : typeof toast2.title === "function" ? toast2.title() : toast2.title), toast2.description ? /* @__PURE__ */ React.createElement("div", {
|
|
90394
90433
|
"data-description": "",
|
|
90395
|
-
className: cn(descriptionClassName, toastDescriptionClassname, classNames == null ? void 0 : classNames.description,
|
|
90396
|
-
}, typeof
|
|
90434
|
+
className: cn(descriptionClassName, toastDescriptionClassname, classNames == null ? void 0 : classNames.description, toast2 == null ? void 0 : (_toast_classNames6 = toast2.classNames) == null ? void 0 : _toast_classNames6.description)
|
|
90435
|
+
}, typeof toast2.description === "function" ? toast2.description() : toast2.description) : null), /* @__PURE__ */ React.isValidElement(toast2.cancel) ? toast2.cancel : toast2.cancel && isAction(toast2.cancel) ? /* @__PURE__ */ React.createElement("button", {
|
|
90397
90436
|
"data-button": true,
|
|
90398
90437
|
"data-cancel": true,
|
|
90399
|
-
style:
|
|
90438
|
+
style: toast2.cancelButtonStyle || cancelButtonStyle,
|
|
90400
90439
|
onClick: (event) => {
|
|
90401
|
-
if (!isAction(
|
|
90440
|
+
if (!isAction(toast2.cancel)) return;
|
|
90402
90441
|
if (!dismissible) return;
|
|
90403
|
-
|
|
90442
|
+
toast2.cancel.onClick == null ? void 0 : toast2.cancel.onClick.call(toast2.cancel, event);
|
|
90404
90443
|
deleteToast();
|
|
90405
90444
|
},
|
|
90406
|
-
className: cn(classNames == null ? void 0 : classNames.cancelButton,
|
|
90407
|
-
},
|
|
90445
|
+
className: cn(classNames == null ? void 0 : classNames.cancelButton, toast2 == null ? void 0 : (_toast_classNames7 = toast2.classNames) == null ? void 0 : _toast_classNames7.cancelButton)
|
|
90446
|
+
}, toast2.cancel.label) : null, /* @__PURE__ */ React.isValidElement(toast2.action) ? toast2.action : toast2.action && isAction(toast2.action) ? /* @__PURE__ */ React.createElement("button", {
|
|
90408
90447
|
"data-button": true,
|
|
90409
90448
|
"data-action": true,
|
|
90410
|
-
style:
|
|
90449
|
+
style: toast2.actionButtonStyle || actionButtonStyle,
|
|
90411
90450
|
onClick: (event) => {
|
|
90412
|
-
if (!isAction(
|
|
90413
|
-
|
|
90451
|
+
if (!isAction(toast2.action)) return;
|
|
90452
|
+
toast2.action.onClick == null ? void 0 : toast2.action.onClick.call(toast2.action, event);
|
|
90414
90453
|
if (event.defaultPrevented) return;
|
|
90415
90454
|
deleteToast();
|
|
90416
90455
|
},
|
|
90417
|
-
className: cn(classNames == null ? void 0 : classNames.actionButton,
|
|
90418
|
-
},
|
|
90456
|
+
className: cn(classNames == null ? void 0 : classNames.actionButton, toast2 == null ? void 0 : (_toast_classNames8 = toast2.classNames) == null ? void 0 : _toast_classNames8.actionButton)
|
|
90457
|
+
}, toast2.action.label) : null);
|
|
90419
90458
|
};
|
|
90420
90459
|
function getDocumentDirection() {
|
|
90421
90460
|
if (typeof window === "undefined") return "ltr";
|
|
@@ -90466,6 +90505,45 @@ function assignOffset(defaultOffset, mobileOffset) {
|
|
|
90466
90505
|
});
|
|
90467
90506
|
return styles;
|
|
90468
90507
|
}
|
|
90508
|
+
function useSonner() {
|
|
90509
|
+
const [activeToasts, setActiveToasts] = React.useState([]);
|
|
90510
|
+
React.useEffect(() => {
|
|
90511
|
+
return ToastState.subscribe((toast2) => {
|
|
90512
|
+
if (toast2.dismiss) {
|
|
90513
|
+
setTimeout(() => {
|
|
90514
|
+
ReactDOM.flushSync(() => {
|
|
90515
|
+
setActiveToasts((toasts) => toasts.filter((t) => t.id !== toast2.id));
|
|
90516
|
+
});
|
|
90517
|
+
});
|
|
90518
|
+
return;
|
|
90519
|
+
}
|
|
90520
|
+
setTimeout(() => {
|
|
90521
|
+
ReactDOM.flushSync(() => {
|
|
90522
|
+
setActiveToasts((toasts) => {
|
|
90523
|
+
const indexOfExistingToast = toasts.findIndex((t) => t.id === toast2.id);
|
|
90524
|
+
if (indexOfExistingToast !== -1) {
|
|
90525
|
+
return [
|
|
90526
|
+
...toasts.slice(0, indexOfExistingToast),
|
|
90527
|
+
{
|
|
90528
|
+
...toasts[indexOfExistingToast],
|
|
90529
|
+
...toast2
|
|
90530
|
+
},
|
|
90531
|
+
...toasts.slice(indexOfExistingToast + 1)
|
|
90532
|
+
];
|
|
90533
|
+
}
|
|
90534
|
+
return [
|
|
90535
|
+
toast2,
|
|
90536
|
+
...toasts
|
|
90537
|
+
];
|
|
90538
|
+
});
|
|
90539
|
+
});
|
|
90540
|
+
});
|
|
90541
|
+
});
|
|
90542
|
+
}, []);
|
|
90543
|
+
return {
|
|
90544
|
+
toasts: activeToasts
|
|
90545
|
+
};
|
|
90546
|
+
}
|
|
90469
90547
|
const Toaster = /* @__PURE__ */ React.forwardRef(function Toaster2(props, ref) {
|
|
90470
90548
|
const { id: id2, invert: invert2, position: position2 = "bottom-right", hotkey = [
|
|
90471
90549
|
"altKey",
|
|
@@ -90474,9 +90552,9 @@ const Toaster = /* @__PURE__ */ React.forwardRef(function Toaster2(props, ref) {
|
|
|
90474
90552
|
const [toasts, setToasts] = React.useState([]);
|
|
90475
90553
|
const filteredToasts = React.useMemo(() => {
|
|
90476
90554
|
if (id2) {
|
|
90477
|
-
return toasts.filter((
|
|
90555
|
+
return toasts.filter((toast2) => toast2.toasterId === id2);
|
|
90478
90556
|
}
|
|
90479
|
-
return toasts.filter((
|
|
90557
|
+
return toasts.filter((toast2) => !toast2.toasterId);
|
|
90480
90558
|
}, [
|
|
90481
90559
|
toasts,
|
|
90482
90560
|
id2
|
|
@@ -90484,7 +90562,7 @@ const Toaster = /* @__PURE__ */ React.forwardRef(function Toaster2(props, ref) {
|
|
|
90484
90562
|
const possiblePositions = React.useMemo(() => {
|
|
90485
90563
|
return Array.from(new Set([
|
|
90486
90564
|
position2
|
|
90487
|
-
].concat(filteredToasts.filter((
|
|
90565
|
+
].concat(filteredToasts.filter((toast2) => toast2.position).map((toast2) => toast2.position))));
|
|
90488
90566
|
}, [
|
|
90489
90567
|
filteredToasts,
|
|
90490
90568
|
position2
|
|
@@ -90500,17 +90578,17 @@ const Toaster = /* @__PURE__ */ React.forwardRef(function Toaster2(props, ref) {
|
|
|
90500
90578
|
const removeToast = React.useCallback((toastToRemove) => {
|
|
90501
90579
|
setToasts((toasts2) => {
|
|
90502
90580
|
var _toasts_find;
|
|
90503
|
-
if (!((_toasts_find = toasts2.find((
|
|
90581
|
+
if (!((_toasts_find = toasts2.find((toast2) => toast2.id === toastToRemove.id)) == null ? void 0 : _toasts_find.delete)) {
|
|
90504
90582
|
ToastState.dismiss(toastToRemove.id);
|
|
90505
90583
|
}
|
|
90506
90584
|
return toasts2.filter(({ id: id3 }) => id3 !== toastToRemove.id);
|
|
90507
90585
|
});
|
|
90508
90586
|
}, []);
|
|
90509
90587
|
React.useEffect(() => {
|
|
90510
|
-
return ToastState.subscribe((
|
|
90511
|
-
if (
|
|
90588
|
+
return ToastState.subscribe((toast2) => {
|
|
90589
|
+
if (toast2.dismiss) {
|
|
90512
90590
|
requestAnimationFrame(() => {
|
|
90513
|
-
setToasts((toasts2) => toasts2.map((t) => t.id ===
|
|
90591
|
+
setToasts((toasts2) => toasts2.map((t) => t.id === toast2.id ? {
|
|
90514
90592
|
...t,
|
|
90515
90593
|
delete: true
|
|
90516
90594
|
} : t));
|
|
@@ -90520,19 +90598,19 @@ const Toaster = /* @__PURE__ */ React.forwardRef(function Toaster2(props, ref) {
|
|
|
90520
90598
|
setTimeout(() => {
|
|
90521
90599
|
ReactDOM.flushSync(() => {
|
|
90522
90600
|
setToasts((toasts2) => {
|
|
90523
|
-
const indexOfExistingToast = toasts2.findIndex((t) => t.id ===
|
|
90601
|
+
const indexOfExistingToast = toasts2.findIndex((t) => t.id === toast2.id);
|
|
90524
90602
|
if (indexOfExistingToast !== -1) {
|
|
90525
90603
|
return [
|
|
90526
90604
|
...toasts2.slice(0, indexOfExistingToast),
|
|
90527
90605
|
{
|
|
90528
90606
|
...toasts2[indexOfExistingToast],
|
|
90529
|
-
...
|
|
90607
|
+
...toast2
|
|
90530
90608
|
},
|
|
90531
90609
|
...toasts2.slice(indexOfExistingToast + 1)
|
|
90532
90610
|
];
|
|
90533
90611
|
}
|
|
90534
90612
|
return [
|
|
90535
|
-
|
|
90613
|
+
toast2,
|
|
90536
90614
|
...toasts2
|
|
90537
90615
|
];
|
|
90538
90616
|
});
|
|
@@ -90684,13 +90762,13 @@ const Toaster = /* @__PURE__ */ React.forwardRef(function Toaster2(props, ref) {
|
|
|
90684
90762
|
setInteracting(true);
|
|
90685
90763
|
},
|
|
90686
90764
|
onPointerUp: () => setInteracting(false)
|
|
90687
|
-
}, filteredToasts.filter((
|
|
90765
|
+
}, filteredToasts.filter((toast2) => !toast2.position && index === 0 || toast2.position === position3).map((toast2, index2) => {
|
|
90688
90766
|
var _toastOptions_duration, _toastOptions_closeButton;
|
|
90689
90767
|
return /* @__PURE__ */ React.createElement(Toast, {
|
|
90690
|
-
key:
|
|
90768
|
+
key: toast2.id,
|
|
90691
90769
|
icons,
|
|
90692
90770
|
index: index2,
|
|
90693
|
-
toast,
|
|
90771
|
+
toast: toast2,
|
|
90694
90772
|
defaultRichColors: richColors,
|
|
90695
90773
|
duration: (_toastOptions_duration = toastOptions == null ? void 0 : toastOptions.duration) != null ? _toastOptions_duration : duration,
|
|
90696
90774
|
className: toastOptions == null ? void 0 : toastOptions.className,
|
|
@@ -90707,8 +90785,8 @@ const Toaster = /* @__PURE__ */ React.forwardRef(function Toaster2(props, ref) {
|
|
|
90707
90785
|
actionButtonStyle: toastOptions == null ? void 0 : toastOptions.actionButtonStyle,
|
|
90708
90786
|
closeButtonAriaLabel: toastOptions == null ? void 0 : toastOptions.closeButtonAriaLabel,
|
|
90709
90787
|
removeToast,
|
|
90710
|
-
toasts: filteredToasts.filter((t) => t.position ==
|
|
90711
|
-
heights: heights.filter((h) => h.position ==
|
|
90788
|
+
toasts: filteredToasts.filter((t) => t.position == toast2.position),
|
|
90789
|
+
heights: heights.filter((h) => h.position == toast2.position),
|
|
90712
90790
|
setHeights,
|
|
90713
90791
|
expandByDefault: expand,
|
|
90714
90792
|
gap,
|
|
@@ -90724,8 +90802,8 @@ const csSpinnerVariants = cva(
|
|
|
90724
90802
|
{
|
|
90725
90803
|
variants: {
|
|
90726
90804
|
variant: {
|
|
90727
|
-
base: "text-(--
|
|
90728
|
-
sub: "text-(--
|
|
90805
|
+
base: "text-(--spinner-fill-base)",
|
|
90806
|
+
sub: "text-(--spinner-fill-sub)"
|
|
90729
90807
|
}
|
|
90730
90808
|
},
|
|
90731
90809
|
defaultVariants: {
|
|
@@ -90760,33 +90838,33 @@ const CsSonner = ({ className, ...props }) => {
|
|
|
90760
90838
|
},
|
|
90761
90839
|
style: {
|
|
90762
90840
|
// Default toast
|
|
90763
|
-
"--normal-bg": "var(--
|
|
90764
|
-
"--normal-text": "var(--
|
|
90765
|
-
"--normal-border": "var(--
|
|
90766
|
-
"--border-radius": "var(--radius
|
|
90841
|
+
"--normal-bg": "var(--toast-common-bg)",
|
|
90842
|
+
"--normal-text": "var(--toast-default-title)",
|
|
90843
|
+
"--normal-border": "var(--toast-common-border)",
|
|
90844
|
+
"--border-radius": "var(--toast-common-radius)",
|
|
90767
90845
|
// Success toast
|
|
90768
|
-
"--success-bg": "var(--
|
|
90769
|
-
"--success-border": "var(--
|
|
90770
|
-
"--success-text": "var(--
|
|
90846
|
+
"--success-bg": "var(--toast-success-bg)",
|
|
90847
|
+
"--success-border": "var(--toast-success-border)",
|
|
90848
|
+
"--success-text": "var(--toast-success-title)",
|
|
90771
90849
|
// Info toast
|
|
90772
|
-
"--info-bg": "var(--
|
|
90773
|
-
"--info-border": "var(--
|
|
90774
|
-
"--info-text": "var(--
|
|
90850
|
+
"--info-bg": "var(--toast-info-bg)",
|
|
90851
|
+
"--info-border": "var(--toast-info-border)",
|
|
90852
|
+
"--info-text": "var(--toast-info-title)",
|
|
90775
90853
|
// Warning toast
|
|
90776
|
-
"--warning-bg": "var(--
|
|
90777
|
-
"--warning-border": "var(--
|
|
90778
|
-
"--warning-text": "var(--
|
|
90854
|
+
"--warning-bg": "var(--toast-warning-bg)",
|
|
90855
|
+
"--warning-border": "var(--toast-warning-border)",
|
|
90856
|
+
"--warning-text": "var(--toast-warning-title)",
|
|
90779
90857
|
// Error toast
|
|
90780
|
-
"--error-bg": "var(--
|
|
90781
|
-
"--error-border": "var(--
|
|
90782
|
-
"--error-text": "var(--
|
|
90858
|
+
"--error-bg": "var(--toast-error-bg)",
|
|
90859
|
+
"--error-border": "var(--toast-error-border)",
|
|
90860
|
+
"--error-text": "var(--toast-error-title)"
|
|
90783
90861
|
},
|
|
90784
90862
|
toastOptions: {
|
|
90785
90863
|
classNames: {
|
|
90786
|
-
toast: "boxshadow-lg! px-
|
|
90787
|
-
icon: "flex items-center! justify-center! mx-0! size-(--icon-size
|
|
90864
|
+
toast: "boxshadow-lg! px-(--toast-common-padding-x)! py-(--toast-common-padding-y)! gap-(--toast-common-gap)!",
|
|
90865
|
+
icon: "flex items-center! justify-center! mx-0! size-(--toast-common-icon-size)! [&_svg]:size-(--toast-common-icon-size)!",
|
|
90788
90866
|
content: "typo-body-sm!",
|
|
90789
|
-
description: "text-(--
|
|
90867
|
+
description: "text-(--toast-info-description)!"
|
|
90790
90868
|
}
|
|
90791
90869
|
},
|
|
90792
90870
|
richColors: true,
|
|
@@ -90804,9 +90882,9 @@ function CsSwitch({
|
|
|
90804
90882
|
"data-slot": "switch",
|
|
90805
90883
|
className: cn$1(
|
|
90806
90884
|
"peer inline-flex shrink-0 items-center outline-none transition-all disabled:cursor-not-allowed disabled:opacity-(--opacity-state-disabled)",
|
|
90807
|
-
"w-[calc(2rem+var(--
|
|
90808
|
-
"px-
|
|
90809
|
-
"data-[state=unchecked]:bg-(--
|
|
90885
|
+
"w-[calc(2rem+var(--switch-common-padding-x)*2)] h-[calc(1rem+var(--switch-common-padding-y)*2)]",
|
|
90886
|
+
"px-(--switch-common-padding-x) py-(--switch-common-padding-y) rounded-(--switch-common-radius)",
|
|
90887
|
+
"data-[state=unchecked]:bg-(--switch-off-bg) data-[state=checked]:bg-(--switch-on-bg)",
|
|
90810
90888
|
className
|
|
90811
90889
|
),
|
|
90812
90890
|
...props,
|
|
@@ -90816,7 +90894,7 @@ function CsSwitch({
|
|
|
90816
90894
|
"data-slot": "switch-thumb",
|
|
90817
90895
|
className: cn$1(
|
|
90818
90896
|
"pointer-events-none block size-4 ring-0 transition-transform",
|
|
90819
|
-
"rounded-(--radius
|
|
90897
|
+
"rounded-(--switch-common-radius) data-[state=checked]:bg-(--switch-on-thumb) data-[state=unchecked]:bg-(--switch-off-thumb)",
|
|
90820
90898
|
"data-[state=checked]:translate-x-[1rem] data-[state=unchecked]:translate-x-0"
|
|
90821
90899
|
)
|
|
90822
90900
|
}
|
|
@@ -90824,9 +90902,26 @@ function CsSwitch({
|
|
|
90824
90902
|
}
|
|
90825
90903
|
);
|
|
90826
90904
|
}
|
|
90905
|
+
function createColumnHelper() {
|
|
90906
|
+
return {
|
|
90907
|
+
accessor: (accessor, column) => {
|
|
90908
|
+
return typeof accessor === "function" ? {
|
|
90909
|
+
...column,
|
|
90910
|
+
accessorFn: accessor
|
|
90911
|
+
} : {
|
|
90912
|
+
...column,
|
|
90913
|
+
accessorKey: accessor
|
|
90914
|
+
};
|
|
90915
|
+
},
|
|
90916
|
+
display: (column) => column,
|
|
90917
|
+
group: (column) => column
|
|
90918
|
+
};
|
|
90919
|
+
}
|
|
90827
90920
|
function functionalUpdate(updater, input) {
|
|
90828
90921
|
return typeof updater === "function" ? updater(input) : updater;
|
|
90829
90922
|
}
|
|
90923
|
+
function noop() {
|
|
90924
|
+
}
|
|
90830
90925
|
function makeStateUpdater(key, instance) {
|
|
90831
90926
|
return (updater) => {
|
|
90832
90927
|
instance.setState((old) => {
|
|
@@ -91241,7 +91336,7 @@ const createRow = (table, id2, original, rowIndex, depth, subRows, parentId) =>
|
|
|
91241
91336
|
var _row$getValue;
|
|
91242
91337
|
return (_row$getValue = row.getValue(columnId)) != null ? _row$getValue : table.options.renderFallbackValue;
|
|
91243
91338
|
},
|
|
91244
|
-
subRows: [],
|
|
91339
|
+
subRows: subRows != null ? subRows : [],
|
|
91245
91340
|
getLeafRows: () => flattenBy(row.subRows, (d) => d.subRows),
|
|
91246
91341
|
getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : void 0,
|
|
91247
91342
|
getParentRows: () => {
|
|
@@ -93470,6 +93565,457 @@ function expandRows(rowModel) {
|
|
|
93470
93565
|
rowsById: rowModel.rowsById
|
|
93471
93566
|
};
|
|
93472
93567
|
}
|
|
93568
|
+
function getFacetedMinMaxValues() {
|
|
93569
|
+
return (table, columnId) => memo(() => {
|
|
93570
|
+
var _table$getColumn;
|
|
93571
|
+
return [(_table$getColumn = table.getColumn(columnId)) == null ? void 0 : _table$getColumn.getFacetedRowModel()];
|
|
93572
|
+
}, (facetedRowModel) => {
|
|
93573
|
+
if (!facetedRowModel) return void 0;
|
|
93574
|
+
const uniqueValues = facetedRowModel.flatRows.flatMap((flatRow) => {
|
|
93575
|
+
var _flatRow$getUniqueVal;
|
|
93576
|
+
return (_flatRow$getUniqueVal = flatRow.getUniqueValues(columnId)) != null ? _flatRow$getUniqueVal : [];
|
|
93577
|
+
}).map(Number).filter((value) => !Number.isNaN(value));
|
|
93578
|
+
if (!uniqueValues.length) return;
|
|
93579
|
+
let facetedMinValue = uniqueValues[0];
|
|
93580
|
+
let facetedMaxValue = uniqueValues[uniqueValues.length - 1];
|
|
93581
|
+
for (const value of uniqueValues) {
|
|
93582
|
+
if (value < facetedMinValue) facetedMinValue = value;
|
|
93583
|
+
else if (value > facetedMaxValue) facetedMaxValue = value;
|
|
93584
|
+
}
|
|
93585
|
+
return [facetedMinValue, facetedMaxValue];
|
|
93586
|
+
}, getMemoOptions(table.options, "debugTable", "getFacetedMinMaxValues"));
|
|
93587
|
+
}
|
|
93588
|
+
function filterRows(rows, filterRowImpl, table) {
|
|
93589
|
+
if (table.options.filterFromLeafRows) {
|
|
93590
|
+
return filterRowModelFromLeafs(rows, filterRowImpl, table);
|
|
93591
|
+
}
|
|
93592
|
+
return filterRowModelFromRoot(rows, filterRowImpl, table);
|
|
93593
|
+
}
|
|
93594
|
+
function filterRowModelFromLeafs(rowsToFilter, filterRow, table) {
|
|
93595
|
+
var _table$options$maxLea;
|
|
93596
|
+
const newFilteredFlatRows = [];
|
|
93597
|
+
const newFilteredRowsById = {};
|
|
93598
|
+
const maxDepth = (_table$options$maxLea = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea : 100;
|
|
93599
|
+
const recurseFilterRows = function(rowsToFilter2, depth) {
|
|
93600
|
+
if (depth === void 0) {
|
|
93601
|
+
depth = 0;
|
|
93602
|
+
}
|
|
93603
|
+
const rows = [];
|
|
93604
|
+
for (let i = 0; i < rowsToFilter2.length; i++) {
|
|
93605
|
+
var _row$subRows;
|
|
93606
|
+
let row = rowsToFilter2[i];
|
|
93607
|
+
const newRow = createRow(table, row.id, row.original, row.index, row.depth, void 0, row.parentId);
|
|
93608
|
+
newRow.columnFilters = row.columnFilters;
|
|
93609
|
+
if ((_row$subRows = row.subRows) != null && _row$subRows.length && depth < maxDepth) {
|
|
93610
|
+
newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
|
|
93611
|
+
row = newRow;
|
|
93612
|
+
if (filterRow(row) && !newRow.subRows.length) {
|
|
93613
|
+
rows.push(row);
|
|
93614
|
+
newFilteredRowsById[row.id] = row;
|
|
93615
|
+
newFilteredFlatRows.push(row);
|
|
93616
|
+
continue;
|
|
93617
|
+
}
|
|
93618
|
+
if (filterRow(row) || newRow.subRows.length) {
|
|
93619
|
+
rows.push(row);
|
|
93620
|
+
newFilteredRowsById[row.id] = row;
|
|
93621
|
+
newFilteredFlatRows.push(row);
|
|
93622
|
+
continue;
|
|
93623
|
+
}
|
|
93624
|
+
} else {
|
|
93625
|
+
row = newRow;
|
|
93626
|
+
if (filterRow(row)) {
|
|
93627
|
+
rows.push(row);
|
|
93628
|
+
newFilteredRowsById[row.id] = row;
|
|
93629
|
+
newFilteredFlatRows.push(row);
|
|
93630
|
+
}
|
|
93631
|
+
}
|
|
93632
|
+
}
|
|
93633
|
+
return rows;
|
|
93634
|
+
};
|
|
93635
|
+
return {
|
|
93636
|
+
rows: recurseFilterRows(rowsToFilter),
|
|
93637
|
+
flatRows: newFilteredFlatRows,
|
|
93638
|
+
rowsById: newFilteredRowsById
|
|
93639
|
+
};
|
|
93640
|
+
}
|
|
93641
|
+
function filterRowModelFromRoot(rowsToFilter, filterRow, table) {
|
|
93642
|
+
var _table$options$maxLea2;
|
|
93643
|
+
const newFilteredFlatRows = [];
|
|
93644
|
+
const newFilteredRowsById = {};
|
|
93645
|
+
const maxDepth = (_table$options$maxLea2 = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea2 : 100;
|
|
93646
|
+
const recurseFilterRows = function(rowsToFilter2, depth) {
|
|
93647
|
+
if (depth === void 0) {
|
|
93648
|
+
depth = 0;
|
|
93649
|
+
}
|
|
93650
|
+
const rows = [];
|
|
93651
|
+
for (let i = 0; i < rowsToFilter2.length; i++) {
|
|
93652
|
+
let row = rowsToFilter2[i];
|
|
93653
|
+
const pass = filterRow(row);
|
|
93654
|
+
if (pass) {
|
|
93655
|
+
var _row$subRows2;
|
|
93656
|
+
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length && depth < maxDepth) {
|
|
93657
|
+
const newRow = createRow(table, row.id, row.original, row.index, row.depth, void 0, row.parentId);
|
|
93658
|
+
newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
|
|
93659
|
+
row = newRow;
|
|
93660
|
+
}
|
|
93661
|
+
rows.push(row);
|
|
93662
|
+
newFilteredFlatRows.push(row);
|
|
93663
|
+
newFilteredRowsById[row.id] = row;
|
|
93664
|
+
}
|
|
93665
|
+
}
|
|
93666
|
+
return rows;
|
|
93667
|
+
};
|
|
93668
|
+
return {
|
|
93669
|
+
rows: recurseFilterRows(rowsToFilter),
|
|
93670
|
+
flatRows: newFilteredFlatRows,
|
|
93671
|
+
rowsById: newFilteredRowsById
|
|
93672
|
+
};
|
|
93673
|
+
}
|
|
93674
|
+
function getFacetedRowModel() {
|
|
93675
|
+
return (table, columnId) => memo(() => [table.getPreFilteredRowModel(), table.getState().columnFilters, table.getState().globalFilter, table.getFilteredRowModel()], (preRowModel, columnFilters, globalFilter) => {
|
|
93676
|
+
if (!preRowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
|
|
93677
|
+
return preRowModel;
|
|
93678
|
+
}
|
|
93679
|
+
const filterableIds = [...columnFilters.map((d) => d.id).filter((d) => d !== columnId), globalFilter ? "__global__" : void 0].filter(Boolean);
|
|
93680
|
+
const filterRowsImpl = (row) => {
|
|
93681
|
+
for (let i = 0; i < filterableIds.length; i++) {
|
|
93682
|
+
if (row.columnFilters[filterableIds[i]] === false) {
|
|
93683
|
+
return false;
|
|
93684
|
+
}
|
|
93685
|
+
}
|
|
93686
|
+
return true;
|
|
93687
|
+
};
|
|
93688
|
+
return filterRows(preRowModel.rows, filterRowsImpl, table);
|
|
93689
|
+
}, getMemoOptions(table.options, "debugTable", "getFacetedRowModel"));
|
|
93690
|
+
}
|
|
93691
|
+
function getFacetedUniqueValues() {
|
|
93692
|
+
return (table, columnId) => memo(() => {
|
|
93693
|
+
var _table$getColumn;
|
|
93694
|
+
return [(_table$getColumn = table.getColumn(columnId)) == null ? void 0 : _table$getColumn.getFacetedRowModel()];
|
|
93695
|
+
}, (facetedRowModel) => {
|
|
93696
|
+
if (!facetedRowModel) return /* @__PURE__ */ new Map();
|
|
93697
|
+
let facetedUniqueValues = /* @__PURE__ */ new Map();
|
|
93698
|
+
for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
|
|
93699
|
+
const values = facetedRowModel.flatRows[i].getUniqueValues(columnId);
|
|
93700
|
+
for (let j = 0; j < values.length; j++) {
|
|
93701
|
+
const value = values[j];
|
|
93702
|
+
if (facetedUniqueValues.has(value)) {
|
|
93703
|
+
var _facetedUniqueValues$;
|
|
93704
|
+
facetedUniqueValues.set(value, ((_facetedUniqueValues$ = facetedUniqueValues.get(value)) != null ? _facetedUniqueValues$ : 0) + 1);
|
|
93705
|
+
} else {
|
|
93706
|
+
facetedUniqueValues.set(value, 1);
|
|
93707
|
+
}
|
|
93708
|
+
}
|
|
93709
|
+
}
|
|
93710
|
+
return facetedUniqueValues;
|
|
93711
|
+
}, getMemoOptions(table.options, "debugTable", `getFacetedUniqueValues_${columnId}`));
|
|
93712
|
+
}
|
|
93713
|
+
function getFilteredRowModel() {
|
|
93714
|
+
return (table) => memo(() => [table.getPreFilteredRowModel(), table.getState().columnFilters, table.getState().globalFilter], (rowModel, columnFilters, globalFilter) => {
|
|
93715
|
+
if (!rowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
|
|
93716
|
+
for (let i = 0; i < rowModel.flatRows.length; i++) {
|
|
93717
|
+
rowModel.flatRows[i].columnFilters = {};
|
|
93718
|
+
rowModel.flatRows[i].columnFiltersMeta = {};
|
|
93719
|
+
}
|
|
93720
|
+
return rowModel;
|
|
93721
|
+
}
|
|
93722
|
+
const resolvedColumnFilters = [];
|
|
93723
|
+
const resolvedGlobalFilters = [];
|
|
93724
|
+
(columnFilters != null ? columnFilters : []).forEach((d) => {
|
|
93725
|
+
var _filterFn$resolveFilt;
|
|
93726
|
+
const column = table.getColumn(d.id);
|
|
93727
|
+
if (!column) {
|
|
93728
|
+
return;
|
|
93729
|
+
}
|
|
93730
|
+
const filterFn = column.getFilterFn();
|
|
93731
|
+
if (!filterFn) {
|
|
93732
|
+
if (process.env.NODE_ENV !== "production") {
|
|
93733
|
+
console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${column.id}.`);
|
|
93734
|
+
}
|
|
93735
|
+
return;
|
|
93736
|
+
}
|
|
93737
|
+
resolvedColumnFilters.push({
|
|
93738
|
+
id: d.id,
|
|
93739
|
+
filterFn,
|
|
93740
|
+
resolvedValue: (_filterFn$resolveFilt = filterFn.resolveFilterValue == null ? void 0 : filterFn.resolveFilterValue(d.value)) != null ? _filterFn$resolveFilt : d.value
|
|
93741
|
+
});
|
|
93742
|
+
});
|
|
93743
|
+
const filterableIds = (columnFilters != null ? columnFilters : []).map((d) => d.id);
|
|
93744
|
+
const globalFilterFn = table.getGlobalFilterFn();
|
|
93745
|
+
const globallyFilterableColumns = table.getAllLeafColumns().filter((column) => column.getCanGlobalFilter());
|
|
93746
|
+
if (globalFilter && globalFilterFn && globallyFilterableColumns.length) {
|
|
93747
|
+
filterableIds.push("__global__");
|
|
93748
|
+
globallyFilterableColumns.forEach((column) => {
|
|
93749
|
+
var _globalFilterFn$resol;
|
|
93750
|
+
resolvedGlobalFilters.push({
|
|
93751
|
+
id: column.id,
|
|
93752
|
+
filterFn: globalFilterFn,
|
|
93753
|
+
resolvedValue: (_globalFilterFn$resol = globalFilterFn.resolveFilterValue == null ? void 0 : globalFilterFn.resolveFilterValue(globalFilter)) != null ? _globalFilterFn$resol : globalFilter
|
|
93754
|
+
});
|
|
93755
|
+
});
|
|
93756
|
+
}
|
|
93757
|
+
let currentColumnFilter;
|
|
93758
|
+
let currentGlobalFilter;
|
|
93759
|
+
for (let j = 0; j < rowModel.flatRows.length; j++) {
|
|
93760
|
+
const row = rowModel.flatRows[j];
|
|
93761
|
+
row.columnFilters = {};
|
|
93762
|
+
if (resolvedColumnFilters.length) {
|
|
93763
|
+
for (let i = 0; i < resolvedColumnFilters.length; i++) {
|
|
93764
|
+
currentColumnFilter = resolvedColumnFilters[i];
|
|
93765
|
+
const id2 = currentColumnFilter.id;
|
|
93766
|
+
row.columnFilters[id2] = currentColumnFilter.filterFn(row, id2, currentColumnFilter.resolvedValue, (filterMeta) => {
|
|
93767
|
+
row.columnFiltersMeta[id2] = filterMeta;
|
|
93768
|
+
});
|
|
93769
|
+
}
|
|
93770
|
+
}
|
|
93771
|
+
if (resolvedGlobalFilters.length) {
|
|
93772
|
+
for (let i = 0; i < resolvedGlobalFilters.length; i++) {
|
|
93773
|
+
currentGlobalFilter = resolvedGlobalFilters[i];
|
|
93774
|
+
const id2 = currentGlobalFilter.id;
|
|
93775
|
+
if (currentGlobalFilter.filterFn(row, id2, currentGlobalFilter.resolvedValue, (filterMeta) => {
|
|
93776
|
+
row.columnFiltersMeta[id2] = filterMeta;
|
|
93777
|
+
})) {
|
|
93778
|
+
row.columnFilters.__global__ = true;
|
|
93779
|
+
break;
|
|
93780
|
+
}
|
|
93781
|
+
}
|
|
93782
|
+
if (row.columnFilters.__global__ !== true) {
|
|
93783
|
+
row.columnFilters.__global__ = false;
|
|
93784
|
+
}
|
|
93785
|
+
}
|
|
93786
|
+
}
|
|
93787
|
+
const filterRowsImpl = (row) => {
|
|
93788
|
+
for (let i = 0; i < filterableIds.length; i++) {
|
|
93789
|
+
if (row.columnFilters[filterableIds[i]] === false) {
|
|
93790
|
+
return false;
|
|
93791
|
+
}
|
|
93792
|
+
}
|
|
93793
|
+
return true;
|
|
93794
|
+
};
|
|
93795
|
+
return filterRows(rowModel.rows, filterRowsImpl, table);
|
|
93796
|
+
}, getMemoOptions(table.options, "debugTable", "getFilteredRowModel", () => table._autoResetPageIndex()));
|
|
93797
|
+
}
|
|
93798
|
+
function getGroupedRowModel() {
|
|
93799
|
+
return (table) => memo(() => [table.getState().grouping, table.getPreGroupedRowModel()], (grouping, rowModel) => {
|
|
93800
|
+
if (!rowModel.rows.length || !grouping.length) {
|
|
93801
|
+
rowModel.rows.forEach((row) => {
|
|
93802
|
+
row.depth = 0;
|
|
93803
|
+
row.parentId = void 0;
|
|
93804
|
+
});
|
|
93805
|
+
return rowModel;
|
|
93806
|
+
}
|
|
93807
|
+
const existingGrouping = grouping.filter((columnId) => table.getColumn(columnId));
|
|
93808
|
+
const groupedFlatRows = [];
|
|
93809
|
+
const groupedRowsById = {};
|
|
93810
|
+
const groupUpRecursively = function(rows, depth, parentId) {
|
|
93811
|
+
if (depth === void 0) {
|
|
93812
|
+
depth = 0;
|
|
93813
|
+
}
|
|
93814
|
+
if (depth >= existingGrouping.length) {
|
|
93815
|
+
return rows.map((row) => {
|
|
93816
|
+
row.depth = depth;
|
|
93817
|
+
groupedFlatRows.push(row);
|
|
93818
|
+
groupedRowsById[row.id] = row;
|
|
93819
|
+
if (row.subRows) {
|
|
93820
|
+
row.subRows = groupUpRecursively(row.subRows, depth + 1, row.id);
|
|
93821
|
+
}
|
|
93822
|
+
return row;
|
|
93823
|
+
});
|
|
93824
|
+
}
|
|
93825
|
+
const columnId = existingGrouping[depth];
|
|
93826
|
+
const rowGroupsMap = groupBy(rows, columnId);
|
|
93827
|
+
const aggregatedGroupedRows = Array.from(rowGroupsMap.entries()).map((_ref, index) => {
|
|
93828
|
+
let [groupingValue, groupedRows2] = _ref;
|
|
93829
|
+
let id2 = `${columnId}:${groupingValue}`;
|
|
93830
|
+
id2 = parentId ? `${parentId}>${id2}` : id2;
|
|
93831
|
+
const subRows = groupUpRecursively(groupedRows2, depth + 1, id2);
|
|
93832
|
+
subRows.forEach((subRow) => {
|
|
93833
|
+
subRow.parentId = id2;
|
|
93834
|
+
});
|
|
93835
|
+
const leafRows = depth ? flattenBy(groupedRows2, (row2) => row2.subRows) : groupedRows2;
|
|
93836
|
+
const row = createRow(table, id2, leafRows[0].original, index, depth, void 0, parentId);
|
|
93837
|
+
Object.assign(row, {
|
|
93838
|
+
groupingColumnId: columnId,
|
|
93839
|
+
groupingValue,
|
|
93840
|
+
subRows,
|
|
93841
|
+
leafRows,
|
|
93842
|
+
getValue: (columnId2) => {
|
|
93843
|
+
if (existingGrouping.includes(columnId2)) {
|
|
93844
|
+
if (row._valuesCache.hasOwnProperty(columnId2)) {
|
|
93845
|
+
return row._valuesCache[columnId2];
|
|
93846
|
+
}
|
|
93847
|
+
if (groupedRows2[0]) {
|
|
93848
|
+
var _groupedRows$0$getVal;
|
|
93849
|
+
row._valuesCache[columnId2] = (_groupedRows$0$getVal = groupedRows2[0].getValue(columnId2)) != null ? _groupedRows$0$getVal : void 0;
|
|
93850
|
+
}
|
|
93851
|
+
return row._valuesCache[columnId2];
|
|
93852
|
+
}
|
|
93853
|
+
if (row._groupingValuesCache.hasOwnProperty(columnId2)) {
|
|
93854
|
+
return row._groupingValuesCache[columnId2];
|
|
93855
|
+
}
|
|
93856
|
+
const column = table.getColumn(columnId2);
|
|
93857
|
+
const aggregateFn = column == null ? void 0 : column.getAggregationFn();
|
|
93858
|
+
if (aggregateFn) {
|
|
93859
|
+
row._groupingValuesCache[columnId2] = aggregateFn(columnId2, leafRows, groupedRows2);
|
|
93860
|
+
return row._groupingValuesCache[columnId2];
|
|
93861
|
+
}
|
|
93862
|
+
}
|
|
93863
|
+
});
|
|
93864
|
+
subRows.forEach((subRow) => {
|
|
93865
|
+
groupedFlatRows.push(subRow);
|
|
93866
|
+
groupedRowsById[subRow.id] = subRow;
|
|
93867
|
+
});
|
|
93868
|
+
return row;
|
|
93869
|
+
});
|
|
93870
|
+
return aggregatedGroupedRows;
|
|
93871
|
+
};
|
|
93872
|
+
const groupedRows = groupUpRecursively(rowModel.rows, 0);
|
|
93873
|
+
groupedRows.forEach((subRow) => {
|
|
93874
|
+
groupedFlatRows.push(subRow);
|
|
93875
|
+
groupedRowsById[subRow.id] = subRow;
|
|
93876
|
+
});
|
|
93877
|
+
return {
|
|
93878
|
+
rows: groupedRows,
|
|
93879
|
+
flatRows: groupedFlatRows,
|
|
93880
|
+
rowsById: groupedRowsById
|
|
93881
|
+
};
|
|
93882
|
+
}, getMemoOptions(table.options, "debugTable", "getGroupedRowModel", () => {
|
|
93883
|
+
table._queue(() => {
|
|
93884
|
+
table._autoResetExpanded();
|
|
93885
|
+
table._autoResetPageIndex();
|
|
93886
|
+
});
|
|
93887
|
+
}));
|
|
93888
|
+
}
|
|
93889
|
+
function groupBy(rows, columnId) {
|
|
93890
|
+
const groupMap = /* @__PURE__ */ new Map();
|
|
93891
|
+
return rows.reduce((map2, row) => {
|
|
93892
|
+
const resKey = `${row.getGroupingValue(columnId)}`;
|
|
93893
|
+
const previous = map2.get(resKey);
|
|
93894
|
+
if (!previous) {
|
|
93895
|
+
map2.set(resKey, [row]);
|
|
93896
|
+
} else {
|
|
93897
|
+
previous.push(row);
|
|
93898
|
+
}
|
|
93899
|
+
return map2;
|
|
93900
|
+
}, groupMap);
|
|
93901
|
+
}
|
|
93902
|
+
function getPaginationRowModel(opts) {
|
|
93903
|
+
return (table) => memo(() => [table.getState().pagination, table.getPrePaginationRowModel(), table.options.paginateExpandedRows ? void 0 : table.getState().expanded], (pagination, rowModel) => {
|
|
93904
|
+
if (!rowModel.rows.length) {
|
|
93905
|
+
return rowModel;
|
|
93906
|
+
}
|
|
93907
|
+
const {
|
|
93908
|
+
pageSize,
|
|
93909
|
+
pageIndex
|
|
93910
|
+
} = pagination;
|
|
93911
|
+
let {
|
|
93912
|
+
rows,
|
|
93913
|
+
flatRows,
|
|
93914
|
+
rowsById
|
|
93915
|
+
} = rowModel;
|
|
93916
|
+
const pageStart = pageSize * pageIndex;
|
|
93917
|
+
const pageEnd = pageStart + pageSize;
|
|
93918
|
+
rows = rows.slice(pageStart, pageEnd);
|
|
93919
|
+
let paginatedRowModel;
|
|
93920
|
+
if (!table.options.paginateExpandedRows) {
|
|
93921
|
+
paginatedRowModel = expandRows({
|
|
93922
|
+
rows,
|
|
93923
|
+
flatRows,
|
|
93924
|
+
rowsById
|
|
93925
|
+
});
|
|
93926
|
+
} else {
|
|
93927
|
+
paginatedRowModel = {
|
|
93928
|
+
rows,
|
|
93929
|
+
flatRows,
|
|
93930
|
+
rowsById
|
|
93931
|
+
};
|
|
93932
|
+
}
|
|
93933
|
+
paginatedRowModel.flatRows = [];
|
|
93934
|
+
const handleRow = (row) => {
|
|
93935
|
+
paginatedRowModel.flatRows.push(row);
|
|
93936
|
+
if (row.subRows.length) {
|
|
93937
|
+
row.subRows.forEach(handleRow);
|
|
93938
|
+
}
|
|
93939
|
+
};
|
|
93940
|
+
paginatedRowModel.rows.forEach(handleRow);
|
|
93941
|
+
return paginatedRowModel;
|
|
93942
|
+
}, getMemoOptions(table.options, "debugTable", "getPaginationRowModel"));
|
|
93943
|
+
}
|
|
93944
|
+
function getSortedRowModel() {
|
|
93945
|
+
return (table) => memo(() => [table.getState().sorting, table.getPreSortedRowModel()], (sorting, rowModel) => {
|
|
93946
|
+
if (!rowModel.rows.length || !(sorting != null && sorting.length)) {
|
|
93947
|
+
return rowModel;
|
|
93948
|
+
}
|
|
93949
|
+
const sortingState = table.getState().sorting;
|
|
93950
|
+
const sortedFlatRows = [];
|
|
93951
|
+
const availableSorting = sortingState.filter((sort2) => {
|
|
93952
|
+
var _table$getColumn;
|
|
93953
|
+
return (_table$getColumn = table.getColumn(sort2.id)) == null ? void 0 : _table$getColumn.getCanSort();
|
|
93954
|
+
});
|
|
93955
|
+
const columnInfoById = {};
|
|
93956
|
+
availableSorting.forEach((sortEntry) => {
|
|
93957
|
+
const column = table.getColumn(sortEntry.id);
|
|
93958
|
+
if (!column) return;
|
|
93959
|
+
columnInfoById[sortEntry.id] = {
|
|
93960
|
+
sortUndefined: column.columnDef.sortUndefined,
|
|
93961
|
+
invertSorting: column.columnDef.invertSorting,
|
|
93962
|
+
sortingFn: column.getSortingFn()
|
|
93963
|
+
};
|
|
93964
|
+
});
|
|
93965
|
+
const sortData = (rows) => {
|
|
93966
|
+
const sortedData = rows.map((row) => ({
|
|
93967
|
+
...row
|
|
93968
|
+
}));
|
|
93969
|
+
sortedData.sort((rowA, rowB) => {
|
|
93970
|
+
for (let i = 0; i < availableSorting.length; i += 1) {
|
|
93971
|
+
var _sortEntry$desc;
|
|
93972
|
+
const sortEntry = availableSorting[i];
|
|
93973
|
+
const columnInfo = columnInfoById[sortEntry.id];
|
|
93974
|
+
const sortUndefined = columnInfo.sortUndefined;
|
|
93975
|
+
const isDesc = (_sortEntry$desc = sortEntry == null ? void 0 : sortEntry.desc) != null ? _sortEntry$desc : false;
|
|
93976
|
+
let sortInt = 0;
|
|
93977
|
+
if (sortUndefined) {
|
|
93978
|
+
const aValue = rowA.getValue(sortEntry.id);
|
|
93979
|
+
const bValue = rowB.getValue(sortEntry.id);
|
|
93980
|
+
const aUndefined = aValue === void 0;
|
|
93981
|
+
const bUndefined = bValue === void 0;
|
|
93982
|
+
if (aUndefined || bUndefined) {
|
|
93983
|
+
if (sortUndefined === "first") return aUndefined ? -1 : 1;
|
|
93984
|
+
if (sortUndefined === "last") return aUndefined ? 1 : -1;
|
|
93985
|
+
sortInt = aUndefined && bUndefined ? 0 : aUndefined ? sortUndefined : -sortUndefined;
|
|
93986
|
+
}
|
|
93987
|
+
}
|
|
93988
|
+
if (sortInt === 0) {
|
|
93989
|
+
sortInt = columnInfo.sortingFn(rowA, rowB, sortEntry.id);
|
|
93990
|
+
}
|
|
93991
|
+
if (sortInt !== 0) {
|
|
93992
|
+
if (isDesc) {
|
|
93993
|
+
sortInt *= -1;
|
|
93994
|
+
}
|
|
93995
|
+
if (columnInfo.invertSorting) {
|
|
93996
|
+
sortInt *= -1;
|
|
93997
|
+
}
|
|
93998
|
+
return sortInt;
|
|
93999
|
+
}
|
|
94000
|
+
}
|
|
94001
|
+
return rowA.index - rowB.index;
|
|
94002
|
+
});
|
|
94003
|
+
sortedData.forEach((row) => {
|
|
94004
|
+
var _row$subRows;
|
|
94005
|
+
sortedFlatRows.push(row);
|
|
94006
|
+
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
94007
|
+
row.subRows = sortData(row.subRows);
|
|
94008
|
+
}
|
|
94009
|
+
});
|
|
94010
|
+
return sortedData;
|
|
94011
|
+
};
|
|
94012
|
+
return {
|
|
94013
|
+
rows: sortData(rowModel.rows),
|
|
94014
|
+
flatRows: sortedFlatRows,
|
|
94015
|
+
rowsById: rowModel.rowsById
|
|
94016
|
+
};
|
|
94017
|
+
}, getMemoOptions(table.options, "debugTable", "getSortedRowModel", () => table._autoResetPageIndex()));
|
|
94018
|
+
}
|
|
93473
94019
|
function flexRender(Comp, props) {
|
|
93474
94020
|
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React__namespace.createElement(Comp, props) : Comp;
|
|
93475
94021
|
}
|
|
@@ -93520,7 +94066,7 @@ function CsTable({ className, ...props }) {
|
|
|
93520
94066
|
"div",
|
|
93521
94067
|
{
|
|
93522
94068
|
"data-slot": "table-container",
|
|
93523
|
-
className: "relative w-full overflow-x-auto bg-(--
|
|
94069
|
+
className: "relative w-full overflow-x-auto bg-(--table-container-bg) rounded-(--table-container-radius) border-(--table-container-border) border-(length:--table-container-border-width)",
|
|
93524
94070
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
93525
94071
|
"table",
|
|
93526
94072
|
{
|
|
@@ -93558,7 +94104,7 @@ function CsTableFooter({ className, ...props }) {
|
|
|
93558
94104
|
{
|
|
93559
94105
|
"data-slot": "table-footer",
|
|
93560
94106
|
className: cn$1(
|
|
93561
|
-
"bg-(--
|
|
94107
|
+
"bg-(--table-item-footer-cell-bg) text-(--table-item-footer-cell-font) border-t-(--table-item-footer-cell-border) border-t-(length:--table-item-footer-cell-boder-width) typo-body-sm",
|
|
93562
94108
|
className
|
|
93563
94109
|
),
|
|
93564
94110
|
...props
|
|
@@ -93571,7 +94117,7 @@ function CsTableRow({ className, ...props }) {
|
|
|
93571
94117
|
{
|
|
93572
94118
|
"data-slot": "table-row",
|
|
93573
94119
|
className: cn$1(
|
|
93574
|
-
"border-b-(--
|
|
94120
|
+
"border-b-(--table-item-cell-border) border-b-(length:--table-item-cell-boder-width) transition-colors",
|
|
93575
94121
|
"last:border-b-0",
|
|
93576
94122
|
className
|
|
93577
94123
|
),
|
|
@@ -93585,7 +94131,7 @@ function CsTableHead({ className, ...props }) {
|
|
|
93585
94131
|
{
|
|
93586
94132
|
"data-slot": "table-head",
|
|
93587
94133
|
className: cn$1(
|
|
93588
|
-
"typo-body-sm text-(--
|
|
94134
|
+
"typo-body-sm text-(--table-item-header-font) px-(--table-item-common-padding-x) py-(--table-item-common-padding-y) text-left align-middle whitespace-nowrap border-b-(--table-item-header-border) border-b-(length:--table-item-header-boder-width) [&_svg]:size-(--table-item-common-icon-size) [&_svg]:text-(--table-item-header-icon)",
|
|
93589
94135
|
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
93590
94136
|
className
|
|
93591
94137
|
),
|
|
@@ -93599,9 +94145,9 @@ function CsTableCell({ className, ...props }) {
|
|
|
93599
94145
|
{
|
|
93600
94146
|
"data-slot": "table-cell",
|
|
93601
94147
|
className: cn$1(
|
|
93602
|
-
"typo-body-sm bg-(--
|
|
94148
|
+
"typo-body-sm bg-(--table-item-cell-bg) text-(--table-item-cell-font) px-(--table-item-common-padding-x) py-(--table-item-common-padding-y) align-middle whitespace-nowrap [&_svg]:size-(--table-item-common-icon-size) [&_svg]:text-(--table-item-cell-icon)",
|
|
93603
94149
|
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
93604
|
-
"last:bg-(--
|
|
94150
|
+
"last:bg-(--table-item-cell-last-bg)",
|
|
93605
94151
|
className
|
|
93606
94152
|
),
|
|
93607
94153
|
...props
|
|
@@ -93616,7 +94162,7 @@ function CsTableCaption({
|
|
|
93616
94162
|
"caption",
|
|
93617
94163
|
{
|
|
93618
94164
|
"data-slot": "table-caption",
|
|
93619
|
-
className: cn$1("typo-productive-caption text-(--
|
|
94165
|
+
className: cn$1("typo-productive-caption text-(--table-item-cell-value-font-brand)", className),
|
|
93620
94166
|
...props
|
|
93621
94167
|
}
|
|
93622
94168
|
);
|
|
@@ -93736,7 +94282,7 @@ function CsDataTable(props) {
|
|
|
93736
94282
|
/* @__PURE__ */ jsxRuntime.jsx(CsTableHeader, { children: renderTableHead() }),
|
|
93737
94283
|
/* @__PURE__ */ jsxRuntime.jsxs(CsTableBody, { children: [
|
|
93738
94284
|
renderTableBody(),
|
|
93739
|
-
hasNextPage && /* @__PURE__ */ jsxRuntime.jsx(CsTableRow, { ref: scrollContainerRef, className: "px-
|
|
94285
|
+
hasNextPage && /* @__PURE__ */ jsxRuntime.jsx(CsTableRow, { ref: scrollContainerRef, className: "px-(--table-item-common-padding-x) py-(--table-item-common-padding-y)", children: /* @__PURE__ */ jsxRuntime.jsx(CsTableCell, { colSpan: columns.length, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(CsSpinner, {}) }) }) })
|
|
93740
94286
|
] })
|
|
93741
94287
|
] }),
|
|
93742
94288
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -93749,7 +94295,7 @@ function CsDataTable(props) {
|
|
|
93749
94295
|
] });
|
|
93750
94296
|
}
|
|
93751
94297
|
const csTabsListVariants = cva(
|
|
93752
|
-
"group inline-flex h-fit w-fit items-center justify-center rounded-(--radius
|
|
94298
|
+
"group inline-flex h-fit w-fit items-center justify-center rounded-(--tabs-container-radius) px-(--tabs-container-padding-x) py-(--tabs-container-padding-y) gap-(--tabs-container-gap)",
|
|
93753
94299
|
{
|
|
93754
94300
|
variants: {
|
|
93755
94301
|
variant: {
|
|
@@ -93760,7 +94306,7 @@ const csTabsListVariants = cva(
|
|
|
93760
94306
|
gradient: ""
|
|
93761
94307
|
},
|
|
93762
94308
|
background: {
|
|
93763
|
-
true: "bg-(--
|
|
94309
|
+
true: "bg-(--tabs-container-bg)",
|
|
93764
94310
|
false: "bg-transparent"
|
|
93765
94311
|
}
|
|
93766
94312
|
},
|
|
@@ -93778,7 +94324,7 @@ function CsTabs({
|
|
|
93778
94324
|
TabsPrimitive__namespace.Root,
|
|
93779
94325
|
{
|
|
93780
94326
|
"data-slot": "tabs",
|
|
93781
|
-
className: cn$1("flex flex-col gap-
|
|
94327
|
+
className: cn$1("flex flex-col gap-(--tabs-container-gap)", className),
|
|
93782
94328
|
...props
|
|
93783
94329
|
}
|
|
93784
94330
|
);
|
|
@@ -93808,24 +94354,24 @@ function CsTabsTrigger({
|
|
|
93808
94354
|
{
|
|
93809
94355
|
"data-slot": "tabs-trigger",
|
|
93810
94356
|
className: cn$1(
|
|
93811
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-(--radius
|
|
94357
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-(--tabs-item-common-radius) px-(--tabs-item-common-padding-x) py-(--tabs-item-common-padding-y) gap-(--tabs-item-common-gap) transition-all focus-visible:outline-none focus-visible:ring-0 disabled:pointer-events-none [&_svg]:size-(--tabs-item-common-icon-size) typo-body-sm",
|
|
93812
94358
|
// Solid
|
|
93813
|
-
"group-data-[variant=solid]:data-[state=active]:bg-(--
|
|
93814
|
-
"group-data-[variant=solid]:bg-(--
|
|
93815
|
-
"group-data-[variant=solid]:hover:bg-(--
|
|
94359
|
+
"group-data-[variant=solid]:data-[state=active]:bg-(--tabs-item-solid-on-bg) group-data-[variant=solid]:data-[state=active]:text-(--tabs-item-solid-on-font) group-data-[variant=solid]:data-[state=active]:[&_svg]:text-(--tabs-item-solid-on-icon)",
|
|
94360
|
+
"group-data-[variant=solid]:bg-(--tabs-item-solid-off-bg) group-data-[variant=solid]:text-(--tabs-item-solid-off-font) group-data-[variant=solid]:[&_svg]:text-(--tabs-item-solid-off-icon)",
|
|
94361
|
+
"group-data-[variant=solid]:hover:bg-(--tabs-item-solid-hover-bg) group-data-[variant=solid]:hover:text-(--tabs-item-solid-hover-font) group-data-[variant=solid]:hover:[&_svg]:text-(--tabs-item-solid-hover-icon)",
|
|
93816
94362
|
// Solid-line
|
|
93817
|
-
"group-data-[variant=solid-line]:data-[state=active]:bg-(--
|
|
93818
|
-
"group-data-[variant=solid-line]:bg-(--
|
|
93819
|
-
"group-data-[variant=solid-line]:hover:bg-(--
|
|
94363
|
+
"group-data-[variant=solid-line]:data-[state=active]:bg-(--tabs-item-solid-line-on-bg) group-data-[variant=solid-line]:data-[state=active]:text-(--tabs-item-solid-line-on-font) group-data-[variant=solid-line]:data-[state=active]:[&_svg]:text-(--tabs-item-solid-line-on-icon)",
|
|
94364
|
+
"group-data-[variant=solid-line]:bg-(--tabs-item-solid-line-off-bg) group-data-[variant=solid-line]:text-(--tabs-item-solid-line-off-font) group-data-[variant=solid-line]:[&_svg]:text-(--tabs-item-solid-line-off-icon) group-data-[variant=solid-line]:border-(--tabs-item-solid-line-off-border) group-data-[variant=solid-line]:border-(length:--tabs-item-solid-line-off-border-width)",
|
|
94365
|
+
"group-data-[variant=solid-line]:hover:bg-(--tabs-item-solid-line-hover-bg) group-data-[variant=solid-line]:hover:text-(--tabs-item-solid-line-hover-font) group-data-[variant=solid-line]:hover:[&_svg]:text-(--tabs-item-solid-line-hover-icon) group-data-[variant=solid-line]:hover:border-(--tabs-item-solid-line-hover-border) group-data-[variant=solid-line]:hover:border-(length:--tabs-item-solid-line-hover-border-width)",
|
|
93820
94366
|
// Solid-ghost
|
|
93821
|
-
"group-data-[variant=solid-ghost]:data-[state=active]:bg-(--
|
|
93822
|
-
"group-data-[variant=solid-ghost]:text-(--
|
|
93823
|
-
"group-data-[variant=solid-ghost]:hover:bg-(--
|
|
94367
|
+
"group-data-[variant=solid-ghost]:data-[state=active]:bg-(--tabs-item-solid-ghost-on-bg) group-data-[variant=solid-ghost]:data-[state=active]:text-(--tabs-item-solid-ghost-on-font) group-data-[variant=solid-ghost]:data-[state=active]:[&_svg]:text-(--tabs-item-solid-ghost-on-icon)",
|
|
94368
|
+
"group-data-[variant=solid-ghost]:text-(--tabs-item-solid-ghost-off-font) group-data-[variant=solid-ghost]:[&_svg]:text-(--tabs-item-solid-ghost-off-icon)",
|
|
94369
|
+
"group-data-[variant=solid-ghost]:hover:bg-(--tabs-item-solid-ghost-hover-bg) group-data-[variant=solid-ghost]:hover:text-(--tabs-item-solid-ghost-hover-font) group-data-[variant=solid-ghost]:hover:[&_svg]:text-(--tabs-item-solid-ghost-hover-icon)",
|
|
93824
94370
|
// Bottom-border
|
|
93825
94371
|
"group-data-[variant=bottom-border]:rounded-none",
|
|
93826
|
-
"group-data-[variant=bottom-border]:data-[state=active]:text-(--
|
|
93827
|
-
"group-data-[variant=bottom-border]:text-(--
|
|
93828
|
-
"group-data-[variant=bottom-border]:hover:text-(--
|
|
94372
|
+
"group-data-[variant=bottom-border]:data-[state=active]:text-(--tabs-item-bottom-border-on-font) group-data-[variant=bottom-border]:data-[state=active]:[&_svg]:text-(--tabs-item-bottom-border-on-icon) group-data-[variant=bottom-border]:data-[state=active]:border-b-(length:--tabs-item-bottom-border-on-border-width) group-data-[variant=bottom-border]:data-[state=active]:border-b-(--tabs-item-bottom-border-on-border)",
|
|
94373
|
+
"group-data-[variant=bottom-border]:text-(--tabs-item-bottom-border-off-font) group-data-[variant=bottom-border]:[&_svg]:text-(--tabs-item-bottom-border-off-icon) group-data-[variant=bottom-border]:border-b-(length:--tabs-item-bottom-border-on-border-width) group-data-[variant=bottom-border]:border-b-transparent",
|
|
94374
|
+
"group-data-[variant=bottom-border]:hover:text-(--tabs-item-bottom-border-hover-font) group-data-[variant=bottom-border]:hover:[&_svg]:text-(--tabs-item-bottom-border-hover-icon)",
|
|
93829
94375
|
// Gradient
|
|
93830
94376
|
"group-data-[variant=gradient]:data-[state=active]:gradient-primary-vertical group-data-[variant=gradient]:data-[state=active]:text-(--font-color-onbrand-default) group-data-[variant=gradient]:data-[state=active]:[&_svg]:text-(--icon-color-onbrand-default)",
|
|
93831
94377
|
"group-data-[variant=gradient]:bg-(--color-bg-surface-muted) group-data-[variant=gradient]:text-(--font-color-primary-muted) group-data-[variant=gradient]:[&_svg]:text-(--icon-color-primary-muted)",
|
|
@@ -93850,19 +94396,19 @@ function CsTabsContent({
|
|
|
93850
94396
|
);
|
|
93851
94397
|
}
|
|
93852
94398
|
const csToggleVariants = cva(
|
|
93853
|
-
"inline-flex items-center w-fit justify-center gap-
|
|
94399
|
+
"inline-flex items-center w-fit justify-center gap-(--toggle-common-gap) rounded-(--toggle-common-radius) px-(--toggle-common-padding-x) py-(--toggle-common-padding-y) typo-body-sm disabled:pointer-events-none disabled:opacity-(--toggle-common-opacity) [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-(--toggle-common-icon-size) [&_svg]:shrink-0 focus-visible:ring-0 outline-none transition-[color,box-shadow] whitespace-nowrap",
|
|
93854
94400
|
{
|
|
93855
94401
|
variants: {
|
|
93856
94402
|
variant: {
|
|
93857
94403
|
solid: [
|
|
93858
|
-
"bg-(--
|
|
93859
|
-
"hover:bg-(--
|
|
93860
|
-
"data-[state=on]:bg-(--
|
|
94404
|
+
"bg-(--toggle-solid-default-bg) text-(--toggle-solid-default-font) [&_svg]:text-(--toggle-solid-default-icon)",
|
|
94405
|
+
"hover:bg-(--toggle-solid-hover-bg) hover:text-(--toggle-solid-hover-font) hover:[&_svg]:text-(--toggle-solid-hover-icon)",
|
|
94406
|
+
"data-[state=on]:bg-(--toggle-solid-active-bg) data-[state=on]:text-(--toggle-solid-active-font) data-[state=on]:[&_svg]:text-(--toggle-solid-active-icon)"
|
|
93861
94407
|
].join(" "),
|
|
93862
94408
|
outline: [
|
|
93863
|
-
"bg-(--
|
|
93864
|
-
"hover:bg-(--
|
|
93865
|
-
"data-[state=on]:bg-(--
|
|
94409
|
+
"bg-(--toggle-outline-default-bg) text-(--toggle-outline-default-font) [&_svg]:text-(--toggle-outline-default-icon) border-(length:--toggle-outline-border-width) border-(--toggle-outline-default-border)",
|
|
94410
|
+
"hover:bg-(--toggle-outline-hover-bg) hover:text-(--toggle-outline-hover-font) hover:[&_svg]:text-(--toggle-outline-hover-icon) border-(--toggle-outline-hover-border)",
|
|
94411
|
+
"data-[state=on]:bg-(--toggle-outline-active-bg) data-[state=on]:text-(--toggle-outline-active-font) data-[state=on]:[&_svg]:text-(--toggle-outline-active-icon) data-[state=on]:border-(--toggle-outline-active-border)"
|
|
93866
94412
|
].join(" ")
|
|
93867
94413
|
}
|
|
93868
94414
|
},
|
|
@@ -93904,7 +94450,7 @@ function ToggleGroup({
|
|
|
93904
94450
|
"data-spacing": spacing,
|
|
93905
94451
|
style: { "--gap": spacing },
|
|
93906
94452
|
className: cn$1(
|
|
93907
|
-
"group/toggle-group flex w-fit items-center gap-
|
|
94453
|
+
"group/toggle-group flex w-fit items-center gap-(--toggle-common-gap-group)",
|
|
93908
94454
|
className
|
|
93909
94455
|
),
|
|
93910
94456
|
...props,
|
|
@@ -93929,7 +94475,7 @@ function ToggleGroupItem({
|
|
|
93929
94475
|
csToggleVariants({
|
|
93930
94476
|
variant: context.variant || variant
|
|
93931
94477
|
}),
|
|
93932
|
-
"data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-
|
|
94478
|
+
"data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-(--toggle-common-radius) data-[spacing=0]:last:rounded-r-(--toggle-common-radius) data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",
|
|
93933
94479
|
className
|
|
93934
94480
|
),
|
|
93935
94481
|
...props,
|
|
@@ -93999,6 +94545,14 @@ const useAccordion = (itemKeys, options) => {
|
|
|
93999
94545
|
isOpened
|
|
94000
94546
|
};
|
|
94001
94547
|
};
|
|
94548
|
+
exports.ColumnFaceting = ColumnFaceting;
|
|
94549
|
+
exports.ColumnFiltering = ColumnFiltering;
|
|
94550
|
+
exports.ColumnGrouping = ColumnGrouping;
|
|
94551
|
+
exports.ColumnOrdering = ColumnOrdering;
|
|
94552
|
+
exports.ColumnPinning = ColumnPinning;
|
|
94553
|
+
exports.ColumnSizing = ColumnSizing;
|
|
94554
|
+
exports.ColumnVisibility = ColumnVisibility;
|
|
94555
|
+
exports.Content = Content;
|
|
94002
94556
|
exports.CsAccordion = CsAccordion;
|
|
94003
94557
|
exports.CsAccordionContent = CsAccordionContent;
|
|
94004
94558
|
exports.CsAccordionItem = CsAccordionItem;
|
|
@@ -94154,9 +94708,33 @@ exports.CsTooltip = CsTooltip;
|
|
|
94154
94708
|
exports.CsTooltipContent = CsTooltipContent;
|
|
94155
94709
|
exports.CsTooltipProvider = CsTooltipProvider;
|
|
94156
94710
|
exports.CsTooltipTrigger = CsTooltipTrigger;
|
|
94711
|
+
exports.Drawer = Drawer;
|
|
94712
|
+
exports.ErrorCode = ErrorCode;
|
|
94713
|
+
exports.GlobalFaceting = GlobalFaceting;
|
|
94714
|
+
exports.GlobalFiltering = GlobalFiltering;
|
|
94715
|
+
exports.Handle = Handle;
|
|
94716
|
+
exports.Headers = Headers;
|
|
94717
|
+
exports.NestedRoot = NestedRoot;
|
|
94718
|
+
exports.Overlay = Overlay;
|
|
94719
|
+
exports.Portal = Portal;
|
|
94720
|
+
exports.Root = Root;
|
|
94721
|
+
exports.RowExpanding = RowExpanding;
|
|
94722
|
+
exports.RowPagination = RowPagination;
|
|
94723
|
+
exports.RowPinning = RowPinning;
|
|
94724
|
+
exports.RowSelection = RowSelection;
|
|
94725
|
+
exports.RowSorting = RowSorting;
|
|
94726
|
+
exports.Toaster = Toaster;
|
|
94157
94727
|
exports.ToggleGroup = ToggleGroup;
|
|
94158
94728
|
exports.ToggleGroupItem = ToggleGroupItem;
|
|
94729
|
+
exports._getVisibleLeafColumns = _getVisibleLeafColumns;
|
|
94730
|
+
exports.aggregationFns = aggregationFns;
|
|
94731
|
+
exports.buildHeaderGroups = buildHeaderGroups;
|
|
94159
94732
|
exports.cn = cn$1;
|
|
94733
|
+
exports.createCell = createCell;
|
|
94734
|
+
exports.createColumn = createColumn;
|
|
94735
|
+
exports.createColumnHelper = createColumnHelper;
|
|
94736
|
+
exports.createRow = createRow;
|
|
94737
|
+
exports.createTable = createTable;
|
|
94160
94738
|
exports.csBadgeVariants = csBadgeVariants;
|
|
94161
94739
|
exports.csButtonVariants = csButtonVariants;
|
|
94162
94740
|
exports.csChartTooltipStyle = csChartTooltipStyle;
|
|
@@ -94169,6 +94747,39 @@ exports.csProgressVariants = csProgressVariants;
|
|
|
94169
94747
|
exports.csTabsListVariants = csTabsListVariants;
|
|
94170
94748
|
exports.csToggleVariants = csToggleVariants;
|
|
94171
94749
|
exports.csTooltipContentVariants = csTooltipContentVariants;
|
|
94750
|
+
exports.defaultColumnSizing = defaultColumnSizing;
|
|
94751
|
+
exports.expandRows = expandRows;
|
|
94752
|
+
exports.filterFns = filterFns;
|
|
94753
|
+
exports.flattenBy = flattenBy;
|
|
94754
|
+
exports.flexRender = flexRender;
|
|
94755
|
+
exports.functionalUpdate = functionalUpdate;
|
|
94756
|
+
exports.getCoreRowModel = getCoreRowModel;
|
|
94757
|
+
exports.getExpandedRowModel = getExpandedRowModel;
|
|
94758
|
+
exports.getFacetedMinMaxValues = getFacetedMinMaxValues;
|
|
94759
|
+
exports.getFacetedRowModel = getFacetedRowModel;
|
|
94760
|
+
exports.getFacetedUniqueValues = getFacetedUniqueValues;
|
|
94761
|
+
exports.getFilteredRowModel = getFilteredRowModel;
|
|
94762
|
+
exports.getGroupedRowModel = getGroupedRowModel;
|
|
94763
|
+
exports.getMemoOptions = getMemoOptions;
|
|
94764
|
+
exports.getPaginationRowModel = getPaginationRowModel;
|
|
94765
|
+
exports.getSortedRowModel = getSortedRowModel;
|
|
94766
|
+
exports.isFunction = isFunction;
|
|
94767
|
+
exports.isNumberArray = isNumberArray;
|
|
94768
|
+
exports.isRowSelected = isRowSelected;
|
|
94769
|
+
exports.isSubRowSelected = isSubRowSelected;
|
|
94770
|
+
exports.makeStateUpdater = makeStateUpdater;
|
|
94771
|
+
exports.memo = memo;
|
|
94772
|
+
exports.noop = noop;
|
|
94773
|
+
exports.orderColumns = orderColumns;
|
|
94774
|
+
exports.passiveEventSupported = passiveEventSupported;
|
|
94775
|
+
exports.reSplitAlphaNumeric = reSplitAlphaNumeric;
|
|
94776
|
+
exports.selectRowsFn = selectRowsFn;
|
|
94777
|
+
exports.shouldAutoRemoveFilter = shouldAutoRemoveFilter;
|
|
94778
|
+
exports.sortingFns = sortingFns;
|
|
94779
|
+
exports.toast = toast;
|
|
94172
94780
|
exports.useAccordion = useAccordion;
|
|
94781
|
+
exports.useDropzone = useDropzone;
|
|
94173
94782
|
exports.useIsMobile = useIsMobile;
|
|
94783
|
+
exports.useReactTable = useReactTable;
|
|
94784
|
+
exports.useSonner = useSonner;
|
|
94174
94785
|
//# sourceMappingURL=index.cjs.js.map
|