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