@bitrix24/b24ui-nuxt 0.4.9 → 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.
- package/.nuxt/b24ui/collapsible.ts +6 -0
- package/.nuxt/b24ui/index.ts +15 -0
- package/.nuxt/b24ui/navbar-divider.ts +5 -0
- package/.nuxt/b24ui/navbar-section.ts +5 -0
- package/.nuxt/b24ui/navbar-spacer.ts +5 -0
- package/.nuxt/b24ui/navbar.ts +5 -0
- package/.nuxt/b24ui/navigation-menu.ts +299 -0
- package/.nuxt/b24ui/sidebar-body.ts +15 -0
- package/.nuxt/b24ui/sidebar-footer.ts +5 -0
- package/.nuxt/b24ui/sidebar-header.ts +5 -0
- package/.nuxt/b24ui/sidebar-heading.ts +5 -0
- package/.nuxt/b24ui/sidebar-layout.ts +38 -0
- package/.nuxt/b24ui/sidebar-section.ts +5 -0
- package/.nuxt/b24ui/sidebar-spacer.ts +5 -0
- package/.nuxt/b24ui/sidebar.ts +5 -0
- package/.nuxt/b24ui/stacked-layout.ts +9 -0
- package/cli/package.json +1 -1
- package/dist/meta.cjs +10969 -846
- package/dist/meta.d.cts +10969 -846
- package/dist/meta.d.mts +10969 -846
- package/dist/meta.d.ts +10969 -846
- package/dist/meta.mjs +10969 -846
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Collapsible.vue +56 -0
- package/dist/runtime/components/DropdownMenu.vue +2 -0
- package/dist/runtime/components/Navbar.vue +43 -0
- package/dist/runtime/components/NavbarDivider.vue +42 -0
- package/dist/runtime/components/NavbarSection.vue +46 -0
- package/dist/runtime/components/NavbarSpacer.vue +42 -0
- package/dist/runtime/components/NavigationMenu.vue +340 -0
- package/dist/runtime/components/Sidebar.vue +43 -0
- package/dist/runtime/components/SidebarBody.vue +49 -0
- package/dist/runtime/components/SidebarFooter.vue +42 -0
- package/dist/runtime/components/SidebarHeader.vue +42 -0
- package/dist/runtime/components/SidebarHeading.vue +42 -0
- package/dist/runtime/components/SidebarLayout.vue +157 -0
- package/dist/runtime/components/SidebarSection.vue +46 -0
- package/dist/runtime/components/SidebarSpacer.vue +42 -0
- package/dist/runtime/components/StackedLayout.vue +49 -0
- package/dist/runtime/composables/defineLocale.js +1 -0
- package/dist/runtime/composables/defineShortcuts.js +1 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/composables/useKbd.js +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.js +1 -1
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/plugins/colors.js +2 -5
- package/dist/runtime/types/index.d.ts +15 -0
- package/dist/runtime/types/index.js +15 -0
- package/dist/runtime/utils/link.d.ts +7 -7
- package/dist/runtime/utils/tv.js +1 -1
- package/dist/runtime/vue/plugins/head.js +3 -0
- package/dist/runtime/vue/stubs.d.ts +1 -2
- package/dist/runtime/vue/stubs.js +1 -2
- package/dist/shared/{b24ui-nuxt.D6rkGFKm.mjs → b24ui-nuxt.CJqO7fYv.mjs} +495 -0
- package/dist/shared/{b24ui-nuxt.CH0xlXgy.cjs → b24ui-nuxt.CltBJi1M.cjs} +495 -0
- package/dist/unplugin.cjs +6 -2
- package/dist/unplugin.mjs +6 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +5 -5
|
@@ -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: [
|
|
@@ -5397,6 +5660,223 @@ const tooltip = {
|
|
|
5397
5660
|
}
|
|
5398
5661
|
};
|
|
5399
5662
|
|
|
5663
|
+
const sidebarLayout = {
|
|
5664
|
+
slots: {
|
|
5665
|
+
root: [
|
|
5666
|
+
"min-h-svh w-full",
|
|
5667
|
+
"flex max-lg:flex-col",
|
|
5668
|
+
"relative isolate"
|
|
5669
|
+
].join(" "),
|
|
5670
|
+
sidebar: [
|
|
5671
|
+
"w-[240px]",
|
|
5672
|
+
"pr-[3px]",
|
|
5673
|
+
"fixed inset-y-0 left-0",
|
|
5674
|
+
"max-lg:hidden"
|
|
5675
|
+
].join(" "),
|
|
5676
|
+
sidebarSlideoverContainer: [
|
|
5677
|
+
"max-w-80",
|
|
5678
|
+
"p-2",
|
|
5679
|
+
"bg-transparent dark:bg-transparent sm:shadow-none"
|
|
5680
|
+
].join(" "),
|
|
5681
|
+
sidebarSlideover: [
|
|
5682
|
+
"h-full",
|
|
5683
|
+
"overflow-hidden",
|
|
5684
|
+
"flex flex-col",
|
|
5685
|
+
"bg-white dark:bg-base-dark",
|
|
5686
|
+
"ring-1 ring-base-950/5 dark:ring-white/10",
|
|
5687
|
+
"shadow-xs",
|
|
5688
|
+
"rounded-lg"
|
|
5689
|
+
].join(" "),
|
|
5690
|
+
sidebarSlideoverBtnClose: [
|
|
5691
|
+
"-mb-3",
|
|
5692
|
+
"px-4 pt-3"
|
|
5693
|
+
].join(" "),
|
|
5694
|
+
header: [
|
|
5695
|
+
"px-4",
|
|
5696
|
+
"flex items-center",
|
|
5697
|
+
"lg:hidden"
|
|
5698
|
+
].join(" "),
|
|
5699
|
+
headerPaddings: [
|
|
5700
|
+
"py-2.5"
|
|
5701
|
+
].join(" "),
|
|
5702
|
+
headerWrapper: [
|
|
5703
|
+
"min-w-0",
|
|
5704
|
+
"flex-1"
|
|
5705
|
+
].join(" "),
|
|
5706
|
+
container: [
|
|
5707
|
+
"flex-1 flex flex-col",
|
|
5708
|
+
"lg:min-w-0",
|
|
5709
|
+
"pb-2",
|
|
5710
|
+
"lg:pt-2 lg:pr-2"
|
|
5711
|
+
].join(" "),
|
|
5712
|
+
containerWrapper: [
|
|
5713
|
+
"grow"
|
|
5714
|
+
].join(" "),
|
|
5715
|
+
containerWrapperInner: ""
|
|
5716
|
+
},
|
|
5717
|
+
variants: {
|
|
5718
|
+
useSidebar: {
|
|
5719
|
+
true: {
|
|
5720
|
+
container: "lg:pl-[240px]"
|
|
5721
|
+
},
|
|
5722
|
+
false: {
|
|
5723
|
+
container: ""
|
|
5724
|
+
}
|
|
5725
|
+
},
|
|
5726
|
+
useLightContent: {
|
|
5727
|
+
true: {
|
|
5728
|
+
root: [
|
|
5729
|
+
"bg-white dark:bg-white/10",
|
|
5730
|
+
"lg:bg-base-50 dark:lg:bg-base-dark"
|
|
5731
|
+
].join(" "),
|
|
5732
|
+
containerWrapper: [
|
|
5733
|
+
"p-6 lg:p-10",
|
|
5734
|
+
"lg:bg-white dark:lg:bg-white/10",
|
|
5735
|
+
"lg:ring-1 lg:ring-base-950/5 dark:lg:ring-white/10",
|
|
5736
|
+
"lg:shadow-xs",
|
|
5737
|
+
"lg:rounded-lg"
|
|
5738
|
+
].join(" ")
|
|
5739
|
+
},
|
|
5740
|
+
false: {
|
|
5741
|
+
container: [
|
|
5742
|
+
"px-4"
|
|
5743
|
+
].join(" ")
|
|
5744
|
+
}
|
|
5745
|
+
}
|
|
5746
|
+
},
|
|
5747
|
+
compoundVariants: [],
|
|
5748
|
+
defaultVariants: {
|
|
5749
|
+
useLightContent: true
|
|
5750
|
+
}
|
|
5751
|
+
};
|
|
5752
|
+
|
|
5753
|
+
const stackedLayout = {
|
|
5754
|
+
slots: {
|
|
5755
|
+
root: "",
|
|
5756
|
+
container: ""
|
|
5757
|
+
},
|
|
5758
|
+
variants: {},
|
|
5759
|
+
compoundVariants: [],
|
|
5760
|
+
defaultVariants: {}
|
|
5761
|
+
};
|
|
5762
|
+
|
|
5763
|
+
const sidebar = {
|
|
5764
|
+
slots: {
|
|
5765
|
+
root: [
|
|
5766
|
+
"h-full min-h-0",
|
|
5767
|
+
"flex flex-col"
|
|
5768
|
+
].join(" ")
|
|
5769
|
+
}
|
|
5770
|
+
};
|
|
5771
|
+
|
|
5772
|
+
const sidebarHeader = {
|
|
5773
|
+
slots: {
|
|
5774
|
+
root: [
|
|
5775
|
+
"p-4",
|
|
5776
|
+
"flex flex-col",
|
|
5777
|
+
// 'border-b border-base-950/5 dark:border-white/5',
|
|
5778
|
+
"[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
|
|
5779
|
+
].join(" ")
|
|
5780
|
+
}
|
|
5781
|
+
};
|
|
5782
|
+
|
|
5783
|
+
const sidebarBody = {
|
|
5784
|
+
slots: {
|
|
5785
|
+
root: [
|
|
5786
|
+
"p-4",
|
|
5787
|
+
"flex flex-1 flex-col",
|
|
5788
|
+
"overflow-y-auto",
|
|
5789
|
+
"[&>[data-slot=section]+[data-slot=section]]:mt-8"
|
|
5790
|
+
].join(" ")
|
|
5791
|
+
},
|
|
5792
|
+
variants: {
|
|
5793
|
+
scrollbarThin: {
|
|
5794
|
+
true: {
|
|
5795
|
+
root: "scrollbar-thin scrollbar-transparent"
|
|
5796
|
+
}
|
|
5797
|
+
}
|
|
5798
|
+
},
|
|
5799
|
+
defaultVariants: {
|
|
5800
|
+
scrollbarThin: true
|
|
5801
|
+
}
|
|
5802
|
+
};
|
|
5803
|
+
|
|
5804
|
+
const sidebarFooter = {
|
|
5805
|
+
slots: {
|
|
5806
|
+
root: [
|
|
5807
|
+
"p-4",
|
|
5808
|
+
"flex flex-col",
|
|
5809
|
+
"max-lg:hidden",
|
|
5810
|
+
// 'border-t border-base-950/5 dark:border-white/5',
|
|
5811
|
+
"[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
|
|
5812
|
+
].join(" ")
|
|
5813
|
+
}
|
|
5814
|
+
};
|
|
5815
|
+
|
|
5816
|
+
const sidebarSection = {
|
|
5817
|
+
slots: {
|
|
5818
|
+
root: [
|
|
5819
|
+
"flex flex-col gap-0.5"
|
|
5820
|
+
].join(" ")
|
|
5821
|
+
}
|
|
5822
|
+
};
|
|
5823
|
+
|
|
5824
|
+
const sidebarHeading = {
|
|
5825
|
+
slots: {
|
|
5826
|
+
root: [
|
|
5827
|
+
"mb-1",
|
|
5828
|
+
"px-2",
|
|
5829
|
+
"text-xs/6 font-medium ",
|
|
5830
|
+
"text-base-500 dark:text-base-400"
|
|
5831
|
+
].join(" ")
|
|
5832
|
+
}
|
|
5833
|
+
};
|
|
5834
|
+
|
|
5835
|
+
const sidebarSpacer = {
|
|
5836
|
+
slots: {
|
|
5837
|
+
root: [
|
|
5838
|
+
"mt-8",
|
|
5839
|
+
"flex-1"
|
|
5840
|
+
].join(" ")
|
|
5841
|
+
}
|
|
5842
|
+
};
|
|
5843
|
+
|
|
5844
|
+
const navbar = {
|
|
5845
|
+
slots: {
|
|
5846
|
+
root: [
|
|
5847
|
+
"py-2.5",
|
|
5848
|
+
"flex-1",
|
|
5849
|
+
"flex items-center gap-4"
|
|
5850
|
+
].join(" ")
|
|
5851
|
+
}
|
|
5852
|
+
};
|
|
5853
|
+
|
|
5854
|
+
const navbarSection = {
|
|
5855
|
+
slots: {
|
|
5856
|
+
root: [
|
|
5857
|
+
"flex items-center gap-3"
|
|
5858
|
+
].join(" ")
|
|
5859
|
+
}
|
|
5860
|
+
};
|
|
5861
|
+
|
|
5862
|
+
const navbarDivider = {
|
|
5863
|
+
slots: {
|
|
5864
|
+
root: [
|
|
5865
|
+
"h-6 w-px",
|
|
5866
|
+
"bg-base-950/10 dark:bg-base-100/20"
|
|
5867
|
+
].join(" ")
|
|
5868
|
+
}
|
|
5869
|
+
};
|
|
5870
|
+
|
|
5871
|
+
const navbarSpacer = {
|
|
5872
|
+
slots: {
|
|
5873
|
+
root: [
|
|
5874
|
+
"-ml-4",
|
|
5875
|
+
"flex-1"
|
|
5876
|
+
].join(" ")
|
|
5877
|
+
}
|
|
5878
|
+
};
|
|
5879
|
+
|
|
5400
5880
|
const theme = {
|
|
5401
5881
|
__proto__: null,
|
|
5402
5882
|
advice: advice,
|
|
@@ -5409,6 +5889,7 @@ const theme = {
|
|
|
5409
5889
|
calendar: calendar,
|
|
5410
5890
|
checkbox: checkbox,
|
|
5411
5891
|
chip: chip,
|
|
5892
|
+
collapsible: collapsible,
|
|
5412
5893
|
container: container,
|
|
5413
5894
|
countdown: countdown,
|
|
5414
5895
|
descriptionList: descriptionList,
|
|
@@ -5421,6 +5902,11 @@ const theme = {
|
|
|
5421
5902
|
kbd: kbd,
|
|
5422
5903
|
link: link,
|
|
5423
5904
|
modal: modal,
|
|
5905
|
+
navbar: navbar,
|
|
5906
|
+
navbarDivider: navbarDivider,
|
|
5907
|
+
navbarSection: navbarSection,
|
|
5908
|
+
navbarSpacer: navbarSpacer,
|
|
5909
|
+
navigationMenu: navigationMenu,
|
|
5424
5910
|
popover: popover,
|
|
5425
5911
|
progress: progress,
|
|
5426
5912
|
radioGroup: radioGroup,
|
|
@@ -5428,8 +5914,17 @@ const theme = {
|
|
|
5428
5914
|
select: select,
|
|
5429
5915
|
selectMenu: selectMenu,
|
|
5430
5916
|
separator: separator,
|
|
5917
|
+
sidebar: sidebar,
|
|
5918
|
+
sidebarBody: sidebarBody,
|
|
5919
|
+
sidebarFooter: sidebarFooter,
|
|
5920
|
+
sidebarHeader: sidebarHeader,
|
|
5921
|
+
sidebarHeading: sidebarHeading,
|
|
5922
|
+
sidebarLayout: sidebarLayout,
|
|
5923
|
+
sidebarSection: sidebarSection,
|
|
5924
|
+
sidebarSpacer: sidebarSpacer,
|
|
5431
5925
|
skeleton: skeleton,
|
|
5432
5926
|
slideover: slideover,
|
|
5927
|
+
stackedLayout: stackedLayout,
|
|
5433
5928
|
switch: _switch,
|
|
5434
5929
|
tabs: tabs,
|
|
5435
5930
|
textarea: textarea,
|
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.
|
|
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');
|
|
@@ -123,7 +123,11 @@ function ComponentImportPlugin(options, meta) {
|
|
|
123
123
|
const overrideNames = new Set(overrides.map((c) => `B24${c.replace(/\.vue$/, "")}`));
|
|
124
124
|
const pluginOptions = defu.defu(options.components, {
|
|
125
125
|
dts: options.dts ?? true,
|
|
126
|
-
exclude: [
|
|
126
|
+
exclude: [
|
|
127
|
+
/[\\/]node_modules[\\/](?!\.pnpm|@bitrix24\/b24ui-nuxt|@compodium\/examples)/,
|
|
128
|
+
/[\\/]\.git[\\/]/,
|
|
129
|
+
/[\\/]\.nuxt[\\/]/
|
|
130
|
+
],
|
|
127
131
|
resolvers: [
|
|
128
132
|
(componentName) => {
|
|
129
133
|
if (overrideNames.has(componentName))
|
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.
|
|
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';
|
|
@@ -113,7 +113,11 @@ function ComponentImportPlugin(options, meta) {
|
|
|
113
113
|
const overrideNames = new Set(overrides.map((c) => `B24${c.replace(/\.vue$/, "")}`));
|
|
114
114
|
const pluginOptions = defu(options.components, {
|
|
115
115
|
dts: options.dts ?? true,
|
|
116
|
-
exclude: [
|
|
116
|
+
exclude: [
|
|
117
|
+
/[\\/]node_modules[\\/](?!\.pnpm|@bitrix24\/b24ui-nuxt|@compodium\/examples)/,
|
|
118
|
+
/[\\/]\.git[\\/]/,
|
|
119
|
+
/[\\/]\.nuxt[\\/]/
|
|
120
|
+
],
|
|
117
121
|
resolvers: [
|
|
118
122
|
(componentName) => {
|
|
119
123
|
if (overrideNames.has(componentName))
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
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.
|
|
4
|
+
"version": "0.4.11",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"@tailwindcss/postcss": "^4.0.14",
|
|
79
79
|
"@tailwindcss/vite": "^4.0.14",
|
|
80
80
|
"@tanstack/vue-table": "^8.21.2",
|
|
81
|
-
"@unhead/vue": "^2.0.0-rc.
|
|
81
|
+
"@unhead/vue": "^2.0.0-rc.13",
|
|
82
82
|
"@vueuse/core": "^13.0.0",
|
|
83
83
|
"@vueuse/integrations": "^13.0.0",
|
|
84
84
|
"canvas-confetti": "^1.9.3",
|
|
85
85
|
"colortranslator": "^4.1.0",
|
|
86
|
-
"consola": "^3.4.
|
|
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",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"mlly": "^1.7.4",
|
|
99
99
|
"ohash": "^2.0.11",
|
|
100
100
|
"pathe": "^2.0.3",
|
|
101
|
-
"reka-ui": "^2.0
|
|
101
|
+
"reka-ui": "^2.1.0",
|
|
102
102
|
"scule": "^1.3.0",
|
|
103
103
|
"tailwind-variants": "^1.0.0",
|
|
104
104
|
"tailwindcss": "^4.0.14",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"superstruct": "^2.0.2",
|
|
127
127
|
"valibot": "^0.42.1",
|
|
128
128
|
"vitepress": "^1.5.0",
|
|
129
|
-
"vitest": "^3.0.
|
|
129
|
+
"vitest": "^3.0.9",
|
|
130
130
|
"vitest-environment-nuxt": "^1.0.1",
|
|
131
131
|
"vue-tsc": "^2.2.0",
|
|
132
132
|
"yup": "^1.6.1",
|