@bitrix24/b24ui-nuxt 0.4.11 → 0.5.1
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/.nuxt/b24ui/navigation-menu.ts +301 -68
- package/.nuxt/b24ui/sidebar-body.ts +1 -1
- package/.nuxt/b24ui/sidebar-footer.ts +1 -1
- package/.nuxt/b24ui/sidebar-header.ts +1 -1
- package/.nuxt/b24ui/sidebar-heading.ts +1 -1
- package/.nuxt/b24ui/sidebar-section.ts +1 -1
- package/.nuxt/b24ui.css +1 -1
- package/README.md +2 -2
- package/dist/meta.cjs +6503 -263
- package/dist/meta.d.cts +6503 -263
- package/dist/meta.d.mts +6503 -263
- package/dist/meta.d.ts +6503 -263
- package/dist/meta.mjs +6503 -263
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/DropdownMenu.vue +5 -5
- package/dist/runtime/components/Form.vue +21 -1
- package/dist/runtime/components/FormField.vue +5 -0
- package/dist/runtime/components/InputMenu.vue +3 -3
- package/dist/runtime/components/Modal.vue +10 -7
- package/dist/runtime/components/NavigationMenu.vue +44 -36
- package/dist/runtime/components/Popover.vue +3 -2
- package/dist/runtime/components/RadioGroup.vue +2 -2
- package/dist/runtime/components/Select.vue +3 -3
- package/dist/runtime/components/SelectMenu.vue +3 -3
- package/dist/runtime/components/Slideover.vue +10 -7
- package/dist/runtime/components/Toast.vue +1 -1
- package/dist/runtime/components/Tooltip.vue +3 -2
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/plugins/colors.d.ts +3 -0
- package/dist/runtime/types/form.d.ts +1 -3
- package/dist/runtime/utils/form.d.ts +0 -4
- package/dist/runtime/utils/form.js +2 -47
- package/dist/runtime/utils/link.d.ts +8 -8
- package/dist/runtime/vue/stubs.d.ts +1 -1
- package/dist/shared/{b24ui-nuxt.CJqO7fYv.mjs → b24ui-nuxt.CBnBA3PE.mjs} +466 -56
- package/dist/shared/{b24ui-nuxt.CltBJi1M.cjs → b24ui-nuxt.ClMXHpMM.cjs} +466 -56
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +11 -11
|
@@ -3515,47 +3515,135 @@ const modal = {
|
|
|
3515
3515
|
|
|
3516
3516
|
const navigationMenu = {
|
|
3517
3517
|
slots: {
|
|
3518
|
-
root: "relative flex
|
|
3518
|
+
root: "relative flex [&>div]:min-w-0 font-b24-secondary",
|
|
3519
3519
|
list: "isolate min-w-0",
|
|
3520
|
-
label:
|
|
3520
|
+
label: [
|
|
3521
|
+
"w-full min-h-6",
|
|
3522
|
+
"flex items-center rtl:flex-row-reverse gap-1.5",
|
|
3523
|
+
"font-medium text-xs/6",
|
|
3524
|
+
"text-base-500 dark:text-base-400",
|
|
3525
|
+
"ps-2xl pe-xs rtl:ps-xs rtl:pe-2xl"
|
|
3526
|
+
].join(" "),
|
|
3521
3527
|
item: "min-w-0",
|
|
3522
|
-
link:
|
|
3523
|
-
|
|
3524
|
-
|
|
3528
|
+
link: [
|
|
3529
|
+
"group relative",
|
|
3530
|
+
"cursor-pointer",
|
|
3531
|
+
"w-full",
|
|
3532
|
+
"flex items-center gap-1.5",
|
|
3533
|
+
"font-normal text-lg leading-9 min-h-9",
|
|
3534
|
+
"before:absolute before:z-[-1]",
|
|
3535
|
+
"focus:outline-none focus-visible:before:rounded-md focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2"
|
|
3536
|
+
].join(" "),
|
|
3537
|
+
linkLeadingIcon: "shrink-0 size-4 -ms-1 rtl:-ms-0 rtl:-me-1",
|
|
3538
|
+
linkLeadingAvatar: "shrink-0 -ms-1 rtl:-ms-0 rtl:-me-1",
|
|
3525
3539
|
linkLeadingAvatarSize: "2xs",
|
|
3526
|
-
linkTrailing: "
|
|
3540
|
+
linkTrailing: "inline-flex gap-1.5 items-center",
|
|
3527
3541
|
linkTrailingBadge: "shrink-0",
|
|
3528
3542
|
linkTrailingBadgeSize: "sm",
|
|
3529
|
-
linkTrailingIcon: "size-
|
|
3543
|
+
linkTrailingIcon: "text-base-600 size-4 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
3530
3544
|
linkLabel: "truncate",
|
|
3531
|
-
|
|
3545
|
+
linkLabelWrapper: "flex items-center items-center justify-between rtl:flex-row-reverse gap-1.5",
|
|
3546
|
+
linkLabelExternalIcon: "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
|
|
3532
3547
|
childList: "",
|
|
3533
3548
|
childItem: "",
|
|
3534
|
-
childLink:
|
|
3549
|
+
childLink: [
|
|
3550
|
+
"group",
|
|
3551
|
+
"size-full",
|
|
3552
|
+
"px-3 py-2",
|
|
3553
|
+
"rounded-2xs",
|
|
3554
|
+
"flex items-start gap-2",
|
|
3555
|
+
"text-start"
|
|
3556
|
+
].join(" "),
|
|
3535
3557
|
childLinkWrapper: "flex flex-col items-start",
|
|
3536
3558
|
childLinkIcon: "size-5 shrink-0",
|
|
3537
3559
|
childLinkLabel: "font-semibold text-sm relative inline-flex",
|
|
3538
|
-
childLinkLabelExternalIcon: "inline-block
|
|
3539
|
-
childLinkDescription: "text-sm text-
|
|
3540
|
-
separator: "px-2 h-px bg-
|
|
3560
|
+
childLinkLabelExternalIcon: "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
|
|
3561
|
+
childLinkDescription: "text-sm text-base-500 dark:text-base-700",
|
|
3562
|
+
separator: "px-2 h-px bg-base-950/10 dark:bg-base-100/20",
|
|
3541
3563
|
viewportWrapper: "absolute top-full left-0 flex w-full",
|
|
3542
|
-
viewport:
|
|
3564
|
+
viewport: [
|
|
3565
|
+
"relative overflow-hidden",
|
|
3566
|
+
"w-full",
|
|
3567
|
+
"bg-white dark:bg-base-dark",
|
|
3568
|
+
"shadow-lg",
|
|
3569
|
+
"rounded-2xs",
|
|
3570
|
+
"ring ring-base-300 dark:ring-base-800",
|
|
3571
|
+
"h-(--reka-navigation-menu-viewport-height)",
|
|
3572
|
+
"transition-[width,height,left] duration-200 origin-[top_center]",
|
|
3573
|
+
"motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in]"
|
|
3574
|
+
].join(" "),
|
|
3543
3575
|
content: "absolute top-0 left-0 w-full",
|
|
3544
|
-
indicator:
|
|
3545
|
-
|
|
3576
|
+
indicator: [
|
|
3577
|
+
"absolute",
|
|
3578
|
+
"motion-safe:data-[state=visible]:animate-[fade-in_100ms_ease-out] motion-safe:data-[state=hidden]:animate-[fade-out_100ms_ease-in]",
|
|
3579
|
+
"data-[state=hidden]:opacity-0",
|
|
3580
|
+
"bottom-0",
|
|
3581
|
+
"z-[1]",
|
|
3582
|
+
"w-(--reka-navigation-menu-indicator-size)",
|
|
3583
|
+
"h-2.5",
|
|
3584
|
+
"translate-x-(--reka-navigation-menu-indicator-position)",
|
|
3585
|
+
"flex items-end justify-center",
|
|
3586
|
+
"overflow-hidden",
|
|
3587
|
+
"transition-[translate,width] duration-200"
|
|
3588
|
+
].join(" "),
|
|
3589
|
+
arrow: [
|
|
3590
|
+
"relative top-[50%] size-2.5 rotate-45",
|
|
3591
|
+
"border border-base-300 dark:border-base-800",
|
|
3592
|
+
"bg-white dark:bg-base-dark",
|
|
3593
|
+
"z-[1] rounded-3xs"
|
|
3594
|
+
].join(" ")
|
|
3546
3595
|
},
|
|
3547
3596
|
variants: {
|
|
3548
3597
|
color: {
|
|
3549
3598
|
default: {
|
|
3550
|
-
link: "focus-visible:before:ring-
|
|
3551
|
-
childLink: "focus-visible:outline-
|
|
3599
|
+
link: "focus-visible:before:ring-base-300 dark:focus-visible:before:ring-base-800",
|
|
3600
|
+
childLink: "focus-visible:outline-base-300 dark:focus-visible:outline-base-800"
|
|
3601
|
+
},
|
|
3602
|
+
danger: {
|
|
3603
|
+
link: "focus-visible:before:ring-red-300 dark:focus-visible:before:ring-red-800",
|
|
3604
|
+
childLink: "focus-visible:outline-red-300 dark:focus-visible:outline-red-800"
|
|
3605
|
+
},
|
|
3606
|
+
success: {
|
|
3607
|
+
link: "focus-visible:before:ring-green-300 dark:focus-visible:before:ring-green-800",
|
|
3608
|
+
childLink: "focus-visible:outline-green-300 dark:focus-visible:outline-green-800"
|
|
3609
|
+
},
|
|
3610
|
+
warning: {
|
|
3611
|
+
link: "focus-visible:before:ring-orange-300 dark:focus-visible:before:ring-orange-800",
|
|
3612
|
+
childLink: "focus-visible:outline-orange-300 dark:focus-visible:outline-orange-800"
|
|
3613
|
+
},
|
|
3614
|
+
primary: {
|
|
3615
|
+
link: "focus-visible:before:ring-blue-300 dark:focus-visible:before:ring-blue-800",
|
|
3616
|
+
childLink: "focus-visible:outline-blue-300 dark:focus-visible:outline-blue-800"
|
|
3617
|
+
},
|
|
3618
|
+
secondary: {
|
|
3619
|
+
link: "focus-visible:before:ring-cyan-300 dark:focus-visible:before:ring-cyan-800",
|
|
3620
|
+
childLink: "focus-visible:outline-cyan-300 dark:focus-visible:outline-cyan-800"
|
|
3621
|
+
},
|
|
3622
|
+
collab: {
|
|
3623
|
+
link: "focus-visible:before:ring-collab-300 dark:focus-visible:before:ring-collab-800",
|
|
3624
|
+
childLink: "focus-visible:outline-collab-300 dark:focus-visible:outline-collab-800"
|
|
3625
|
+
},
|
|
3626
|
+
ai: {
|
|
3627
|
+
link: "focus-visible:before:ring-ai-300 dark:focus-visible:before:ring-ai-800",
|
|
3628
|
+
childLink: "focus-visible:outline-ai-300 dark:focus-visible:outline-ai-800"
|
|
3552
3629
|
}
|
|
3553
3630
|
},
|
|
3554
3631
|
highlightColor: {
|
|
3555
|
-
default: ""
|
|
3632
|
+
default: "",
|
|
3633
|
+
danger: "",
|
|
3634
|
+
success: "",
|
|
3635
|
+
warning: "",
|
|
3636
|
+
primary: "",
|
|
3637
|
+
secondary: "",
|
|
3638
|
+
collab: "",
|
|
3639
|
+
ai: ""
|
|
3556
3640
|
},
|
|
3557
3641
|
variant: {
|
|
3558
|
-
pill:
|
|
3642
|
+
pill: {
|
|
3643
|
+
link: [
|
|
3644
|
+
"hover:before:bg-base-250/80 dark:hover:before:bg-white/10"
|
|
3645
|
+
].join(" ")
|
|
3646
|
+
},
|
|
3559
3647
|
link: ""
|
|
3560
3648
|
},
|
|
3561
3649
|
orientation: {
|
|
@@ -3567,15 +3655,19 @@ const navigationMenu = {
|
|
|
3567
3655
|
childList: "grid p-2"
|
|
3568
3656
|
},
|
|
3569
3657
|
vertical: {
|
|
3570
|
-
root: "flex-col",
|
|
3571
|
-
link:
|
|
3658
|
+
root: "flex-col w-full",
|
|
3659
|
+
link: [
|
|
3660
|
+
"ps-2xl pe-xs rtl:ps-xs rtl:pe-2xl",
|
|
3661
|
+
"flex-row rtl:flex-row-reverse",
|
|
3662
|
+
"before:inset-y-px before:inset-x-0"
|
|
3663
|
+
].join(" ")
|
|
3572
3664
|
}
|
|
3573
3665
|
},
|
|
3574
3666
|
contentOrientation: {
|
|
3575
3667
|
horizontal: {
|
|
3576
3668
|
viewport: "",
|
|
3577
3669
|
viewportWrapper: "justify-center",
|
|
3578
|
-
content: "data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]"
|
|
3670
|
+
content: "motion-safe:data-[motion=from-start]:animate-[enter-from-left_200ms_ease] motion-safe:data-[motion=from-end]:animate-[enter-from-right_200ms_ease] motion-safe:data-[motion=to-start]:animate-[exit-to-left_200ms_ease] motion-safe:data-[motion=to-end]:animate-[exit-to-right_200ms_ease]"
|
|
3579
3671
|
},
|
|
3580
3672
|
vertical: {
|
|
3581
3673
|
viewport: "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
|
|
@@ -3584,14 +3676,27 @@ const navigationMenu = {
|
|
|
3584
3676
|
},
|
|
3585
3677
|
active: {
|
|
3586
3678
|
true: {
|
|
3587
|
-
childLink:
|
|
3588
|
-
|
|
3679
|
+
childLink: [
|
|
3680
|
+
"bg-base-250/80 dark:bg-white/10",
|
|
3681
|
+
"text-base-950 dark:text-base-50",
|
|
3682
|
+
"font-semibold"
|
|
3683
|
+
].join(" "),
|
|
3684
|
+
childLinkIcon: "text-base-950 dark:text-base-50"
|
|
3589
3685
|
},
|
|
3590
3686
|
false: {
|
|
3591
|
-
link: "text-
|
|
3592
|
-
linkLeadingIcon: "text-
|
|
3593
|
-
childLink: [
|
|
3594
|
-
|
|
3687
|
+
link: "text-base-900 dark:text-base-200",
|
|
3688
|
+
linkLeadingIcon: "text-base-500 dark:text-base-700",
|
|
3689
|
+
childLink: [
|
|
3690
|
+
"hover:bg-base-250/80 dark:hover:bg-white/10",
|
|
3691
|
+
"text-base-500 dark:text-base-700",
|
|
3692
|
+
"hover:text-base-950 dark:hover:dark:text-base-50",
|
|
3693
|
+
"transition-colors"
|
|
3694
|
+
].join(" "),
|
|
3695
|
+
childLinkIcon: [
|
|
3696
|
+
"text-base-500 dark:text-base-700",
|
|
3697
|
+
"group-hover:text-base-950 dark:group-hover:text-base-50",
|
|
3698
|
+
"transition-colors"
|
|
3699
|
+
].join(" ")
|
|
3595
3700
|
}
|
|
3596
3701
|
},
|
|
3597
3702
|
disabled: {
|
|
@@ -3610,6 +3715,7 @@ const navigationMenu = {
|
|
|
3610
3715
|
}
|
|
3611
3716
|
},
|
|
3612
3717
|
compoundVariants: [
|
|
3718
|
+
// region horizontal ////
|
|
3613
3719
|
{
|
|
3614
3720
|
orientation: "horizontal",
|
|
3615
3721
|
contentOrientation: "horizontal",
|
|
@@ -3632,21 +3738,30 @@ const navigationMenu = {
|
|
|
3632
3738
|
link: ["after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full", "after:transition-colors"]
|
|
3633
3739
|
}
|
|
3634
3740
|
},
|
|
3741
|
+
// endregion ////
|
|
3742
|
+
// region vertical ////
|
|
3635
3743
|
{
|
|
3636
3744
|
orientation: "vertical",
|
|
3637
3745
|
highlight: true,
|
|
3638
3746
|
level: true,
|
|
3639
3747
|
class: {
|
|
3640
|
-
link: ["after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-
|
|
3748
|
+
link: ["after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-[7px] after:rounded-full", "after:transition-colors"]
|
|
3641
3749
|
}
|
|
3642
3750
|
},
|
|
3751
|
+
// endregion ////
|
|
3752
|
+
// region pill ////
|
|
3643
3753
|
{
|
|
3644
3754
|
disabled: false,
|
|
3645
3755
|
active: false,
|
|
3646
3756
|
variant: "pill",
|
|
3647
3757
|
class: {
|
|
3648
|
-
link: [
|
|
3649
|
-
|
|
3758
|
+
link: [
|
|
3759
|
+
"transition-colors before:transition-colors"
|
|
3760
|
+
].join(" "),
|
|
3761
|
+
linkLeadingIcon: [
|
|
3762
|
+
"group-hover:text-base-900 dark:group-hover:text-base-200",
|
|
3763
|
+
"transition-colors"
|
|
3764
|
+
].join(" ")
|
|
3650
3765
|
}
|
|
3651
3766
|
},
|
|
3652
3767
|
{
|
|
@@ -3655,8 +3770,8 @@ const navigationMenu = {
|
|
|
3655
3770
|
variant: "pill",
|
|
3656
3771
|
orientation: "horizontal",
|
|
3657
3772
|
class: {
|
|
3658
|
-
link: "data-[state=open]:text-
|
|
3659
|
-
linkLeadingIcon: "group-data-[state=open]:text-
|
|
3773
|
+
link: "before:rounded-md data-[state=open]:text-base-950 dark:data-[state=open]:text-base-50",
|
|
3774
|
+
linkLeadingIcon: "group-data-[state=open]:text-base-950 dark:group-data-[state=open]:text-base-50"
|
|
3660
3775
|
}
|
|
3661
3776
|
},
|
|
3662
3777
|
{
|
|
@@ -3665,7 +3780,7 @@ const navigationMenu = {
|
|
|
3665
3780
|
highlight: true,
|
|
3666
3781
|
orientation: "horizontal",
|
|
3667
3782
|
class: {
|
|
3668
|
-
link: "data-[state=open]:before:bg-
|
|
3783
|
+
link: "data-[state=open]:before:rounded-md data-[state=open]:before:bg-base-250/80 dark:data-[state=open]:before:bg-white/10"
|
|
3669
3784
|
}
|
|
3670
3785
|
},
|
|
3671
3786
|
{
|
|
@@ -3675,7 +3790,7 @@ const navigationMenu = {
|
|
|
3675
3790
|
active: false,
|
|
3676
3791
|
orientation: "horizontal",
|
|
3677
3792
|
class: {
|
|
3678
|
-
link: "data-[state=open]:before:bg-
|
|
3793
|
+
link: "data-[state=open]:before:bg-base-250/80 dark:data-[state=open]:before:bg-white/10"
|
|
3679
3794
|
}
|
|
3680
3795
|
},
|
|
3681
3796
|
{
|
|
@@ -3683,8 +3798,151 @@ const navigationMenu = {
|
|
|
3683
3798
|
variant: "pill",
|
|
3684
3799
|
active: true,
|
|
3685
3800
|
class: {
|
|
3686
|
-
|
|
3687
|
-
|
|
3801
|
+
linkLeadingIcon: "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
|
|
3802
|
+
linkLabel: [
|
|
3803
|
+
"font-semibold",
|
|
3804
|
+
"text-white dark:text-white"
|
|
3805
|
+
].join(" "),
|
|
3806
|
+
linkLabelWrapper: [
|
|
3807
|
+
"px-3",
|
|
3808
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3809
|
+
"leading-[1.563rem]",
|
|
3810
|
+
"bg-base-800 dark:bg-white/35",
|
|
3811
|
+
"rounded-2xl"
|
|
3812
|
+
].join(" ")
|
|
3813
|
+
}
|
|
3814
|
+
},
|
|
3815
|
+
{
|
|
3816
|
+
color: "danger",
|
|
3817
|
+
variant: "pill",
|
|
3818
|
+
active: true,
|
|
3819
|
+
class: {
|
|
3820
|
+
linkLeadingIcon: "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
|
|
3821
|
+
linkLabel: [
|
|
3822
|
+
"font-semibold",
|
|
3823
|
+
"text-white dark:text-white"
|
|
3824
|
+
].join(" "),
|
|
3825
|
+
linkLabelWrapper: [
|
|
3826
|
+
"px-3",
|
|
3827
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3828
|
+
"leading-[1.563rem]",
|
|
3829
|
+
"bg-red-800 dark:bg-red-800",
|
|
3830
|
+
"rounded-2xl"
|
|
3831
|
+
].join(" ")
|
|
3832
|
+
}
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
color: "success",
|
|
3836
|
+
variant: "pill",
|
|
3837
|
+
active: true,
|
|
3838
|
+
class: {
|
|
3839
|
+
linkLeadingIcon: "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
|
|
3840
|
+
linkLabel: [
|
|
3841
|
+
"font-semibold",
|
|
3842
|
+
"text-white dark:text-white"
|
|
3843
|
+
].join(" "),
|
|
3844
|
+
linkLabelWrapper: [
|
|
3845
|
+
"px-3",
|
|
3846
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3847
|
+
"leading-[1.563rem]",
|
|
3848
|
+
"bg-green-800 dark:bg-green-800",
|
|
3849
|
+
"rounded-2xl"
|
|
3850
|
+
].join(" ")
|
|
3851
|
+
}
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
color: "warning",
|
|
3855
|
+
variant: "pill",
|
|
3856
|
+
active: true,
|
|
3857
|
+
class: {
|
|
3858
|
+
linkLeadingIcon: "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
|
|
3859
|
+
linkLabel: [
|
|
3860
|
+
"font-semibold",
|
|
3861
|
+
"text-white dark:text-white"
|
|
3862
|
+
].join(" "),
|
|
3863
|
+
linkLabelWrapper: [
|
|
3864
|
+
"px-3",
|
|
3865
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3866
|
+
"leading-[1.563rem]",
|
|
3867
|
+
"bg-orange-800 dark:bg-orange-800",
|
|
3868
|
+
"rounded-2xl"
|
|
3869
|
+
].join(" ")
|
|
3870
|
+
}
|
|
3871
|
+
},
|
|
3872
|
+
{
|
|
3873
|
+
color: "primary",
|
|
3874
|
+
variant: "pill",
|
|
3875
|
+
active: true,
|
|
3876
|
+
class: {
|
|
3877
|
+
linkLeadingIcon: "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
|
|
3878
|
+
linkLabel: [
|
|
3879
|
+
"font-semibold",
|
|
3880
|
+
"text-white dark:text-white"
|
|
3881
|
+
].join(" "),
|
|
3882
|
+
linkLabelWrapper: [
|
|
3883
|
+
"px-3",
|
|
3884
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3885
|
+
"leading-[1.563rem]",
|
|
3886
|
+
"bg-blue-800 dark:bg-blue-800",
|
|
3887
|
+
"rounded-2xl"
|
|
3888
|
+
].join(" ")
|
|
3889
|
+
}
|
|
3890
|
+
},
|
|
3891
|
+
{
|
|
3892
|
+
color: "secondary",
|
|
3893
|
+
variant: "pill",
|
|
3894
|
+
active: true,
|
|
3895
|
+
class: {
|
|
3896
|
+
linkLeadingIcon: "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
|
|
3897
|
+
linkLabel: [
|
|
3898
|
+
"font-semibold",
|
|
3899
|
+
"text-white dark:text-white"
|
|
3900
|
+
].join(" "),
|
|
3901
|
+
linkLabelWrapper: [
|
|
3902
|
+
"px-3",
|
|
3903
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3904
|
+
"leading-[1.563rem]",
|
|
3905
|
+
"bg-cyan-800 dark:bg-cyan-800",
|
|
3906
|
+
"rounded-2xl"
|
|
3907
|
+
].join(" ")
|
|
3908
|
+
}
|
|
3909
|
+
},
|
|
3910
|
+
{
|
|
3911
|
+
color: "collab",
|
|
3912
|
+
variant: "pill",
|
|
3913
|
+
active: true,
|
|
3914
|
+
class: {
|
|
3915
|
+
linkLeadingIcon: "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
|
|
3916
|
+
linkLabel: [
|
|
3917
|
+
"font-semibold",
|
|
3918
|
+
"text-white dark:text-white"
|
|
3919
|
+
].join(" "),
|
|
3920
|
+
linkLabelWrapper: [
|
|
3921
|
+
"px-3",
|
|
3922
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3923
|
+
"leading-[1.563rem]",
|
|
3924
|
+
"bg-collab-800 dark:bg-collab-800",
|
|
3925
|
+
"rounded-2xl"
|
|
3926
|
+
].join(" ")
|
|
3927
|
+
}
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
color: "ai",
|
|
3931
|
+
variant: "pill",
|
|
3932
|
+
active: true,
|
|
3933
|
+
class: {
|
|
3934
|
+
linkLeadingIcon: "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
|
|
3935
|
+
linkLabel: [
|
|
3936
|
+
"font-semibold",
|
|
3937
|
+
"text-white dark:text-white"
|
|
3938
|
+
].join(" "),
|
|
3939
|
+
linkLabelWrapper: [
|
|
3940
|
+
"px-3",
|
|
3941
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3942
|
+
"leading-[1.563rem]",
|
|
3943
|
+
"bg-ai-800 dark:bg-ai-800",
|
|
3944
|
+
"rounded-2xl"
|
|
3945
|
+
].join(" ")
|
|
3688
3946
|
}
|
|
3689
3947
|
},
|
|
3690
3948
|
{
|
|
@@ -3692,7 +3950,20 @@ const navigationMenu = {
|
|
|
3692
3950
|
active: true,
|
|
3693
3951
|
highlight: false,
|
|
3694
3952
|
class: {
|
|
3695
|
-
link:
|
|
3953
|
+
link: [
|
|
3954
|
+
"leading-9"
|
|
3955
|
+
].join(" "),
|
|
3956
|
+
linkLabel: [
|
|
3957
|
+
"font-semibold",
|
|
3958
|
+
"text-white dark:text-white"
|
|
3959
|
+
].join(" "),
|
|
3960
|
+
linkLabelWrapper: [
|
|
3961
|
+
"px-3",
|
|
3962
|
+
"-ms-3 rtl:-me-3 rtl:ms-0",
|
|
3963
|
+
"leading-[1.563rem]",
|
|
3964
|
+
"bg-base-800 dark:bg-white/35",
|
|
3965
|
+
"rounded-2xl"
|
|
3966
|
+
].join(" ")
|
|
3696
3967
|
}
|
|
3697
3968
|
},
|
|
3698
3969
|
{
|
|
@@ -3700,16 +3971,27 @@ const navigationMenu = {
|
|
|
3700
3971
|
active: true,
|
|
3701
3972
|
highlight: true,
|
|
3702
3973
|
class: {
|
|
3703
|
-
link: [
|
|
3974
|
+
link: [
|
|
3975
|
+
"hover:before:bg-base-250/80 dark:hover:before:bg-white/10",
|
|
3976
|
+
"before:transition-colors"
|
|
3977
|
+
]
|
|
3704
3978
|
}
|
|
3705
3979
|
},
|
|
3980
|
+
// endregion ////
|
|
3981
|
+
// region link ////
|
|
3706
3982
|
{
|
|
3707
3983
|
disabled: false,
|
|
3708
3984
|
active: false,
|
|
3709
3985
|
variant: "link",
|
|
3710
3986
|
class: {
|
|
3711
|
-
link: [
|
|
3712
|
-
|
|
3987
|
+
link: [
|
|
3988
|
+
"hover:text-base-950 dark:hover:text-base-50",
|
|
3989
|
+
"transition-colors"
|
|
3990
|
+
].join(" "),
|
|
3991
|
+
linkLeadingIcon: [
|
|
3992
|
+
"group-hover:text-base-950 dark:group-hover:text-base-50",
|
|
3993
|
+
"transition-colors"
|
|
3994
|
+
].join(" ")
|
|
3713
3995
|
}
|
|
3714
3996
|
},
|
|
3715
3997
|
{
|
|
@@ -3718,8 +4000,8 @@ const navigationMenu = {
|
|
|
3718
4000
|
variant: "link",
|
|
3719
4001
|
orientation: "horizontal",
|
|
3720
4002
|
class: {
|
|
3721
|
-
link: "data-[state=open]:text-
|
|
3722
|
-
linkLeadingIcon: "group-data-[state=open]:text-
|
|
4003
|
+
link: "data-[state=open]:text-base-950 dark:data-[state=open]:text-base-50",
|
|
4004
|
+
linkLeadingIcon: "group-data-[state=open]:text-base-950 dark:group-data-[state=open]:text-base-50"
|
|
3723
4005
|
}
|
|
3724
4006
|
},
|
|
3725
4007
|
{
|
|
@@ -3727,25 +4009,155 @@ const navigationMenu = {
|
|
|
3727
4009
|
variant: "link",
|
|
3728
4010
|
active: true,
|
|
3729
4011
|
class: {
|
|
3730
|
-
link: "text-
|
|
3731
|
-
linkLeadingIcon: "text-
|
|
4012
|
+
link: "font-semibold text-base-950 dark:text-base-50",
|
|
4013
|
+
linkLeadingIcon: "text-base-950 group-data-[state=open]:text-base-950 dark:text-base-50 dark:group-data-[state=open]:text-base-50"
|
|
4014
|
+
}
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
color: "danger",
|
|
4018
|
+
variant: "link",
|
|
4019
|
+
active: true,
|
|
4020
|
+
class: {
|
|
4021
|
+
link: "font-semibold text-red-800 dark:text-red-600",
|
|
4022
|
+
linkLeadingIcon: "text-red-800 group-data-[state=open]:text-red-600 dark:text-red-600 dark:group-data-[state=open]:text-red-600"
|
|
4023
|
+
}
|
|
4024
|
+
},
|
|
4025
|
+
{
|
|
4026
|
+
color: "success",
|
|
4027
|
+
variant: "link",
|
|
4028
|
+
active: true,
|
|
4029
|
+
class: {
|
|
4030
|
+
link: "font-semibold text-green-800 dark:text-green-600",
|
|
4031
|
+
linkLeadingIcon: "text-green-800 group-data-[state=open]:text-green-600 dark:text-green-600 dark:group-data-[state=open]:text-green-600"
|
|
4032
|
+
}
|
|
4033
|
+
},
|
|
4034
|
+
{
|
|
4035
|
+
color: "warning",
|
|
4036
|
+
variant: "link",
|
|
4037
|
+
active: true,
|
|
4038
|
+
class: {
|
|
4039
|
+
link: "font-semibold text-orange-800 dark:text-orange-600",
|
|
4040
|
+
linkLeadingIcon: "text-orange-800 group-data-[state=open]:text-orange-600 dark:text-orange-600 dark:group-data-[state=open]:text-orange-600"
|
|
4041
|
+
}
|
|
4042
|
+
},
|
|
4043
|
+
{
|
|
4044
|
+
color: "primary",
|
|
4045
|
+
variant: "link",
|
|
4046
|
+
active: true,
|
|
4047
|
+
class: {
|
|
4048
|
+
link: "font-semibold text-blue-800 dark:text-blue-600",
|
|
4049
|
+
linkLeadingIcon: "text-blue-800 group-data-[state=open]:text-blue-600 dark:text-blue-600 dark:group-data-[state=open]:text-blue-600"
|
|
4050
|
+
}
|
|
4051
|
+
},
|
|
4052
|
+
{
|
|
4053
|
+
color: "secondary",
|
|
4054
|
+
variant: "link",
|
|
4055
|
+
active: true,
|
|
4056
|
+
class: {
|
|
4057
|
+
link: "font-semibold text-cyan-800 dark:text-cyan-600",
|
|
4058
|
+
linkLeadingIcon: "text-cyan-800 group-data-[state=open]:text-cyan-600 dark:text-cyan-600 dark:group-data-[state=open]:text-cyan-600"
|
|
4059
|
+
}
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
color: "collab",
|
|
4063
|
+
variant: "link",
|
|
4064
|
+
active: true,
|
|
4065
|
+
class: {
|
|
4066
|
+
link: "font-semibold text-collab-800 dark:text-collab-600",
|
|
4067
|
+
linkLeadingIcon: "text-collab-800 group-data-[state=open]:text-collab-600 dark:text-collab-600 dark:group-data-[state=open]:text-collab-600"
|
|
4068
|
+
}
|
|
4069
|
+
},
|
|
4070
|
+
{
|
|
4071
|
+
color: "ai",
|
|
4072
|
+
variant: "link",
|
|
4073
|
+
active: true,
|
|
4074
|
+
class: {
|
|
4075
|
+
link: "font-semibold text-ai-800 dark:text-ai-600",
|
|
4076
|
+
linkLeadingIcon: "text-ai-800 group-data-[state=open]:text-ai-600 dark:text-ai-600 dark:group-data-[state=open]:text-ai-600"
|
|
3732
4077
|
}
|
|
3733
4078
|
},
|
|
4079
|
+
// endregion ////
|
|
4080
|
+
// region highlight.Color ////
|
|
3734
4081
|
{
|
|
3735
4082
|
highlightColor: "default",
|
|
3736
4083
|
highlight: true,
|
|
3737
4084
|
level: true,
|
|
3738
4085
|
active: true,
|
|
3739
4086
|
class: {
|
|
3740
|
-
link: "after:bg-
|
|
4087
|
+
link: "after:bg-base-500"
|
|
4088
|
+
}
|
|
4089
|
+
},
|
|
4090
|
+
{
|
|
4091
|
+
highlightColor: "danger",
|
|
4092
|
+
highlight: true,
|
|
4093
|
+
level: true,
|
|
4094
|
+
active: true,
|
|
4095
|
+
class: {
|
|
4096
|
+
link: "after:bg-red-500 dark:after:bg-red-600"
|
|
4097
|
+
}
|
|
4098
|
+
},
|
|
4099
|
+
{
|
|
4100
|
+
highlightColor: "success",
|
|
4101
|
+
highlight: true,
|
|
4102
|
+
level: true,
|
|
4103
|
+
active: true,
|
|
4104
|
+
class: {
|
|
4105
|
+
link: "after:bg-green-500 dark:after:bg-green-600"
|
|
4106
|
+
}
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
highlightColor: "warning",
|
|
4110
|
+
highlight: true,
|
|
4111
|
+
level: true,
|
|
4112
|
+
active: true,
|
|
4113
|
+
class: {
|
|
4114
|
+
link: "after:bg-orange-500 dark:after:bg-orange-600"
|
|
4115
|
+
}
|
|
4116
|
+
},
|
|
4117
|
+
{
|
|
4118
|
+
highlightColor: "primary",
|
|
4119
|
+
highlight: true,
|
|
4120
|
+
level: true,
|
|
4121
|
+
active: true,
|
|
4122
|
+
class: {
|
|
4123
|
+
link: "after:bg-blue-500 dark:after:bg-blue-600"
|
|
4124
|
+
}
|
|
4125
|
+
},
|
|
4126
|
+
{
|
|
4127
|
+
highlightColor: "secondary",
|
|
4128
|
+
highlight: true,
|
|
4129
|
+
level: true,
|
|
4130
|
+
active: true,
|
|
4131
|
+
class: {
|
|
4132
|
+
link: "after:bg-cyan-500 dark:after:bg-cyan-600"
|
|
4133
|
+
}
|
|
4134
|
+
},
|
|
4135
|
+
{
|
|
4136
|
+
highlightColor: "collab",
|
|
4137
|
+
highlight: true,
|
|
4138
|
+
level: true,
|
|
4139
|
+
active: true,
|
|
4140
|
+
class: {
|
|
4141
|
+
link: "after:bg-collab-500 dark:after:bg-collab-600"
|
|
3741
4142
|
}
|
|
3742
4143
|
},
|
|
4144
|
+
{
|
|
4145
|
+
highlightColor: "ai",
|
|
4146
|
+
highlight: true,
|
|
4147
|
+
level: true,
|
|
4148
|
+
active: true,
|
|
4149
|
+
class: {
|
|
4150
|
+
link: "after:bg-ai-500 dark:after:bg-ai-600"
|
|
4151
|
+
}
|
|
4152
|
+
},
|
|
4153
|
+
// endregion ////
|
|
4154
|
+
// region collapsed ////
|
|
3743
4155
|
{
|
|
3744
4156
|
orientation: "vertical",
|
|
3745
4157
|
collapsed: false,
|
|
3746
4158
|
class: {
|
|
3747
|
-
childList: "
|
|
3748
|
-
childItem: "ps-
|
|
4159
|
+
childList: "",
|
|
4160
|
+
childItem: "[&>*]:ps-[44px] rtl:[&>*]:pe-[44px]"
|
|
3749
4161
|
}
|
|
3750
4162
|
},
|
|
3751
4163
|
{
|
|
@@ -3755,11 +4167,9 @@ const navigationMenu = {
|
|
|
3755
4167
|
link: "px-1.5"
|
|
3756
4168
|
}
|
|
3757
4169
|
}
|
|
4170
|
+
// endregion ////
|
|
3758
4171
|
],
|
|
3759
4172
|
defaultVariants: {
|
|
3760
|
-
/**
|
|
3761
|
-
* @todo change to primary
|
|
3762
|
-
*/
|
|
3763
4173
|
color: "default",
|
|
3764
4174
|
highlightColor: "default",
|
|
3765
4175
|
variant: "pill"
|
|
@@ -5770,7 +6180,7 @@ const sidebar = {
|
|
|
5770
6180
|
const sidebarHeader = {
|
|
5771
6181
|
slots: {
|
|
5772
6182
|
root: [
|
|
5773
|
-
"
|
|
6183
|
+
"py-4",
|
|
5774
6184
|
"flex flex-col",
|
|
5775
6185
|
// 'border-b border-base-950/5 dark:border-white/5',
|
|
5776
6186
|
"[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
|
|
@@ -5781,7 +6191,7 @@ const sidebarHeader = {
|
|
|
5781
6191
|
const sidebarBody = {
|
|
5782
6192
|
slots: {
|
|
5783
6193
|
root: [
|
|
5784
|
-
"
|
|
6194
|
+
"py-4",
|
|
5785
6195
|
"flex flex-1 flex-col",
|
|
5786
6196
|
"overflow-y-auto",
|
|
5787
6197
|
"[&>[data-slot=section]+[data-slot=section]]:mt-8"
|
|
@@ -5802,7 +6212,7 @@ const sidebarBody = {
|
|
|
5802
6212
|
const sidebarFooter = {
|
|
5803
6213
|
slots: {
|
|
5804
6214
|
root: [
|
|
5805
|
-
"
|
|
6215
|
+
"py-4",
|
|
5806
6216
|
"flex flex-col",
|
|
5807
6217
|
"max-lg:hidden",
|
|
5808
6218
|
// 'border-t border-base-950/5 dark:border-white/5',
|
|
@@ -5814,6 +6224,7 @@ const sidebarFooter = {
|
|
|
5814
6224
|
const sidebarSection = {
|
|
5815
6225
|
slots: {
|
|
5816
6226
|
root: [
|
|
6227
|
+
"ps-2xl pe-xs",
|
|
5817
6228
|
"flex flex-col gap-0.5"
|
|
5818
6229
|
].join(" ")
|
|
5819
6230
|
}
|
|
@@ -5823,7 +6234,6 @@ const sidebarHeading = {
|
|
|
5823
6234
|
slots: {
|
|
5824
6235
|
root: [
|
|
5825
6236
|
"mb-1",
|
|
5826
|
-
"px-2",
|
|
5827
6237
|
"text-xs/6 font-medium ",
|
|
5828
6238
|
"text-base-500 dark:text-base-400"
|
|
5829
6239
|
].join(" ")
|
|
@@ -6494,7 +6904,7 @@ function getTemplates(options) {
|
|
|
6494
6904
|
write: true,
|
|
6495
6905
|
getContents: () => `@source "./b24ui";
|
|
6496
6906
|
|
|
6497
|
-
@theme default
|
|
6907
|
+
@theme default {}
|
|
6498
6908
|
`
|
|
6499
6909
|
});
|
|
6500
6910
|
templates.push({
|