@bitrix24/b24ui-nuxt 0.4.10 → 0.4.11

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 (43) hide show
  1. package/.nuxt/b24ui/collapsible.ts +6 -0
  2. package/.nuxt/b24ui/index.ts +2 -0
  3. package/.nuxt/b24ui/navigation-menu.ts +299 -0
  4. package/cli/package.json +1 -1
  5. package/dist/meta.cjs +9514 -354
  6. package/dist/meta.d.cts +9514 -354
  7. package/dist/meta.d.mts +9514 -354
  8. package/dist/meta.d.ts +9514 -354
  9. package/dist/meta.mjs +9514 -354
  10. package/dist/module.cjs +1 -1
  11. package/dist/module.json +1 -1
  12. package/dist/module.mjs +1 -1
  13. package/dist/runtime/components/Collapsible.vue +56 -0
  14. package/dist/runtime/components/DropdownMenu.vue +2 -0
  15. package/dist/runtime/components/Navbar.vue +1 -2
  16. package/dist/runtime/components/NavbarDivider.vue +1 -2
  17. package/dist/runtime/components/NavbarSection.vue +1 -2
  18. package/dist/runtime/components/NavbarSpacer.vue +1 -2
  19. package/dist/runtime/components/NavigationMenu.vue +340 -0
  20. package/dist/runtime/components/Sidebar.vue +1 -2
  21. package/dist/runtime/components/SidebarFooter.vue +1 -2
  22. package/dist/runtime/components/SidebarHeader.vue +1 -2
  23. package/dist/runtime/components/SidebarHeading.vue +1 -2
  24. package/dist/runtime/components/SidebarLayout.vue +34 -8
  25. package/dist/runtime/components/SidebarSection.vue +1 -2
  26. package/dist/runtime/components/SidebarSpacer.vue +1 -2
  27. package/dist/runtime/components/StackedLayout.vue +1 -3
  28. package/dist/runtime/composables/defineLocale.js +1 -0
  29. package/dist/runtime/composables/defineShortcuts.js +1 -0
  30. package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
  31. package/dist/runtime/composables/useKbd.js +1 -1
  32. package/dist/runtime/composables/useLocale.js +2 -2
  33. package/dist/runtime/composables/useOverlay.js +1 -1
  34. package/dist/runtime/types/index.d.ts +2 -0
  35. package/dist/runtime/types/index.js +2 -0
  36. package/dist/runtime/utils/tv.js +1 -1
  37. package/dist/shared/{b24ui-nuxt._rviRWFf.mjs → b24ui-nuxt.CJqO7fYv.mjs} +265 -0
  38. package/dist/shared/{b24ui-nuxt.CY35QViH.cjs → b24ui-nuxt.CltBJi1M.cjs} +265 -0
  39. package/dist/unplugin.cjs +1 -1
  40. package/dist/unplugin.mjs +1 -1
  41. package/dist/vite.cjs +1 -1
  42. package/dist/vite.mjs +1 -1
  43. package/package.json +2 -2
@@ -1637,6 +1637,16 @@ const chip = {
1637
1637
  }
1638
1638
  };
1639
1639
 
1640
+ const collapsible = {
1641
+ slots: {
1642
+ root: "",
1643
+ content: [
1644
+ "motion-safe:data-[state=open]:animate-[collapsible-down_200ms_ease-out] motion-safe:data-[state=closed]:animate-[collapsible-up_200ms_ease-out]",
1645
+ "overflow-hidden"
1646
+ ].join(" ")
1647
+ }
1648
+ };
1649
+
1640
1650
  const container = {
1641
1651
  base: "max-w-[80rem] mx-auto px-5"
1642
1652
  // max-w-7xl w-full
@@ -3505,6 +3515,259 @@ const modal = {
3505
3515
  }
3506
3516
  };
3507
3517
 
3518
+ const navigationMenu = {
3519
+ slots: {
3520
+ root: "relative flex gap-1.5 [&>div]:min-w-0",
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",
3523
+ 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",
3527
+ linkLeadingAvatarSize: "2xs",
3528
+ linkTrailing: "ms-auto inline-flex gap-1.5 items-center",
3529
+ linkTrailingBadge: "shrink-0",
3530
+ linkTrailingBadgeSize: "sm",
3531
+ linkTrailingIcon: "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
3532
+ linkLabel: "truncate",
3533
+ linkLabelExternalIcon: "inline-block size-3 align-top text-(--ui-text-dimmed)",
3534
+ childList: "",
3535
+ childItem: "",
3536
+ childLink: "group size-full px-3 py-2 rounded-[calc(var(--ui-radius)*1.5)] flex items-start gap-2 text-start",
3537
+ childLinkWrapper: "flex flex-col items-start",
3538
+ childLinkIcon: "size-5 shrink-0",
3539
+ 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)",
3543
+ 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]",
3545
+ 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)]"
3548
+ },
3549
+ variants: {
3550
+ color: {
3551
+ default: {
3552
+ link: "focus-visible:before:ring-(--ui-border-inverted)",
3553
+ childLink: "focus-visible:outline-(--ui-border-inverted)"
3554
+ }
3555
+ },
3556
+ highlightColor: {
3557
+ default: ""
3558
+ },
3559
+ variant: {
3560
+ pill: "",
3561
+ link: ""
3562
+ },
3563
+ orientation: {
3564
+ horizontal: {
3565
+ root: "items-center justify-between",
3566
+ list: "flex items-center",
3567
+ item: "py-2",
3568
+ link: "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
3569
+ childList: "grid p-2"
3570
+ },
3571
+ vertical: {
3572
+ root: "flex-col",
3573
+ link: "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
3574
+ }
3575
+ },
3576
+ contentOrientation: {
3577
+ horizontal: {
3578
+ viewport: "",
3579
+ 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]"
3581
+ },
3582
+ vertical: {
3583
+ viewport: "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
3584
+ content: ""
3585
+ }
3586
+ },
3587
+ active: {
3588
+ true: {
3589
+ childLink: "bg-(--ui-bg-elevated) text-(--ui-text-highlighted)",
3590
+ childLinkIcon: "text-(--ui-text)"
3591
+ },
3592
+ 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"]
3597
+ }
3598
+ },
3599
+ disabled: {
3600
+ true: {
3601
+ link: "cursor-not-allowed opacity-75"
3602
+ }
3603
+ },
3604
+ highlight: {
3605
+ true: ""
3606
+ },
3607
+ level: {
3608
+ true: ""
3609
+ },
3610
+ collapsed: {
3611
+ true: ""
3612
+ }
3613
+ },
3614
+ compoundVariants: [
3615
+ {
3616
+ orientation: "horizontal",
3617
+ contentOrientation: "horizontal",
3618
+ class: {
3619
+ childList: "grid-cols-2 gap-2"
3620
+ }
3621
+ },
3622
+ {
3623
+ orientation: "horizontal",
3624
+ contentOrientation: "vertical",
3625
+ class: {
3626
+ childList: "gap-1",
3627
+ content: "w-60"
3628
+ }
3629
+ },
3630
+ {
3631
+ orientation: "horizontal",
3632
+ highlight: true,
3633
+ class: {
3634
+ link: ["after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full", "after:transition-colors"]
3635
+ }
3636
+ },
3637
+ {
3638
+ orientation: "vertical",
3639
+ highlight: true,
3640
+ level: true,
3641
+ 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"]
3643
+ }
3644
+ },
3645
+ {
3646
+ disabled: false,
3647
+ active: false,
3648
+ variant: "pill",
3649
+ 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"]
3652
+ }
3653
+ },
3654
+ {
3655
+ disabled: false,
3656
+ active: false,
3657
+ variant: "pill",
3658
+ orientation: "horizontal",
3659
+ class: {
3660
+ link: "data-[state=open]:text-(--ui-text-highlighted)",
3661
+ linkLeadingIcon: "group-data-[state=open]:text-(--ui-text)"
3662
+ }
3663
+ },
3664
+ {
3665
+ disabled: false,
3666
+ variant: "pill",
3667
+ highlight: true,
3668
+ orientation: "horizontal",
3669
+ class: {
3670
+ link: "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
3671
+ }
3672
+ },
3673
+ {
3674
+ disabled: false,
3675
+ variant: "pill",
3676
+ highlight: false,
3677
+ active: false,
3678
+ orientation: "horizontal",
3679
+ class: {
3680
+ link: "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
3681
+ }
3682
+ },
3683
+ {
3684
+ color: "default",
3685
+ variant: "pill",
3686
+ active: true,
3687
+ class: {
3688
+ link: "text-(--ui-text-highlighted)",
3689
+ linkLeadingIcon: "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
3690
+ }
3691
+ },
3692
+ {
3693
+ variant: "pill",
3694
+ active: true,
3695
+ highlight: false,
3696
+ class: {
3697
+ link: "before:bg-(--ui-bg-elevated)"
3698
+ }
3699
+ },
3700
+ {
3701
+ variant: "pill",
3702
+ active: true,
3703
+ highlight: true,
3704
+ class: {
3705
+ link: ["hover:before:bg-(--ui-bg-elevated)/50", "before:transition-colors"]
3706
+ }
3707
+ },
3708
+ {
3709
+ disabled: false,
3710
+ active: false,
3711
+ variant: "link",
3712
+ class: {
3713
+ link: ["hover:text-(--ui-text-highlighted)", "transition-colors"],
3714
+ linkLeadingIcon: ["group-hover:text-(--ui-text)", "transition-colors"]
3715
+ }
3716
+ },
3717
+ {
3718
+ disabled: false,
3719
+ active: false,
3720
+ variant: "link",
3721
+ orientation: "horizontal",
3722
+ class: {
3723
+ link: "data-[state=open]:text-(--ui-text-highlighted)",
3724
+ linkLeadingIcon: "group-data-[state=open]:text-(--ui-text)"
3725
+ }
3726
+ },
3727
+ {
3728
+ color: "default",
3729
+ variant: "link",
3730
+ active: true,
3731
+ class: {
3732
+ link: "text-(--ui-text-highlighted)",
3733
+ linkLeadingIcon: "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
3734
+ }
3735
+ },
3736
+ {
3737
+ highlightColor: "default",
3738
+ highlight: true,
3739
+ level: true,
3740
+ active: true,
3741
+ class: {
3742
+ link: "after:bg-(--ui-bg-inverted)"
3743
+ }
3744
+ },
3745
+ {
3746
+ orientation: "vertical",
3747
+ collapsed: false,
3748
+ class: {
3749
+ childList: "ms-5 border-s border-(--ui-border)",
3750
+ childItem: "ps-1.5 -ms-px"
3751
+ }
3752
+ },
3753
+ {
3754
+ orientation: "vertical",
3755
+ collapsed: true,
3756
+ class: {
3757
+ link: "px-1.5"
3758
+ }
3759
+ }
3760
+ ],
3761
+ defaultVariants: {
3762
+ /**
3763
+ * @todo change to primary
3764
+ */
3765
+ color: "default",
3766
+ highlightColor: "default",
3767
+ variant: "pill"
3768
+ }
3769
+ };
3770
+
3508
3771
  const popover = {
3509
3772
  slots: {
3510
3773
  content: [
@@ -5626,6 +5889,7 @@ const theme = {
5626
5889
  calendar: calendar,
5627
5890
  checkbox: checkbox,
5628
5891
  chip: chip,
5892
+ collapsible: collapsible,
5629
5893
  container: container,
5630
5894
  countdown: countdown,
5631
5895
  descriptionList: descriptionList,
@@ -5642,6 +5906,7 @@ const theme = {
5642
5906
  navbarDivider: navbarDivider,
5643
5907
  navbarSection: navbarSection,
5644
5908
  navbarSpacer: navbarSpacer,
5909
+ navigationMenu: navigationMenu,
5645
5910
  popover: popover,
5646
5911
  progress: progress,
5647
5912
  radioGroup: radioGroup,
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.CY35QViH.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.CltBJi1M.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._rviRWFf.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.CJqO7fYv.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.CY35QViH.cjs');
9
+ require('./shared/b24ui-nuxt.CltBJi1M.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._rviRWFf.mjs';
7
+ import './shared/b24ui-nuxt.CJqO7fYv.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.10",
4
+ "version": "0.4.11",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -83,7 +83,7 @@
83
83
  "@vueuse/integrations": "^13.0.0",
84
84
  "canvas-confetti": "^1.9.3",
85
85
  "colortranslator": "^4.1.0",
86
- "consola": "^3.4.0",
86
+ "consola": "^3.4.2",
87
87
  "defu": "^6.1.4",
88
88
  "embla-carousel-auto-height": "^8.5.2",
89
89
  "embla-carousel-auto-scroll": "^8.5.2",