@bitrix24/b24ui-nuxt 0.4.11 → 0.5.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.
@@ -3517,47 +3517,108 @@ 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",
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(" "),
3525
3539
  linkLeadingIcon: "shrink-0 size-5",
3526
3540
  linkLeadingAvatar: "shrink-0",
3527
3541
  linkLeadingAvatarSize: "2xs",
3528
3542
  linkTrailing: "ms-auto 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-5 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
+ linkLabelExternalIcon: "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
3534
3548
  childList: "",
3535
3549
  childItem: "",
3536
- childLink: "group size-full px-3 py-2 rounded-[calc(var(--ui-radius)*1.5)] flex items-start gap-2 text-start",
3550
+ childLink: [
3551
+ "group",
3552
+ "size-full",
3553
+ "px-3 py-2",
3554
+ // 'rounded-md',
3555
+ "flex items-start gap-2",
3556
+ "text-start"
3557
+ ].join(" "),
3537
3558
  childLinkWrapper: "flex flex-col items-start",
3538
3559
  childLinkIcon: "size-5 shrink-0",
3539
3560
  childLinkLabel: "font-semibold text-sm relative inline-flex",
3540
- childLinkLabelExternalIcon: "inline-block size-3 align-top text-(--ui-text-dimmed)",
3561
+ childLinkLabelExternalIcon: "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
3541
3562
  childLinkDescription: "text-sm text-(--ui-text-muted)",
3542
3563
  separator: "px-2 h-px bg-(--ui-border)",
3543
3564
  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]",
3565
+ viewport: [
3566
+ "relative overflow-hidden",
3567
+ "w-full",
3568
+ "bg-(--ui-bg)",
3569
+ "shadow-lg",
3570
+ "rounded-md",
3571
+ "ring ring-(--ui-border)",
3572
+ "h-(--reka-navigation-menu-viewport-height)",
3573
+ "transition-[width,height,left] duration-200 origin-[top_center]",
3574
+ "motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in]"
3575
+ ].join(" "),
3545
3576
  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)]"
3577
+ indicator: [
3578
+ "absolute",
3579
+ "motion-safe:data-[state=visible]:animate-[fade-in_100ms_ease-out] motion-safe:data-[state=hidden]:animate-[fade-out_100ms_ease-in]",
3580
+ "data-[state=hidden]:opacity-0",
3581
+ "bottom-0",
3582
+ "z-[1]",
3583
+ "w-(--reka-navigation-menu-indicator-size)",
3584
+ "h-2.5",
3585
+ "translate-x-(--reka-navigation-menu-indicator-position)",
3586
+ "flex items-end justify-center",
3587
+ "overflow-hidden",
3588
+ "transition-[translate,width] duration-200"
3589
+ ].join(" "),
3590
+ arrow: "relative top-[50%] size-2.5 rotate-45 border border-(--ui-border) bg-(--ui-bg) z-[1] rounded-md"
3548
3591
  },
3549
3592
  variants: {
3550
3593
  color: {
3551
3594
  default: {
3552
- link: "focus-visible:before:ring-(--ui-border-inverted)",
3553
- childLink: "focus-visible:outline-(--ui-border-inverted)"
3554
- }
3595
+ link: "focus-visible:before:ring-base-300 dark:focus-visible:before:ring-base-800",
3596
+ childLink: "focus-visible:outline-base-300 dark:focus-visible:outline-base-800"
3597
+ },
3598
+ danger: "",
3599
+ success: "",
3600
+ warning: "",
3601
+ primary: "",
3602
+ secondary: "",
3603
+ collab: "",
3604
+ ai: ""
3555
3605
  },
3556
3606
  highlightColor: {
3557
- default: ""
3607
+ default: "",
3608
+ danger: "",
3609
+ success: "",
3610
+ warning: "",
3611
+ primary: "",
3612
+ secondary: "",
3613
+ collab: "",
3614
+ ai: ""
3558
3615
  },
3559
3616
  variant: {
3560
- pill: "",
3617
+ pill: {
3618
+ link: [
3619
+ "hover:before:bg-base-250/80 dark:hover:before:bg-white/10"
3620
+ ].join(" ")
3621
+ },
3561
3622
  link: ""
3562
3623
  },
3563
3624
  orientation: {
@@ -3569,15 +3630,19 @@ const navigationMenu = {
3569
3630
  childList: "grid p-2"
3570
3631
  },
3571
3632
  vertical: {
3572
- root: "flex-col",
3573
- link: "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
3633
+ root: "flex-col w-full",
3634
+ link: [
3635
+ "ps-2xl pe-xs rtl:ps-xs rtl:pe-2xl",
3636
+ "flex-row rtl:flex-row-reverse",
3637
+ "before:inset-y-px before:inset-x-0"
3638
+ ].join(" ")
3574
3639
  }
3575
3640
  },
3576
3641
  contentOrientation: {
3577
3642
  horizontal: {
3578
3643
  viewport: "",
3579
3644
  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]"
3645
+ 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
3646
  },
3582
3647
  vertical: {
3583
3648
  viewport: "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
@@ -3590,10 +3655,17 @@ const navigationMenu = {
3590
3655
  childLinkIcon: "text-(--ui-text)"
3591
3656
  },
3592
3657
  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"]
3658
+ link: "text-base-900 dark:text-base-200",
3659
+ linkLeadingIcon: "text-base-500 dark:text-base-700",
3660
+ childLink: [
3661
+ "hover:bg-(--ui-bg-elevated)/50 text-(--ui-text) hover:text-(--ui-text-highlighted)",
3662
+ "transition-colors"
3663
+ ].join(" "),
3664
+ childLinkIcon: [
3665
+ "text-base-500 dark:text-base-700",
3666
+ "group-hover:text-(--ui-text)",
3667
+ "transition-colors"
3668
+ ].join(" ")
3597
3669
  }
3598
3670
  },
3599
3671
  disabled: {
@@ -3612,6 +3684,7 @@ const navigationMenu = {
3612
3684
  }
3613
3685
  },
3614
3686
  compoundVariants: [
3687
+ // region horizontal ////
3615
3688
  {
3616
3689
  orientation: "horizontal",
3617
3690
  contentOrientation: "horizontal",
@@ -3634,6 +3707,8 @@ const navigationMenu = {
3634
3707
  link: ["after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full", "after:transition-colors"]
3635
3708
  }
3636
3709
  },
3710
+ // endregion ////
3711
+ // region vertical ////
3637
3712
  {
3638
3713
  orientation: "vertical",
3639
3714
  highlight: true,
@@ -3642,13 +3717,20 @@ const navigationMenu = {
3642
3717
  link: ["after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full", "after:transition-colors"]
3643
3718
  }
3644
3719
  },
3720
+ // endregion ////
3721
+ // region disabled ////
3645
3722
  {
3646
3723
  disabled: false,
3647
3724
  active: false,
3648
3725
  variant: "pill",
3649
3726
  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"]
3727
+ link: [
3728
+ "transition-colors before:transition-colors"
3729
+ ].join(" "),
3730
+ linkLeadingIcon: [
3731
+ "group-hover:text-(--ui-text)",
3732
+ "transition-colors"
3733
+ ].join(" ")
3652
3734
  }
3653
3735
  },
3654
3736
  {
@@ -3680,13 +3762,18 @@ const navigationMenu = {
3680
3762
  link: "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
3681
3763
  }
3682
3764
  },
3765
+ // endregion ////
3683
3766
  {
3684
3767
  color: "default",
3685
3768
  variant: "pill",
3686
3769
  active: true,
3687
3770
  class: {
3688
- link: "text-(--ui-text-highlighted)",
3689
- linkLeadingIcon: "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
3771
+ // link: 'text-(--ui-text-highlighted)',
3772
+ linkLeadingIcon: "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)",
3773
+ linkLabel: [
3774
+ "text-white dark:text-white",
3775
+ "bg-base-800 dark:bg-white/35"
3776
+ ].join(" ")
3690
3777
  }
3691
3778
  },
3692
3779
  {
@@ -3694,7 +3781,18 @@ const navigationMenu = {
3694
3781
  active: true,
3695
3782
  highlight: false,
3696
3783
  class: {
3697
- link: "before:bg-(--ui-bg-elevated)"
3784
+ link: [
3785
+ "leading-9"
3786
+ ].join(" "),
3787
+ linkLabel: [
3788
+ "px-3",
3789
+ "-ms-3 me-3 rtl:-me-3 rtl:ms-3",
3790
+ "font-semibold leading-[1.563rem]",
3791
+ "text-white dark:text-white",
3792
+ "bg-base-800 dark:bg-white/35",
3793
+ // (--ui-bg-elevated)
3794
+ "rounded-2xl"
3795
+ ].join(" ")
3698
3796
  }
3699
3797
  },
3700
3798
  {
@@ -3702,16 +3800,26 @@ const navigationMenu = {
3702
3800
  active: true,
3703
3801
  highlight: true,
3704
3802
  class: {
3705
- link: ["hover:before:bg-(--ui-bg-elevated)/50", "before:transition-colors"]
3803
+ link: [
3804
+ "hover:before:bg-(--ui-bg-elevated)/50",
3805
+ "before:transition-colors"
3806
+ ]
3706
3807
  }
3707
3808
  },
3809
+ // region link ////
3708
3810
  {
3709
3811
  disabled: false,
3710
3812
  active: false,
3711
3813
  variant: "link",
3712
3814
  class: {
3713
- link: ["hover:text-(--ui-text-highlighted)", "transition-colors"],
3714
- linkLeadingIcon: ["group-hover:text-(--ui-text)", "transition-colors"]
3815
+ link: [
3816
+ "hover:text-base-950 dark:hover:text-base-50",
3817
+ "transition-colors"
3818
+ ].join(" "),
3819
+ linkLeadingIcon: [
3820
+ "group-hover:text-(--ui-text)",
3821
+ "transition-colors"
3822
+ ].join(" ")
3715
3823
  }
3716
3824
  },
3717
3825
  {
@@ -3733,6 +3841,7 @@ const navigationMenu = {
3733
3841
  linkLeadingIcon: "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
3734
3842
  }
3735
3843
  },
3844
+ // endregion ////
3736
3845
  {
3737
3846
  highlightColor: "default",
3738
3847
  highlight: true,
@@ -3746,8 +3855,8 @@ const navigationMenu = {
3746
3855
  orientation: "vertical",
3747
3856
  collapsed: false,
3748
3857
  class: {
3749
- childList: "ms-5 border-s border-(--ui-border)",
3750
- childItem: "ps-1.5 -ms-px"
3858
+ childList: "v-1",
3859
+ childItem: "v-2 [&>a]:ps-[44px]"
3751
3860
  }
3752
3861
  },
3753
3862
  {
@@ -3759,9 +3868,6 @@ const navigationMenu = {
3759
3868
  }
3760
3869
  ],
3761
3870
  defaultVariants: {
3762
- /**
3763
- * @todo change to primary
3764
- */
3765
3871
  color: "default",
3766
3872
  highlightColor: "default",
3767
3873
  variant: "pill"
@@ -5772,7 +5878,7 @@ const sidebar = {
5772
5878
  const sidebarHeader = {
5773
5879
  slots: {
5774
5880
  root: [
5775
- "p-4",
5881
+ "py-4",
5776
5882
  "flex flex-col",
5777
5883
  // 'border-b border-base-950/5 dark:border-white/5',
5778
5884
  "[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
@@ -5783,7 +5889,7 @@ const sidebarHeader = {
5783
5889
  const sidebarBody = {
5784
5890
  slots: {
5785
5891
  root: [
5786
- "p-4",
5892
+ "py-4",
5787
5893
  "flex flex-1 flex-col",
5788
5894
  "overflow-y-auto",
5789
5895
  "[&>[data-slot=section]+[data-slot=section]]:mt-8"
@@ -5804,7 +5910,7 @@ const sidebarBody = {
5804
5910
  const sidebarFooter = {
5805
5911
  slots: {
5806
5912
  root: [
5807
- "p-4",
5913
+ "py-4",
5808
5914
  "flex flex-col",
5809
5915
  "max-lg:hidden",
5810
5916
  // 'border-t border-base-950/5 dark:border-white/5',
@@ -5816,6 +5922,7 @@ const sidebarFooter = {
5816
5922
  const sidebarSection = {
5817
5923
  slots: {
5818
5924
  root: [
5925
+ "ps-2xl pe-xs",
5819
5926
  "flex flex-col gap-0.5"
5820
5927
  ].join(" ")
5821
5928
  }
@@ -5825,7 +5932,6 @@ const sidebarHeading = {
5825
5932
  slots: {
5826
5933
  root: [
5827
5934
  "mb-1",
5828
- "px-2",
5829
5935
  "text-xs/6 font-medium ",
5830
5936
  "text-base-500 dark:text-base-400"
5831
5937
  ].join(" ")
package/dist/unplugin.cjs CHANGED
@@ -5,7 +5,7 @@ const pathe = require('pathe');
5
5
  const unplugin = require('unplugin');
6
6
  const defu = require('defu');
7
7
  const tailwind = require('@tailwindcss/vite');
8
- const templates = require('./shared/b24ui-nuxt.CltBJi1M.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.DHbGsmbj.cjs');
9
9
  const tinyglobby = require('tinyglobby');
10
10
  const knitwork = require('knitwork');
11
11
  const MagicString = require('magic-string');
package/dist/unplugin.mjs CHANGED
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
3
3
  import { createUnplugin } from 'unplugin';
4
4
  import { defu } from 'defu';
5
5
  import tailwind from '@tailwindcss/vite';
6
- import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.CJqO7fYv.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.Bj4fKDSa.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
package/dist/vite.cjs CHANGED
@@ -6,7 +6,7 @@ require('pathe');
6
6
  require('unplugin');
7
7
  require('defu');
8
8
  require('@tailwindcss/vite');
9
- require('./shared/b24ui-nuxt.CltBJi1M.cjs');
9
+ require('./shared/b24ui-nuxt.DHbGsmbj.cjs');
10
10
  require('scule');
11
11
  require('@nuxt/kit');
12
12
  require('tinyglobby');
package/dist/vite.mjs CHANGED
@@ -4,7 +4,7 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/b24ui-nuxt.CJqO7fYv.mjs';
7
+ import './shared/b24ui-nuxt.Bj4fKDSa.mjs';
8
8
  import 'scule';
9
9
  import '@nuxt/kit';
10
10
  import 'tinyglobby';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrix24/b24ui-nuxt",
3
3
  "description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
4
- "version": "0.4.11",
4
+ "version": "0.5.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -72,8 +72,8 @@
72
72
  "@bitrix24/b24style": "^1.0.1",
73
73
  "@internationalized/date": "^3.7.0",
74
74
  "@internationalized/number": "^3.6.0",
75
- "@nuxt/kit": "^3.16.0",
76
- "@nuxt/schema": "^3.16.0",
75
+ "@nuxt/kit": "^3.16.1",
76
+ "@nuxt/schema": "^3.16.1",
77
77
  "@nuxtjs/color-mode": "^3.5.2",
78
78
  "@tailwindcss/postcss": "^4.0.14",
79
79
  "@tailwindcss/vite": "^4.0.14",
@@ -121,10 +121,10 @@
121
121
  "eslint": "^9.22.0",
122
122
  "happy-dom": "^17.4.4",
123
123
  "joi": "^17.13.3",
124
- "nuxt": "^3.16.0",
124
+ "nuxt": "^3.16.1",
125
125
  "nuxt-component-meta": "^0.10.0",
126
126
  "superstruct": "^2.0.2",
127
- "valibot": "^0.42.1",
127
+ "valibot": "^1.0.0",
128
128
  "vitepress": "^1.5.0",
129
129
  "vitest": "^3.0.9",
130
130
  "vitest-environment-nuxt": "^1.0.1",