@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.es.js
CHANGED
|
@@ -3279,16 +3279,16 @@ const csAccordionItemVariants = cva(
|
|
|
3279
3279
|
variants: {
|
|
3280
3280
|
variant: {
|
|
3281
3281
|
default: [
|
|
3282
|
-
"bg-(--
|
|
3283
|
-
"data-[state=open]:pb-
|
|
3282
|
+
"bg-(--accordion-common-bg) border-b-(length:--accordion-default-border-width) border-b-(--accordion-default-border)",
|
|
3283
|
+
"data-[state=open]:pb-(--accordion-default-padding-y)"
|
|
3284
3284
|
],
|
|
3285
3285
|
custom: [
|
|
3286
|
-
"rounded-(--radius
|
|
3287
|
-
"data-[state=open]:pb-
|
|
3288
|
-
"bg-(--
|
|
3289
|
-
"data-[state=open]:bg-(--
|
|
3290
|
-
"hover:bg-(--
|
|
3291
|
-
"data-[state=open]:hover:bg-(--
|
|
3286
|
+
"rounded-(--accordion-custom-radius) px-(--accordion-custom-padding-x) border-(length:--accordion-custom-border-width)",
|
|
3287
|
+
"data-[state=open]:pb-(--accordion-custom-padding-y)",
|
|
3288
|
+
"bg-(--accordion-custom-closed-bg) border-(--accordion-custom-closed-border)",
|
|
3289
|
+
"data-[state=open]:bg-(--accordion-custom-open-bg) data-[state=open]:border-(--accordion-custom-open-border)",
|
|
3290
|
+
"hover:bg-(--accordion-custom-hover-bg) hover:border-(--accordion-custom-hover-border)",
|
|
3291
|
+
"data-[state=open]:hover:bg-(--accordion-custom-open-bg) data-[state=open]:hover:border-(--accordion-custom-open-border)"
|
|
3292
3292
|
]
|
|
3293
3293
|
}
|
|
3294
3294
|
},
|
|
@@ -3325,19 +3325,19 @@ function CsAccordionTrigger({
|
|
|
3325
3325
|
"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",
|
|
3326
3326
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-transform [&_svg]:duration-200",
|
|
3327
3327
|
// default
|
|
3328
|
-
"group-data-[variant=default]/accordion:py-
|
|
3329
|
-
"group-data-[variant=default]/accordion:data-[state=closed]:text-(--
|
|
3330
|
-
"group-data-[variant=default]/accordion:
|
|
3331
|
-
"group-data-[variant=default]/accordion:hover:text(--
|
|
3332
|
-
"group-data-[variant=default]/accordion:
|
|
3333
|
-
"group-data-[variant=default]/accordion:[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
3328
|
+
"group-data-[variant=default]/accordion:py-(--accordion-default-padding-y) group-data-[variant=default]/accordion:gap-(--accordion-default-gap)",
|
|
3329
|
+
"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)",
|
|
3330
|
+
"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)",
|
|
3331
|
+
"group-data-[variant=default]/accordion:hover:text-(--accordion-default-hover-title) group-data-[variant=default]/accordion:hover:[&_svg]:text-(--accordion-default-hover-icon)",
|
|
3332
|
+
"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)",
|
|
3333
|
+
"group-data-[variant=default]/accordion:[&_svg:not([class*='size-'])]:size-(--accordion-default-icon-size)",
|
|
3334
3334
|
// custom
|
|
3335
|
-
"group-data-[variant=custom]/accordion:py-
|
|
3336
|
-
"group-data-[variant=custom]/accordion:data-[state=closed]:text-(--
|
|
3337
|
-
"group-data-[variant=custom]/accordion:
|
|
3338
|
-
"group-data-[variant=custom]/accordion:hover:text(--
|
|
3339
|
-
"group-data-[variant=custom]/accordion:
|
|
3340
|
-
"group-data-[variant=custom]/accordion:[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
3335
|
+
"group-data-[variant=custom]/accordion:py-(--accordion-custom-padding-y) group-data-[variant=custom]/accordion:gap-(--accordion-custom-gap)",
|
|
3336
|
+
"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)",
|
|
3337
|
+
"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)",
|
|
3338
|
+
"group-data-[variant=custom]/accordion:hover:text-(--accordion-custom-hover-title) group-data-[variant=custom]/accordion:hover:[&_svg]:text-(--accordion-custom-hover-icon)",
|
|
3339
|
+
"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)",
|
|
3340
|
+
"group-data-[variant=custom]/accordion:[&_svg:not([class*='size-'])]:size-(--accordion-custom-icon-size)",
|
|
3341
3341
|
className
|
|
3342
3342
|
),
|
|
3343
3343
|
...props,
|
|
@@ -3361,64 +3361,69 @@ function CsAccordionContent({
|
|
|
3361
3361
|
...props,
|
|
3362
3362
|
children: /* @__PURE__ */ jsx("div", { className: cn$1(
|
|
3363
3363
|
"typo-body-sm",
|
|
3364
|
-
"group-data-[variant=default]/accordion:pt-
|
|
3365
|
-
"group-data-[variant=default]/accordion:text-(--
|
|
3366
|
-
"group-data-[variant=custom]/accordion:pt-
|
|
3367
|
-
"group-data-[variant=custom]/accordion:typo-body-sm group-data-[variant=custom]/accordion:text-(--
|
|
3364
|
+
"group-data-[variant=default]/accordion:pt-(--accordion-default-open-gap)",
|
|
3365
|
+
"group-data-[variant=default]/accordion:text-(--accordion-default-open-description)",
|
|
3366
|
+
"group-data-[variant=custom]/accordion:pt-(--accordion-custom-open-gap)",
|
|
3367
|
+
"group-data-[variant=custom]/accordion:typo-body-sm group-data-[variant=custom]/accordion:text-(--accordion-custom-open-description)",
|
|
3368
3368
|
className
|
|
3369
3369
|
), children })
|
|
3370
3370
|
}
|
|
3371
3371
|
);
|
|
3372
3372
|
}
|
|
3373
3373
|
const csButtonVariants = cva(
|
|
3374
|
-
"inline-flex items-center justify-center whitespace-nowrap
|
|
3374
|
+
"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",
|
|
3375
3375
|
{
|
|
3376
3376
|
variants: {
|
|
3377
3377
|
variant: {
|
|
3378
3378
|
"solid-primary": [
|
|
3379
|
-
"bg-(--
|
|
3380
|
-
"hover:bg-(--
|
|
3381
|
-
"disabled:bg-(--
|
|
3379
|
+
"bg-(--button-solid-primary-default-bg) text-(--button-solid-primary-default-font) [&_svg]:text-(--button-solid-primary-default-icon)",
|
|
3380
|
+
"hover:bg-(--button-solid-primary-hover-bg) hover:text-(--button-solid-primary-hover-font) hover:[&_svg]:text-(--button-solid-primary-hover-icon)",
|
|
3381
|
+
"disabled:bg-(--button-solid-primary-disabled-bg) disabled:text-(--button-solid-primary-disabled-font) disabled:[&_svg]:text-(--button-solid-primary-disabled-icon)"
|
|
3382
3382
|
].join(" "),
|
|
3383
3383
|
"solid-secondary": [
|
|
3384
|
-
"bg-(--
|
|
3385
|
-
"hover:bg-(--
|
|
3386
|
-
"disabled:bg-(--
|
|
3384
|
+
"bg-(--button-solid-secondary-default-bg) text-(--button-solid-secondary-default-font) [&_svg]:text-(--button-solid-secondary-default-icon)",
|
|
3385
|
+
"hover:bg-(--button-solid-secondary-hover-bg) hover:text-(--button-solid-secondary-hover-font) hover:[&_svg]:text-(--button-solid-secondary-hover-icon)",
|
|
3386
|
+
"disabled:bg-(--button-solid-secondary-disabled-bg) disabled:text-(--button-solid-secondary-disabled-font) disabled:[&_svg]:text-(--button-solid-secondary-disabled-icon)"
|
|
3387
3387
|
].join(" "),
|
|
3388
3388
|
outline: [
|
|
3389
|
-
"bg-(--
|
|
3390
|
-
"hover:bg-(--
|
|
3391
|
-
"disabled:bg-(--
|
|
3389
|
+
"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)",
|
|
3390
|
+
"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)",
|
|
3391
|
+
"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)"
|
|
3392
3392
|
].join(" "),
|
|
3393
3393
|
ghost: [
|
|
3394
|
-
"text-(--
|
|
3395
|
-
"hover:bg-(--
|
|
3396
|
-
"disabled:text-(--
|
|
3394
|
+
"text-(--button-ghost-default-font) [&_svg]:text-(--button-ghost-default-icon)",
|
|
3395
|
+
"hover:bg-(--button-ghost-hover-bg) hover:text-(--button-ghost-hover-font) hover:[&_svg]:text-(--button-ghost-hover-icon)",
|
|
3396
|
+
"disabled:text-(--button-ghost-disabled-font) disabled:[&_svg]:text-(--button-ghost-disabled-icon)"
|
|
3397
3397
|
].join(" "),
|
|
3398
3398
|
link: [
|
|
3399
|
-
"text-(--
|
|
3400
|
-
"hover:text-(--
|
|
3401
|
-
"disabled:text-(--
|
|
3399
|
+
"text-(--button-link-default-font) [&_svg]:text-(--button-link-default-icon)",
|
|
3400
|
+
"hover:bg-(--button-link-hover-bg) hover:text-(--button-link-hover-font) hover:[&_svg]:text-(--button-link-hover-icon)",
|
|
3401
|
+
"disabled:text-(--button-link-disabled-font) disabled:[&_svg]:text-(--button-link-disabled-icon)"
|
|
3402
3402
|
].join(" "),
|
|
3403
3403
|
gradient: [
|
|
3404
|
-
"gradient-primary-vertical text-(--
|
|
3405
|
-
"hover:gradient-primary-hover-vertical hover:text-(--
|
|
3406
|
-
"disabled:gradient-primary-vertical disabled:text-(--
|
|
3404
|
+
"gradient-primary-vertical text-(--button-gradient-default-font) [&_svg]:text-(--button-gradient-default-icon)",
|
|
3405
|
+
"hover:gradient-primary-hover-vertical hover:text-(--button-gradient-hover-font) hover:[&_svg]:text-(--button-gradient-hover-icon)",
|
|
3406
|
+
"disabled:gradient-primary-vertical disabled:text-(--button-gradient-disabled-font) disabled:[&_svg]:text-(--button-gradient-disabled-icon)"
|
|
3407
3407
|
].join(" ")
|
|
3408
3408
|
},
|
|
3409
3409
|
size: {
|
|
3410
|
-
default:
|
|
3410
|
+
default: [
|
|
3411
|
+
"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)"
|
|
3412
|
+
].join(" "),
|
|
3411
3413
|
small: [
|
|
3412
|
-
"h-(--
|
|
3413
|
-
"
|
|
3414
|
+
"h-(--button-size-small-height) typo-body-xs font-weight-(--font-weight-body-bold)",
|
|
3415
|
+
"px-(--button-size-small-padding-x) gap-(--button-size-small-gap) rounded-(--button-size-small-radius)",
|
|
3416
|
+
"[&_svg]:size-(--button-size-small-icon-size)"
|
|
3414
3417
|
].join(" "),
|
|
3415
3418
|
medium: [
|
|
3416
|
-
"h-(--
|
|
3417
|
-
"
|
|
3419
|
+
"h-(--button-size-medium-height) typo-body-sm",
|
|
3420
|
+
"px-(--button-size-medium-padding-x) gap-(--button-size-medium-gap) rounded-(--button-size-medium-radius)",
|
|
3421
|
+
"[&_svg]:size-(--button-size-medium-icon-size)"
|
|
3418
3422
|
].join(" "),
|
|
3419
3423
|
large: [
|
|
3420
|
-
"h-(--
|
|
3421
|
-
"
|
|
3424
|
+
"h-(--button-size-large-height) typo-body-sm",
|
|
3425
|
+
"px-(--button-size-large-padding-x) gap-(--button-size-large-gap) rounded-(--button-size-large-radius)",
|
|
3426
|
+
"[&_svg]:size-(--button-size-large-icon-size)"
|
|
3422
3427
|
].join(" ")
|
|
3423
3428
|
}
|
|
3424
3429
|
},
|
|
@@ -3469,7 +3474,7 @@ function CsAlertDialogOverlay({
|
|
|
3469
3474
|
{
|
|
3470
3475
|
"data-slot": "alert-dialog-overlay",
|
|
3471
3476
|
className: cn$1(
|
|
3472
|
-
"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-(--
|
|
3477
|
+
"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)",
|
|
3473
3478
|
className
|
|
3474
3479
|
),
|
|
3475
3480
|
...props
|
|
@@ -3487,7 +3492,7 @@ function CsAlertDialogContent({
|
|
|
3487
3492
|
{
|
|
3488
3493
|
"data-slot": "alert-dialog-content",
|
|
3489
3494
|
className: cn$1(
|
|
3490
|
-
"bg-(--
|
|
3495
|
+
"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",
|
|
3491
3496
|
className
|
|
3492
3497
|
),
|
|
3493
3498
|
...props
|
|
@@ -3503,7 +3508,7 @@ function CsAlertDialogHeader({
|
|
|
3503
3508
|
"div",
|
|
3504
3509
|
{
|
|
3505
3510
|
"data-slot": "alert-dialog-header",
|
|
3506
|
-
className: cn$1("flex flex-col gap-
|
|
3511
|
+
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) mobile:text-center text-left", className),
|
|
3507
3512
|
...props
|
|
3508
3513
|
}
|
|
3509
3514
|
);
|
|
@@ -3517,7 +3522,7 @@ function CsAlertDialogFooter({
|
|
|
3517
3522
|
{
|
|
3518
3523
|
"data-slot": "alert-dialog-footer",
|
|
3519
3524
|
className: cn$1(
|
|
3520
|
-
"flex flex-col-reverse gap-
|
|
3525
|
+
"flex flex-col-reverse gap-(--dialog-container-footer-gap) mobile:flex-row mobile:justify-end",
|
|
3521
3526
|
className
|
|
3522
3527
|
),
|
|
3523
3528
|
...props
|
|
@@ -3532,7 +3537,7 @@ function CsAlertDialogTitle({
|
|
|
3532
3537
|
AlertDialogPrimitive.Title,
|
|
3533
3538
|
{
|
|
3534
3539
|
"data-slot": "alert-dialog-title",
|
|
3535
|
-
className: cn$1("typo-heading-sm text-(--
|
|
3540
|
+
className: cn$1("typo-heading-sm text-(--dialog-container-header-title)", className),
|
|
3536
3541
|
...props
|
|
3537
3542
|
}
|
|
3538
3543
|
);
|
|
@@ -3545,7 +3550,7 @@ function CsAlertDialogDescription({
|
|
|
3545
3550
|
AlertDialogPrimitive.Description,
|
|
3546
3551
|
{
|
|
3547
3552
|
"data-slot": "alert-dialog-description",
|
|
3548
|
-
className: cn$1("typo-body-sm text-(--
|
|
3553
|
+
className: cn$1("typo-body-sm text-(--dialog-container-header-description)", className),
|
|
3549
3554
|
...props
|
|
3550
3555
|
}
|
|
3551
3556
|
);
|
|
@@ -3575,13 +3580,13 @@ function CsAlertDialogCancel({
|
|
|
3575
3580
|
);
|
|
3576
3581
|
}
|
|
3577
3582
|
const csBadgeVariants = cva(
|
|
3578
|
-
"inline-flex items-center justify-center rounded-(--radius
|
|
3583
|
+
"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",
|
|
3579
3584
|
{
|
|
3580
3585
|
variants: {
|
|
3581
3586
|
variant: {
|
|
3582
|
-
solid: "bg-(--
|
|
3583
|
-
outline: "bg-(--
|
|
3584
|
-
gradient: "gradient-primary-vertical text-(--
|
|
3587
|
+
solid: "bg-(--badge-solid-bg) text-(--badge-solid-font) [&_svg]:text-(--badge-solid-icon) border-transparent",
|
|
3588
|
+
outline: "bg-(--badge-outline-bg) text-(--badge-outline-font) [&_svg]:text-(--badge-outline-icon) border-(--badge-outline-border)",
|
|
3589
|
+
gradient: "gradient-primary-vertical text-(--badge-gradient-font) [&_svg]:text-(--badge-gradient-icon) border-transparent"
|
|
3585
3590
|
}
|
|
3586
3591
|
},
|
|
3587
3592
|
defaultVariants: {
|
|
@@ -3606,12 +3611,12 @@ function CsBadge({
|
|
|
3606
3611
|
);
|
|
3607
3612
|
}
|
|
3608
3613
|
const csBoxVariants = cva(
|
|
3609
|
-
"flex flex-col
|
|
3614
|
+
"flex flex-col",
|
|
3610
3615
|
{
|
|
3611
3616
|
variants: {
|
|
3612
3617
|
variant: {
|
|
3613
|
-
solid: "
|
|
3614
|
-
outline: "
|
|
3618
|
+
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)",
|
|
3619
|
+
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)"
|
|
3615
3620
|
}
|
|
3616
3621
|
},
|
|
3617
3622
|
defaultVariants: {
|
|
@@ -7591,7 +7596,7 @@ function CsCalendar({
|
|
|
7591
7596
|
{
|
|
7592
7597
|
showOutsideDays,
|
|
7593
7598
|
className: cn$1(
|
|
7594
|
-
"bg-(--
|
|
7599
|
+
"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",
|
|
7595
7600
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
7596
7601
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
7597
7602
|
className
|
|
@@ -7604,22 +7609,22 @@ function CsCalendar({
|
|
|
7604
7609
|
classNames: {
|
|
7605
7610
|
root: cn$1("w-fit", defaultClassNames.root),
|
|
7606
7611
|
months: cn$1(
|
|
7607
|
-
"flex gap-
|
|
7612
|
+
"flex gap-(--calendar-container-gap) flex-col md:flex-row relative typo-body-sm",
|
|
7608
7613
|
defaultClassNames.months
|
|
7609
7614
|
),
|
|
7610
|
-
month: cn$1("flex flex-col w-full gap-
|
|
7615
|
+
month: cn$1("flex flex-col w-full gap-(--calendar-container-gap)", defaultClassNames.month),
|
|
7611
7616
|
nav: cn$1(
|
|
7612
|
-
"flex items-center gap-
|
|
7617
|
+
"flex items-center gap-(--calendar-days-radius) w-full absolute top-0 inset-x-0 justify-between",
|
|
7613
7618
|
defaultClassNames.nav
|
|
7614
7619
|
),
|
|
7615
7620
|
button_previous: cn$1(
|
|
7616
7621
|
csButtonVariants({ variant: "ghost" }),
|
|
7617
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-(--
|
|
7622
|
+
"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)",
|
|
7618
7623
|
defaultClassNames.button_previous
|
|
7619
7624
|
),
|
|
7620
7625
|
button_next: cn$1(
|
|
7621
7626
|
csButtonVariants({ variant: "ghost" }),
|
|
7622
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none text-(--
|
|
7627
|
+
"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)",
|
|
7623
7628
|
defaultClassNames.button_next
|
|
7624
7629
|
),
|
|
7625
7630
|
month_caption: cn$1(
|
|
@@ -7631,29 +7636,29 @@ function CsCalendar({
|
|
|
7631
7636
|
defaultClassNames.month_grid
|
|
7632
7637
|
),
|
|
7633
7638
|
dropdowns: cn$1(
|
|
7634
|
-
"w-full flex items-center font-medium justify-center h-(--cell-size) gap-
|
|
7639
|
+
"w-full flex items-center font-medium justify-center h-(--cell-size) gap-(--calendar-days-radius)",
|
|
7635
7640
|
defaultClassNames.dropdowns
|
|
7636
7641
|
),
|
|
7637
7642
|
dropdown_root: cn$1(
|
|
7638
|
-
"relative border-(length:--border-width
|
|
7643
|
+
"relative border-(length:--calendar-container-border-width) border-(--calendar-container-border) rounded-(--calendar-container-radius)",
|
|
7639
7644
|
defaultClassNames.dropdown_root
|
|
7640
7645
|
),
|
|
7641
7646
|
dropdown: cn$1(
|
|
7642
|
-
"absolute bg-(--
|
|
7647
|
+
"absolute bg-(--calendar-container-bg) inset-0 opacity-0",
|
|
7643
7648
|
defaultClassNames.dropdown
|
|
7644
7649
|
),
|
|
7645
7650
|
caption_label: cn$1(
|
|
7646
7651
|
"select-none font-medium",
|
|
7647
|
-
captionLayout === "label" ? "" : "rounded-(--radius
|
|
7652
|
+
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)",
|
|
7648
7653
|
defaultClassNames.caption_label
|
|
7649
7654
|
),
|
|
7650
7655
|
table: "w-full border-collapse",
|
|
7651
7656
|
weekdays: cn$1("flex", defaultClassNames.weekdays),
|
|
7652
7657
|
weekday: cn$1(
|
|
7653
|
-
"rounded-(--radius
|
|
7658
|
+
"rounded-(--calendar-container-radius) flex-1 font-normal select-none text-(--calendar-days-default-font)",
|
|
7654
7659
|
defaultClassNames.weekday
|
|
7655
7660
|
),
|
|
7656
|
-
week: cn$1("flex w-full mt-
|
|
7661
|
+
week: cn$1("flex w-full mt-(--calendar-container-gap)", defaultClassNames.week),
|
|
7657
7662
|
week_number_header: cn$1(
|
|
7658
7663
|
"select-none w-(--cell-size)",
|
|
7659
7664
|
defaultClassNames.week_number_header
|
|
@@ -7668,11 +7673,11 @@ function CsCalendar({
|
|
|
7668
7673
|
defaultClassNames.day
|
|
7669
7674
|
),
|
|
7670
7675
|
range_start: cn$1(
|
|
7671
|
-
"rounded-l-md bg-(--
|
|
7676
|
+
"rounded-l-md bg-(--calendar-days-current-bg) text-(--calendar-days-current-font)",
|
|
7672
7677
|
defaultClassNames.range_start
|
|
7673
7678
|
),
|
|
7674
|
-
range_middle: cn$1("rounded-none bg-(--
|
|
7675
|
-
range_end: cn$1("rounded-r-md bg-(--
|
|
7679
|
+
range_middle: cn$1("rounded-none bg-(--calendar-days-selected-bg) text-(--calendar-days-selected-font)", defaultClassNames.range_middle),
|
|
7680
|
+
range_end: cn$1("rounded-r-md bg-(--calendar-days-current-bg) text-(--calendar-days-current-font)", defaultClassNames.range_end),
|
|
7676
7681
|
today: cn$1(
|
|
7677
7682
|
"",
|
|
7678
7683
|
defaultClassNames.today
|
|
@@ -7682,7 +7687,7 @@ function CsCalendar({
|
|
|
7682
7687
|
defaultClassNames.outside
|
|
7683
7688
|
),
|
|
7684
7689
|
disabled: cn$1(
|
|
7685
|
-
"text-(--
|
|
7690
|
+
"text-(--calendar-days-disabled-font) opacity-50",
|
|
7686
7691
|
defaultClassNames.disabled
|
|
7687
7692
|
),
|
|
7688
7693
|
hidden: cn$1("invisible", defaultClassNames.hidden),
|
|
@@ -7746,14 +7751,16 @@ function CsCalendarDayButton({
|
|
|
7746
7751
|
"data-range-start": modifiers.range_start,
|
|
7747
7752
|
"data-range-end": modifiers.range_end,
|
|
7748
7753
|
"data-range-middle": modifiers.range_middle,
|
|
7754
|
+
"data-range-middle-start": modifiers.range_middle,
|
|
7755
|
+
"data-range-middle-end": modifiers.range_middle,
|
|
7749
7756
|
className: cn$1(
|
|
7750
|
-
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-
|
|
7751
|
-
"text-(--
|
|
7752
|
-
"data-[selected-single=true]:bg-(--
|
|
7753
|
-
"data-[range-middle=true]:bg-(--
|
|
7754
|
-
"data-[range-start=true]:bg-(--
|
|
7755
|
-
"data-[range-end=true]:bg-(--
|
|
7756
|
-
"data-[range-end=true]:rounded-(--radius
|
|
7757
|
+
"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)",
|
|
7758
|
+
"text-(--calendar-days-default-font) hover:bg-(--calendar-days-hover-bg) hover:text-(--calendar-days-hover-font)",
|
|
7759
|
+
"data-[selected-single=true]:bg-(--calendar-days-current-bg) data-[selected-single=true]:text-(--calendar-days-current-font)",
|
|
7760
|
+
"data-[range-middle=true]:bg-(--calendar-days-selected-bg) data-[range-middle=true]:text-(--calendar-days-selected-font)",
|
|
7761
|
+
"data-[range-start=true]:bg-(--calendar-days-current-bg) data-[range-start=true]:text-(--calendar-days-current-font)",
|
|
7762
|
+
"data-[range-end=true]:bg-(--calendar-days-current-bg) data-[range-end=true]:text-(--calendar-days-current-font)",
|
|
7763
|
+
"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",
|
|
7757
7764
|
defaultClassNames.day,
|
|
7758
7765
|
className
|
|
7759
7766
|
),
|
|
@@ -7767,7 +7774,7 @@ function CsCard({ className, ...props }) {
|
|
|
7767
7774
|
{
|
|
7768
7775
|
"data-slot": "card",
|
|
7769
7776
|
className: cn$1(
|
|
7770
|
-
"bg-(--
|
|
7777
|
+
"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)",
|
|
7771
7778
|
className
|
|
7772
7779
|
),
|
|
7773
7780
|
...props
|
|
@@ -7780,7 +7787,7 @@ function CsCardHeader({ className, ...props }) {
|
|
|
7780
7787
|
{
|
|
7781
7788
|
"data-slot": "card-header",
|
|
7782
7789
|
className: cn$1(
|
|
7783
|
-
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-
|
|
7790
|
+
"@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)",
|
|
7784
7791
|
className
|
|
7785
7792
|
),
|
|
7786
7793
|
...props
|
|
@@ -7794,7 +7801,7 @@ function CsCardTitle({ className, ...props }) {
|
|
|
7794
7801
|
"data-slot": "card-title",
|
|
7795
7802
|
className: cn$1(
|
|
7796
7803
|
"typo-heading-md",
|
|
7797
|
-
"text-(--
|
|
7804
|
+
"text-(--card-container-header-title)",
|
|
7798
7805
|
className
|
|
7799
7806
|
),
|
|
7800
7807
|
...props
|
|
@@ -7806,7 +7813,7 @@ function CsCardDescription({ className, ...props }) {
|
|
|
7806
7813
|
"div",
|
|
7807
7814
|
{
|
|
7808
7815
|
"data-slot": "card-description",
|
|
7809
|
-
className: cn$1("typo-body-sm text-(--
|
|
7816
|
+
className: cn$1("typo-body-sm text-(--card-container-header-description)", className),
|
|
7810
7817
|
...props
|
|
7811
7818
|
}
|
|
7812
7819
|
);
|
|
@@ -7829,7 +7836,7 @@ function CsCardContent({ className, ...props }) {
|
|
|
7829
7836
|
"div",
|
|
7830
7837
|
{
|
|
7831
7838
|
"data-slot": "card-content",
|
|
7832
|
-
className: cn$1("flex flex-col gap-
|
|
7839
|
+
className: cn$1("flex flex-col gap-(--card-container-content-gap)", className),
|
|
7833
7840
|
...props
|
|
7834
7841
|
}
|
|
7835
7842
|
);
|
|
@@ -7839,7 +7846,7 @@ function CsCardFooter({ className, ...props }) {
|
|
|
7839
7846
|
"div",
|
|
7840
7847
|
{
|
|
7841
7848
|
"data-slot": "card-footer",
|
|
7842
|
-
className: cn$1("flex items-center gap-
|
|
7849
|
+
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),
|
|
7843
7850
|
...props
|
|
7844
7851
|
}
|
|
7845
7852
|
);
|
|
@@ -8639,7 +8646,7 @@ function disableUserSelect(dom) {
|
|
|
8639
8646
|
function hasOwn(own, prop) {
|
|
8640
8647
|
return own.hasOwnProperty(prop);
|
|
8641
8648
|
}
|
|
8642
|
-
function noop$
|
|
8649
|
+
function noop$3() {
|
|
8643
8650
|
}
|
|
8644
8651
|
var RADIAN_TO_DEGREE = 180 / Math.PI;
|
|
8645
8652
|
const util$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -8685,7 +8692,7 @@ const util$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
8685
8692
|
merge: merge$1,
|
|
8686
8693
|
mergeAll,
|
|
8687
8694
|
mixin,
|
|
8688
|
-
noop: noop$
|
|
8695
|
+
noop: noop$3,
|
|
8689
8696
|
normalizeCssArray: normalizeCssArray$1,
|
|
8690
8697
|
reduce,
|
|
8691
8698
|
retrieve,
|
|
@@ -11278,9 +11285,9 @@ var Clip = (function() {
|
|
|
11278
11285
|
this._life = opts.life || 1e3;
|
|
11279
11286
|
this._delay = opts.delay || 0;
|
|
11280
11287
|
this.loop = opts.loop || false;
|
|
11281
|
-
this.onframe = opts.onframe || noop$
|
|
11282
|
-
this.ondestroy = opts.ondestroy || noop$
|
|
11283
|
-
this.onrestart = opts.onrestart || noop$
|
|
11288
|
+
this.onframe = opts.onframe || noop$3;
|
|
11289
|
+
this.ondestroy = opts.ondestroy || noop$3;
|
|
11290
|
+
this.onrestart = opts.onrestart || noop$3;
|
|
11284
11291
|
opts.easing && this.setEasing(opts.easing);
|
|
11285
11292
|
}
|
|
11286
11293
|
Clip2.prototype.step = function(globalTime, deltaTime) {
|
|
@@ -12955,9 +12962,9 @@ function isLocalEl(instance, el) {
|
|
|
12955
12962
|
}
|
|
12956
12963
|
var FakeGlobalEvent = /* @__PURE__ */ (function() {
|
|
12957
12964
|
function FakeGlobalEvent2(instance, event) {
|
|
12958
|
-
this.stopPropagation = noop$
|
|
12959
|
-
this.stopImmediatePropagation = noop$
|
|
12960
|
-
this.preventDefault = noop$
|
|
12965
|
+
this.stopPropagation = noop$3;
|
|
12966
|
+
this.stopImmediatePropagation = noop$3;
|
|
12967
|
+
this.preventDefault = noop$3;
|
|
12961
12968
|
this.type = event.type;
|
|
12962
12969
|
this.target = this.currentTarget = instance.dom;
|
|
12963
12970
|
this.pointerType = event.pointerType;
|
|
@@ -28740,7 +28747,7 @@ ecModelMock.eachComponent = function(cond) {
|
|
|
28740
28747
|
};
|
|
28741
28748
|
function mockMethods(target, Clz) {
|
|
28742
28749
|
for (var name_1 in Clz.prototype) {
|
|
28743
|
-
target[name_1] = noop$
|
|
28750
|
+
target[name_1] = noop$3;
|
|
28744
28751
|
}
|
|
28745
28752
|
}
|
|
28746
28753
|
var colorAll = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3", "#9d96f5", "#8378EA", "#96BFFF"];
|
|
@@ -32204,27 +32211,27 @@ registerAction({
|
|
|
32204
32211
|
type: HIGHLIGHT_ACTION_TYPE,
|
|
32205
32212
|
event: HIGHLIGHT_ACTION_TYPE,
|
|
32206
32213
|
update: HIGHLIGHT_ACTION_TYPE
|
|
32207
|
-
}, noop$
|
|
32214
|
+
}, noop$3);
|
|
32208
32215
|
registerAction({
|
|
32209
32216
|
type: DOWNPLAY_ACTION_TYPE,
|
|
32210
32217
|
event: DOWNPLAY_ACTION_TYPE,
|
|
32211
32218
|
update: DOWNPLAY_ACTION_TYPE
|
|
32212
|
-
}, noop$
|
|
32219
|
+
}, noop$3);
|
|
32213
32220
|
registerAction({
|
|
32214
32221
|
type: SELECT_ACTION_TYPE,
|
|
32215
32222
|
event: SELECT_ACTION_TYPE,
|
|
32216
32223
|
update: SELECT_ACTION_TYPE
|
|
32217
|
-
}, noop$
|
|
32224
|
+
}, noop$3);
|
|
32218
32225
|
registerAction({
|
|
32219
32226
|
type: UNSELECT_ACTION_TYPE,
|
|
32220
32227
|
event: UNSELECT_ACTION_TYPE,
|
|
32221
32228
|
update: UNSELECT_ACTION_TYPE
|
|
32222
|
-
}, noop$
|
|
32229
|
+
}, noop$3);
|
|
32223
32230
|
registerAction({
|
|
32224
32231
|
type: TOGGLE_SELECT_ACTION_TYPE,
|
|
32225
32232
|
event: TOGGLE_SELECT_ACTION_TYPE,
|
|
32226
32233
|
update: TOGGLE_SELECT_ACTION_TYPE
|
|
32227
|
-
}, noop$
|
|
32234
|
+
}, noop$3);
|
|
32228
32235
|
registerTheme("light", lightTheme);
|
|
32229
32236
|
registerTheme("dark", theme);
|
|
32230
32237
|
var dataTool = {};
|
|
@@ -38941,7 +38948,7 @@ function createBackgroundVNode(width, height, backgroundColor2, scope) {
|
|
|
38941
38948
|
style: {
|
|
38942
38949
|
fill: backgroundColor2
|
|
38943
38950
|
},
|
|
38944
|
-
dirty: noop$
|
|
38951
|
+
dirty: noop$3,
|
|
38945
38952
|
getBoundingRect: function() {
|
|
38946
38953
|
return { width, height };
|
|
38947
38954
|
}
|
|
@@ -47372,7 +47379,7 @@ registerAction({
|
|
|
47372
47379
|
type: "takeGlobalCursor",
|
|
47373
47380
|
event: "globalCursorTaken",
|
|
47374
47381
|
update: "update"
|
|
47375
|
-
}, noop$
|
|
47382
|
+
}, noop$3);
|
|
47376
47383
|
var RoamController = (
|
|
47377
47384
|
/** @class */
|
|
47378
47385
|
(function(_super) {
|
|
@@ -51623,7 +51630,7 @@ function installTreemapAction(registers) {
|
|
|
51623
51630
|
registers.registerAction({
|
|
51624
51631
|
type: actionTypes[i],
|
|
51625
51632
|
update: "updateView"
|
|
51626
|
-
}, noop$
|
|
51633
|
+
}, noop$3);
|
|
51627
51634
|
}
|
|
51628
51635
|
registers.registerAction({
|
|
51629
51636
|
type: "treemapRootToNode",
|
|
@@ -53158,7 +53165,7 @@ var normalizers = {
|
|
|
53158
53165
|
var index = this.option.categories ? this.option.categoryMap[value] : value;
|
|
53159
53166
|
return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;
|
|
53160
53167
|
},
|
|
53161
|
-
fixed: noop$
|
|
53168
|
+
fixed: noop$3
|
|
53162
53169
|
};
|
|
53163
53170
|
function littleThan(close, a, b) {
|
|
53164
53171
|
return close ? a <= b : a < b;
|
|
@@ -55832,12 +55839,12 @@ function install$F(registers) {
|
|
|
55832
55839
|
type: "focusNodeAdjacency",
|
|
55833
55840
|
event: "focusNodeAdjacency",
|
|
55834
55841
|
update: "series:focusNodeAdjacency"
|
|
55835
|
-
}, noop$
|
|
55842
|
+
}, noop$3);
|
|
55836
55843
|
registers.registerAction({
|
|
55837
55844
|
type: "unfocusNodeAdjacency",
|
|
55838
55845
|
event: "unfocusNodeAdjacency",
|
|
55839
55846
|
update: "series:unfocusNodeAdjacency"
|
|
55840
|
-
}, noop$
|
|
55847
|
+
}, noop$3);
|
|
55841
55848
|
registers.registerAction(actionInfo$1, function(payload, ecModel, api) {
|
|
55842
55849
|
ecModel.eachComponent({
|
|
55843
55850
|
mainType: "series",
|
|
@@ -72636,12 +72643,12 @@ function install$i(registers) {
|
|
|
72636
72643
|
type: "showTip",
|
|
72637
72644
|
event: "showTip",
|
|
72638
72645
|
update: "tooltip:manuallyShowTip"
|
|
72639
|
-
}, noop$
|
|
72646
|
+
}, noop$3);
|
|
72640
72647
|
registers.registerAction({
|
|
72641
72648
|
type: "hideTip",
|
|
72642
72649
|
event: "hideTip",
|
|
72643
72650
|
update: "tooltip:manuallyHideTip"
|
|
72644
|
-
}, noop$
|
|
72651
|
+
}, noop$3);
|
|
72645
72652
|
}
|
|
72646
72653
|
var DEFAULT_TOOLBOX_BTNS = ["rect", "polygon", "keep", "clear"];
|
|
72647
72654
|
function brushPreprocessor(option, isNew) {
|
|
@@ -73281,12 +73288,12 @@ function install$h(registers) {
|
|
|
73281
73288
|
type: "brushSelect",
|
|
73282
73289
|
event: "brushSelected",
|
|
73283
73290
|
update: "none"
|
|
73284
|
-
}, noop$
|
|
73291
|
+
}, noop$3);
|
|
73285
73292
|
registers.registerAction({
|
|
73286
73293
|
type: "brushEnd",
|
|
73287
73294
|
event: "brushEnd",
|
|
73288
73295
|
update: "none"
|
|
73289
|
-
}, noop$
|
|
73296
|
+
}, noop$3);
|
|
73290
73297
|
registerFeature("brush", BrushFeature);
|
|
73291
73298
|
}
|
|
73292
73299
|
var TitleModel = (
|
|
@@ -82698,10 +82705,10 @@ const getFillerColor = () => {
|
|
|
82698
82705
|
const fillerOpacity = getCssVariable("--opacity-state-muted");
|
|
82699
82706
|
return addOpacityToColor(fillerColor, convertOpacity(fillerOpacity));
|
|
82700
82707
|
};
|
|
82701
|
-
const tooltipBaseStyles = "typo-body-xs z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-(--radius
|
|
82708
|
+
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";
|
|
82702
82709
|
const tooltipVariants = {
|
|
82703
|
-
solid: "bg-(--
|
|
82704
|
-
outline: "bg-(--
|
|
82710
|
+
solid: "bg-(--tooltip-solid-bg) boxshadow-sm",
|
|
82711
|
+
outline: "bg-(--tooltip-outline-bg) border-(--tooltip-outline-border) border-(length:--tooltip-outline-border-width)"
|
|
82705
82712
|
};
|
|
82706
82713
|
const csTooltipContentVariants = cva(
|
|
82707
82714
|
`${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`,
|
|
@@ -82768,7 +82775,7 @@ const CsChartBaseOptions = {
|
|
|
82768
82775
|
itemHeight: 12,
|
|
82769
82776
|
itemGap: 12,
|
|
82770
82777
|
textStyle: {
|
|
82771
|
-
color: "var(--
|
|
82778
|
+
color: "var(--chart-data-label-font)"
|
|
82772
82779
|
}
|
|
82773
82780
|
}
|
|
82774
82781
|
};
|
|
@@ -82788,36 +82795,36 @@ const CsChartAxisOptions = {
|
|
|
82788
82795
|
bottom: 40,
|
|
82789
82796
|
left: 10,
|
|
82790
82797
|
right: 10,
|
|
82791
|
-
borderColor: "var(--
|
|
82798
|
+
borderColor: "var(--chart-wrapper-grid-color)",
|
|
82792
82799
|
show: false
|
|
82793
82800
|
},
|
|
82794
82801
|
xAxis: {
|
|
82795
82802
|
axisLine: {
|
|
82796
82803
|
lineStyle: {
|
|
82797
|
-
color: "var(--
|
|
82804
|
+
color: "var(--chart-wrapper-axis-color)"
|
|
82798
82805
|
}
|
|
82799
82806
|
},
|
|
82800
82807
|
axisLabel: {
|
|
82801
|
-
color: "var(--
|
|
82808
|
+
color: "var(--chart-wrapper-label)"
|
|
82802
82809
|
},
|
|
82803
82810
|
splitLine: {
|
|
82804
82811
|
lineStyle: {
|
|
82805
|
-
color: "var(--
|
|
82812
|
+
color: "var(--chart-wrapper-grid-color)"
|
|
82806
82813
|
}
|
|
82807
82814
|
}
|
|
82808
82815
|
},
|
|
82809
82816
|
yAxis: {
|
|
82810
82817
|
axisLine: {
|
|
82811
82818
|
lineStyle: {
|
|
82812
|
-
color: "var(--
|
|
82819
|
+
color: "var(--chart-wrapper-axis-color)"
|
|
82813
82820
|
}
|
|
82814
82821
|
},
|
|
82815
82822
|
axisLabel: {
|
|
82816
|
-
color: "var(--
|
|
82823
|
+
color: "var(--chart-wrapper-label)"
|
|
82817
82824
|
},
|
|
82818
82825
|
splitLine: {
|
|
82819
82826
|
lineStyle: {
|
|
82820
|
-
color: "var(--
|
|
82827
|
+
color: "var(--chart-wrapper-grid-color)"
|
|
82821
82828
|
}
|
|
82822
82829
|
}
|
|
82823
82830
|
}
|
|
@@ -82837,17 +82844,17 @@ const getCsChartZoomOptions = () => ({
|
|
|
82837
82844
|
end: 100,
|
|
82838
82845
|
bottom: 20,
|
|
82839
82846
|
height: 24,
|
|
82840
|
-
borderColor: "var(--
|
|
82841
|
-
backgroundColor: "var(--
|
|
82847
|
+
borderColor: "var(--chart-range-slider-track-border)",
|
|
82848
|
+
backgroundColor: "var(--chart-range-slider-track-bg)",
|
|
82842
82849
|
fillerColor: getFillerColor(),
|
|
82843
82850
|
handleSize: "100%",
|
|
82844
82851
|
handleStyle: {
|
|
82845
|
-
color: "var(--
|
|
82846
|
-
borderColor: "var(--
|
|
82852
|
+
color: "var(--chart-range-slider-thumb-handle)",
|
|
82853
|
+
borderColor: "var(--chart-range-slider-thumb-handle-border)",
|
|
82847
82854
|
borderWidth: 1
|
|
82848
82855
|
},
|
|
82849
82856
|
moveHandleStyle: {
|
|
82850
|
-
color: "var(--
|
|
82857
|
+
color: "var(--chart-range-slider-thumb-bar)"
|
|
82851
82858
|
}
|
|
82852
82859
|
}
|
|
82853
82860
|
]
|
|
@@ -82927,18 +82934,18 @@ function CsPieChart(props) {
|
|
|
82927
82934
|
);
|
|
82928
82935
|
}
|
|
82929
82936
|
const csCheckboxVariants = cva(
|
|
82930
|
-
"peer focus-visible:ring-0 size-(--
|
|
82937
|
+
"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)",
|
|
82931
82938
|
{
|
|
82932
82939
|
variants: {
|
|
82933
82940
|
variant: {
|
|
82934
82941
|
solid: [
|
|
82935
|
-
"bg-(--
|
|
82936
|
-
"data-[state=checked]:bg-(--
|
|
82942
|
+
"bg-(--checkbox-solid-default-bg) hover:bg-(--checkbox-solid-hover-bg)",
|
|
82943
|
+
"data-[state=checked]:bg-(--checkbox-solid-checked-bg) data-[state=checked]:[&_svg]:text-(--checkbox-solid-checked-icon)"
|
|
82937
82944
|
].join(" "),
|
|
82938
82945
|
outline: [
|
|
82939
|
-
"bg-(--
|
|
82940
|
-
"hover:bg-(--
|
|
82941
|
-
"data-[state=checked]:bg-(--
|
|
82946
|
+
"bg-(--checkbox-outline-default-bg) border-(length:--checkbox-outline-border-width) border-(--checkbox-outline-default-border)",
|
|
82947
|
+
"hover:bg-(--checkbox-outline-hover-bg) hover:border-(--checkbox-outline-hover-border)",
|
|
82948
|
+
"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)"
|
|
82942
82949
|
].join(" ")
|
|
82943
82950
|
}
|
|
82944
82951
|
},
|
|
@@ -83006,8 +83013,8 @@ function CsScrollBar({
|
|
|
83006
83013
|
orientation,
|
|
83007
83014
|
className: cn$1(
|
|
83008
83015
|
"flex touch-none p-px transition-colors select-none",
|
|
83009
|
-
orientation === "vertical" && "h-full w-(--
|
|
83010
|
-
orientation === "horizontal" && "h-(--
|
|
83016
|
+
orientation === "vertical" && "h-full w-(--scrollbar-vertical-width) border-l border-l-transparent",
|
|
83017
|
+
orientation === "horizontal" && "h-(--scrollbar-horizontal-height) flex-col border-t border-t-transparent",
|
|
83011
83018
|
className
|
|
83012
83019
|
),
|
|
83013
83020
|
...props,
|
|
@@ -83015,19 +83022,19 @@ function CsScrollBar({
|
|
|
83015
83022
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
83016
83023
|
{
|
|
83017
83024
|
"data-slot": "scroll-area-thumb",
|
|
83018
|
-
className: cn$1("bg-(--
|
|
83025
|
+
className: cn$1("bg-(--scrollbar-fill) relative flex-1 rounded-(--scrollbar-radius)", thumbClassName)
|
|
83019
83026
|
}
|
|
83020
83027
|
)
|
|
83021
83028
|
}
|
|
83022
83029
|
);
|
|
83023
83030
|
}
|
|
83024
83031
|
const csCodeBlockVariants = cva(
|
|
83025
|
-
"
|
|
83032
|
+
"text-(--code-block-solid-font)",
|
|
83026
83033
|
{
|
|
83027
83034
|
variants: {
|
|
83028
83035
|
variant: {
|
|
83029
|
-
solid: "bg-(--
|
|
83030
|
-
outline: "bg-(--
|
|
83036
|
+
solid: "bg-(--code-block-solid-bg) rounded-(--code-block-solid-radius)",
|
|
83037
|
+
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)"
|
|
83031
83038
|
}
|
|
83032
83039
|
},
|
|
83033
83040
|
defaultVariants: {
|
|
@@ -83037,15 +83044,16 @@ const csCodeBlockVariants = cva(
|
|
|
83037
83044
|
);
|
|
83038
83045
|
function CsCodeBlock({
|
|
83039
83046
|
className,
|
|
83040
|
-
variant,
|
|
83047
|
+
variant = "solid",
|
|
83041
83048
|
...props
|
|
83042
83049
|
}) {
|
|
83050
|
+
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)";
|
|
83043
83051
|
return /* @__PURE__ */ jsxs(CsScrollArea, { className: cn$1("h-full max-h-48", csCodeBlockVariants({ variant }), className), children: [
|
|
83044
83052
|
/* @__PURE__ */ jsx(
|
|
83045
83053
|
"pre",
|
|
83046
83054
|
{
|
|
83047
83055
|
"data-slot": "code-block",
|
|
83048
|
-
className: "typo-productive-code-sm
|
|
83056
|
+
className: cn$1("typo-productive-code-sm whitespace-pre-wrap", paddingClass),
|
|
83049
83057
|
...props
|
|
83050
83058
|
}
|
|
83051
83059
|
),
|
|
@@ -83053,12 +83061,12 @@ function CsCodeBlock({
|
|
|
83053
83061
|
] });
|
|
83054
83062
|
}
|
|
83055
83063
|
const csPopoverVariants = cva(
|
|
83056
|
-
"z-50 w-72 rounded-(--radius
|
|
83064
|
+
"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",
|
|
83057
83065
|
{
|
|
83058
83066
|
variants: {
|
|
83059
83067
|
variant: {
|
|
83060
|
-
solid: "bg-(--
|
|
83061
|
-
outline: "bg-(--
|
|
83068
|
+
solid: "bg-(--popover-solid-bg) boxshadow-md",
|
|
83069
|
+
outline: "bg-(--popover-outline-bg) border-(--popover-outline-border) border-(length:--popover-outline-border-width)"
|
|
83062
83070
|
}
|
|
83063
83071
|
},
|
|
83064
83072
|
defaultVariants: {
|
|
@@ -83128,7 +83136,7 @@ function CsDialogOverlay({
|
|
|
83128
83136
|
{
|
|
83129
83137
|
"data-slot": "dialog-overlay",
|
|
83130
83138
|
className: cn$1(
|
|
83131
|
-
"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-(--
|
|
83139
|
+
"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)",
|
|
83132
83140
|
className
|
|
83133
83141
|
),
|
|
83134
83142
|
...props
|
|
@@ -83148,7 +83156,7 @@ function CsDialogContent({
|
|
|
83148
83156
|
{
|
|
83149
83157
|
"data-slot": "dialog-content",
|
|
83150
83158
|
className: cn$1(
|
|
83151
|
-
"bg-(--
|
|
83159
|
+
"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",
|
|
83152
83160
|
className
|
|
83153
83161
|
),
|
|
83154
83162
|
...props,
|
|
@@ -83175,7 +83183,7 @@ function CsDialogHeader({ className, ...props }) {
|
|
|
83175
83183
|
"div",
|
|
83176
83184
|
{
|
|
83177
83185
|
"data-slot": "dialog-header",
|
|
83178
|
-
className: cn$1("flex flex-col gap-
|
|
83186
|
+
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) mobile:text-center text-left", className),
|
|
83179
83187
|
...props
|
|
83180
83188
|
}
|
|
83181
83189
|
);
|
|
@@ -83186,7 +83194,7 @@ function CsDialogFooter({ className, ...props }) {
|
|
|
83186
83194
|
{
|
|
83187
83195
|
"data-slot": "dialog-footer",
|
|
83188
83196
|
className: cn$1(
|
|
83189
|
-
"flex flex-col-reverse gap-
|
|
83197
|
+
"flex flex-col-reverse gap-(--dialog-container-footer-gap) mobile:flex-row mobile:justify-end",
|
|
83190
83198
|
className
|
|
83191
83199
|
),
|
|
83192
83200
|
...props
|
|
@@ -83201,7 +83209,7 @@ function CsDialogTitle({
|
|
|
83201
83209
|
DialogPrimitive.Title,
|
|
83202
83210
|
{
|
|
83203
83211
|
"data-slot": "dialog-title",
|
|
83204
|
-
className: cn$1("typo-heading-sm text-(--
|
|
83212
|
+
className: cn$1("typo-heading-sm text-(--dialog-container-header-title)", className),
|
|
83205
83213
|
...props
|
|
83206
83214
|
}
|
|
83207
83215
|
);
|
|
@@ -83214,7 +83222,7 @@ function CsDialogDescription({
|
|
|
83214
83222
|
DialogPrimitive.Description,
|
|
83215
83223
|
{
|
|
83216
83224
|
"data-slot": "dialog-description",
|
|
83217
|
-
className: cn$1("typo-body-sm text-(--
|
|
83225
|
+
className: cn$1("typo-body-sm text-(--dialog-container-header-description)", className),
|
|
83218
83226
|
...props
|
|
83219
83227
|
}
|
|
83220
83228
|
);
|
|
@@ -83832,7 +83840,7 @@ function useSnapPoints({ activeSnapPointProp, setActiveSnapPointProp, snapPoints
|
|
|
83832
83840
|
snapPointsOffset
|
|
83833
83841
|
};
|
|
83834
83842
|
}
|
|
83835
|
-
const noop$
|
|
83843
|
+
const noop$2 = () => () => {
|
|
83836
83844
|
};
|
|
83837
83845
|
function useScaleBackground() {
|
|
83838
83846
|
const { direction, isOpen, shouldScaleBackground, setBackgroundColorOnScale, noBodyStyles } = useDrawerContext();
|
|
@@ -83848,7 +83856,7 @@ function useScaleBackground() {
|
|
|
83848
83856
|
if (!wrapper) return;
|
|
83849
83857
|
chain(setBackgroundColorOnScale && !noBodyStyles ? assignStyle(document.body, {
|
|
83850
83858
|
background: "black"
|
|
83851
|
-
}) : noop$
|
|
83859
|
+
}) : noop$2, assignStyle(wrapper, {
|
|
83852
83860
|
transformOrigin: isVertical(direction) ? "top" : "left",
|
|
83853
83861
|
transitionProperty: "transform, border-radius",
|
|
83854
83862
|
transitionDuration: `${TRANSITIONS.DURATION}s`,
|
|
@@ -84668,6 +84676,31 @@ const Handle = /* @__PURE__ */ React__default.forwardRef(function({ preventCycle
|
|
|
84668
84676
|
}, children));
|
|
84669
84677
|
});
|
|
84670
84678
|
Handle.displayName = "Drawer.Handle";
|
|
84679
|
+
function NestedRoot({ onDrag, onOpenChange, open: nestedIsOpen, ...rest }) {
|
|
84680
|
+
const { onNestedDrag, onNestedOpenChange, onNestedRelease } = useDrawerContext();
|
|
84681
|
+
if (!onNestedDrag) {
|
|
84682
|
+
throw new Error("Drawer.NestedRoot must be placed in another drawer");
|
|
84683
|
+
}
|
|
84684
|
+
return /* @__PURE__ */ React__default.createElement(Root, {
|
|
84685
|
+
nested: true,
|
|
84686
|
+
open: nestedIsOpen,
|
|
84687
|
+
onClose: () => {
|
|
84688
|
+
onNestedOpenChange(false);
|
|
84689
|
+
},
|
|
84690
|
+
onDrag: (e2, p) => {
|
|
84691
|
+
onNestedDrag(e2, p);
|
|
84692
|
+
onDrag == null ? void 0 : onDrag(e2, p);
|
|
84693
|
+
},
|
|
84694
|
+
onOpenChange: (o) => {
|
|
84695
|
+
if (o) {
|
|
84696
|
+
onNestedOpenChange(o);
|
|
84697
|
+
}
|
|
84698
|
+
onOpenChange == null ? void 0 : onOpenChange(o);
|
|
84699
|
+
},
|
|
84700
|
+
onRelease: onNestedRelease,
|
|
84701
|
+
...rest
|
|
84702
|
+
});
|
|
84703
|
+
}
|
|
84671
84704
|
function Portal(props) {
|
|
84672
84705
|
const context = useDrawerContext();
|
|
84673
84706
|
const { container = context.container, ...portalProps } = props;
|
|
@@ -84678,10 +84711,12 @@ function Portal(props) {
|
|
|
84678
84711
|
}
|
|
84679
84712
|
const Drawer = {
|
|
84680
84713
|
Root,
|
|
84714
|
+
NestedRoot,
|
|
84681
84715
|
Content,
|
|
84682
84716
|
Overlay,
|
|
84683
84717
|
Trigger: DialogPrimitive.Trigger,
|
|
84684
84718
|
Portal,
|
|
84719
|
+
Handle,
|
|
84685
84720
|
Close: DialogPrimitive.Close,
|
|
84686
84721
|
Title: DialogPrimitive.Title,
|
|
84687
84722
|
Description: DialogPrimitive.Description
|
|
@@ -84735,11 +84770,11 @@ function CsDrawerContent({
|
|
|
84735
84770
|
"data-slot": "drawer-content",
|
|
84736
84771
|
className: cn$1(
|
|
84737
84772
|
"group/drawer-content fixed z-50 flex h-auto flex-col",
|
|
84738
|
-
"bg-(--
|
|
84739
|
-
"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
|
|
84740
|
-
"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
|
|
84741
|
-
"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
|
|
84742
|
-
"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
|
|
84773
|
+
"bg-(--drawer-common-bg) border-(--drawer-common-border)",
|
|
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-(--drawer-common-radius) data-[vaul-drawer-direction=top]:border-b-[length:--drawer-common-border-width]",
|
|
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-(--drawer-common-radius) data-[vaul-drawer-direction=bottom]:border-t-[length:--drawer-common-border-width]",
|
|
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:--drawer-common-border-width] data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
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:--drawer-common-border-width] data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
84743
84778
|
className
|
|
84744
84779
|
),
|
|
84745
84780
|
...props,
|
|
@@ -84757,7 +84792,7 @@ function CsDrawerHeader({ className, ...props }) {
|
|
|
84757
84792
|
{
|
|
84758
84793
|
"data-slot": "drawer-header",
|
|
84759
84794
|
className: cn$1(
|
|
84760
|
-
"flex flex-col gap-
|
|
84795
|
+
"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",
|
|
84761
84796
|
className
|
|
84762
84797
|
),
|
|
84763
84798
|
...props
|
|
@@ -84769,7 +84804,7 @@ function CsDrawerFooter({ className, ...props }) {
|
|
|
84769
84804
|
"div",
|
|
84770
84805
|
{
|
|
84771
84806
|
"data-slot": "drawer-footer",
|
|
84772
|
-
className: cn$1("mt-auto flex flex-col gap-
|
|
84807
|
+
className: cn$1("mt-auto flex flex-col gap-(--drawer-container-footer-gap) px-(--drawer-common-padding-x) py-(--drawer-common-padding-y)", className),
|
|
84773
84808
|
...props
|
|
84774
84809
|
}
|
|
84775
84810
|
);
|
|
@@ -84782,7 +84817,7 @@ function CsDrawerTitle({
|
|
|
84782
84817
|
Drawer.Title,
|
|
84783
84818
|
{
|
|
84784
84819
|
"data-slot": "drawer-title",
|
|
84785
|
-
className: cn$1("text-(--
|
|
84820
|
+
className: cn$1("text-(--drawer-container-header-title) typo-heading-sm", className),
|
|
84786
84821
|
...props
|
|
84787
84822
|
}
|
|
84788
84823
|
);
|
|
@@ -84795,16 +84830,16 @@ function CsDrawerDescription({
|
|
|
84795
84830
|
Drawer.Description,
|
|
84796
84831
|
{
|
|
84797
84832
|
"data-slot": "drawer-description",
|
|
84798
|
-
className: cn$1("text-(--
|
|
84833
|
+
className: cn$1("text-(--drawer-container-header-description) typo-body-sm", className),
|
|
84799
84834
|
...props
|
|
84800
84835
|
}
|
|
84801
84836
|
);
|
|
84802
84837
|
}
|
|
84803
84838
|
const csDropdownMenuItemCommonClassName = [
|
|
84804
|
-
"flex cursor-default items-center gap-
|
|
84805
|
-
"
|
|
84806
|
-
"typo-body-sm text-(--
|
|
84807
|
-
"[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
84839
|
+
"flex cursor-default items-center gap-(--dropdown-item-icon-gap) outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
84840
|
+
"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)",
|
|
84841
|
+
"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)",
|
|
84842
|
+
"[&_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)"
|
|
84808
84843
|
].join(" ");
|
|
84809
84844
|
function CsDropdownMenu({
|
|
84810
84845
|
...props
|
|
@@ -84839,7 +84874,7 @@ function CsDropdownMenuContent({
|
|
|
84839
84874
|
sideOffset,
|
|
84840
84875
|
className: cn$1(
|
|
84841
84876
|
"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",
|
|
84842
|
-
"rounded-(--radius
|
|
84877
|
+
"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",
|
|
84843
84878
|
className
|
|
84844
84879
|
),
|
|
84845
84880
|
...props
|
|
@@ -84865,7 +84900,7 @@ function CsDropdownMenuItem({
|
|
|
84865
84900
|
"data-variant": variant,
|
|
84866
84901
|
className: cn$1(
|
|
84867
84902
|
csDropdownMenuItemCommonClassName,
|
|
84868
|
-
"relative data-
|
|
84903
|
+
"relative data-disabled:pointer-events-none",
|
|
84869
84904
|
className
|
|
84870
84905
|
),
|
|
84871
84906
|
...props
|
|
@@ -84884,13 +84919,13 @@ function CsDropdownMenuCheckboxItem({
|
|
|
84884
84919
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
84885
84920
|
className: cn$1(
|
|
84886
84921
|
csDropdownMenuItemCommonClassName,
|
|
84887
|
-
"data-
|
|
84922
|
+
"data-disabled:pointer-events-none",
|
|
84888
84923
|
className
|
|
84889
84924
|
),
|
|
84890
84925
|
checked,
|
|
84891
84926
|
...props,
|
|
84892
84927
|
children: [
|
|
84893
|
-
checked ? /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, {}) }) : /* @__PURE__ */ jsx("div", { className: "size-(--icon-size
|
|
84928
|
+
checked ? /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, {}) }) : /* @__PURE__ */ jsx("div", { className: "size-(--dropdown-item-icon-icon-size)" }),
|
|
84894
84929
|
children
|
|
84895
84930
|
]
|
|
84896
84931
|
}
|
|
@@ -84918,13 +84953,13 @@ function CsDropdownMenuRadioItem({
|
|
|
84918
84953
|
"data-slot": "dropdown-menu-radio-item",
|
|
84919
84954
|
className: cn$1(
|
|
84920
84955
|
csDropdownMenuItemCommonClassName,
|
|
84921
|
-
"group data-
|
|
84956
|
+
"group data-disabled:pointer-events-none",
|
|
84922
84957
|
className
|
|
84923
84958
|
),
|
|
84924
84959
|
...props,
|
|
84925
84960
|
children: [
|
|
84926
84961
|
/* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle$1, { className: "fill-current" }) }),
|
|
84927
|
-
/* @__PURE__ */ jsx("div", { className: "size-(--icon-size
|
|
84962
|
+
/* @__PURE__ */ jsx("div", { className: "size-(--dropdown-item-icon-icon-size) group-data-[state=checked]:hidden" }),
|
|
84928
84963
|
children
|
|
84929
84964
|
]
|
|
84930
84965
|
}
|
|
@@ -84942,7 +84977,7 @@ function CsDropdownMenuLabel({
|
|
|
84942
84977
|
"data-inset": inset,
|
|
84943
84978
|
className: cn$1(
|
|
84944
84979
|
csDropdownMenuItemCommonClassName,
|
|
84945
|
-
"typo-productive-label-md text-(--
|
|
84980
|
+
"typo-productive-label-md text-(--dropdown-item-header-font)",
|
|
84946
84981
|
className
|
|
84947
84982
|
),
|
|
84948
84983
|
...props
|
|
@@ -84957,7 +84992,7 @@ function CsDropdownMenuSeparator({
|
|
|
84957
84992
|
DropdownMenuPrimitive.Separator,
|
|
84958
84993
|
{
|
|
84959
84994
|
"data-slot": "dropdown-menu-separator",
|
|
84960
|
-
className: cn$1("bg-(--
|
|
84995
|
+
className: cn$1("bg-(--dropdown-item-common-border) w-full h-(--dropdown-item-common-border-width)", className),
|
|
84961
84996
|
...props
|
|
84962
84997
|
}
|
|
84963
84998
|
);
|
|
@@ -84971,7 +85006,7 @@ function CsDropdownMenuShortcut({
|
|
|
84971
85006
|
{
|
|
84972
85007
|
"data-slot": "dropdown-menu-shortcut",
|
|
84973
85008
|
className: cn$1(
|
|
84974
|
-
"text-(--icon-
|
|
85009
|
+
"text-(--dropdown-item-icon-default-icon) ml-auto typo-body-xs",
|
|
84975
85010
|
className
|
|
84976
85011
|
),
|
|
84977
85012
|
...props
|
|
@@ -84996,9 +85031,7 @@ function CsDropdownMenuSubTrigger({
|
|
|
84996
85031
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
84997
85032
|
"data-inset": inset,
|
|
84998
85033
|
className: cn$1(
|
|
84999
|
-
|
|
85000
|
-
"data-[state=open]:text-(--font-color-primary-default) data-[state=open]:bg-(--color-bg-surface-muted)",
|
|
85001
|
-
"[&_svg]:ml-auto",
|
|
85034
|
+
"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)",
|
|
85002
85035
|
className
|
|
85003
85036
|
),
|
|
85004
85037
|
...props,
|
|
@@ -85018,7 +85051,7 @@ function CsDropdownMenuSubContent({
|
|
|
85018
85051
|
{
|
|
85019
85052
|
"data-slot": "dropdown-menu-sub-content",
|
|
85020
85053
|
className: cn$1(
|
|
85021
|
-
"
|
|
85054
|
+
"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)",
|
|
85022
85055
|
className
|
|
85023
85056
|
),
|
|
85024
85057
|
...props
|
|
@@ -87456,6 +87489,12 @@ var FILE_INVALID_TYPE = "file-invalid-type";
|
|
|
87456
87489
|
var FILE_TOO_LARGE = "file-too-large";
|
|
87457
87490
|
var FILE_TOO_SMALL = "file-too-small";
|
|
87458
87491
|
var TOO_MANY_FILES = "too-many-files";
|
|
87492
|
+
var ErrorCode = {
|
|
87493
|
+
FileInvalidType: FILE_INVALID_TYPE,
|
|
87494
|
+
FileTooLarge: FILE_TOO_LARGE,
|
|
87495
|
+
FileTooSmall: FILE_TOO_SMALL,
|
|
87496
|
+
TooManyFiles: TOO_MANY_FILES
|
|
87497
|
+
};
|
|
87459
87498
|
var getInvalidTypeRejectionErr = function getInvalidTypeRejectionErr2() {
|
|
87460
87499
|
var accept = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
87461
87500
|
var acceptArr = accept.split(",");
|
|
@@ -87941,10 +87980,10 @@ function useDropzone() {
|
|
|
87941
87980
|
return pickerOptionsFromAccept(accept);
|
|
87942
87981
|
}, [accept]);
|
|
87943
87982
|
var onFileDialogOpenCb = useMemo(function() {
|
|
87944
|
-
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop;
|
|
87983
|
+
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop$1;
|
|
87945
87984
|
}, [onFileDialogOpen]);
|
|
87946
87985
|
var onFileDialogCancelCb = useMemo(function() {
|
|
87947
|
-
return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop;
|
|
87986
|
+
return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop$1;
|
|
87948
87987
|
}, [onFileDialogCancel]);
|
|
87949
87988
|
var rootRef = useRef(null);
|
|
87950
87989
|
var inputRef = useRef(null);
|
|
@@ -88329,7 +88368,7 @@ function reducer(state, action) {
|
|
|
88329
88368
|
return state;
|
|
88330
88369
|
}
|
|
88331
88370
|
}
|
|
88332
|
-
function noop() {
|
|
88371
|
+
function noop$1() {
|
|
88333
88372
|
}
|
|
88334
88373
|
const renderBytes = (bytes) => {
|
|
88335
88374
|
const units = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
@@ -88383,8 +88422,8 @@ const CsDropzone = ({
|
|
|
88383
88422
|
{
|
|
88384
88423
|
className: cn$1(
|
|
88385
88424
|
"relative h-auto w-full flex-col overflow-hidden border-dashed",
|
|
88386
|
-
"rounded-(--radius
|
|
88387
|
-
"bg-(--
|
|
88425
|
+
"rounded-(--dropzone-common-radius) px-(--dropzone-common-padding-x) py-(--dropzone-common-padding-y) gap-(--dropzone-common-gap)",
|
|
88426
|
+
"bg-(--dropzone-common-bg) hover:bg-(--dropzone-common-bg) border-(--dropzone-common-border) border-(length:--dropzone-common-border-width)",
|
|
88388
88427
|
isDragActive && "outline-none border-solid",
|
|
88389
88428
|
className
|
|
88390
88429
|
),
|
|
@@ -88421,12 +88460,12 @@ const CsDropzoneContent = ({
|
|
|
88421
88460
|
if (children) {
|
|
88422
88461
|
return children;
|
|
88423
88462
|
}
|
|
88424
|
-
return /* @__PURE__ */ jsxs("div", { className: cn$1("flex flex-col items-center justify-center gap-
|
|
88425
|
-
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center bg-(--
|
|
88426
|
-
/* @__PURE__ */ jsx("p", { className: "w-full truncate typo-body-sm text-(--
|
|
88463
|
+
return /* @__PURE__ */ jsxs("div", { className: cn$1("flex flex-col items-center justify-center gap-(--dropzone-container-content-gap)", className), children: [
|
|
88464
|
+
/* @__PURE__ */ 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__ */ jsx(Upload, { size: 16 }) }),
|
|
88465
|
+
/* @__PURE__ */ jsx("p", { className: "w-full truncate typo-body-sm text-(--dropzone-container-content-title)", children: src.length > maxLabelItems ? `${new Intl.ListFormat("en").format(
|
|
88427
88466
|
src.slice(0, maxLabelItems).map((file) => file.name)
|
|
88428
88467
|
)} and ${src.length - maxLabelItems} more` : new Intl.ListFormat("en").format(src.map((file) => file.name)) }),
|
|
88429
|
-
/* @__PURE__ */ jsx("p", { className: "w-full text-wrap typo-body-xs text-(--
|
|
88468
|
+
/* @__PURE__ */ jsx("p", { className: "w-full text-wrap typo-body-xs text-(--dropzone-container-content-description)", children: "Drag and drop or click to replace" })
|
|
88430
88469
|
] });
|
|
88431
88470
|
};
|
|
88432
88471
|
const CsDropzoneEmptyState = ({
|
|
@@ -88452,14 +88491,14 @@ const CsDropzoneEmptyState = ({
|
|
|
88452
88491
|
} else if (maxSize) {
|
|
88453
88492
|
caption += ` less than ${renderBytes(maxSize)}`;
|
|
88454
88493
|
}
|
|
88455
|
-
return /* @__PURE__ */ jsxs("div", { className: cn$1("flex flex-col items-center justify-center gap-
|
|
88456
|
-
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center bg-(--
|
|
88457
|
-
/* @__PURE__ */ jsxs("p", { className: "w-full truncate text-wrap typo-body-sm text-(--
|
|
88494
|
+
return /* @__PURE__ */ jsxs("div", { className: cn$1("flex flex-col items-center justify-center gap-(--dropzone-container-content-gap)", className), children: [
|
|
88495
|
+
/* @__PURE__ */ 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__ */ jsx(Upload, { size: 16 }) }),
|
|
88496
|
+
/* @__PURE__ */ jsxs("p", { className: "w-full truncate text-wrap typo-body-sm text-(--dropzone-container-content-title)", children: [
|
|
88458
88497
|
"Upload ",
|
|
88459
88498
|
maxFiles === 1 ? "a file" : "files"
|
|
88460
88499
|
] }),
|
|
88461
|
-
/* @__PURE__ */ jsx("p", { className: "w-full truncate text-wrap typo-body-xs text-(--
|
|
88462
|
-
caption && /* @__PURE__ */ jsxs("p", { className: "text-wrap typo-body-xs text-(--
|
|
88500
|
+
/* @__PURE__ */ jsx("p", { className: "w-full truncate text-wrap typo-body-xs text-(--dropzone-container-content-description)", children: "Drag and drop or click to upload" }),
|
|
88501
|
+
caption && /* @__PURE__ */ jsxs("p", { className: "text-wrap typo-body-xs text-(--dropzone-container-content-description)", children: [
|
|
88463
88502
|
caption,
|
|
88464
88503
|
"."
|
|
88465
88504
|
] })
|
|
@@ -88472,7 +88511,7 @@ function CsEmpty({ className, ...props }) {
|
|
|
88472
88511
|
"data-slot": "empty",
|
|
88473
88512
|
className: cn$1(
|
|
88474
88513
|
"flex min-w-0 flex-1 flex-col items-center justify-center text-center text-balance",
|
|
88475
|
-
"gap-(--
|
|
88514
|
+
"gap-(--empty-common-gap) px-(--empty-common-padding-x) py-(--empty-common-padding-y) rounded-(--empty-common-radius)",
|
|
88476
88515
|
className
|
|
88477
88516
|
),
|
|
88478
88517
|
...props
|
|
@@ -88486,7 +88525,7 @@ function CsEmptyHeader({ className, ...props }) {
|
|
|
88486
88525
|
"data-slot": "empty-header",
|
|
88487
88526
|
className: cn$1(
|
|
88488
88527
|
"flex max-w-sm flex-col items-center text-center",
|
|
88489
|
-
"gap-(--
|
|
88528
|
+
"gap-(--empty-container-content-gap)",
|
|
88490
88529
|
className
|
|
88491
88530
|
),
|
|
88492
88531
|
...props
|
|
@@ -88499,7 +88538,7 @@ const csEmptyMediaVariants = cva(
|
|
|
88499
88538
|
variants: {
|
|
88500
88539
|
variant: {
|
|
88501
88540
|
default: "bg-transparent",
|
|
88502
|
-
icon: "flex size-10 shrink-0 items-center justify-center [&_svg:not([class*='size-'])]:size-6 bg-(--
|
|
88541
|
+
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)"
|
|
88503
88542
|
}
|
|
88504
88543
|
},
|
|
88505
88544
|
defaultVariants: {
|
|
@@ -88527,7 +88566,7 @@ function CsEmptyTitle({ className, ...props }) {
|
|
|
88527
88566
|
"div",
|
|
88528
88567
|
{
|
|
88529
88568
|
"data-slot": "empty-title",
|
|
88530
|
-
className: cn$1("text-(--
|
|
88569
|
+
className: cn$1("text-(--empty-container-content-title) typo-heading-sm", className),
|
|
88531
88570
|
...props
|
|
88532
88571
|
}
|
|
88533
88572
|
);
|
|
@@ -88538,7 +88577,7 @@ function CsEmptyDescription({ className, ...props }) {
|
|
|
88538
88577
|
{
|
|
88539
88578
|
"data-slot": "empty-description",
|
|
88540
88579
|
className: cn$1(
|
|
88541
|
-
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 text-(--
|
|
88580
|
+
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 text-(--empty-container-content-description) typo-body-sm",
|
|
88542
88581
|
className
|
|
88543
88582
|
),
|
|
88544
88583
|
...props
|
|
@@ -88552,7 +88591,7 @@ function CsEmptyContent({ className, ...props }) {
|
|
|
88552
88591
|
"data-slot": "empty-content",
|
|
88553
88592
|
className: cn$1(
|
|
88554
88593
|
"flex w-full max-w-sm min-w-0 flex-col items-center text-balance",
|
|
88555
|
-
"gap-(--
|
|
88594
|
+
"gap-(--empty-container-footer-gap)",
|
|
88556
88595
|
className
|
|
88557
88596
|
),
|
|
88558
88597
|
...props
|
|
@@ -88570,7 +88609,7 @@ function CsLabel({
|
|
|
88570
88609
|
"data-slot": "label",
|
|
88571
88610
|
"data-disabled": disabled,
|
|
88572
88611
|
className: cn$1(
|
|
88573
|
-
"flex items-center gap-
|
|
88612
|
+
"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)",
|
|
88574
88613
|
className
|
|
88575
88614
|
),
|
|
88576
88615
|
...props
|
|
@@ -88590,7 +88629,7 @@ function CsSeparator({
|
|
|
88590
88629
|
decorative,
|
|
88591
88630
|
orientation,
|
|
88592
88631
|
className: cn$1(
|
|
88593
|
-
"bg-(--border
|
|
88632
|
+
"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",
|
|
88594
88633
|
className
|
|
88595
88634
|
),
|
|
88596
88635
|
...props
|
|
@@ -88603,8 +88642,8 @@ function CsFieldSet({ className, ...props }) {
|
|
|
88603
88642
|
{
|
|
88604
88643
|
"data-slot": "field-set",
|
|
88605
88644
|
className: cn$1(
|
|
88606
|
-
"flex flex-col gap-component-gap-lg",
|
|
88607
|
-
"has-[>[data-slot=checkbox-group]]:gap-component-gap-md has-[>[data-slot=radio-group]]:gap-component-gap-md",
|
|
88645
|
+
"flex flex-col gap-(--spacing-component-gap-lg)",
|
|
88646
|
+
"has-[>[data-slot=checkbox-group]]:gap-(--spacing-component-gap-md) has-[>[data-slot=radio-group]]:gap-(--spacing-component-gap-md)",
|
|
88608
88647
|
className
|
|
88609
88648
|
),
|
|
88610
88649
|
...props
|
|
@@ -88637,7 +88676,7 @@ function CsFieldGroup({ className, ...props }) {
|
|
|
88637
88676
|
{
|
|
88638
88677
|
"data-slot": "field-group",
|
|
88639
88678
|
className: cn$1(
|
|
88640
|
-
"group/field-group @container/field-group flex w-full flex-col gap-component-gap-lg data-[slot=checkbox-group]:gap-component-gap-md
|
|
88679
|
+
"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)",
|
|
88641
88680
|
className
|
|
88642
88681
|
),
|
|
88643
88682
|
...props
|
|
@@ -88645,7 +88684,7 @@ function CsFieldGroup({ className, ...props }) {
|
|
|
88645
88684
|
);
|
|
88646
88685
|
}
|
|
88647
88686
|
const csFieldVariants = cva(
|
|
88648
|
-
"group/field flex w-full gap-
|
|
88687
|
+
"group/field flex w-full gap-(--input-common-group-gap) data-[invalid=true]:text-(--color-state-error-default)",
|
|
88649
88688
|
{
|
|
88650
88689
|
variants: {
|
|
88651
88690
|
orientation: {
|
|
@@ -88689,7 +88728,7 @@ function CsFieldContent({ className, ...props }) {
|
|
|
88689
88728
|
{
|
|
88690
88729
|
"data-slot": "field-content",
|
|
88691
88730
|
className: cn$1(
|
|
88692
|
-
"group/field-content flex flex-1 flex-col gap-
|
|
88731
|
+
"group/field-content flex flex-1 flex-col gap-(--input-common-group-gap) leading-snug",
|
|
88693
88732
|
className
|
|
88694
88733
|
),
|
|
88695
88734
|
...props
|
|
@@ -88777,7 +88816,7 @@ function CsFieldError({
|
|
|
88777
88816
|
if (uniqueErrors?.length == 1) {
|
|
88778
88817
|
return uniqueErrors[0]?.message;
|
|
88779
88818
|
}
|
|
88780
|
-
return /* @__PURE__ */ jsx("ul", { className: "flex list-disc flex-col gap-
|
|
88819
|
+
return /* @__PURE__ */ jsx("ul", { className: "flex list-disc flex-col gap-(--label-gap)", children: uniqueErrors.map(
|
|
88781
88820
|
(error2, index) => error2?.message && /* @__PURE__ */ jsx("li", { children: error2.message }, index)
|
|
88782
88821
|
) });
|
|
88783
88822
|
}, [children, errors]);
|
|
@@ -88789,30 +88828,30 @@ function CsFieldError({
|
|
|
88789
88828
|
{
|
|
88790
88829
|
role: "alert",
|
|
88791
88830
|
"data-slot": "field-error",
|
|
88792
|
-
className: cn$1(" text-(--
|
|
88831
|
+
className: cn$1(" text-(--input-outline-fail-icon) typo-productive-caption", className),
|
|
88793
88832
|
...props,
|
|
88794
88833
|
children: content
|
|
88795
88834
|
}
|
|
88796
88835
|
);
|
|
88797
88836
|
}
|
|
88798
88837
|
const csInputGroupVariants = cva(
|
|
88799
|
-
"group/input-group relative flex w-full items-center transition-[color,box-shadow] outline-none min-w-0 border-none ring-(length:--border-width
|
|
88838
|
+
"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) ",
|
|
88800
88839
|
{
|
|
88801
88840
|
variants: {
|
|
88802
88841
|
variant: {
|
|
88803
88842
|
solid: [
|
|
88804
|
-
"bg-(--
|
|
88805
|
-
"hover:bg-(--
|
|
88806
|
-
"has-[[data-slot~=input-group-control]:focus-visible]:bg-(--
|
|
88807
|
-
"has-[[data-slot~=input-group-control][aria-invalid=true]]:bg-(--
|
|
88808
|
-
"has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]:bg-(--
|
|
88843
|
+
"bg-(--input-solid-default-bg) ring-transparent",
|
|
88844
|
+
"hover:bg-(--input-solid-hover-bg) hover:ring-transparent",
|
|
88845
|
+
"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)",
|
|
88846
|
+
"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)",
|
|
88847
|
+
"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)"
|
|
88809
88848
|
].join(" "),
|
|
88810
88849
|
outline: [
|
|
88811
|
-
"bg-(--
|
|
88812
|
-
"hover:bg-(--
|
|
88813
|
-
"has-[[data-slot~=input-group-control]:focus-visible]:bg-(--
|
|
88814
|
-
"has-[[data-slot~=input-group-control][aria-invalid=true]]:bg-(--
|
|
88815
|
-
"has-[[data-slot~=input-group-control]:not(:placeholder-shown)[aria-invalid=false]]:bg-(--
|
|
88850
|
+
"bg-(--input-outline-default-bg) ring-(length:--input-common-border-width) ring-(--input-outline-default-border)",
|
|
88851
|
+
"hover:bg-(--input-outline-hover-bg) hover:ring-(--input-outline-hover-border)",
|
|
88852
|
+
"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)",
|
|
88853
|
+
"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)",
|
|
88854
|
+
"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)"
|
|
88816
88855
|
].join(" ")
|
|
88817
88856
|
}
|
|
88818
88857
|
},
|
|
@@ -88840,7 +88879,7 @@ function CsInputGroup({
|
|
|
88840
88879
|
);
|
|
88841
88880
|
}
|
|
88842
88881
|
const csInputGroupAddonVariants = cva(
|
|
88843
|
-
"flex cursor-text items-center justify-center gap-
|
|
88882
|
+
"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) ",
|
|
88844
88883
|
{
|
|
88845
88884
|
variants: {
|
|
88846
88885
|
align: {
|
|
@@ -88878,7 +88917,7 @@ function CsInputGroupAddon({
|
|
|
88878
88917
|
);
|
|
88879
88918
|
}
|
|
88880
88919
|
const csInputGroupButtonVariants = cva(
|
|
88881
|
-
"[&_svg]:size-(--icon-size-
|
|
88920
|
+
"[&_svg]:size-(--input-common-icon-size-sm) px-(--input-common-padding-x) py-(--input-common-padding-y) gap-(--input-common-gap)",
|
|
88882
88921
|
{
|
|
88883
88922
|
variants: {
|
|
88884
88923
|
size: {
|
|
@@ -88935,12 +88974,12 @@ function CsInputGroupInput({
|
|
|
88935
88974
|
"w-full min-w-0 outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
|
|
88936
88975
|
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 p-0",
|
|
88937
88976
|
"typo-body-sm",
|
|
88938
|
-
"group-data-[variant=solid]/input-group:text-(--
|
|
88939
|
-
"group-data-[variant=outline]/input-group:text-(--
|
|
88940
|
-
"group-data-[variant=solid]/input-group:aria-invalid:text-(--
|
|
88941
|
-
"group-data-[variant=outline]/input-group:aria-invalid:text-(--
|
|
88942
|
-
"group-data-[variant=solid]/input-group:aria-[aria-invalid=false]:text-(--
|
|
88943
|
-
"group-data-[variant=outline]/input-group:aria-[aria-invalid=false]:text-(--
|
|
88977
|
+
"group-data-[variant=solid]/input-group:text-(--input-solid-default-font) group-data-[variant=solid]/input-group:placeholder:text-(--input-solid-default-font) ",
|
|
88978
|
+
"group-data-[variant=outline]/input-group:text-(--input-outline-default-font) group-data-[variant=outline]/input-group:placeholder:text-(--input-outline-default-font) ",
|
|
88979
|
+
"group-data-[variant=solid]/input-group:aria-invalid:text-(--input-solid-fail-font) ",
|
|
88980
|
+
"group-data-[variant=outline]/input-group:aria-invalid:text-(--input-outline-fail-font) ",
|
|
88981
|
+
"group-data-[variant=solid]/input-group:aria-[aria-invalid=false]:text-(--input-solid-success-font) ",
|
|
88982
|
+
"group-data-[variant=outline]/input-group:aria-[aria-invalid=false]:text-(--input-outline-success-font) ",
|
|
88944
88983
|
className
|
|
88945
88984
|
),
|
|
88946
88985
|
...props
|
|
@@ -88960,8 +88999,8 @@ function CsInputGroupTextarea({
|
|
|
88960
88999
|
"w-full min-w-0 outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
|
|
88961
89000
|
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 p-0",
|
|
88962
89001
|
"typo-body-sm",
|
|
88963
|
-
"group-data-[variant=solid]/input-group:text-(--
|
|
88964
|
-
"group-data-[variant=outline]/input-group:text-(--
|
|
89002
|
+
"group-data-[variant=solid]/input-group:text-(--input-solid-default-font) group-data-[variant=solid]/input-group:placeholder:text-(--input-solid-default-font) ",
|
|
89003
|
+
"group-data-[variant=outline]/input-group:text-(--input-outline-default-font) group-data-[variant=outline]/input-group:placeholder:text-(--input-outline-default-font) ",
|
|
88965
89004
|
resizable ? "resize-y" : "resize-none",
|
|
88966
89005
|
className
|
|
88967
89006
|
),
|
|
@@ -89016,7 +89055,7 @@ function CsNavigationMenu({
|
|
|
89016
89055
|
"data-viewport": viewport,
|
|
89017
89056
|
"data-variant": variant,
|
|
89018
89057
|
className: cn$1(
|
|
89019
|
-
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center gap-
|
|
89058
|
+
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center gap-(--navigation-button-container-gap)",
|
|
89020
89059
|
className
|
|
89021
89060
|
),
|
|
89022
89061
|
...props,
|
|
@@ -89036,7 +89075,7 @@ function CsNavigationMenuList({
|
|
|
89036
89075
|
{
|
|
89037
89076
|
"data-slot": "navigation-menu-list",
|
|
89038
89077
|
className: cn$1(
|
|
89039
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
89078
|
+
"group flex flex-1 list-none items-center justify-center gap-(--navigation-button-container-gap)",
|
|
89040
89079
|
className
|
|
89041
89080
|
),
|
|
89042
89081
|
...props
|
|
@@ -89057,13 +89096,13 @@ function CsNavigationMenuItem({
|
|
|
89057
89096
|
);
|
|
89058
89097
|
}
|
|
89059
89098
|
const csNavigationMenuTriggerStyle = cva(
|
|
89060
|
-
"typo-body-sm group inline-flex w-max items-center justify-center px-
|
|
89099
|
+
"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)",
|
|
89061
89100
|
{
|
|
89062
89101
|
variants: {
|
|
89063
89102
|
variant: {
|
|
89064
|
-
"solid-ghost": "rounded-(--radius
|
|
89065
|
-
"bottom-border": "
|
|
89066
|
-
"gradient": "rounded-(--radius
|
|
89103
|
+
"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)",
|
|
89104
|
+
"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)",
|
|
89105
|
+
"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)"
|
|
89067
89106
|
}
|
|
89068
89107
|
},
|
|
89069
89108
|
defaultVariants: {
|
|
@@ -89083,7 +89122,7 @@ function CsNavigationMenuTrigger({
|
|
|
89083
89122
|
"data-slot": "navigation-menu-trigger",
|
|
89084
89123
|
className: cn$1(
|
|
89085
89124
|
csNavigationMenuTriggerStyle({ variant }),
|
|
89086
|
-
"group flex items-center gap-
|
|
89125
|
+
"group flex items-center gap-(--navigation-button-common-gap)",
|
|
89087
89126
|
className
|
|
89088
89127
|
),
|
|
89089
89128
|
...props,
|
|
@@ -89092,7 +89131,7 @@ function CsNavigationMenuTrigger({
|
|
|
89092
89131
|
/* @__PURE__ */ jsx(
|
|
89093
89132
|
ChevronDown,
|
|
89094
89133
|
{
|
|
89095
|
-
className: "relative size-(--icon-size
|
|
89134
|
+
className: "relative size-(--navigation-button-common-icon-size) transition duration-300 group-data-[state=open]:rotate-180",
|
|
89096
89135
|
"aria-hidden": "true"
|
|
89097
89136
|
}
|
|
89098
89137
|
)
|
|
@@ -89109,7 +89148,7 @@ function CsNavigationMenuContent({
|
|
|
89109
89148
|
{
|
|
89110
89149
|
"data-slot": "navigation-menu-content",
|
|
89111
89150
|
className: cn$1(
|
|
89112
|
-
"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-(--
|
|
89151
|
+
"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",
|
|
89113
89152
|
"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",
|
|
89114
89153
|
"boxshadow-lg",
|
|
89115
89154
|
className
|
|
@@ -89148,8 +89187,8 @@ const csNavigationMenuLinkVariants = cva(
|
|
|
89148
89187
|
{
|
|
89149
89188
|
variants: {
|
|
89150
89189
|
variant: {
|
|
89151
|
-
item: "items-center gap-
|
|
89152
|
-
"item-content": "flex-col gap-
|
|
89190
|
+
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)",
|
|
89191
|
+
"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)"
|
|
89153
89192
|
}
|
|
89154
89193
|
},
|
|
89155
89194
|
defaultVariants: {
|
|
@@ -89187,7 +89226,7 @@ function CsNavigationMenuIndicator({
|
|
|
89187
89226
|
className
|
|
89188
89227
|
),
|
|
89189
89228
|
...props,
|
|
89190
|
-
children: /* @__PURE__ */ jsx("div", { className: "bg-(--
|
|
89229
|
+
children: /* @__PURE__ */ jsx("div", { className: "bg-(--navigation-item-container-border) relative top-[60%] h-2 w-2 rotate-45 rounded-(--radius-small)" })
|
|
89191
89230
|
}
|
|
89192
89231
|
);
|
|
89193
89232
|
}
|
|
@@ -89211,7 +89250,7 @@ function CsPaginationContent({
|
|
|
89211
89250
|
"ul",
|
|
89212
89251
|
{
|
|
89213
89252
|
"data-slot": "pagination-content",
|
|
89214
|
-
className: cn$1("flex flex-row items-center gap-
|
|
89253
|
+
className: cn$1("flex flex-row items-center gap-(--pagination-common-gap)", className),
|
|
89215
89254
|
...props
|
|
89216
89255
|
}
|
|
89217
89256
|
);
|
|
@@ -89231,9 +89270,9 @@ function CsPaginationLink({
|
|
|
89231
89270
|
"data-slot": "pagination-link",
|
|
89232
89271
|
"data-active": isActive,
|
|
89233
89272
|
className: cn$1(
|
|
89234
|
-
"typo-body-sm transition-colors cursor-pointer flex items-center justify-center h-(--
|
|
89235
|
-
"hover:bg-(--
|
|
89236
|
-
isActive && "bg-(--
|
|
89273
|
+
"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)",
|
|
89274
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) aria-disabled:cursor-not-allowed aria-disabled:opacity-(--opacity-state-disabled)",
|
|
89275
|
+
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)",
|
|
89237
89276
|
className
|
|
89238
89277
|
),
|
|
89239
89278
|
...props
|
|
@@ -89250,8 +89289,8 @@ function CsPaginationPrevious({
|
|
|
89250
89289
|
{
|
|
89251
89290
|
"aria-label": "Go to previous page",
|
|
89252
89291
|
className: cn$1(
|
|
89253
|
-
"gap-
|
|
89254
|
-
"hover:bg-(--
|
|
89292
|
+
"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)",
|
|
89293
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) [&_svg]:hover:text-(--pagination-link-hover-icon)",
|
|
89255
89294
|
className
|
|
89256
89295
|
),
|
|
89257
89296
|
...props,
|
|
@@ -89272,8 +89311,8 @@ function CsPaginationNext({
|
|
|
89272
89311
|
{
|
|
89273
89312
|
"aria-label": "Go to next page",
|
|
89274
89313
|
className: cn$1(
|
|
89275
|
-
"gap-
|
|
89276
|
-
"hover:bg-(--
|
|
89314
|
+
"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)",
|
|
89315
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) [&_svg]:hover:text-(--pagination-link-hover-icon)",
|
|
89277
89316
|
className
|
|
89278
89317
|
),
|
|
89279
89318
|
...props,
|
|
@@ -89293,22 +89332,22 @@ function CsPaginationEllipsis({
|
|
|
89293
89332
|
{
|
|
89294
89333
|
"aria-hidden": true,
|
|
89295
89334
|
"data-slot": "pagination-ellipsis",
|
|
89296
|
-
className: cn$1("flex size-(--
|
|
89335
|
+
className: cn$1("flex size-(--pagination-common-item-size) items-center justify-center text-(--pagination-item-ellipsis-font)", className),
|
|
89297
89336
|
...props,
|
|
89298
89337
|
children: [
|
|
89299
|
-
/* @__PURE__ */ jsx(Ellipsis, { className: "size-(--icon-size
|
|
89338
|
+
/* @__PURE__ */ jsx(Ellipsis, { className: "size-(--pagination-common-icon-size)" }),
|
|
89300
89339
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
|
|
89301
89340
|
]
|
|
89302
89341
|
}
|
|
89303
89342
|
);
|
|
89304
89343
|
}
|
|
89305
89344
|
const csProgressVariants = cva(
|
|
89306
|
-
"relative h-(--
|
|
89345
|
+
"relative h-(--progress-height) w-full overflow-hidden rounded-(--progress-radius)",
|
|
89307
89346
|
{
|
|
89308
89347
|
variants: {
|
|
89309
89348
|
variant: {
|
|
89310
|
-
solid: "bg-(--
|
|
89311
|
-
gradient: "bg-(--
|
|
89349
|
+
solid: "bg-(--progress-solid-track)",
|
|
89350
|
+
gradient: "bg-(--progress-gradient-track)"
|
|
89312
89351
|
}
|
|
89313
89352
|
},
|
|
89314
89353
|
defaultVariants: {
|
|
@@ -89321,7 +89360,7 @@ const csProgressIndicatorVariants = cva(
|
|
|
89321
89360
|
{
|
|
89322
89361
|
variants: {
|
|
89323
89362
|
variant: {
|
|
89324
|
-
solid: "bg-(--
|
|
89363
|
+
solid: "bg-(--progress-solid-fill)",
|
|
89325
89364
|
gradient: "gradient-primary-horizontal"
|
|
89326
89365
|
}
|
|
89327
89366
|
},
|
|
@@ -89369,12 +89408,12 @@ function CsSelectValue({
|
|
|
89369
89408
|
return /* @__PURE__ */ jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
89370
89409
|
}
|
|
89371
89410
|
const csSelectTriggerVariants = cva(
|
|
89372
|
-
"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
|
|
89411
|
+
"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)",
|
|
89373
89412
|
{
|
|
89374
89413
|
variants: {
|
|
89375
89414
|
size: {
|
|
89376
|
-
default: "typo-body-sm h-(--
|
|
89377
|
-
sm: "typo-body-xs h-(--
|
|
89415
|
+
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)",
|
|
89416
|
+
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)"
|
|
89378
89417
|
}
|
|
89379
89418
|
},
|
|
89380
89419
|
defaultVariants: {
|
|
@@ -89413,7 +89452,7 @@ function CsSelectContent({
|
|
|
89413
89452
|
className: cn$1(
|
|
89414
89453
|
"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",
|
|
89415
89454
|
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",
|
|
89416
|
-
"min-w-[8rem] rounded-(--radius
|
|
89455
|
+
"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",
|
|
89417
89456
|
className
|
|
89418
89457
|
),
|
|
89419
89458
|
position: position2,
|
|
@@ -89445,7 +89484,7 @@ function CsSelectLabel({
|
|
|
89445
89484
|
"data-slot": "select-label",
|
|
89446
89485
|
className: cn$1(
|
|
89447
89486
|
csDropdownMenuItemCommonClassName,
|
|
89448
|
-
"typo-productive-label-md text-(--
|
|
89487
|
+
"typo-productive-label-md text-(--dropdown-item-header-font)",
|
|
89449
89488
|
className
|
|
89450
89489
|
),
|
|
89451
89490
|
...props
|
|
@@ -89463,14 +89502,14 @@ function CsSelectItem({
|
|
|
89463
89502
|
"data-slot": "select-item",
|
|
89464
89503
|
className: cn$1(
|
|
89465
89504
|
csDropdownMenuItemCommonClassName,
|
|
89466
|
-
"group data-[disabled]:pointer-events-none *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-
|
|
89505
|
+
"group data-[disabled]:pointer-events-none *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-(--dropdown-item-icon-gap)",
|
|
89467
89506
|
className
|
|
89468
89507
|
),
|
|
89469
89508
|
...props,
|
|
89470
89509
|
children: [
|
|
89471
89510
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children }),
|
|
89472
89511
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { className: "ml-auto", children: /* @__PURE__ */ jsx(Check, {}) }),
|
|
89473
|
-
/* @__PURE__ */ jsx("div", { className: "ml-auto size-(--icon-size
|
|
89512
|
+
/* @__PURE__ */ jsx("div", { className: "ml-auto size-(--select-default-common-icon-size) group-data-[state=checked]:hidden" })
|
|
89474
89513
|
]
|
|
89475
89514
|
}
|
|
89476
89515
|
);
|
|
@@ -89483,7 +89522,7 @@ function CsSelectSeparator({
|
|
|
89483
89522
|
SelectPrimitive.Separator,
|
|
89484
89523
|
{
|
|
89485
89524
|
"data-slot": "select-separator",
|
|
89486
|
-
className: cn$1("bg-(--
|
|
89525
|
+
className: cn$1("bg-(--dropdown-item-common-border) w-full h-(--dropdown-item-common-border-width)", className),
|
|
89487
89526
|
...props
|
|
89488
89527
|
}
|
|
89489
89528
|
);
|
|
@@ -89499,7 +89538,7 @@ function CsSelectScrollUpButton({
|
|
|
89499
89538
|
"data-slot": "select-scroll-up-button",
|
|
89500
89539
|
className: cn$1(
|
|
89501
89540
|
csDropdownMenuItemCommonClassName,
|
|
89502
|
-
"[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
89541
|
+
"[&_svg:not([class*='size-'])]:size-(--select-default-common-icon-size) [&_svg]:text-(--select-default-default-icon)",
|
|
89503
89542
|
className
|
|
89504
89543
|
),
|
|
89505
89544
|
...props,
|
|
@@ -89518,7 +89557,7 @@ function CsSelectScrollDownButton({
|
|
|
89518
89557
|
"data-slot": "select-scroll-down-button",
|
|
89519
89558
|
className: cn$1(
|
|
89520
89559
|
csDropdownMenuItemCommonClassName,
|
|
89521
|
-
"[&_svg:not([class*='size-'])]:size-(--icon-size
|
|
89560
|
+
"[&_svg:not([class*='size-'])]:size-(--select-default-common-icon-size) [&_svg]:text-(--select-default-default-icon)",
|
|
89522
89561
|
className
|
|
89523
89562
|
),
|
|
89524
89563
|
...props,
|
|
@@ -89551,12 +89590,12 @@ const CsSimpleSelect = forwardRef(
|
|
|
89551
89590
|
);
|
|
89552
89591
|
CsSimpleSelect.displayName = "CsSimpleSelect";
|
|
89553
89592
|
const csSkeletonVariants = cva(
|
|
89554
|
-
"bg-(--
|
|
89593
|
+
"bg-(--skeleton-fill) animate-pulse",
|
|
89555
89594
|
{
|
|
89556
89595
|
variants: {
|
|
89557
89596
|
radius: {
|
|
89558
|
-
default: "rounded-(--radius
|
|
89559
|
-
max: "rounded-(--radius-
|
|
89597
|
+
default: "rounded-(--skeleton-radius)",
|
|
89598
|
+
max: "rounded-(--skeleton-radius-full)"
|
|
89560
89599
|
}
|
|
89561
89600
|
},
|
|
89562
89601
|
defaultVariants: {
|
|
@@ -89741,31 +89780,31 @@ class Observer {
|
|
|
89741
89780
|
var _data_id;
|
|
89742
89781
|
const { message: message2, ...rest } = data;
|
|
89743
89782
|
const id2 = typeof (data == null ? void 0 : data.id) === "number" || ((_data_id = data.id) == null ? void 0 : _data_id.length) > 0 ? data.id : toastsCounter++;
|
|
89744
|
-
const alreadyExists = this.toasts.find((
|
|
89745
|
-
return
|
|
89783
|
+
const alreadyExists = this.toasts.find((toast2) => {
|
|
89784
|
+
return toast2.id === id2;
|
|
89746
89785
|
});
|
|
89747
89786
|
const dismissible = data.dismissible === void 0 ? true : data.dismissible;
|
|
89748
89787
|
if (this.dismissedToasts.has(id2)) {
|
|
89749
89788
|
this.dismissedToasts.delete(id2);
|
|
89750
89789
|
}
|
|
89751
89790
|
if (alreadyExists) {
|
|
89752
|
-
this.toasts = this.toasts.map((
|
|
89753
|
-
if (
|
|
89791
|
+
this.toasts = this.toasts.map((toast2) => {
|
|
89792
|
+
if (toast2.id === id2) {
|
|
89754
89793
|
this.publish({
|
|
89755
|
-
...
|
|
89794
|
+
...toast2,
|
|
89756
89795
|
...data,
|
|
89757
89796
|
id: id2,
|
|
89758
89797
|
title: message2
|
|
89759
89798
|
});
|
|
89760
89799
|
return {
|
|
89761
|
-
...
|
|
89800
|
+
...toast2,
|
|
89762
89801
|
...data,
|
|
89763
89802
|
id: id2,
|
|
89764
89803
|
dismissible,
|
|
89765
89804
|
title: message2
|
|
89766
89805
|
};
|
|
89767
89806
|
}
|
|
89768
|
-
return
|
|
89807
|
+
return toast2;
|
|
89769
89808
|
});
|
|
89770
89809
|
} else {
|
|
89771
89810
|
this.addToast({
|
|
@@ -89785,9 +89824,9 @@ class Observer {
|
|
|
89785
89824
|
dismiss: true
|
|
89786
89825
|
})));
|
|
89787
89826
|
} else {
|
|
89788
|
-
this.toasts.forEach((
|
|
89827
|
+
this.toasts.forEach((toast2) => {
|
|
89789
89828
|
this.subscribers.forEach((subscriber) => subscriber({
|
|
89790
|
-
id:
|
|
89829
|
+
id: toast2.id,
|
|
89791
89830
|
dismiss: true
|
|
89792
89831
|
}));
|
|
89793
89832
|
});
|
|
@@ -89956,7 +89995,7 @@ class Observer {
|
|
|
89956
89995
|
return id2;
|
|
89957
89996
|
};
|
|
89958
89997
|
this.getActiveToasts = () => {
|
|
89959
|
-
return this.toasts.filter((
|
|
89998
|
+
return this.toasts.filter((toast2) => !this.dismissedToasts.has(toast2.id));
|
|
89960
89999
|
};
|
|
89961
90000
|
this.subscribers = [];
|
|
89962
90001
|
this.toasts = [];
|
|
@@ -89979,7 +90018,7 @@ const isHttpResponse = (data) => {
|
|
|
89979
90018
|
const basicToast = toastFunction;
|
|
89980
90019
|
const getHistory = () => ToastState.toasts;
|
|
89981
90020
|
const getToasts = () => ToastState.getActiveToasts();
|
|
89982
|
-
Object.assign(basicToast, {
|
|
90021
|
+
const toast = Object.assign(basicToast, {
|
|
89983
90022
|
success: ToastState.success,
|
|
89984
90023
|
info: ToastState.info,
|
|
89985
90024
|
warning: ToastState.warning,
|
|
@@ -90021,7 +90060,7 @@ function getDefaultSwipeDirections(position2) {
|
|
|
90021
90060
|
}
|
|
90022
90061
|
const Toast = (props) => {
|
|
90023
90062
|
var _toast_classNames, _toast_classNames1, _toast_classNames2, _toast_classNames3, _toast_classNames4, _toast_classNames5, _toast_classNames6, _toast_classNames7, _toast_classNames8;
|
|
90024
|
-
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;
|
|
90063
|
+
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;
|
|
90025
90064
|
const [swipeDirection, setSwipeDirection] = React__default.useState(null);
|
|
90026
90065
|
const [swipeOutDirection, setSwipeOutDirection] = React__default.useState(null);
|
|
90027
90066
|
const [mounted, setMounted] = React__default.useState(false);
|
|
@@ -90031,28 +90070,28 @@ const Toast = (props) => {
|
|
|
90031
90070
|
const [isSwiped, setIsSwiped] = React__default.useState(false);
|
|
90032
90071
|
const [offsetBeforeRemove, setOffsetBeforeRemove] = React__default.useState(0);
|
|
90033
90072
|
const [initialHeight, setInitialHeight] = React__default.useState(0);
|
|
90034
|
-
const remainingTime = React__default.useRef(
|
|
90073
|
+
const remainingTime = React__default.useRef(toast2.duration || durationFromToaster || TOAST_LIFETIME);
|
|
90035
90074
|
const dragStartTime = React__default.useRef(null);
|
|
90036
90075
|
const toastRef = React__default.useRef(null);
|
|
90037
90076
|
const isFront = index === 0;
|
|
90038
90077
|
const isVisible = index + 1 <= visibleToasts;
|
|
90039
|
-
const toastType =
|
|
90040
|
-
const dismissible =
|
|
90041
|
-
const toastClassname =
|
|
90042
|
-
const toastDescriptionClassname =
|
|
90043
|
-
const heightIndex = React__default.useMemo(() => heights.findIndex((height) => height.toastId ===
|
|
90078
|
+
const toastType = toast2.type;
|
|
90079
|
+
const dismissible = toast2.dismissible !== false;
|
|
90080
|
+
const toastClassname = toast2.className || "";
|
|
90081
|
+
const toastDescriptionClassname = toast2.descriptionClassName || "";
|
|
90082
|
+
const heightIndex = React__default.useMemo(() => heights.findIndex((height) => height.toastId === toast2.id) || 0, [
|
|
90044
90083
|
heights,
|
|
90045
|
-
|
|
90084
|
+
toast2.id
|
|
90046
90085
|
]);
|
|
90047
90086
|
const closeButton = React__default.useMemo(() => {
|
|
90048
90087
|
var _toast_closeButton;
|
|
90049
|
-
return (_toast_closeButton =
|
|
90088
|
+
return (_toast_closeButton = toast2.closeButton) != null ? _toast_closeButton : closeButtonFromToaster;
|
|
90050
90089
|
}, [
|
|
90051
|
-
|
|
90090
|
+
toast2.closeButton,
|
|
90052
90091
|
closeButtonFromToaster
|
|
90053
90092
|
]);
|
|
90054
|
-
const duration = React__default.useMemo(() =>
|
|
90055
|
-
|
|
90093
|
+
const duration = React__default.useMemo(() => toast2.duration || durationFromToaster || TOAST_LIFETIME, [
|
|
90094
|
+
toast2.duration,
|
|
90056
90095
|
durationFromToaster
|
|
90057
90096
|
]);
|
|
90058
90097
|
const closeTimerStartTimeRef = React__default.useRef(0);
|
|
@@ -90072,7 +90111,7 @@ const Toast = (props) => {
|
|
|
90072
90111
|
heightIndex
|
|
90073
90112
|
]);
|
|
90074
90113
|
const isDocumentHidden = useIsDocumentHidden();
|
|
90075
|
-
const invert2 =
|
|
90114
|
+
const invert2 = toast2.invert || ToasterInvert;
|
|
90076
90115
|
const disabled = toastType === "loading";
|
|
90077
90116
|
offset.current = React__default.useMemo(() => heightIndex * gap + toastsHeightBefore, [
|
|
90078
90117
|
heightIndex,
|
|
@@ -90093,17 +90132,17 @@ const Toast = (props) => {
|
|
|
90093
90132
|
setInitialHeight(height);
|
|
90094
90133
|
setHeights((h) => [
|
|
90095
90134
|
{
|
|
90096
|
-
toastId:
|
|
90135
|
+
toastId: toast2.id,
|
|
90097
90136
|
height,
|
|
90098
|
-
position:
|
|
90137
|
+
position: toast2.position
|
|
90099
90138
|
},
|
|
90100
90139
|
...h
|
|
90101
90140
|
]);
|
|
90102
|
-
return () => setHeights((h) => h.filter((height2) => height2.toastId !==
|
|
90141
|
+
return () => setHeights((h) => h.filter((height2) => height2.toastId !== toast2.id));
|
|
90103
90142
|
}
|
|
90104
90143
|
}, [
|
|
90105
90144
|
setHeights,
|
|
90106
|
-
|
|
90145
|
+
toast2.id
|
|
90107
90146
|
]);
|
|
90108
90147
|
React__default.useLayoutEffect(() => {
|
|
90109
90148
|
if (!mounted) return;
|
|
@@ -90114,18 +90153,18 @@ const Toast = (props) => {
|
|
|
90114
90153
|
toastNode.style.height = originalHeight;
|
|
90115
90154
|
setInitialHeight(newHeight);
|
|
90116
90155
|
setHeights((heights2) => {
|
|
90117
|
-
const alreadyExists = heights2.find((height) => height.toastId ===
|
|
90156
|
+
const alreadyExists = heights2.find((height) => height.toastId === toast2.id);
|
|
90118
90157
|
if (!alreadyExists) {
|
|
90119
90158
|
return [
|
|
90120
90159
|
{
|
|
90121
|
-
toastId:
|
|
90160
|
+
toastId: toast2.id,
|
|
90122
90161
|
height: newHeight,
|
|
90123
|
-
position:
|
|
90162
|
+
position: toast2.position
|
|
90124
90163
|
},
|
|
90125
90164
|
...heights2
|
|
90126
90165
|
];
|
|
90127
90166
|
} else {
|
|
90128
|
-
return heights2.map((height) => height.toastId ===
|
|
90167
|
+
return heights2.map((height) => height.toastId === toast2.id ? {
|
|
90129
90168
|
...height,
|
|
90130
90169
|
height: newHeight
|
|
90131
90170
|
} : height);
|
|
@@ -90133,29 +90172,29 @@ const Toast = (props) => {
|
|
|
90133
90172
|
});
|
|
90134
90173
|
}, [
|
|
90135
90174
|
mounted,
|
|
90136
|
-
|
|
90137
|
-
|
|
90175
|
+
toast2.title,
|
|
90176
|
+
toast2.description,
|
|
90138
90177
|
setHeights,
|
|
90139
|
-
|
|
90140
|
-
|
|
90141
|
-
|
|
90142
|
-
|
|
90178
|
+
toast2.id,
|
|
90179
|
+
toast2.jsx,
|
|
90180
|
+
toast2.action,
|
|
90181
|
+
toast2.cancel
|
|
90143
90182
|
]);
|
|
90144
90183
|
const deleteToast = React__default.useCallback(() => {
|
|
90145
90184
|
setRemoved(true);
|
|
90146
90185
|
setOffsetBeforeRemove(offset.current);
|
|
90147
|
-
setHeights((h) => h.filter((height) => height.toastId !==
|
|
90186
|
+
setHeights((h) => h.filter((height) => height.toastId !== toast2.id));
|
|
90148
90187
|
setTimeout(() => {
|
|
90149
|
-
removeToast(
|
|
90188
|
+
removeToast(toast2);
|
|
90150
90189
|
}, TIME_BEFORE_UNMOUNT);
|
|
90151
90190
|
}, [
|
|
90152
|
-
|
|
90191
|
+
toast2,
|
|
90153
90192
|
removeToast,
|
|
90154
90193
|
setHeights,
|
|
90155
90194
|
offset
|
|
90156
90195
|
]);
|
|
90157
90196
|
React__default.useEffect(() => {
|
|
90158
|
-
if (
|
|
90197
|
+
if (toast2.promise && toastType === "loading" || toast2.duration === Infinity || toast2.type === "loading") return;
|
|
90159
90198
|
let timeoutId;
|
|
90160
90199
|
const pauseTimer = () => {
|
|
90161
90200
|
if (lastCloseTimerStartTimeRef.current < closeTimerStartTimeRef.current) {
|
|
@@ -90168,7 +90207,7 @@ const Toast = (props) => {
|
|
|
90168
90207
|
if (remainingTime.current === Infinity) return;
|
|
90169
90208
|
closeTimerStartTimeRef.current = (/* @__PURE__ */ new Date()).getTime();
|
|
90170
90209
|
timeoutId = setTimeout(() => {
|
|
90171
|
-
|
|
90210
|
+
toast2.onAutoClose == null ? void 0 : toast2.onAutoClose.call(toast2, toast2);
|
|
90172
90211
|
deleteToast();
|
|
90173
90212
|
}, remainingTime.current);
|
|
90174
90213
|
};
|
|
@@ -90181,45 +90220,45 @@ const Toast = (props) => {
|
|
|
90181
90220
|
}, [
|
|
90182
90221
|
expanded,
|
|
90183
90222
|
interacting,
|
|
90184
|
-
|
|
90223
|
+
toast2,
|
|
90185
90224
|
toastType,
|
|
90186
90225
|
isDocumentHidden,
|
|
90187
90226
|
deleteToast
|
|
90188
90227
|
]);
|
|
90189
90228
|
React__default.useEffect(() => {
|
|
90190
|
-
if (
|
|
90229
|
+
if (toast2.delete) {
|
|
90191
90230
|
deleteToast();
|
|
90192
|
-
|
|
90231
|
+
toast2.onDismiss == null ? void 0 : toast2.onDismiss.call(toast2, toast2);
|
|
90193
90232
|
}
|
|
90194
90233
|
}, [
|
|
90195
90234
|
deleteToast,
|
|
90196
|
-
|
|
90235
|
+
toast2.delete
|
|
90197
90236
|
]);
|
|
90198
90237
|
function getLoadingIcon() {
|
|
90199
90238
|
var _toast_classNames9;
|
|
90200
90239
|
if (icons == null ? void 0 : icons.loading) {
|
|
90201
90240
|
var _toast_classNames12;
|
|
90202
90241
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
90203
|
-
className: cn(classNames == null ? void 0 : classNames.loader,
|
|
90242
|
+
className: cn(classNames == null ? void 0 : classNames.loader, toast2 == null ? void 0 : (_toast_classNames12 = toast2.classNames) == null ? void 0 : _toast_classNames12.loader, "sonner-loader"),
|
|
90204
90243
|
"data-visible": toastType === "loading"
|
|
90205
90244
|
}, icons.loading);
|
|
90206
90245
|
}
|
|
90207
90246
|
return /* @__PURE__ */ React__default.createElement(Loader, {
|
|
90208
|
-
className: cn(classNames == null ? void 0 : classNames.loader,
|
|
90247
|
+
className: cn(classNames == null ? void 0 : classNames.loader, toast2 == null ? void 0 : (_toast_classNames9 = toast2.classNames) == null ? void 0 : _toast_classNames9.loader),
|
|
90209
90248
|
visible: toastType === "loading"
|
|
90210
90249
|
});
|
|
90211
90250
|
}
|
|
90212
|
-
const icon =
|
|
90251
|
+
const icon = toast2.icon || (icons == null ? void 0 : icons[toastType]) || getAsset(toastType);
|
|
90213
90252
|
var _toast_richColors, _icons_close;
|
|
90214
90253
|
return /* @__PURE__ */ React__default.createElement("li", {
|
|
90215
90254
|
tabIndex: 0,
|
|
90216
90255
|
ref: toastRef,
|
|
90217
|
-
className: cn(className, toastClassname, classNames == null ? void 0 : classNames.toast,
|
|
90256
|
+
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]),
|
|
90218
90257
|
"data-sonner-toast": "",
|
|
90219
|
-
"data-rich-colors": (_toast_richColors =
|
|
90220
|
-
"data-styled": !Boolean(
|
|
90258
|
+
"data-rich-colors": (_toast_richColors = toast2.richColors) != null ? _toast_richColors : defaultRichColors,
|
|
90259
|
+
"data-styled": !Boolean(toast2.jsx || toast2.unstyled || unstyled),
|
|
90221
90260
|
"data-mounted": mounted,
|
|
90222
|
-
"data-promise": Boolean(
|
|
90261
|
+
"data-promise": Boolean(toast2.promise),
|
|
90223
90262
|
"data-swiped": isSwiped,
|
|
90224
90263
|
"data-removed": removed,
|
|
90225
90264
|
"data-visible": isVisible,
|
|
@@ -90234,7 +90273,7 @@ const Toast = (props) => {
|
|
|
90234
90273
|
"data-swipe-out": swipeOut,
|
|
90235
90274
|
"data-swipe-direction": swipeOutDirection,
|
|
90236
90275
|
"data-expanded": Boolean(expanded || expandByDefault && mounted),
|
|
90237
|
-
"data-testid":
|
|
90276
|
+
"data-testid": toast2.testId,
|
|
90238
90277
|
style: {
|
|
90239
90278
|
"--index": index,
|
|
90240
90279
|
"--toasts-before": index,
|
|
@@ -90242,7 +90281,7 @@ const Toast = (props) => {
|
|
|
90242
90281
|
"--offset": `${removed ? offsetBeforeRemove : offset.current}px`,
|
|
90243
90282
|
"--initial-height": expandByDefault ? "auto" : `${initialHeight}px`,
|
|
90244
90283
|
...style,
|
|
90245
|
-
...
|
|
90284
|
+
...toast2.style
|
|
90246
90285
|
},
|
|
90247
90286
|
onDragEnd: () => {
|
|
90248
90287
|
setSwiping(false);
|
|
@@ -90273,7 +90312,7 @@ const Toast = (props) => {
|
|
|
90273
90312
|
const velocity = Math.abs(swipeAmount) / timeTaken;
|
|
90274
90313
|
if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {
|
|
90275
90314
|
setOffsetBeforeRemove(offset.current);
|
|
90276
|
-
|
|
90315
|
+
toast2.onDismiss == null ? void 0 : toast2.onDismiss.call(toast2, toast2);
|
|
90277
90316
|
if (swipeDirection === "x") {
|
|
90278
90317
|
setSwipeOutDirection(swipeAmountX > 0 ? "right" : "left");
|
|
90279
90318
|
} else {
|
|
@@ -90336,51 +90375,51 @@ const Toast = (props) => {
|
|
|
90336
90375
|
(_toastRef_current = toastRef.current) == null ? void 0 : _toastRef_current.style.setProperty("--swipe-amount-x", `${swipeAmount.x}px`);
|
|
90337
90376
|
(_toastRef_current1 = toastRef.current) == null ? void 0 : _toastRef_current1.style.setProperty("--swipe-amount-y", `${swipeAmount.y}px`);
|
|
90338
90377
|
}
|
|
90339
|
-
}, closeButton && !
|
|
90378
|
+
}, closeButton && !toast2.jsx && toastType !== "loading" ? /* @__PURE__ */ React__default.createElement("button", {
|
|
90340
90379
|
"aria-label": closeButtonAriaLabel,
|
|
90341
90380
|
"data-disabled": disabled,
|
|
90342
90381
|
"data-close-button": true,
|
|
90343
90382
|
onClick: disabled || !dismissible ? () => {
|
|
90344
90383
|
} : () => {
|
|
90345
90384
|
deleteToast();
|
|
90346
|
-
|
|
90385
|
+
toast2.onDismiss == null ? void 0 : toast2.onDismiss.call(toast2, toast2);
|
|
90347
90386
|
},
|
|
90348
|
-
className: cn(classNames == null ? void 0 : classNames.closeButton,
|
|
90349
|
-
}, (_icons_close = icons == null ? void 0 : icons.close) != null ? _icons_close : CloseIcon) : null, (toastType ||
|
|
90387
|
+
className: cn(classNames == null ? void 0 : classNames.closeButton, toast2 == null ? void 0 : (_toast_classNames2 = toast2.classNames) == null ? void 0 : _toast_classNames2.closeButton)
|
|
90388
|
+
}, (_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__default.createElement("div", {
|
|
90350
90389
|
"data-icon": "",
|
|
90351
|
-
className: cn(classNames == null ? void 0 : classNames.icon,
|
|
90352
|
-
},
|
|
90390
|
+
className: cn(classNames == null ? void 0 : classNames.icon, toast2 == null ? void 0 : (_toast_classNames3 = toast2.classNames) == null ? void 0 : _toast_classNames3.icon)
|
|
90391
|
+
}, toast2.promise || toast2.type === "loading" && !toast2.icon ? toast2.icon || getLoadingIcon() : null, toast2.type !== "loading" ? icon : null) : null, /* @__PURE__ */ React__default.createElement("div", {
|
|
90353
90392
|
"data-content": "",
|
|
90354
|
-
className: cn(classNames == null ? void 0 : classNames.content,
|
|
90393
|
+
className: cn(classNames == null ? void 0 : classNames.content, toast2 == null ? void 0 : (_toast_classNames4 = toast2.classNames) == null ? void 0 : _toast_classNames4.content)
|
|
90355
90394
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
90356
90395
|
"data-title": "",
|
|
90357
|
-
className: cn(classNames == null ? void 0 : classNames.title,
|
|
90358
|
-
},
|
|
90396
|
+
className: cn(classNames == null ? void 0 : classNames.title, toast2 == null ? void 0 : (_toast_classNames5 = toast2.classNames) == null ? void 0 : _toast_classNames5.title)
|
|
90397
|
+
}, toast2.jsx ? toast2.jsx : typeof toast2.title === "function" ? toast2.title() : toast2.title), toast2.description ? /* @__PURE__ */ React__default.createElement("div", {
|
|
90359
90398
|
"data-description": "",
|
|
90360
|
-
className: cn(descriptionClassName, toastDescriptionClassname, classNames == null ? void 0 : classNames.description,
|
|
90361
|
-
}, typeof
|
|
90399
|
+
className: cn(descriptionClassName, toastDescriptionClassname, classNames == null ? void 0 : classNames.description, toast2 == null ? void 0 : (_toast_classNames6 = toast2.classNames) == null ? void 0 : _toast_classNames6.description)
|
|
90400
|
+
}, typeof toast2.description === "function" ? toast2.description() : toast2.description) : null), /* @__PURE__ */ React__default.isValidElement(toast2.cancel) ? toast2.cancel : toast2.cancel && isAction(toast2.cancel) ? /* @__PURE__ */ React__default.createElement("button", {
|
|
90362
90401
|
"data-button": true,
|
|
90363
90402
|
"data-cancel": true,
|
|
90364
|
-
style:
|
|
90403
|
+
style: toast2.cancelButtonStyle || cancelButtonStyle,
|
|
90365
90404
|
onClick: (event) => {
|
|
90366
|
-
if (!isAction(
|
|
90405
|
+
if (!isAction(toast2.cancel)) return;
|
|
90367
90406
|
if (!dismissible) return;
|
|
90368
|
-
|
|
90407
|
+
toast2.cancel.onClick == null ? void 0 : toast2.cancel.onClick.call(toast2.cancel, event);
|
|
90369
90408
|
deleteToast();
|
|
90370
90409
|
},
|
|
90371
|
-
className: cn(classNames == null ? void 0 : classNames.cancelButton,
|
|
90372
|
-
},
|
|
90410
|
+
className: cn(classNames == null ? void 0 : classNames.cancelButton, toast2 == null ? void 0 : (_toast_classNames7 = toast2.classNames) == null ? void 0 : _toast_classNames7.cancelButton)
|
|
90411
|
+
}, toast2.cancel.label) : null, /* @__PURE__ */ React__default.isValidElement(toast2.action) ? toast2.action : toast2.action && isAction(toast2.action) ? /* @__PURE__ */ React__default.createElement("button", {
|
|
90373
90412
|
"data-button": true,
|
|
90374
90413
|
"data-action": true,
|
|
90375
|
-
style:
|
|
90414
|
+
style: toast2.actionButtonStyle || actionButtonStyle,
|
|
90376
90415
|
onClick: (event) => {
|
|
90377
|
-
if (!isAction(
|
|
90378
|
-
|
|
90416
|
+
if (!isAction(toast2.action)) return;
|
|
90417
|
+
toast2.action.onClick == null ? void 0 : toast2.action.onClick.call(toast2.action, event);
|
|
90379
90418
|
if (event.defaultPrevented) return;
|
|
90380
90419
|
deleteToast();
|
|
90381
90420
|
},
|
|
90382
|
-
className: cn(classNames == null ? void 0 : classNames.actionButton,
|
|
90383
|
-
},
|
|
90421
|
+
className: cn(classNames == null ? void 0 : classNames.actionButton, toast2 == null ? void 0 : (_toast_classNames8 = toast2.classNames) == null ? void 0 : _toast_classNames8.actionButton)
|
|
90422
|
+
}, toast2.action.label) : null);
|
|
90384
90423
|
};
|
|
90385
90424
|
function getDocumentDirection() {
|
|
90386
90425
|
if (typeof window === "undefined") return "ltr";
|
|
@@ -90431,6 +90470,45 @@ function assignOffset(defaultOffset, mobileOffset) {
|
|
|
90431
90470
|
});
|
|
90432
90471
|
return styles;
|
|
90433
90472
|
}
|
|
90473
|
+
function useSonner() {
|
|
90474
|
+
const [activeToasts, setActiveToasts] = React__default.useState([]);
|
|
90475
|
+
React__default.useEffect(() => {
|
|
90476
|
+
return ToastState.subscribe((toast2) => {
|
|
90477
|
+
if (toast2.dismiss) {
|
|
90478
|
+
setTimeout(() => {
|
|
90479
|
+
ReactDOM.flushSync(() => {
|
|
90480
|
+
setActiveToasts((toasts) => toasts.filter((t) => t.id !== toast2.id));
|
|
90481
|
+
});
|
|
90482
|
+
});
|
|
90483
|
+
return;
|
|
90484
|
+
}
|
|
90485
|
+
setTimeout(() => {
|
|
90486
|
+
ReactDOM.flushSync(() => {
|
|
90487
|
+
setActiveToasts((toasts) => {
|
|
90488
|
+
const indexOfExistingToast = toasts.findIndex((t) => t.id === toast2.id);
|
|
90489
|
+
if (indexOfExistingToast !== -1) {
|
|
90490
|
+
return [
|
|
90491
|
+
...toasts.slice(0, indexOfExistingToast),
|
|
90492
|
+
{
|
|
90493
|
+
...toasts[indexOfExistingToast],
|
|
90494
|
+
...toast2
|
|
90495
|
+
},
|
|
90496
|
+
...toasts.slice(indexOfExistingToast + 1)
|
|
90497
|
+
];
|
|
90498
|
+
}
|
|
90499
|
+
return [
|
|
90500
|
+
toast2,
|
|
90501
|
+
...toasts
|
|
90502
|
+
];
|
|
90503
|
+
});
|
|
90504
|
+
});
|
|
90505
|
+
});
|
|
90506
|
+
});
|
|
90507
|
+
}, []);
|
|
90508
|
+
return {
|
|
90509
|
+
toasts: activeToasts
|
|
90510
|
+
};
|
|
90511
|
+
}
|
|
90434
90512
|
const Toaster = /* @__PURE__ */ React__default.forwardRef(function Toaster2(props, ref) {
|
|
90435
90513
|
const { id: id2, invert: invert2, position: position2 = "bottom-right", hotkey = [
|
|
90436
90514
|
"altKey",
|
|
@@ -90439,9 +90517,9 @@ const Toaster = /* @__PURE__ */ React__default.forwardRef(function Toaster2(prop
|
|
|
90439
90517
|
const [toasts, setToasts] = React__default.useState([]);
|
|
90440
90518
|
const filteredToasts = React__default.useMemo(() => {
|
|
90441
90519
|
if (id2) {
|
|
90442
|
-
return toasts.filter((
|
|
90520
|
+
return toasts.filter((toast2) => toast2.toasterId === id2);
|
|
90443
90521
|
}
|
|
90444
|
-
return toasts.filter((
|
|
90522
|
+
return toasts.filter((toast2) => !toast2.toasterId);
|
|
90445
90523
|
}, [
|
|
90446
90524
|
toasts,
|
|
90447
90525
|
id2
|
|
@@ -90449,7 +90527,7 @@ const Toaster = /* @__PURE__ */ React__default.forwardRef(function Toaster2(prop
|
|
|
90449
90527
|
const possiblePositions = React__default.useMemo(() => {
|
|
90450
90528
|
return Array.from(new Set([
|
|
90451
90529
|
position2
|
|
90452
|
-
].concat(filteredToasts.filter((
|
|
90530
|
+
].concat(filteredToasts.filter((toast2) => toast2.position).map((toast2) => toast2.position))));
|
|
90453
90531
|
}, [
|
|
90454
90532
|
filteredToasts,
|
|
90455
90533
|
position2
|
|
@@ -90465,17 +90543,17 @@ const Toaster = /* @__PURE__ */ React__default.forwardRef(function Toaster2(prop
|
|
|
90465
90543
|
const removeToast = React__default.useCallback((toastToRemove) => {
|
|
90466
90544
|
setToasts((toasts2) => {
|
|
90467
90545
|
var _toasts_find;
|
|
90468
|
-
if (!((_toasts_find = toasts2.find((
|
|
90546
|
+
if (!((_toasts_find = toasts2.find((toast2) => toast2.id === toastToRemove.id)) == null ? void 0 : _toasts_find.delete)) {
|
|
90469
90547
|
ToastState.dismiss(toastToRemove.id);
|
|
90470
90548
|
}
|
|
90471
90549
|
return toasts2.filter(({ id: id3 }) => id3 !== toastToRemove.id);
|
|
90472
90550
|
});
|
|
90473
90551
|
}, []);
|
|
90474
90552
|
React__default.useEffect(() => {
|
|
90475
|
-
return ToastState.subscribe((
|
|
90476
|
-
if (
|
|
90553
|
+
return ToastState.subscribe((toast2) => {
|
|
90554
|
+
if (toast2.dismiss) {
|
|
90477
90555
|
requestAnimationFrame(() => {
|
|
90478
|
-
setToasts((toasts2) => toasts2.map((t) => t.id ===
|
|
90556
|
+
setToasts((toasts2) => toasts2.map((t) => t.id === toast2.id ? {
|
|
90479
90557
|
...t,
|
|
90480
90558
|
delete: true
|
|
90481
90559
|
} : t));
|
|
@@ -90485,19 +90563,19 @@ const Toaster = /* @__PURE__ */ React__default.forwardRef(function Toaster2(prop
|
|
|
90485
90563
|
setTimeout(() => {
|
|
90486
90564
|
ReactDOM.flushSync(() => {
|
|
90487
90565
|
setToasts((toasts2) => {
|
|
90488
|
-
const indexOfExistingToast = toasts2.findIndex((t) => t.id ===
|
|
90566
|
+
const indexOfExistingToast = toasts2.findIndex((t) => t.id === toast2.id);
|
|
90489
90567
|
if (indexOfExistingToast !== -1) {
|
|
90490
90568
|
return [
|
|
90491
90569
|
...toasts2.slice(0, indexOfExistingToast),
|
|
90492
90570
|
{
|
|
90493
90571
|
...toasts2[indexOfExistingToast],
|
|
90494
|
-
...
|
|
90572
|
+
...toast2
|
|
90495
90573
|
},
|
|
90496
90574
|
...toasts2.slice(indexOfExistingToast + 1)
|
|
90497
90575
|
];
|
|
90498
90576
|
}
|
|
90499
90577
|
return [
|
|
90500
|
-
|
|
90578
|
+
toast2,
|
|
90501
90579
|
...toasts2
|
|
90502
90580
|
];
|
|
90503
90581
|
});
|
|
@@ -90649,13 +90727,13 @@ const Toaster = /* @__PURE__ */ React__default.forwardRef(function Toaster2(prop
|
|
|
90649
90727
|
setInteracting(true);
|
|
90650
90728
|
},
|
|
90651
90729
|
onPointerUp: () => setInteracting(false)
|
|
90652
|
-
}, filteredToasts.filter((
|
|
90730
|
+
}, filteredToasts.filter((toast2) => !toast2.position && index === 0 || toast2.position === position3).map((toast2, index2) => {
|
|
90653
90731
|
var _toastOptions_duration, _toastOptions_closeButton;
|
|
90654
90732
|
return /* @__PURE__ */ React__default.createElement(Toast, {
|
|
90655
|
-
key:
|
|
90733
|
+
key: toast2.id,
|
|
90656
90734
|
icons,
|
|
90657
90735
|
index: index2,
|
|
90658
|
-
toast,
|
|
90736
|
+
toast: toast2,
|
|
90659
90737
|
defaultRichColors: richColors,
|
|
90660
90738
|
duration: (_toastOptions_duration = toastOptions == null ? void 0 : toastOptions.duration) != null ? _toastOptions_duration : duration,
|
|
90661
90739
|
className: toastOptions == null ? void 0 : toastOptions.className,
|
|
@@ -90672,8 +90750,8 @@ const Toaster = /* @__PURE__ */ React__default.forwardRef(function Toaster2(prop
|
|
|
90672
90750
|
actionButtonStyle: toastOptions == null ? void 0 : toastOptions.actionButtonStyle,
|
|
90673
90751
|
closeButtonAriaLabel: toastOptions == null ? void 0 : toastOptions.closeButtonAriaLabel,
|
|
90674
90752
|
removeToast,
|
|
90675
|
-
toasts: filteredToasts.filter((t) => t.position ==
|
|
90676
|
-
heights: heights.filter((h) => h.position ==
|
|
90753
|
+
toasts: filteredToasts.filter((t) => t.position == toast2.position),
|
|
90754
|
+
heights: heights.filter((h) => h.position == toast2.position),
|
|
90677
90755
|
setHeights,
|
|
90678
90756
|
expandByDefault: expand,
|
|
90679
90757
|
gap,
|
|
@@ -90689,8 +90767,8 @@ const csSpinnerVariants = cva(
|
|
|
90689
90767
|
{
|
|
90690
90768
|
variants: {
|
|
90691
90769
|
variant: {
|
|
90692
|
-
base: "text-(--
|
|
90693
|
-
sub: "text-(--
|
|
90770
|
+
base: "text-(--spinner-fill-base)",
|
|
90771
|
+
sub: "text-(--spinner-fill-sub)"
|
|
90694
90772
|
}
|
|
90695
90773
|
},
|
|
90696
90774
|
defaultVariants: {
|
|
@@ -90725,33 +90803,33 @@ const CsSonner = ({ className, ...props }) => {
|
|
|
90725
90803
|
},
|
|
90726
90804
|
style: {
|
|
90727
90805
|
// Default toast
|
|
90728
|
-
"--normal-bg": "var(--
|
|
90729
|
-
"--normal-text": "var(--
|
|
90730
|
-
"--normal-border": "var(--
|
|
90731
|
-
"--border-radius": "var(--radius
|
|
90806
|
+
"--normal-bg": "var(--toast-common-bg)",
|
|
90807
|
+
"--normal-text": "var(--toast-default-title)",
|
|
90808
|
+
"--normal-border": "var(--toast-common-border)",
|
|
90809
|
+
"--border-radius": "var(--toast-common-radius)",
|
|
90732
90810
|
// Success toast
|
|
90733
|
-
"--success-bg": "var(--
|
|
90734
|
-
"--success-border": "var(--
|
|
90735
|
-
"--success-text": "var(--
|
|
90811
|
+
"--success-bg": "var(--toast-success-bg)",
|
|
90812
|
+
"--success-border": "var(--toast-success-border)",
|
|
90813
|
+
"--success-text": "var(--toast-success-title)",
|
|
90736
90814
|
// Info toast
|
|
90737
|
-
"--info-bg": "var(--
|
|
90738
|
-
"--info-border": "var(--
|
|
90739
|
-
"--info-text": "var(--
|
|
90815
|
+
"--info-bg": "var(--toast-info-bg)",
|
|
90816
|
+
"--info-border": "var(--toast-info-border)",
|
|
90817
|
+
"--info-text": "var(--toast-info-title)",
|
|
90740
90818
|
// Warning toast
|
|
90741
|
-
"--warning-bg": "var(--
|
|
90742
|
-
"--warning-border": "var(--
|
|
90743
|
-
"--warning-text": "var(--
|
|
90819
|
+
"--warning-bg": "var(--toast-warning-bg)",
|
|
90820
|
+
"--warning-border": "var(--toast-warning-border)",
|
|
90821
|
+
"--warning-text": "var(--toast-warning-title)",
|
|
90744
90822
|
// Error toast
|
|
90745
|
-
"--error-bg": "var(--
|
|
90746
|
-
"--error-border": "var(--
|
|
90747
|
-
"--error-text": "var(--
|
|
90823
|
+
"--error-bg": "var(--toast-error-bg)",
|
|
90824
|
+
"--error-border": "var(--toast-error-border)",
|
|
90825
|
+
"--error-text": "var(--toast-error-title)"
|
|
90748
90826
|
},
|
|
90749
90827
|
toastOptions: {
|
|
90750
90828
|
classNames: {
|
|
90751
|
-
toast: "boxshadow-lg! px-
|
|
90752
|
-
icon: "flex items-center! justify-center! mx-0! size-(--icon-size
|
|
90829
|
+
toast: "boxshadow-lg! px-(--toast-common-padding-x)! py-(--toast-common-padding-y)! gap-(--toast-common-gap)!",
|
|
90830
|
+
icon: "flex items-center! justify-center! mx-0! size-(--toast-common-icon-size)! [&_svg]:size-(--toast-common-icon-size)!",
|
|
90753
90831
|
content: "typo-body-sm!",
|
|
90754
|
-
description: "text-(--
|
|
90832
|
+
description: "text-(--toast-info-description)!"
|
|
90755
90833
|
}
|
|
90756
90834
|
},
|
|
90757
90835
|
richColors: true,
|
|
@@ -90769,9 +90847,9 @@ function CsSwitch({
|
|
|
90769
90847
|
"data-slot": "switch",
|
|
90770
90848
|
className: cn$1(
|
|
90771
90849
|
"peer inline-flex shrink-0 items-center outline-none transition-all disabled:cursor-not-allowed disabled:opacity-(--opacity-state-disabled)",
|
|
90772
|
-
"w-[calc(2rem+var(--
|
|
90773
|
-
"px-
|
|
90774
|
-
"data-[state=unchecked]:bg-(--
|
|
90850
|
+
"w-[calc(2rem+var(--switch-common-padding-x)*2)] h-[calc(1rem+var(--switch-common-padding-y)*2)]",
|
|
90851
|
+
"px-(--switch-common-padding-x) py-(--switch-common-padding-y) rounded-(--switch-common-radius)",
|
|
90852
|
+
"data-[state=unchecked]:bg-(--switch-off-bg) data-[state=checked]:bg-(--switch-on-bg)",
|
|
90775
90853
|
className
|
|
90776
90854
|
),
|
|
90777
90855
|
...props,
|
|
@@ -90781,7 +90859,7 @@ function CsSwitch({
|
|
|
90781
90859
|
"data-slot": "switch-thumb",
|
|
90782
90860
|
className: cn$1(
|
|
90783
90861
|
"pointer-events-none block size-4 ring-0 transition-transform",
|
|
90784
|
-
"rounded-(--radius
|
|
90862
|
+
"rounded-(--switch-common-radius) data-[state=checked]:bg-(--switch-on-thumb) data-[state=unchecked]:bg-(--switch-off-thumb)",
|
|
90785
90863
|
"data-[state=checked]:translate-x-[1rem] data-[state=unchecked]:translate-x-0"
|
|
90786
90864
|
)
|
|
90787
90865
|
}
|
|
@@ -90789,9 +90867,26 @@ function CsSwitch({
|
|
|
90789
90867
|
}
|
|
90790
90868
|
);
|
|
90791
90869
|
}
|
|
90870
|
+
function createColumnHelper() {
|
|
90871
|
+
return {
|
|
90872
|
+
accessor: (accessor, column) => {
|
|
90873
|
+
return typeof accessor === "function" ? {
|
|
90874
|
+
...column,
|
|
90875
|
+
accessorFn: accessor
|
|
90876
|
+
} : {
|
|
90877
|
+
...column,
|
|
90878
|
+
accessorKey: accessor
|
|
90879
|
+
};
|
|
90880
|
+
},
|
|
90881
|
+
display: (column) => column,
|
|
90882
|
+
group: (column) => column
|
|
90883
|
+
};
|
|
90884
|
+
}
|
|
90792
90885
|
function functionalUpdate(updater, input) {
|
|
90793
90886
|
return typeof updater === "function" ? updater(input) : updater;
|
|
90794
90887
|
}
|
|
90888
|
+
function noop() {
|
|
90889
|
+
}
|
|
90795
90890
|
function makeStateUpdater(key, instance) {
|
|
90796
90891
|
return (updater) => {
|
|
90797
90892
|
instance.setState((old) => {
|
|
@@ -91206,7 +91301,7 @@ const createRow = (table, id2, original, rowIndex, depth, subRows, parentId) =>
|
|
|
91206
91301
|
var _row$getValue;
|
|
91207
91302
|
return (_row$getValue = row.getValue(columnId)) != null ? _row$getValue : table.options.renderFallbackValue;
|
|
91208
91303
|
},
|
|
91209
|
-
subRows: [],
|
|
91304
|
+
subRows: subRows != null ? subRows : [],
|
|
91210
91305
|
getLeafRows: () => flattenBy(row.subRows, (d) => d.subRows),
|
|
91211
91306
|
getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : void 0,
|
|
91212
91307
|
getParentRows: () => {
|
|
@@ -93435,6 +93530,457 @@ function expandRows(rowModel) {
|
|
|
93435
93530
|
rowsById: rowModel.rowsById
|
|
93436
93531
|
};
|
|
93437
93532
|
}
|
|
93533
|
+
function getFacetedMinMaxValues() {
|
|
93534
|
+
return (table, columnId) => memo(() => {
|
|
93535
|
+
var _table$getColumn;
|
|
93536
|
+
return [(_table$getColumn = table.getColumn(columnId)) == null ? void 0 : _table$getColumn.getFacetedRowModel()];
|
|
93537
|
+
}, (facetedRowModel) => {
|
|
93538
|
+
if (!facetedRowModel) return void 0;
|
|
93539
|
+
const uniqueValues = facetedRowModel.flatRows.flatMap((flatRow) => {
|
|
93540
|
+
var _flatRow$getUniqueVal;
|
|
93541
|
+
return (_flatRow$getUniqueVal = flatRow.getUniqueValues(columnId)) != null ? _flatRow$getUniqueVal : [];
|
|
93542
|
+
}).map(Number).filter((value) => !Number.isNaN(value));
|
|
93543
|
+
if (!uniqueValues.length) return;
|
|
93544
|
+
let facetedMinValue = uniqueValues[0];
|
|
93545
|
+
let facetedMaxValue = uniqueValues[uniqueValues.length - 1];
|
|
93546
|
+
for (const value of uniqueValues) {
|
|
93547
|
+
if (value < facetedMinValue) facetedMinValue = value;
|
|
93548
|
+
else if (value > facetedMaxValue) facetedMaxValue = value;
|
|
93549
|
+
}
|
|
93550
|
+
return [facetedMinValue, facetedMaxValue];
|
|
93551
|
+
}, getMemoOptions(table.options, "debugTable", "getFacetedMinMaxValues"));
|
|
93552
|
+
}
|
|
93553
|
+
function filterRows(rows, filterRowImpl, table) {
|
|
93554
|
+
if (table.options.filterFromLeafRows) {
|
|
93555
|
+
return filterRowModelFromLeafs(rows, filterRowImpl, table);
|
|
93556
|
+
}
|
|
93557
|
+
return filterRowModelFromRoot(rows, filterRowImpl, table);
|
|
93558
|
+
}
|
|
93559
|
+
function filterRowModelFromLeafs(rowsToFilter, filterRow, table) {
|
|
93560
|
+
var _table$options$maxLea;
|
|
93561
|
+
const newFilteredFlatRows = [];
|
|
93562
|
+
const newFilteredRowsById = {};
|
|
93563
|
+
const maxDepth = (_table$options$maxLea = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea : 100;
|
|
93564
|
+
const recurseFilterRows = function(rowsToFilter2, depth) {
|
|
93565
|
+
if (depth === void 0) {
|
|
93566
|
+
depth = 0;
|
|
93567
|
+
}
|
|
93568
|
+
const rows = [];
|
|
93569
|
+
for (let i = 0; i < rowsToFilter2.length; i++) {
|
|
93570
|
+
var _row$subRows;
|
|
93571
|
+
let row = rowsToFilter2[i];
|
|
93572
|
+
const newRow = createRow(table, row.id, row.original, row.index, row.depth, void 0, row.parentId);
|
|
93573
|
+
newRow.columnFilters = row.columnFilters;
|
|
93574
|
+
if ((_row$subRows = row.subRows) != null && _row$subRows.length && depth < maxDepth) {
|
|
93575
|
+
newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
|
|
93576
|
+
row = newRow;
|
|
93577
|
+
if (filterRow(row) && !newRow.subRows.length) {
|
|
93578
|
+
rows.push(row);
|
|
93579
|
+
newFilteredRowsById[row.id] = row;
|
|
93580
|
+
newFilteredFlatRows.push(row);
|
|
93581
|
+
continue;
|
|
93582
|
+
}
|
|
93583
|
+
if (filterRow(row) || newRow.subRows.length) {
|
|
93584
|
+
rows.push(row);
|
|
93585
|
+
newFilteredRowsById[row.id] = row;
|
|
93586
|
+
newFilteredFlatRows.push(row);
|
|
93587
|
+
continue;
|
|
93588
|
+
}
|
|
93589
|
+
} else {
|
|
93590
|
+
row = newRow;
|
|
93591
|
+
if (filterRow(row)) {
|
|
93592
|
+
rows.push(row);
|
|
93593
|
+
newFilteredRowsById[row.id] = row;
|
|
93594
|
+
newFilteredFlatRows.push(row);
|
|
93595
|
+
}
|
|
93596
|
+
}
|
|
93597
|
+
}
|
|
93598
|
+
return rows;
|
|
93599
|
+
};
|
|
93600
|
+
return {
|
|
93601
|
+
rows: recurseFilterRows(rowsToFilter),
|
|
93602
|
+
flatRows: newFilteredFlatRows,
|
|
93603
|
+
rowsById: newFilteredRowsById
|
|
93604
|
+
};
|
|
93605
|
+
}
|
|
93606
|
+
function filterRowModelFromRoot(rowsToFilter, filterRow, table) {
|
|
93607
|
+
var _table$options$maxLea2;
|
|
93608
|
+
const newFilteredFlatRows = [];
|
|
93609
|
+
const newFilteredRowsById = {};
|
|
93610
|
+
const maxDepth = (_table$options$maxLea2 = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea2 : 100;
|
|
93611
|
+
const recurseFilterRows = function(rowsToFilter2, depth) {
|
|
93612
|
+
if (depth === void 0) {
|
|
93613
|
+
depth = 0;
|
|
93614
|
+
}
|
|
93615
|
+
const rows = [];
|
|
93616
|
+
for (let i = 0; i < rowsToFilter2.length; i++) {
|
|
93617
|
+
let row = rowsToFilter2[i];
|
|
93618
|
+
const pass = filterRow(row);
|
|
93619
|
+
if (pass) {
|
|
93620
|
+
var _row$subRows2;
|
|
93621
|
+
if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length && depth < maxDepth) {
|
|
93622
|
+
const newRow = createRow(table, row.id, row.original, row.index, row.depth, void 0, row.parentId);
|
|
93623
|
+
newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
|
|
93624
|
+
row = newRow;
|
|
93625
|
+
}
|
|
93626
|
+
rows.push(row);
|
|
93627
|
+
newFilteredFlatRows.push(row);
|
|
93628
|
+
newFilteredRowsById[row.id] = row;
|
|
93629
|
+
}
|
|
93630
|
+
}
|
|
93631
|
+
return rows;
|
|
93632
|
+
};
|
|
93633
|
+
return {
|
|
93634
|
+
rows: recurseFilterRows(rowsToFilter),
|
|
93635
|
+
flatRows: newFilteredFlatRows,
|
|
93636
|
+
rowsById: newFilteredRowsById
|
|
93637
|
+
};
|
|
93638
|
+
}
|
|
93639
|
+
function getFacetedRowModel() {
|
|
93640
|
+
return (table, columnId) => memo(() => [table.getPreFilteredRowModel(), table.getState().columnFilters, table.getState().globalFilter, table.getFilteredRowModel()], (preRowModel, columnFilters, globalFilter) => {
|
|
93641
|
+
if (!preRowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
|
|
93642
|
+
return preRowModel;
|
|
93643
|
+
}
|
|
93644
|
+
const filterableIds = [...columnFilters.map((d) => d.id).filter((d) => d !== columnId), globalFilter ? "__global__" : void 0].filter(Boolean);
|
|
93645
|
+
const filterRowsImpl = (row) => {
|
|
93646
|
+
for (let i = 0; i < filterableIds.length; i++) {
|
|
93647
|
+
if (row.columnFilters[filterableIds[i]] === false) {
|
|
93648
|
+
return false;
|
|
93649
|
+
}
|
|
93650
|
+
}
|
|
93651
|
+
return true;
|
|
93652
|
+
};
|
|
93653
|
+
return filterRows(preRowModel.rows, filterRowsImpl, table);
|
|
93654
|
+
}, getMemoOptions(table.options, "debugTable", "getFacetedRowModel"));
|
|
93655
|
+
}
|
|
93656
|
+
function getFacetedUniqueValues() {
|
|
93657
|
+
return (table, columnId) => memo(() => {
|
|
93658
|
+
var _table$getColumn;
|
|
93659
|
+
return [(_table$getColumn = table.getColumn(columnId)) == null ? void 0 : _table$getColumn.getFacetedRowModel()];
|
|
93660
|
+
}, (facetedRowModel) => {
|
|
93661
|
+
if (!facetedRowModel) return /* @__PURE__ */ new Map();
|
|
93662
|
+
let facetedUniqueValues = /* @__PURE__ */ new Map();
|
|
93663
|
+
for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
|
|
93664
|
+
const values = facetedRowModel.flatRows[i].getUniqueValues(columnId);
|
|
93665
|
+
for (let j = 0; j < values.length; j++) {
|
|
93666
|
+
const value = values[j];
|
|
93667
|
+
if (facetedUniqueValues.has(value)) {
|
|
93668
|
+
var _facetedUniqueValues$;
|
|
93669
|
+
facetedUniqueValues.set(value, ((_facetedUniqueValues$ = facetedUniqueValues.get(value)) != null ? _facetedUniqueValues$ : 0) + 1);
|
|
93670
|
+
} else {
|
|
93671
|
+
facetedUniqueValues.set(value, 1);
|
|
93672
|
+
}
|
|
93673
|
+
}
|
|
93674
|
+
}
|
|
93675
|
+
return facetedUniqueValues;
|
|
93676
|
+
}, getMemoOptions(table.options, "debugTable", `getFacetedUniqueValues_${columnId}`));
|
|
93677
|
+
}
|
|
93678
|
+
function getFilteredRowModel() {
|
|
93679
|
+
return (table) => memo(() => [table.getPreFilteredRowModel(), table.getState().columnFilters, table.getState().globalFilter], (rowModel, columnFilters, globalFilter) => {
|
|
93680
|
+
if (!rowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
|
|
93681
|
+
for (let i = 0; i < rowModel.flatRows.length; i++) {
|
|
93682
|
+
rowModel.flatRows[i].columnFilters = {};
|
|
93683
|
+
rowModel.flatRows[i].columnFiltersMeta = {};
|
|
93684
|
+
}
|
|
93685
|
+
return rowModel;
|
|
93686
|
+
}
|
|
93687
|
+
const resolvedColumnFilters = [];
|
|
93688
|
+
const resolvedGlobalFilters = [];
|
|
93689
|
+
(columnFilters != null ? columnFilters : []).forEach((d) => {
|
|
93690
|
+
var _filterFn$resolveFilt;
|
|
93691
|
+
const column = table.getColumn(d.id);
|
|
93692
|
+
if (!column) {
|
|
93693
|
+
return;
|
|
93694
|
+
}
|
|
93695
|
+
const filterFn = column.getFilterFn();
|
|
93696
|
+
if (!filterFn) {
|
|
93697
|
+
if (process.env.NODE_ENV !== "production") {
|
|
93698
|
+
console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${column.id}.`);
|
|
93699
|
+
}
|
|
93700
|
+
return;
|
|
93701
|
+
}
|
|
93702
|
+
resolvedColumnFilters.push({
|
|
93703
|
+
id: d.id,
|
|
93704
|
+
filterFn,
|
|
93705
|
+
resolvedValue: (_filterFn$resolveFilt = filterFn.resolveFilterValue == null ? void 0 : filterFn.resolveFilterValue(d.value)) != null ? _filterFn$resolveFilt : d.value
|
|
93706
|
+
});
|
|
93707
|
+
});
|
|
93708
|
+
const filterableIds = (columnFilters != null ? columnFilters : []).map((d) => d.id);
|
|
93709
|
+
const globalFilterFn = table.getGlobalFilterFn();
|
|
93710
|
+
const globallyFilterableColumns = table.getAllLeafColumns().filter((column) => column.getCanGlobalFilter());
|
|
93711
|
+
if (globalFilter && globalFilterFn && globallyFilterableColumns.length) {
|
|
93712
|
+
filterableIds.push("__global__");
|
|
93713
|
+
globallyFilterableColumns.forEach((column) => {
|
|
93714
|
+
var _globalFilterFn$resol;
|
|
93715
|
+
resolvedGlobalFilters.push({
|
|
93716
|
+
id: column.id,
|
|
93717
|
+
filterFn: globalFilterFn,
|
|
93718
|
+
resolvedValue: (_globalFilterFn$resol = globalFilterFn.resolveFilterValue == null ? void 0 : globalFilterFn.resolveFilterValue(globalFilter)) != null ? _globalFilterFn$resol : globalFilter
|
|
93719
|
+
});
|
|
93720
|
+
});
|
|
93721
|
+
}
|
|
93722
|
+
let currentColumnFilter;
|
|
93723
|
+
let currentGlobalFilter;
|
|
93724
|
+
for (let j = 0; j < rowModel.flatRows.length; j++) {
|
|
93725
|
+
const row = rowModel.flatRows[j];
|
|
93726
|
+
row.columnFilters = {};
|
|
93727
|
+
if (resolvedColumnFilters.length) {
|
|
93728
|
+
for (let i = 0; i < resolvedColumnFilters.length; i++) {
|
|
93729
|
+
currentColumnFilter = resolvedColumnFilters[i];
|
|
93730
|
+
const id2 = currentColumnFilter.id;
|
|
93731
|
+
row.columnFilters[id2] = currentColumnFilter.filterFn(row, id2, currentColumnFilter.resolvedValue, (filterMeta) => {
|
|
93732
|
+
row.columnFiltersMeta[id2] = filterMeta;
|
|
93733
|
+
});
|
|
93734
|
+
}
|
|
93735
|
+
}
|
|
93736
|
+
if (resolvedGlobalFilters.length) {
|
|
93737
|
+
for (let i = 0; i < resolvedGlobalFilters.length; i++) {
|
|
93738
|
+
currentGlobalFilter = resolvedGlobalFilters[i];
|
|
93739
|
+
const id2 = currentGlobalFilter.id;
|
|
93740
|
+
if (currentGlobalFilter.filterFn(row, id2, currentGlobalFilter.resolvedValue, (filterMeta) => {
|
|
93741
|
+
row.columnFiltersMeta[id2] = filterMeta;
|
|
93742
|
+
})) {
|
|
93743
|
+
row.columnFilters.__global__ = true;
|
|
93744
|
+
break;
|
|
93745
|
+
}
|
|
93746
|
+
}
|
|
93747
|
+
if (row.columnFilters.__global__ !== true) {
|
|
93748
|
+
row.columnFilters.__global__ = false;
|
|
93749
|
+
}
|
|
93750
|
+
}
|
|
93751
|
+
}
|
|
93752
|
+
const filterRowsImpl = (row) => {
|
|
93753
|
+
for (let i = 0; i < filterableIds.length; i++) {
|
|
93754
|
+
if (row.columnFilters[filterableIds[i]] === false) {
|
|
93755
|
+
return false;
|
|
93756
|
+
}
|
|
93757
|
+
}
|
|
93758
|
+
return true;
|
|
93759
|
+
};
|
|
93760
|
+
return filterRows(rowModel.rows, filterRowsImpl, table);
|
|
93761
|
+
}, getMemoOptions(table.options, "debugTable", "getFilteredRowModel", () => table._autoResetPageIndex()));
|
|
93762
|
+
}
|
|
93763
|
+
function getGroupedRowModel() {
|
|
93764
|
+
return (table) => memo(() => [table.getState().grouping, table.getPreGroupedRowModel()], (grouping, rowModel) => {
|
|
93765
|
+
if (!rowModel.rows.length || !grouping.length) {
|
|
93766
|
+
rowModel.rows.forEach((row) => {
|
|
93767
|
+
row.depth = 0;
|
|
93768
|
+
row.parentId = void 0;
|
|
93769
|
+
});
|
|
93770
|
+
return rowModel;
|
|
93771
|
+
}
|
|
93772
|
+
const existingGrouping = grouping.filter((columnId) => table.getColumn(columnId));
|
|
93773
|
+
const groupedFlatRows = [];
|
|
93774
|
+
const groupedRowsById = {};
|
|
93775
|
+
const groupUpRecursively = function(rows, depth, parentId) {
|
|
93776
|
+
if (depth === void 0) {
|
|
93777
|
+
depth = 0;
|
|
93778
|
+
}
|
|
93779
|
+
if (depth >= existingGrouping.length) {
|
|
93780
|
+
return rows.map((row) => {
|
|
93781
|
+
row.depth = depth;
|
|
93782
|
+
groupedFlatRows.push(row);
|
|
93783
|
+
groupedRowsById[row.id] = row;
|
|
93784
|
+
if (row.subRows) {
|
|
93785
|
+
row.subRows = groupUpRecursively(row.subRows, depth + 1, row.id);
|
|
93786
|
+
}
|
|
93787
|
+
return row;
|
|
93788
|
+
});
|
|
93789
|
+
}
|
|
93790
|
+
const columnId = existingGrouping[depth];
|
|
93791
|
+
const rowGroupsMap = groupBy(rows, columnId);
|
|
93792
|
+
const aggregatedGroupedRows = Array.from(rowGroupsMap.entries()).map((_ref, index) => {
|
|
93793
|
+
let [groupingValue, groupedRows2] = _ref;
|
|
93794
|
+
let id2 = `${columnId}:${groupingValue}`;
|
|
93795
|
+
id2 = parentId ? `${parentId}>${id2}` : id2;
|
|
93796
|
+
const subRows = groupUpRecursively(groupedRows2, depth + 1, id2);
|
|
93797
|
+
subRows.forEach((subRow) => {
|
|
93798
|
+
subRow.parentId = id2;
|
|
93799
|
+
});
|
|
93800
|
+
const leafRows = depth ? flattenBy(groupedRows2, (row2) => row2.subRows) : groupedRows2;
|
|
93801
|
+
const row = createRow(table, id2, leafRows[0].original, index, depth, void 0, parentId);
|
|
93802
|
+
Object.assign(row, {
|
|
93803
|
+
groupingColumnId: columnId,
|
|
93804
|
+
groupingValue,
|
|
93805
|
+
subRows,
|
|
93806
|
+
leafRows,
|
|
93807
|
+
getValue: (columnId2) => {
|
|
93808
|
+
if (existingGrouping.includes(columnId2)) {
|
|
93809
|
+
if (row._valuesCache.hasOwnProperty(columnId2)) {
|
|
93810
|
+
return row._valuesCache[columnId2];
|
|
93811
|
+
}
|
|
93812
|
+
if (groupedRows2[0]) {
|
|
93813
|
+
var _groupedRows$0$getVal;
|
|
93814
|
+
row._valuesCache[columnId2] = (_groupedRows$0$getVal = groupedRows2[0].getValue(columnId2)) != null ? _groupedRows$0$getVal : void 0;
|
|
93815
|
+
}
|
|
93816
|
+
return row._valuesCache[columnId2];
|
|
93817
|
+
}
|
|
93818
|
+
if (row._groupingValuesCache.hasOwnProperty(columnId2)) {
|
|
93819
|
+
return row._groupingValuesCache[columnId2];
|
|
93820
|
+
}
|
|
93821
|
+
const column = table.getColumn(columnId2);
|
|
93822
|
+
const aggregateFn = column == null ? void 0 : column.getAggregationFn();
|
|
93823
|
+
if (aggregateFn) {
|
|
93824
|
+
row._groupingValuesCache[columnId2] = aggregateFn(columnId2, leafRows, groupedRows2);
|
|
93825
|
+
return row._groupingValuesCache[columnId2];
|
|
93826
|
+
}
|
|
93827
|
+
}
|
|
93828
|
+
});
|
|
93829
|
+
subRows.forEach((subRow) => {
|
|
93830
|
+
groupedFlatRows.push(subRow);
|
|
93831
|
+
groupedRowsById[subRow.id] = subRow;
|
|
93832
|
+
});
|
|
93833
|
+
return row;
|
|
93834
|
+
});
|
|
93835
|
+
return aggregatedGroupedRows;
|
|
93836
|
+
};
|
|
93837
|
+
const groupedRows = groupUpRecursively(rowModel.rows, 0);
|
|
93838
|
+
groupedRows.forEach((subRow) => {
|
|
93839
|
+
groupedFlatRows.push(subRow);
|
|
93840
|
+
groupedRowsById[subRow.id] = subRow;
|
|
93841
|
+
});
|
|
93842
|
+
return {
|
|
93843
|
+
rows: groupedRows,
|
|
93844
|
+
flatRows: groupedFlatRows,
|
|
93845
|
+
rowsById: groupedRowsById
|
|
93846
|
+
};
|
|
93847
|
+
}, getMemoOptions(table.options, "debugTable", "getGroupedRowModel", () => {
|
|
93848
|
+
table._queue(() => {
|
|
93849
|
+
table._autoResetExpanded();
|
|
93850
|
+
table._autoResetPageIndex();
|
|
93851
|
+
});
|
|
93852
|
+
}));
|
|
93853
|
+
}
|
|
93854
|
+
function groupBy(rows, columnId) {
|
|
93855
|
+
const groupMap = /* @__PURE__ */ new Map();
|
|
93856
|
+
return rows.reduce((map2, row) => {
|
|
93857
|
+
const resKey = `${row.getGroupingValue(columnId)}`;
|
|
93858
|
+
const previous = map2.get(resKey);
|
|
93859
|
+
if (!previous) {
|
|
93860
|
+
map2.set(resKey, [row]);
|
|
93861
|
+
} else {
|
|
93862
|
+
previous.push(row);
|
|
93863
|
+
}
|
|
93864
|
+
return map2;
|
|
93865
|
+
}, groupMap);
|
|
93866
|
+
}
|
|
93867
|
+
function getPaginationRowModel(opts) {
|
|
93868
|
+
return (table) => memo(() => [table.getState().pagination, table.getPrePaginationRowModel(), table.options.paginateExpandedRows ? void 0 : table.getState().expanded], (pagination, rowModel) => {
|
|
93869
|
+
if (!rowModel.rows.length) {
|
|
93870
|
+
return rowModel;
|
|
93871
|
+
}
|
|
93872
|
+
const {
|
|
93873
|
+
pageSize,
|
|
93874
|
+
pageIndex
|
|
93875
|
+
} = pagination;
|
|
93876
|
+
let {
|
|
93877
|
+
rows,
|
|
93878
|
+
flatRows,
|
|
93879
|
+
rowsById
|
|
93880
|
+
} = rowModel;
|
|
93881
|
+
const pageStart = pageSize * pageIndex;
|
|
93882
|
+
const pageEnd = pageStart + pageSize;
|
|
93883
|
+
rows = rows.slice(pageStart, pageEnd);
|
|
93884
|
+
let paginatedRowModel;
|
|
93885
|
+
if (!table.options.paginateExpandedRows) {
|
|
93886
|
+
paginatedRowModel = expandRows({
|
|
93887
|
+
rows,
|
|
93888
|
+
flatRows,
|
|
93889
|
+
rowsById
|
|
93890
|
+
});
|
|
93891
|
+
} else {
|
|
93892
|
+
paginatedRowModel = {
|
|
93893
|
+
rows,
|
|
93894
|
+
flatRows,
|
|
93895
|
+
rowsById
|
|
93896
|
+
};
|
|
93897
|
+
}
|
|
93898
|
+
paginatedRowModel.flatRows = [];
|
|
93899
|
+
const handleRow = (row) => {
|
|
93900
|
+
paginatedRowModel.flatRows.push(row);
|
|
93901
|
+
if (row.subRows.length) {
|
|
93902
|
+
row.subRows.forEach(handleRow);
|
|
93903
|
+
}
|
|
93904
|
+
};
|
|
93905
|
+
paginatedRowModel.rows.forEach(handleRow);
|
|
93906
|
+
return paginatedRowModel;
|
|
93907
|
+
}, getMemoOptions(table.options, "debugTable", "getPaginationRowModel"));
|
|
93908
|
+
}
|
|
93909
|
+
function getSortedRowModel() {
|
|
93910
|
+
return (table) => memo(() => [table.getState().sorting, table.getPreSortedRowModel()], (sorting, rowModel) => {
|
|
93911
|
+
if (!rowModel.rows.length || !(sorting != null && sorting.length)) {
|
|
93912
|
+
return rowModel;
|
|
93913
|
+
}
|
|
93914
|
+
const sortingState = table.getState().sorting;
|
|
93915
|
+
const sortedFlatRows = [];
|
|
93916
|
+
const availableSorting = sortingState.filter((sort2) => {
|
|
93917
|
+
var _table$getColumn;
|
|
93918
|
+
return (_table$getColumn = table.getColumn(sort2.id)) == null ? void 0 : _table$getColumn.getCanSort();
|
|
93919
|
+
});
|
|
93920
|
+
const columnInfoById = {};
|
|
93921
|
+
availableSorting.forEach((sortEntry) => {
|
|
93922
|
+
const column = table.getColumn(sortEntry.id);
|
|
93923
|
+
if (!column) return;
|
|
93924
|
+
columnInfoById[sortEntry.id] = {
|
|
93925
|
+
sortUndefined: column.columnDef.sortUndefined,
|
|
93926
|
+
invertSorting: column.columnDef.invertSorting,
|
|
93927
|
+
sortingFn: column.getSortingFn()
|
|
93928
|
+
};
|
|
93929
|
+
});
|
|
93930
|
+
const sortData = (rows) => {
|
|
93931
|
+
const sortedData = rows.map((row) => ({
|
|
93932
|
+
...row
|
|
93933
|
+
}));
|
|
93934
|
+
sortedData.sort((rowA, rowB) => {
|
|
93935
|
+
for (let i = 0; i < availableSorting.length; i += 1) {
|
|
93936
|
+
var _sortEntry$desc;
|
|
93937
|
+
const sortEntry = availableSorting[i];
|
|
93938
|
+
const columnInfo = columnInfoById[sortEntry.id];
|
|
93939
|
+
const sortUndefined = columnInfo.sortUndefined;
|
|
93940
|
+
const isDesc = (_sortEntry$desc = sortEntry == null ? void 0 : sortEntry.desc) != null ? _sortEntry$desc : false;
|
|
93941
|
+
let sortInt = 0;
|
|
93942
|
+
if (sortUndefined) {
|
|
93943
|
+
const aValue = rowA.getValue(sortEntry.id);
|
|
93944
|
+
const bValue = rowB.getValue(sortEntry.id);
|
|
93945
|
+
const aUndefined = aValue === void 0;
|
|
93946
|
+
const bUndefined = bValue === void 0;
|
|
93947
|
+
if (aUndefined || bUndefined) {
|
|
93948
|
+
if (sortUndefined === "first") return aUndefined ? -1 : 1;
|
|
93949
|
+
if (sortUndefined === "last") return aUndefined ? 1 : -1;
|
|
93950
|
+
sortInt = aUndefined && bUndefined ? 0 : aUndefined ? sortUndefined : -sortUndefined;
|
|
93951
|
+
}
|
|
93952
|
+
}
|
|
93953
|
+
if (sortInt === 0) {
|
|
93954
|
+
sortInt = columnInfo.sortingFn(rowA, rowB, sortEntry.id);
|
|
93955
|
+
}
|
|
93956
|
+
if (sortInt !== 0) {
|
|
93957
|
+
if (isDesc) {
|
|
93958
|
+
sortInt *= -1;
|
|
93959
|
+
}
|
|
93960
|
+
if (columnInfo.invertSorting) {
|
|
93961
|
+
sortInt *= -1;
|
|
93962
|
+
}
|
|
93963
|
+
return sortInt;
|
|
93964
|
+
}
|
|
93965
|
+
}
|
|
93966
|
+
return rowA.index - rowB.index;
|
|
93967
|
+
});
|
|
93968
|
+
sortedData.forEach((row) => {
|
|
93969
|
+
var _row$subRows;
|
|
93970
|
+
sortedFlatRows.push(row);
|
|
93971
|
+
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
93972
|
+
row.subRows = sortData(row.subRows);
|
|
93973
|
+
}
|
|
93974
|
+
});
|
|
93975
|
+
return sortedData;
|
|
93976
|
+
};
|
|
93977
|
+
return {
|
|
93978
|
+
rows: sortData(rowModel.rows),
|
|
93979
|
+
flatRows: sortedFlatRows,
|
|
93980
|
+
rowsById: rowModel.rowsById
|
|
93981
|
+
};
|
|
93982
|
+
}, getMemoOptions(table.options, "debugTable", "getSortedRowModel", () => table._autoResetPageIndex()));
|
|
93983
|
+
}
|
|
93438
93984
|
function flexRender(Comp, props) {
|
|
93439
93985
|
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React.createElement(Comp, props) : Comp;
|
|
93440
93986
|
}
|
|
@@ -93485,7 +94031,7 @@ function CsTable({ className, ...props }) {
|
|
|
93485
94031
|
"div",
|
|
93486
94032
|
{
|
|
93487
94033
|
"data-slot": "table-container",
|
|
93488
|
-
className: "relative w-full overflow-x-auto bg-(--
|
|
94034
|
+
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)",
|
|
93489
94035
|
children: /* @__PURE__ */ jsx(
|
|
93490
94036
|
"table",
|
|
93491
94037
|
{
|
|
@@ -93523,7 +94069,7 @@ function CsTableFooter({ className, ...props }) {
|
|
|
93523
94069
|
{
|
|
93524
94070
|
"data-slot": "table-footer",
|
|
93525
94071
|
className: cn$1(
|
|
93526
|
-
"bg-(--
|
|
94072
|
+
"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",
|
|
93527
94073
|
className
|
|
93528
94074
|
),
|
|
93529
94075
|
...props
|
|
@@ -93536,7 +94082,7 @@ function CsTableRow({ className, ...props }) {
|
|
|
93536
94082
|
{
|
|
93537
94083
|
"data-slot": "table-row",
|
|
93538
94084
|
className: cn$1(
|
|
93539
|
-
"border-b-(--
|
|
94085
|
+
"border-b-(--table-item-cell-border) border-b-(length:--table-item-cell-boder-width) transition-colors",
|
|
93540
94086
|
"last:border-b-0",
|
|
93541
94087
|
className
|
|
93542
94088
|
),
|
|
@@ -93550,7 +94096,7 @@ function CsTableHead({ className, ...props }) {
|
|
|
93550
94096
|
{
|
|
93551
94097
|
"data-slot": "table-head",
|
|
93552
94098
|
className: cn$1(
|
|
93553
|
-
"typo-body-sm text-(--
|
|
94099
|
+
"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)",
|
|
93554
94100
|
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
93555
94101
|
className
|
|
93556
94102
|
),
|
|
@@ -93564,9 +94110,9 @@ function CsTableCell({ className, ...props }) {
|
|
|
93564
94110
|
{
|
|
93565
94111
|
"data-slot": "table-cell",
|
|
93566
94112
|
className: cn$1(
|
|
93567
|
-
"typo-body-sm bg-(--
|
|
94113
|
+
"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)",
|
|
93568
94114
|
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
93569
|
-
"last:bg-(--
|
|
94115
|
+
"last:bg-(--table-item-cell-last-bg)",
|
|
93570
94116
|
className
|
|
93571
94117
|
),
|
|
93572
94118
|
...props
|
|
@@ -93581,7 +94127,7 @@ function CsTableCaption({
|
|
|
93581
94127
|
"caption",
|
|
93582
94128
|
{
|
|
93583
94129
|
"data-slot": "table-caption",
|
|
93584
|
-
className: cn$1("typo-productive-caption text-(--
|
|
94130
|
+
className: cn$1("typo-productive-caption text-(--table-item-cell-value-font-brand)", className),
|
|
93585
94131
|
...props
|
|
93586
94132
|
}
|
|
93587
94133
|
);
|
|
@@ -93701,7 +94247,7 @@ function CsDataTable(props) {
|
|
|
93701
94247
|
/* @__PURE__ */ jsx(CsTableHeader, { children: renderTableHead() }),
|
|
93702
94248
|
/* @__PURE__ */ jsxs(CsTableBody, { children: [
|
|
93703
94249
|
renderTableBody(),
|
|
93704
|
-
hasNextPage && /* @__PURE__ */ jsx(CsTableRow, { ref: scrollContainerRef, className: "px-
|
|
94250
|
+
hasNextPage && /* @__PURE__ */ jsx(CsTableRow, { ref: scrollContainerRef, className: "px-(--table-item-common-padding-x) py-(--table-item-common-padding-y)", children: /* @__PURE__ */ jsx(CsTableCell, { colSpan: columns.length, children: /* @__PURE__ */ jsx("div", { className: "flex w-full items-center justify-center", children: /* @__PURE__ */ jsx(CsSpinner, {}) }) }) })
|
|
93705
94251
|
] })
|
|
93706
94252
|
] }),
|
|
93707
94253
|
/* @__PURE__ */ jsx(
|
|
@@ -93714,7 +94260,7 @@ function CsDataTable(props) {
|
|
|
93714
94260
|
] });
|
|
93715
94261
|
}
|
|
93716
94262
|
const csTabsListVariants = cva(
|
|
93717
|
-
"group inline-flex h-fit w-fit items-center justify-center rounded-(--radius
|
|
94263
|
+
"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)",
|
|
93718
94264
|
{
|
|
93719
94265
|
variants: {
|
|
93720
94266
|
variant: {
|
|
@@ -93725,7 +94271,7 @@ const csTabsListVariants = cva(
|
|
|
93725
94271
|
gradient: ""
|
|
93726
94272
|
},
|
|
93727
94273
|
background: {
|
|
93728
|
-
true: "bg-(--
|
|
94274
|
+
true: "bg-(--tabs-container-bg)",
|
|
93729
94275
|
false: "bg-transparent"
|
|
93730
94276
|
}
|
|
93731
94277
|
},
|
|
@@ -93743,7 +94289,7 @@ function CsTabs({
|
|
|
93743
94289
|
TabsPrimitive.Root,
|
|
93744
94290
|
{
|
|
93745
94291
|
"data-slot": "tabs",
|
|
93746
|
-
className: cn$1("flex flex-col gap-
|
|
94292
|
+
className: cn$1("flex flex-col gap-(--tabs-container-gap)", className),
|
|
93747
94293
|
...props
|
|
93748
94294
|
}
|
|
93749
94295
|
);
|
|
@@ -93773,24 +94319,24 @@ function CsTabsTrigger({
|
|
|
93773
94319
|
{
|
|
93774
94320
|
"data-slot": "tabs-trigger",
|
|
93775
94321
|
className: cn$1(
|
|
93776
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-(--radius
|
|
94322
|
+
"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",
|
|
93777
94323
|
// Solid
|
|
93778
|
-
"group-data-[variant=solid]:data-[state=active]:bg-(--
|
|
93779
|
-
"group-data-[variant=solid]:bg-(--
|
|
93780
|
-
"group-data-[variant=solid]:hover:bg-(--
|
|
94324
|
+
"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)",
|
|
94325
|
+
"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)",
|
|
94326
|
+
"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)",
|
|
93781
94327
|
// Solid-line
|
|
93782
|
-
"group-data-[variant=solid-line]:data-[state=active]:bg-(--
|
|
93783
|
-
"group-data-[variant=solid-line]:bg-(--
|
|
93784
|
-
"group-data-[variant=solid-line]:hover:bg-(--
|
|
94328
|
+
"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)",
|
|
94329
|
+
"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)",
|
|
94330
|
+
"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)",
|
|
93785
94331
|
// Solid-ghost
|
|
93786
|
-
"group-data-[variant=solid-ghost]:data-[state=active]:bg-(--
|
|
93787
|
-
"group-data-[variant=solid-ghost]:text-(--
|
|
93788
|
-
"group-data-[variant=solid-ghost]:hover:bg-(--
|
|
94332
|
+
"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)",
|
|
94333
|
+
"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)",
|
|
94334
|
+
"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)",
|
|
93789
94335
|
// Bottom-border
|
|
93790
94336
|
"group-data-[variant=bottom-border]:rounded-none",
|
|
93791
|
-
"group-data-[variant=bottom-border]:data-[state=active]:text-(--
|
|
93792
|
-
"group-data-[variant=bottom-border]:text-(--
|
|
93793
|
-
"group-data-[variant=bottom-border]:hover:text-(--
|
|
94337
|
+
"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)",
|
|
94338
|
+
"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",
|
|
94339
|
+
"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)",
|
|
93794
94340
|
// Gradient
|
|
93795
94341
|
"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)",
|
|
93796
94342
|
"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)",
|
|
@@ -93815,19 +94361,19 @@ function CsTabsContent({
|
|
|
93815
94361
|
);
|
|
93816
94362
|
}
|
|
93817
94363
|
const csToggleVariants = cva(
|
|
93818
|
-
"inline-flex items-center w-fit justify-center gap-
|
|
94364
|
+
"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",
|
|
93819
94365
|
{
|
|
93820
94366
|
variants: {
|
|
93821
94367
|
variant: {
|
|
93822
94368
|
solid: [
|
|
93823
|
-
"bg-(--
|
|
93824
|
-
"hover:bg-(--
|
|
93825
|
-
"data-[state=on]:bg-(--
|
|
94369
|
+
"bg-(--toggle-solid-default-bg) text-(--toggle-solid-default-font) [&_svg]:text-(--toggle-solid-default-icon)",
|
|
94370
|
+
"hover:bg-(--toggle-solid-hover-bg) hover:text-(--toggle-solid-hover-font) hover:[&_svg]:text-(--toggle-solid-hover-icon)",
|
|
94371
|
+
"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)"
|
|
93826
94372
|
].join(" "),
|
|
93827
94373
|
outline: [
|
|
93828
|
-
"bg-(--
|
|
93829
|
-
"hover:bg-(--
|
|
93830
|
-
"data-[state=on]:bg-(--
|
|
94374
|
+
"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)",
|
|
94375
|
+
"hover:bg-(--toggle-outline-hover-bg) hover:text-(--toggle-outline-hover-font) hover:[&_svg]:text-(--toggle-outline-hover-icon) border-(--toggle-outline-hover-border)",
|
|
94376
|
+
"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)"
|
|
93831
94377
|
].join(" ")
|
|
93832
94378
|
}
|
|
93833
94379
|
},
|
|
@@ -93869,7 +94415,7 @@ function ToggleGroup({
|
|
|
93869
94415
|
"data-spacing": spacing,
|
|
93870
94416
|
style: { "--gap": spacing },
|
|
93871
94417
|
className: cn$1(
|
|
93872
|
-
"group/toggle-group flex w-fit items-center gap-
|
|
94418
|
+
"group/toggle-group flex w-fit items-center gap-(--toggle-common-gap-group)",
|
|
93873
94419
|
className
|
|
93874
94420
|
),
|
|
93875
94421
|
...props,
|
|
@@ -93894,7 +94440,7 @@ function ToggleGroupItem({
|
|
|
93894
94440
|
csToggleVariants({
|
|
93895
94441
|
variant: context.variant || variant
|
|
93896
94442
|
}),
|
|
93897
|
-
"data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-
|
|
94443
|
+
"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",
|
|
93898
94444
|
className
|
|
93899
94445
|
),
|
|
93900
94446
|
...props,
|
|
@@ -93965,6 +94511,14 @@ const useAccordion = (itemKeys, options) => {
|
|
|
93965
94511
|
};
|
|
93966
94512
|
};
|
|
93967
94513
|
export {
|
|
94514
|
+
ColumnFaceting,
|
|
94515
|
+
ColumnFiltering,
|
|
94516
|
+
ColumnGrouping,
|
|
94517
|
+
ColumnOrdering,
|
|
94518
|
+
ColumnPinning,
|
|
94519
|
+
ColumnSizing,
|
|
94520
|
+
ColumnVisibility,
|
|
94521
|
+
Content,
|
|
93968
94522
|
CsAccordion,
|
|
93969
94523
|
CsAccordionContent,
|
|
93970
94524
|
CsAccordionItem,
|
|
@@ -94120,9 +94674,33 @@ export {
|
|
|
94120
94674
|
CsTooltipContent,
|
|
94121
94675
|
CsTooltipProvider,
|
|
94122
94676
|
CsTooltipTrigger,
|
|
94677
|
+
Drawer,
|
|
94678
|
+
ErrorCode,
|
|
94679
|
+
GlobalFaceting,
|
|
94680
|
+
GlobalFiltering,
|
|
94681
|
+
Handle,
|
|
94682
|
+
Headers,
|
|
94683
|
+
NestedRoot,
|
|
94684
|
+
Overlay,
|
|
94685
|
+
Portal,
|
|
94686
|
+
Root,
|
|
94687
|
+
RowExpanding,
|
|
94688
|
+
RowPagination,
|
|
94689
|
+
RowPinning,
|
|
94690
|
+
RowSelection,
|
|
94691
|
+
RowSorting,
|
|
94692
|
+
Toaster,
|
|
94123
94693
|
ToggleGroup,
|
|
94124
94694
|
ToggleGroupItem,
|
|
94695
|
+
_getVisibleLeafColumns,
|
|
94696
|
+
aggregationFns,
|
|
94697
|
+
buildHeaderGroups,
|
|
94125
94698
|
cn$1 as cn,
|
|
94699
|
+
createCell,
|
|
94700
|
+
createColumn,
|
|
94701
|
+
createColumnHelper,
|
|
94702
|
+
createRow,
|
|
94703
|
+
createTable,
|
|
94126
94704
|
csBadgeVariants,
|
|
94127
94705
|
csButtonVariants,
|
|
94128
94706
|
csChartTooltipStyle,
|
|
@@ -94135,7 +94713,40 @@ export {
|
|
|
94135
94713
|
csTabsListVariants,
|
|
94136
94714
|
csToggleVariants,
|
|
94137
94715
|
csTooltipContentVariants,
|
|
94716
|
+
defaultColumnSizing,
|
|
94717
|
+
expandRows,
|
|
94718
|
+
filterFns,
|
|
94719
|
+
flattenBy,
|
|
94720
|
+
flexRender,
|
|
94721
|
+
functionalUpdate,
|
|
94722
|
+
getCoreRowModel,
|
|
94723
|
+
getExpandedRowModel,
|
|
94724
|
+
getFacetedMinMaxValues,
|
|
94725
|
+
getFacetedRowModel,
|
|
94726
|
+
getFacetedUniqueValues,
|
|
94727
|
+
getFilteredRowModel,
|
|
94728
|
+
getGroupedRowModel,
|
|
94729
|
+
getMemoOptions,
|
|
94730
|
+
getPaginationRowModel,
|
|
94731
|
+
getSortedRowModel,
|
|
94732
|
+
isFunction,
|
|
94733
|
+
isNumberArray,
|
|
94734
|
+
isRowSelected,
|
|
94735
|
+
isSubRowSelected,
|
|
94736
|
+
makeStateUpdater,
|
|
94737
|
+
memo,
|
|
94738
|
+
noop,
|
|
94739
|
+
orderColumns,
|
|
94740
|
+
passiveEventSupported,
|
|
94741
|
+
reSplitAlphaNumeric,
|
|
94742
|
+
selectRowsFn,
|
|
94743
|
+
shouldAutoRemoveFilter,
|
|
94744
|
+
sortingFns,
|
|
94745
|
+
toast,
|
|
94138
94746
|
useAccordion,
|
|
94139
|
-
|
|
94747
|
+
useDropzone,
|
|
94748
|
+
useIsMobile,
|
|
94749
|
+
useReactTable,
|
|
94750
|
+
useSonner
|
|
94140
94751
|
};
|
|
94141
94752
|
//# sourceMappingURL=index.es.js.map
|