@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
|
@@ -12,7 +12,7 @@ export declare const useColorMode: () => {
|
|
|
12
12
|
preference?: undefined;
|
|
13
13
|
readonly value?: undefined;
|
|
14
14
|
} | {
|
|
15
|
-
preference: "
|
|
15
|
+
preference: "dark" | "light" | "system";
|
|
16
16
|
readonly value: import("@vueuse/core").BasicColorMode;
|
|
17
17
|
forced: boolean;
|
|
18
18
|
};
|
|
@@ -28,7 +28,6 @@ export declare const useCookie: <T = string>(_name: string, _options?: Record<st
|
|
|
28
28
|
export declare const useState: <T>(key: string, init: () => T) => Ref<T>;
|
|
29
29
|
export declare function useNuxtApp(): {
|
|
30
30
|
isHydrating: boolean;
|
|
31
|
-
isVue: boolean;
|
|
32
31
|
payload: {
|
|
33
32
|
serverRendered: boolean;
|
|
34
33
|
};
|
|
@@ -55,14 +55,13 @@ export const useState = (key, init) => {
|
|
|
55
55
|
export function useNuxtApp() {
|
|
56
56
|
return {
|
|
57
57
|
isHydrating: true,
|
|
58
|
-
isVue: true,
|
|
59
58
|
payload: { serverRendered: false }
|
|
60
59
|
};
|
|
61
60
|
}
|
|
62
61
|
export function defineNuxtPlugin(plugin) {
|
|
63
62
|
return {
|
|
64
63
|
install(app) {
|
|
65
|
-
plugin({ vueApp: app });
|
|
64
|
+
app.runWithContext(() => plugin({ vueApp: app }));
|
|
66
65
|
}
|
|
67
66
|
};
|
|
68
67
|
}
|
|
@@ -1635,6 +1635,16 @@ const chip = {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
};
|
|
1637
1637
|
|
|
1638
|
+
const collapsible = {
|
|
1639
|
+
slots: {
|
|
1640
|
+
root: "",
|
|
1641
|
+
content: [
|
|
1642
|
+
"motion-safe:data-[state=open]:animate-[collapsible-down_200ms_ease-out] motion-safe:data-[state=closed]:animate-[collapsible-up_200ms_ease-out]",
|
|
1643
|
+
"overflow-hidden"
|
|
1644
|
+
].join(" ")
|
|
1645
|
+
}
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1638
1648
|
const container = {
|
|
1639
1649
|
base: "max-w-[80rem] mx-auto px-5"
|
|
1640
1650
|
// max-w-7xl w-full
|
|
@@ -3503,6 +3513,259 @@ const modal = {
|
|
|
3503
3513
|
}
|
|
3504
3514
|
};
|
|
3505
3515
|
|
|
3516
|
+
const navigationMenu = {
|
|
3517
|
+
slots: {
|
|
3518
|
+
root: "relative flex gap-1.5 [&>div]:min-w-0",
|
|
3519
|
+
list: "isolate min-w-0",
|
|
3520
|
+
label: "w-full flex items-center gap-1.5 font-semibold text-xs/5 text-(--ui-text-highlighted) px-2.5 py-1.5",
|
|
3521
|
+
item: "min-w-0",
|
|
3522
|
+
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",
|
|
3523
|
+
linkLeadingIcon: "shrink-0 size-5",
|
|
3524
|
+
linkLeadingAvatar: "shrink-0",
|
|
3525
|
+
linkLeadingAvatarSize: "2xs",
|
|
3526
|
+
linkTrailing: "ms-auto inline-flex gap-1.5 items-center",
|
|
3527
|
+
linkTrailingBadge: "shrink-0",
|
|
3528
|
+
linkTrailingBadgeSize: "sm",
|
|
3529
|
+
linkTrailingIcon: "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
3530
|
+
linkLabel: "truncate",
|
|
3531
|
+
linkLabelExternalIcon: "inline-block size-3 align-top text-(--ui-text-dimmed)",
|
|
3532
|
+
childList: "",
|
|
3533
|
+
childItem: "",
|
|
3534
|
+
childLink: "group size-full px-3 py-2 rounded-[calc(var(--ui-radius)*1.5)] flex items-start gap-2 text-start",
|
|
3535
|
+
childLinkWrapper: "flex flex-col items-start",
|
|
3536
|
+
childLinkIcon: "size-5 shrink-0",
|
|
3537
|
+
childLinkLabel: "font-semibold text-sm relative inline-flex",
|
|
3538
|
+
childLinkLabelExternalIcon: "inline-block size-3 align-top text-(--ui-text-dimmed)",
|
|
3539
|
+
childLinkDescription: "text-sm text-(--ui-text-muted)",
|
|
3540
|
+
separator: "px-2 h-px bg-(--ui-border)",
|
|
3541
|
+
viewportWrapper: "absolute top-full left-0 flex w-full",
|
|
3542
|
+
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]",
|
|
3543
|
+
content: "absolute top-0 left-0 w-full",
|
|
3544
|
+
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",
|
|
3545
|
+
arrow: "relative top-[50%] size-2.5 rotate-45 border border-(--ui-border) bg-(--ui-bg) z-[1] rounded-[calc(var(--ui-radius)/2)]"
|
|
3546
|
+
},
|
|
3547
|
+
variants: {
|
|
3548
|
+
color: {
|
|
3549
|
+
default: {
|
|
3550
|
+
link: "focus-visible:before:ring-(--ui-border-inverted)",
|
|
3551
|
+
childLink: "focus-visible:outline-(--ui-border-inverted)"
|
|
3552
|
+
}
|
|
3553
|
+
},
|
|
3554
|
+
highlightColor: {
|
|
3555
|
+
default: ""
|
|
3556
|
+
},
|
|
3557
|
+
variant: {
|
|
3558
|
+
pill: "",
|
|
3559
|
+
link: ""
|
|
3560
|
+
},
|
|
3561
|
+
orientation: {
|
|
3562
|
+
horizontal: {
|
|
3563
|
+
root: "items-center justify-between",
|
|
3564
|
+
list: "flex items-center",
|
|
3565
|
+
item: "py-2",
|
|
3566
|
+
link: "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
|
|
3567
|
+
childList: "grid p-2"
|
|
3568
|
+
},
|
|
3569
|
+
vertical: {
|
|
3570
|
+
root: "flex-col",
|
|
3571
|
+
link: "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
|
|
3572
|
+
}
|
|
3573
|
+
},
|
|
3574
|
+
contentOrientation: {
|
|
3575
|
+
horizontal: {
|
|
3576
|
+
viewport: "",
|
|
3577
|
+
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]"
|
|
3579
|
+
},
|
|
3580
|
+
vertical: {
|
|
3581
|
+
viewport: "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
|
|
3582
|
+
content: ""
|
|
3583
|
+
}
|
|
3584
|
+
},
|
|
3585
|
+
active: {
|
|
3586
|
+
true: {
|
|
3587
|
+
childLink: "bg-(--ui-bg-elevated) text-(--ui-text-highlighted)",
|
|
3588
|
+
childLinkIcon: "text-(--ui-text)"
|
|
3589
|
+
},
|
|
3590
|
+
false: {
|
|
3591
|
+
link: "text-(--ui-text-muted)",
|
|
3592
|
+
linkLeadingIcon: "text-(--ui-text-dimmed)",
|
|
3593
|
+
childLink: ["hover:bg-(--ui-bg-elevated)/50 text-(--ui-text) hover:text-(--ui-text-highlighted)", "transition-colors"],
|
|
3594
|
+
childLinkIcon: ["text-(--ui-text-dimmed) group-hover:text-(--ui-text)", "transition-colors"]
|
|
3595
|
+
}
|
|
3596
|
+
},
|
|
3597
|
+
disabled: {
|
|
3598
|
+
true: {
|
|
3599
|
+
link: "cursor-not-allowed opacity-75"
|
|
3600
|
+
}
|
|
3601
|
+
},
|
|
3602
|
+
highlight: {
|
|
3603
|
+
true: ""
|
|
3604
|
+
},
|
|
3605
|
+
level: {
|
|
3606
|
+
true: ""
|
|
3607
|
+
},
|
|
3608
|
+
collapsed: {
|
|
3609
|
+
true: ""
|
|
3610
|
+
}
|
|
3611
|
+
},
|
|
3612
|
+
compoundVariants: [
|
|
3613
|
+
{
|
|
3614
|
+
orientation: "horizontal",
|
|
3615
|
+
contentOrientation: "horizontal",
|
|
3616
|
+
class: {
|
|
3617
|
+
childList: "grid-cols-2 gap-2"
|
|
3618
|
+
}
|
|
3619
|
+
},
|
|
3620
|
+
{
|
|
3621
|
+
orientation: "horizontal",
|
|
3622
|
+
contentOrientation: "vertical",
|
|
3623
|
+
class: {
|
|
3624
|
+
childList: "gap-1",
|
|
3625
|
+
content: "w-60"
|
|
3626
|
+
}
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
orientation: "horizontal",
|
|
3630
|
+
highlight: true,
|
|
3631
|
+
class: {
|
|
3632
|
+
link: ["after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full", "after:transition-colors"]
|
|
3633
|
+
}
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
orientation: "vertical",
|
|
3637
|
+
highlight: true,
|
|
3638
|
+
level: true,
|
|
3639
|
+
class: {
|
|
3640
|
+
link: ["after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full", "after:transition-colors"]
|
|
3641
|
+
}
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
disabled: false,
|
|
3645
|
+
active: false,
|
|
3646
|
+
variant: "pill",
|
|
3647
|
+
class: {
|
|
3648
|
+
link: ["hover:text-(--ui-text-highlighted) hover:before:bg-(--ui-bg-elevated)/50", "transition-colors before:transition-colors"],
|
|
3649
|
+
linkLeadingIcon: ["group-hover:text-(--ui-text)", "transition-colors"]
|
|
3650
|
+
}
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
disabled: false,
|
|
3654
|
+
active: false,
|
|
3655
|
+
variant: "pill",
|
|
3656
|
+
orientation: "horizontal",
|
|
3657
|
+
class: {
|
|
3658
|
+
link: "data-[state=open]:text-(--ui-text-highlighted)",
|
|
3659
|
+
linkLeadingIcon: "group-data-[state=open]:text-(--ui-text)"
|
|
3660
|
+
}
|
|
3661
|
+
},
|
|
3662
|
+
{
|
|
3663
|
+
disabled: false,
|
|
3664
|
+
variant: "pill",
|
|
3665
|
+
highlight: true,
|
|
3666
|
+
orientation: "horizontal",
|
|
3667
|
+
class: {
|
|
3668
|
+
link: "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
|
|
3669
|
+
}
|
|
3670
|
+
},
|
|
3671
|
+
{
|
|
3672
|
+
disabled: false,
|
|
3673
|
+
variant: "pill",
|
|
3674
|
+
highlight: false,
|
|
3675
|
+
active: false,
|
|
3676
|
+
orientation: "horizontal",
|
|
3677
|
+
class: {
|
|
3678
|
+
link: "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
|
|
3679
|
+
}
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
color: "default",
|
|
3683
|
+
variant: "pill",
|
|
3684
|
+
active: true,
|
|
3685
|
+
class: {
|
|
3686
|
+
link: "text-(--ui-text-highlighted)",
|
|
3687
|
+
linkLeadingIcon: "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
|
|
3688
|
+
}
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
variant: "pill",
|
|
3692
|
+
active: true,
|
|
3693
|
+
highlight: false,
|
|
3694
|
+
class: {
|
|
3695
|
+
link: "before:bg-(--ui-bg-elevated)"
|
|
3696
|
+
}
|
|
3697
|
+
},
|
|
3698
|
+
{
|
|
3699
|
+
variant: "pill",
|
|
3700
|
+
active: true,
|
|
3701
|
+
highlight: true,
|
|
3702
|
+
class: {
|
|
3703
|
+
link: ["hover:before:bg-(--ui-bg-elevated)/50", "before:transition-colors"]
|
|
3704
|
+
}
|
|
3705
|
+
},
|
|
3706
|
+
{
|
|
3707
|
+
disabled: false,
|
|
3708
|
+
active: false,
|
|
3709
|
+
variant: "link",
|
|
3710
|
+
class: {
|
|
3711
|
+
link: ["hover:text-(--ui-text-highlighted)", "transition-colors"],
|
|
3712
|
+
linkLeadingIcon: ["group-hover:text-(--ui-text)", "transition-colors"]
|
|
3713
|
+
}
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
disabled: false,
|
|
3717
|
+
active: false,
|
|
3718
|
+
variant: "link",
|
|
3719
|
+
orientation: "horizontal",
|
|
3720
|
+
class: {
|
|
3721
|
+
link: "data-[state=open]:text-(--ui-text-highlighted)",
|
|
3722
|
+
linkLeadingIcon: "group-data-[state=open]:text-(--ui-text)"
|
|
3723
|
+
}
|
|
3724
|
+
},
|
|
3725
|
+
{
|
|
3726
|
+
color: "default",
|
|
3727
|
+
variant: "link",
|
|
3728
|
+
active: true,
|
|
3729
|
+
class: {
|
|
3730
|
+
link: "text-(--ui-text-highlighted)",
|
|
3731
|
+
linkLeadingIcon: "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
|
|
3732
|
+
}
|
|
3733
|
+
},
|
|
3734
|
+
{
|
|
3735
|
+
highlightColor: "default",
|
|
3736
|
+
highlight: true,
|
|
3737
|
+
level: true,
|
|
3738
|
+
active: true,
|
|
3739
|
+
class: {
|
|
3740
|
+
link: "after:bg-(--ui-bg-inverted)"
|
|
3741
|
+
}
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
orientation: "vertical",
|
|
3745
|
+
collapsed: false,
|
|
3746
|
+
class: {
|
|
3747
|
+
childList: "ms-5 border-s border-(--ui-border)",
|
|
3748
|
+
childItem: "ps-1.5 -ms-px"
|
|
3749
|
+
}
|
|
3750
|
+
},
|
|
3751
|
+
{
|
|
3752
|
+
orientation: "vertical",
|
|
3753
|
+
collapsed: true,
|
|
3754
|
+
class: {
|
|
3755
|
+
link: "px-1.5"
|
|
3756
|
+
}
|
|
3757
|
+
}
|
|
3758
|
+
],
|
|
3759
|
+
defaultVariants: {
|
|
3760
|
+
/**
|
|
3761
|
+
* @todo change to primary
|
|
3762
|
+
*/
|
|
3763
|
+
color: "default",
|
|
3764
|
+
highlightColor: "default",
|
|
3765
|
+
variant: "pill"
|
|
3766
|
+
}
|
|
3767
|
+
};
|
|
3768
|
+
|
|
3506
3769
|
const popover = {
|
|
3507
3770
|
slots: {
|
|
3508
3771
|
content: [
|
|
@@ -5395,6 +5658,223 @@ const tooltip = {
|
|
|
5395
5658
|
}
|
|
5396
5659
|
};
|
|
5397
5660
|
|
|
5661
|
+
const sidebarLayout = {
|
|
5662
|
+
slots: {
|
|
5663
|
+
root: [
|
|
5664
|
+
"min-h-svh w-full",
|
|
5665
|
+
"flex max-lg:flex-col",
|
|
5666
|
+
"relative isolate"
|
|
5667
|
+
].join(" "),
|
|
5668
|
+
sidebar: [
|
|
5669
|
+
"w-[240px]",
|
|
5670
|
+
"pr-[3px]",
|
|
5671
|
+
"fixed inset-y-0 left-0",
|
|
5672
|
+
"max-lg:hidden"
|
|
5673
|
+
].join(" "),
|
|
5674
|
+
sidebarSlideoverContainer: [
|
|
5675
|
+
"max-w-80",
|
|
5676
|
+
"p-2",
|
|
5677
|
+
"bg-transparent dark:bg-transparent sm:shadow-none"
|
|
5678
|
+
].join(" "),
|
|
5679
|
+
sidebarSlideover: [
|
|
5680
|
+
"h-full",
|
|
5681
|
+
"overflow-hidden",
|
|
5682
|
+
"flex flex-col",
|
|
5683
|
+
"bg-white dark:bg-base-dark",
|
|
5684
|
+
"ring-1 ring-base-950/5 dark:ring-white/10",
|
|
5685
|
+
"shadow-xs",
|
|
5686
|
+
"rounded-lg"
|
|
5687
|
+
].join(" "),
|
|
5688
|
+
sidebarSlideoverBtnClose: [
|
|
5689
|
+
"-mb-3",
|
|
5690
|
+
"px-4 pt-3"
|
|
5691
|
+
].join(" "),
|
|
5692
|
+
header: [
|
|
5693
|
+
"px-4",
|
|
5694
|
+
"flex items-center",
|
|
5695
|
+
"lg:hidden"
|
|
5696
|
+
].join(" "),
|
|
5697
|
+
headerPaddings: [
|
|
5698
|
+
"py-2.5"
|
|
5699
|
+
].join(" "),
|
|
5700
|
+
headerWrapper: [
|
|
5701
|
+
"min-w-0",
|
|
5702
|
+
"flex-1"
|
|
5703
|
+
].join(" "),
|
|
5704
|
+
container: [
|
|
5705
|
+
"flex-1 flex flex-col",
|
|
5706
|
+
"lg:min-w-0",
|
|
5707
|
+
"pb-2",
|
|
5708
|
+
"lg:pt-2 lg:pr-2"
|
|
5709
|
+
].join(" "),
|
|
5710
|
+
containerWrapper: [
|
|
5711
|
+
"grow"
|
|
5712
|
+
].join(" "),
|
|
5713
|
+
containerWrapperInner: ""
|
|
5714
|
+
},
|
|
5715
|
+
variants: {
|
|
5716
|
+
useSidebar: {
|
|
5717
|
+
true: {
|
|
5718
|
+
container: "lg:pl-[240px]"
|
|
5719
|
+
},
|
|
5720
|
+
false: {
|
|
5721
|
+
container: ""
|
|
5722
|
+
}
|
|
5723
|
+
},
|
|
5724
|
+
useLightContent: {
|
|
5725
|
+
true: {
|
|
5726
|
+
root: [
|
|
5727
|
+
"bg-white dark:bg-white/10",
|
|
5728
|
+
"lg:bg-base-50 dark:lg:bg-base-dark"
|
|
5729
|
+
].join(" "),
|
|
5730
|
+
containerWrapper: [
|
|
5731
|
+
"p-6 lg:p-10",
|
|
5732
|
+
"lg:bg-white dark:lg:bg-white/10",
|
|
5733
|
+
"lg:ring-1 lg:ring-base-950/5 dark:lg:ring-white/10",
|
|
5734
|
+
"lg:shadow-xs",
|
|
5735
|
+
"lg:rounded-lg"
|
|
5736
|
+
].join(" ")
|
|
5737
|
+
},
|
|
5738
|
+
false: {
|
|
5739
|
+
container: [
|
|
5740
|
+
"px-4"
|
|
5741
|
+
].join(" ")
|
|
5742
|
+
}
|
|
5743
|
+
}
|
|
5744
|
+
},
|
|
5745
|
+
compoundVariants: [],
|
|
5746
|
+
defaultVariants: {
|
|
5747
|
+
useLightContent: true
|
|
5748
|
+
}
|
|
5749
|
+
};
|
|
5750
|
+
|
|
5751
|
+
const stackedLayout = {
|
|
5752
|
+
slots: {
|
|
5753
|
+
root: "",
|
|
5754
|
+
container: ""
|
|
5755
|
+
},
|
|
5756
|
+
variants: {},
|
|
5757
|
+
compoundVariants: [],
|
|
5758
|
+
defaultVariants: {}
|
|
5759
|
+
};
|
|
5760
|
+
|
|
5761
|
+
const sidebar = {
|
|
5762
|
+
slots: {
|
|
5763
|
+
root: [
|
|
5764
|
+
"h-full min-h-0",
|
|
5765
|
+
"flex flex-col"
|
|
5766
|
+
].join(" ")
|
|
5767
|
+
}
|
|
5768
|
+
};
|
|
5769
|
+
|
|
5770
|
+
const sidebarHeader = {
|
|
5771
|
+
slots: {
|
|
5772
|
+
root: [
|
|
5773
|
+
"p-4",
|
|
5774
|
+
"flex flex-col",
|
|
5775
|
+
// 'border-b border-base-950/5 dark:border-white/5',
|
|
5776
|
+
"[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
|
|
5777
|
+
].join(" ")
|
|
5778
|
+
}
|
|
5779
|
+
};
|
|
5780
|
+
|
|
5781
|
+
const sidebarBody = {
|
|
5782
|
+
slots: {
|
|
5783
|
+
root: [
|
|
5784
|
+
"p-4",
|
|
5785
|
+
"flex flex-1 flex-col",
|
|
5786
|
+
"overflow-y-auto",
|
|
5787
|
+
"[&>[data-slot=section]+[data-slot=section]]:mt-8"
|
|
5788
|
+
].join(" ")
|
|
5789
|
+
},
|
|
5790
|
+
variants: {
|
|
5791
|
+
scrollbarThin: {
|
|
5792
|
+
true: {
|
|
5793
|
+
root: "scrollbar-thin scrollbar-transparent"
|
|
5794
|
+
}
|
|
5795
|
+
}
|
|
5796
|
+
},
|
|
5797
|
+
defaultVariants: {
|
|
5798
|
+
scrollbarThin: true
|
|
5799
|
+
}
|
|
5800
|
+
};
|
|
5801
|
+
|
|
5802
|
+
const sidebarFooter = {
|
|
5803
|
+
slots: {
|
|
5804
|
+
root: [
|
|
5805
|
+
"p-4",
|
|
5806
|
+
"flex flex-col",
|
|
5807
|
+
"max-lg:hidden",
|
|
5808
|
+
// 'border-t border-base-950/5 dark:border-white/5',
|
|
5809
|
+
"[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
|
|
5810
|
+
].join(" ")
|
|
5811
|
+
}
|
|
5812
|
+
};
|
|
5813
|
+
|
|
5814
|
+
const sidebarSection = {
|
|
5815
|
+
slots: {
|
|
5816
|
+
root: [
|
|
5817
|
+
"flex flex-col gap-0.5"
|
|
5818
|
+
].join(" ")
|
|
5819
|
+
}
|
|
5820
|
+
};
|
|
5821
|
+
|
|
5822
|
+
const sidebarHeading = {
|
|
5823
|
+
slots: {
|
|
5824
|
+
root: [
|
|
5825
|
+
"mb-1",
|
|
5826
|
+
"px-2",
|
|
5827
|
+
"text-xs/6 font-medium ",
|
|
5828
|
+
"text-base-500 dark:text-base-400"
|
|
5829
|
+
].join(" ")
|
|
5830
|
+
}
|
|
5831
|
+
};
|
|
5832
|
+
|
|
5833
|
+
const sidebarSpacer = {
|
|
5834
|
+
slots: {
|
|
5835
|
+
root: [
|
|
5836
|
+
"mt-8",
|
|
5837
|
+
"flex-1"
|
|
5838
|
+
].join(" ")
|
|
5839
|
+
}
|
|
5840
|
+
};
|
|
5841
|
+
|
|
5842
|
+
const navbar = {
|
|
5843
|
+
slots: {
|
|
5844
|
+
root: [
|
|
5845
|
+
"py-2.5",
|
|
5846
|
+
"flex-1",
|
|
5847
|
+
"flex items-center gap-4"
|
|
5848
|
+
].join(" ")
|
|
5849
|
+
}
|
|
5850
|
+
};
|
|
5851
|
+
|
|
5852
|
+
const navbarSection = {
|
|
5853
|
+
slots: {
|
|
5854
|
+
root: [
|
|
5855
|
+
"flex items-center gap-3"
|
|
5856
|
+
].join(" ")
|
|
5857
|
+
}
|
|
5858
|
+
};
|
|
5859
|
+
|
|
5860
|
+
const navbarDivider = {
|
|
5861
|
+
slots: {
|
|
5862
|
+
root: [
|
|
5863
|
+
"h-6 w-px",
|
|
5864
|
+
"bg-base-950/10 dark:bg-base-100/20"
|
|
5865
|
+
].join(" ")
|
|
5866
|
+
}
|
|
5867
|
+
};
|
|
5868
|
+
|
|
5869
|
+
const navbarSpacer = {
|
|
5870
|
+
slots: {
|
|
5871
|
+
root: [
|
|
5872
|
+
"-ml-4",
|
|
5873
|
+
"flex-1"
|
|
5874
|
+
].join(" ")
|
|
5875
|
+
}
|
|
5876
|
+
};
|
|
5877
|
+
|
|
5398
5878
|
const theme = {
|
|
5399
5879
|
__proto__: null,
|
|
5400
5880
|
advice: advice,
|
|
@@ -5407,6 +5887,7 @@ const theme = {
|
|
|
5407
5887
|
calendar: calendar,
|
|
5408
5888
|
checkbox: checkbox,
|
|
5409
5889
|
chip: chip,
|
|
5890
|
+
collapsible: collapsible,
|
|
5410
5891
|
container: container,
|
|
5411
5892
|
countdown: countdown,
|
|
5412
5893
|
descriptionList: descriptionList,
|
|
@@ -5419,6 +5900,11 @@ const theme = {
|
|
|
5419
5900
|
kbd: kbd,
|
|
5420
5901
|
link: link,
|
|
5421
5902
|
modal: modal,
|
|
5903
|
+
navbar: navbar,
|
|
5904
|
+
navbarDivider: navbarDivider,
|
|
5905
|
+
navbarSection: navbarSection,
|
|
5906
|
+
navbarSpacer: navbarSpacer,
|
|
5907
|
+
navigationMenu: navigationMenu,
|
|
5422
5908
|
popover: popover,
|
|
5423
5909
|
progress: progress,
|
|
5424
5910
|
radioGroup: radioGroup,
|
|
@@ -5426,8 +5912,17 @@ const theme = {
|
|
|
5426
5912
|
select: select,
|
|
5427
5913
|
selectMenu: selectMenu,
|
|
5428
5914
|
separator: separator,
|
|
5915
|
+
sidebar: sidebar,
|
|
5916
|
+
sidebarBody: sidebarBody,
|
|
5917
|
+
sidebarFooter: sidebarFooter,
|
|
5918
|
+
sidebarHeader: sidebarHeader,
|
|
5919
|
+
sidebarHeading: sidebarHeading,
|
|
5920
|
+
sidebarLayout: sidebarLayout,
|
|
5921
|
+
sidebarSection: sidebarSection,
|
|
5922
|
+
sidebarSpacer: sidebarSpacer,
|
|
5429
5923
|
skeleton: skeleton,
|
|
5430
5924
|
slideover: slideover,
|
|
5925
|
+
stackedLayout: stackedLayout,
|
|
5431
5926
|
switch: _switch,
|
|
5432
5927
|
tabs: tabs,
|
|
5433
5928
|
textarea: textarea,
|