@bitrix24/b24ui-nuxt 0.4.9 → 0.4.10

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 (50) hide show
  1. package/.nuxt/b24ui/index.ts +13 -0
  2. package/.nuxt/b24ui/navbar-divider.ts +5 -0
  3. package/.nuxt/b24ui/navbar-section.ts +5 -0
  4. package/.nuxt/b24ui/navbar-spacer.ts +5 -0
  5. package/.nuxt/b24ui/navbar.ts +5 -0
  6. package/.nuxt/b24ui/sidebar-body.ts +15 -0
  7. package/.nuxt/b24ui/sidebar-footer.ts +5 -0
  8. package/.nuxt/b24ui/sidebar-header.ts +5 -0
  9. package/.nuxt/b24ui/sidebar-heading.ts +5 -0
  10. package/.nuxt/b24ui/sidebar-layout.ts +38 -0
  11. package/.nuxt/b24ui/sidebar-section.ts +5 -0
  12. package/.nuxt/b24ui/sidebar-spacer.ts +5 -0
  13. package/.nuxt/b24ui/sidebar.ts +5 -0
  14. package/.nuxt/b24ui/stacked-layout.ts +9 -0
  15. package/dist/meta.cjs +974 -11
  16. package/dist/meta.d.cts +974 -11
  17. package/dist/meta.d.mts +974 -11
  18. package/dist/meta.d.ts +974 -11
  19. package/dist/meta.mjs +974 -11
  20. package/dist/module.cjs +1 -1
  21. package/dist/module.json +1 -1
  22. package/dist/module.mjs +1 -1
  23. package/dist/runtime/components/Navbar.vue +44 -0
  24. package/dist/runtime/components/NavbarDivider.vue +43 -0
  25. package/dist/runtime/components/NavbarSection.vue +47 -0
  26. package/dist/runtime/components/NavbarSpacer.vue +43 -0
  27. package/dist/runtime/components/Sidebar.vue +44 -0
  28. package/dist/runtime/components/SidebarBody.vue +49 -0
  29. package/dist/runtime/components/SidebarFooter.vue +43 -0
  30. package/dist/runtime/components/SidebarHeader.vue +43 -0
  31. package/dist/runtime/components/SidebarHeading.vue +43 -0
  32. package/dist/runtime/components/SidebarLayout.vue +131 -0
  33. package/dist/runtime/components/SidebarSection.vue +47 -0
  34. package/dist/runtime/components/SidebarSpacer.vue +43 -0
  35. package/dist/runtime/components/StackedLayout.vue +51 -0
  36. package/dist/runtime/index.css +1 -1
  37. package/dist/runtime/plugins/colors.js +2 -5
  38. package/dist/runtime/types/index.d.ts +13 -0
  39. package/dist/runtime/types/index.js +13 -0
  40. package/dist/runtime/utils/link.d.ts +7 -7
  41. package/dist/runtime/vue/plugins/head.js +3 -0
  42. package/dist/runtime/vue/stubs.d.ts +1 -2
  43. package/dist/runtime/vue/stubs.js +1 -2
  44. package/dist/shared/{b24ui-nuxt.CH0xlXgy.cjs → b24ui-nuxt.CY35QViH.cjs} +230 -0
  45. package/dist/shared/{b24ui-nuxt.D6rkGFKm.mjs → b24ui-nuxt._rviRWFf.mjs} +230 -0
  46. package/dist/unplugin.cjs +6 -2
  47. package/dist/unplugin.mjs +6 -2
  48. package/dist/vite.cjs +1 -1
  49. package/dist/vite.mjs +1 -1
  50. package/package.json +4 -4
@@ -0,0 +1,51 @@
1
+ <script lang="ts">
2
+ // import type { VariantProps } from 'tailwind-variants'
3
+ import type { AppConfig } from '@nuxt/schema'
4
+ import _appConfig from '#build/app.config'
5
+ import theme from '#build/b24ui/stacked-layout'
6
+ import { tv } from '../utils/tv'
7
+
8
+ const appConfigStackedLayout = _appConfig as AppConfig & { b24ui: { stackedLayout: Partial<typeof theme> } }
9
+
10
+ const stackedLayout = tv({ extend: tv(theme), ...(appConfigStackedLayout.b24ui?.stackedLayout || {}) })
11
+
12
+ // type StackedLayoutVariants = VariantProps<typeof stackedLayout>
13
+
14
+ export interface StackedLayoutProps {
15
+ /**
16
+ * The element or component this component should render as.
17
+ * @defaultValue 'div'
18
+ */
19
+ as?: any
20
+ class?: any
21
+ b24ui?: Partial<typeof stackedLayout.slots>
22
+ }
23
+
24
+ export interface StackedLayoutSlots {
25
+ default(props?: {}): any
26
+ }
27
+ </script>
28
+
29
+ <script setup lang="ts">
30
+ import { computed } from 'vue'
31
+ import { Primitive } from 'reka-ui'
32
+
33
+ const props = withDefaults(defineProps<StackedLayoutProps>(), {
34
+ as: 'div'
35
+ })
36
+ const slots = defineSlots<StackedLayoutSlots>()
37
+
38
+ // eslint-disable-next-line vue/no-dupe-keys
39
+ const b24ui = computed(() => stackedLayout({
40
+ }))
41
+ </script>
42
+
43
+ <template>
44
+ <Primitive :as="as" :class="b24ui.root({ class: [props.class, props.b24ui?.root] })">
45
+ <template v-if="!!slots.default">
46
+ <div :class="b24ui.container({ class: props.b24ui?.container })">
47
+ <slot />
48
+ </div>
49
+ </template>
50
+ </Primitive>
51
+ </template>
@@ -1 +1 @@
1
- @plugin "@bitrix24/b24style";@import "#build/b24ui.css";@import "./keyframes.css";@variant light (&:where(.light, .light *));@variant dark (&:where(.dark, .dark *));@layer base{--b24ui-header-height:calc(var(--spacing)*16);body{@apply antialiased scheme-light dark:scheme-dark}.scrollbar-thin{scrollbar-width:thin}}@layer theme{:host,:root{--spacing:.25rem}}
1
+ @plugin "@bitrix24/b24style";@import "#build/b24ui.css";@import "./keyframes.css";@variant light (&:where(.light, .light *));@variant dark (&:where(.dark, .dark *));@layer base{--b24ui-header-height:calc(var(--spacing)*16);body{@apply antialiased scheme-light dark:scheme-dark}}@layer theme{:host,:root{--spacing:.25rem}}.scrollbar-thin{scrollbar-width:thin}.scrollbar-transparent{scrollbar-color:hsla(0,0%,100%,.21) transparent}.scrollbar-transparent:hover{scrollbar-color:rgba(82,92,105,.36) transparent}.dark .scrollbar-transparent{scrollbar-color:rgba(0,0,0,.21) transparent}.dark .scrollbar-transparent:hover{scrollbar-color:#515a67 transparent}
@@ -23,8 +23,7 @@ export default defineNuxtPlugin(() => {
23
23
  style: [{
24
24
  innerHTML: () => root.value,
25
25
  tagPriority: -2,
26
- id: "bitrix24-ui-colors",
27
- type: "text/css"
26
+ id: "bitrix24-ui-colors"
28
27
  }]
29
28
  };
30
29
  if (import.meta.client && nuxtApp.isHydrating && !nuxtApp.payload.serverRendered) {
@@ -38,7 +37,5 @@ export default defineNuxtPlugin(() => {
38
37
  }];
39
38
  }
40
39
  }
41
- if (!nuxtApp.isVue) {
42
- useHead(headData);
43
- }
40
+ useHead(headData);
44
41
  });
@@ -37,6 +37,19 @@ export * from '../components/Textarea.vue';
37
37
  export * from '../components/Toast.vue';
38
38
  export * from '../components/Toaster.vue';
39
39
  export * from '../components/Tooltip.vue';
40
+ export * from '../components/SidebarLayout.vue';
41
+ export * from '../components/StackedLayout.vue';
42
+ export * from '../components/Sidebar.vue';
43
+ export * from '../components/SidebarHeader.vue';
44
+ export * from '../components/SidebarBody.vue';
45
+ export * from '../components/SidebarFooter.vue';
46
+ export * from '../components/SidebarSection.vue';
47
+ export * from '../components/SidebarHeading.vue';
48
+ export * from '../components/SidebarSpacer.vue';
49
+ export * from '../components/Navbar.vue';
50
+ export * from '../components/NavbarSection.vue';
51
+ export * from '../components/NavbarDivider.vue';
52
+ export * from '../components/NavbarSpacer.vue';
40
53
  export * from '../components/content/TableWrapper.vue';
41
54
  export * from '../prose/H1.vue';
42
55
  export * from '../prose/H2.vue';
@@ -37,6 +37,19 @@ export * from "../components/Textarea.vue";
37
37
  export * from "../components/Toast.vue";
38
38
  export * from "../components/Toaster.vue";
39
39
  export * from "../components/Tooltip.vue";
40
+ export * from "../components/SidebarLayout.vue";
41
+ export * from "../components/StackedLayout.vue";
42
+ export * from "../components/Sidebar.vue";
43
+ export * from "../components/SidebarHeader.vue";
44
+ export * from "../components/SidebarBody.vue";
45
+ export * from "../components/SidebarFooter.vue";
46
+ export * from "../components/SidebarSection.vue";
47
+ export * from "../components/SidebarHeading.vue";
48
+ export * from "../components/SidebarSpacer.vue";
49
+ export * from "../components/Navbar.vue";
50
+ export * from "../components/NavbarSection.vue";
51
+ export * from "../components/NavbarDivider.vue";
52
+ export * from "../components/NavbarSpacer.vue";
40
53
  export * from "../components/content/TableWrapper.vue";
41
54
  export * from "../prose/H1.vue";
42
55
  export * from "../prose/H2.vue";
@@ -6,24 +6,24 @@ export declare function pickLinkProps(link: LinkProps & {
6
6
  replace: any;
7
7
  type: any;
8
8
  title: any;
9
+ href: any;
10
+ target: any;
11
+ as: any;
12
+ prefetch: any;
13
+ rel: any;
14
+ external: any;
9
15
  exact: any;
10
16
  active: any;
17
+ disabled: any;
11
18
  activeClass: any;
12
19
  ariaCurrentValue: any;
13
20
  ariaLabel: any;
14
- as: any;
15
- disabled: any;
16
21
  exactActiveClass: any;
17
22
  exactHash: any;
18
23
  exactQuery: any;
19
- external: any;
20
- href: any;
21
24
  inactiveClass: any;
22
25
  noPrefetch: any;
23
26
  noRel: any;
24
- prefetch: any;
25
27
  prefetchedClass: any;
26
- rel: any;
27
- target: any;
28
28
  to: any;
29
29
  };
@@ -1,6 +1,9 @@
1
1
  import { createHead } from "@unhead/vue/client";
2
2
  export default {
3
3
  install(app) {
4
+ if (app._context.provides.usehead) {
5
+ return;
6
+ }
4
7
  const head = createHead();
5
8
  app.use(head);
6
9
  }
@@ -12,7 +12,7 @@ export declare const useColorMode: () => {
12
12
  preference?: undefined;
13
13
  readonly value?: undefined;
14
14
  } | {
15
- preference: "light" | "dark" | "system";
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
  }
@@ -5397,6 +5397,223 @@ const tooltip = {
5397
5397
  }
5398
5398
  };
5399
5399
 
5400
+ const sidebarLayout = {
5401
+ slots: {
5402
+ root: [
5403
+ "min-h-svh w-full",
5404
+ "flex max-lg:flex-col",
5405
+ "relative isolate"
5406
+ ].join(" "),
5407
+ sidebar: [
5408
+ "w-[240px]",
5409
+ "pr-[3px]",
5410
+ "fixed inset-y-0 left-0",
5411
+ "max-lg:hidden"
5412
+ ].join(" "),
5413
+ sidebarSlideoverContainer: [
5414
+ "max-w-80",
5415
+ "p-2",
5416
+ "bg-transparent dark:bg-transparent sm:shadow-none"
5417
+ ].join(" "),
5418
+ sidebarSlideover: [
5419
+ "h-full",
5420
+ "overflow-hidden",
5421
+ "flex flex-col",
5422
+ "bg-white dark:bg-base-dark",
5423
+ "ring-1 ring-base-950/5 dark:ring-white/10",
5424
+ "shadow-xs",
5425
+ "rounded-lg"
5426
+ ].join(" "),
5427
+ sidebarSlideoverBtnClose: [
5428
+ "-mb-3",
5429
+ "px-4 pt-3"
5430
+ ].join(" "),
5431
+ header: [
5432
+ "px-4",
5433
+ "flex items-center",
5434
+ "lg:hidden"
5435
+ ].join(" "),
5436
+ headerPaddings: [
5437
+ "py-2.5"
5438
+ ].join(" "),
5439
+ headerWrapper: [
5440
+ "min-w-0",
5441
+ "flex-1"
5442
+ ].join(" "),
5443
+ container: [
5444
+ "flex-1 flex flex-col",
5445
+ "lg:min-w-0",
5446
+ "pb-2",
5447
+ "lg:pt-2 lg:pr-2"
5448
+ ].join(" "),
5449
+ containerWrapper: [
5450
+ "grow"
5451
+ ].join(" "),
5452
+ containerWrapperInner: ""
5453
+ },
5454
+ variants: {
5455
+ useSidebar: {
5456
+ true: {
5457
+ container: "lg:pl-[240px]"
5458
+ },
5459
+ false: {
5460
+ container: ""
5461
+ }
5462
+ },
5463
+ useLightContent: {
5464
+ true: {
5465
+ root: [
5466
+ "bg-white dark:bg-white/10",
5467
+ "lg:bg-base-50 dark:lg:bg-base-dark"
5468
+ ].join(" "),
5469
+ containerWrapper: [
5470
+ "p-6 lg:p-10",
5471
+ "lg:bg-white dark:lg:bg-white/10",
5472
+ "lg:ring-1 lg:ring-base-950/5 dark:lg:ring-white/10",
5473
+ "lg:shadow-xs",
5474
+ "lg:rounded-lg"
5475
+ ].join(" ")
5476
+ },
5477
+ false: {
5478
+ container: [
5479
+ "px-4"
5480
+ ].join(" ")
5481
+ }
5482
+ }
5483
+ },
5484
+ compoundVariants: [],
5485
+ defaultVariants: {
5486
+ useLightContent: true
5487
+ }
5488
+ };
5489
+
5490
+ const stackedLayout = {
5491
+ slots: {
5492
+ root: "",
5493
+ container: ""
5494
+ },
5495
+ variants: {},
5496
+ compoundVariants: [],
5497
+ defaultVariants: {}
5498
+ };
5499
+
5500
+ const sidebar = {
5501
+ slots: {
5502
+ root: [
5503
+ "h-full min-h-0",
5504
+ "flex flex-col"
5505
+ ].join(" ")
5506
+ }
5507
+ };
5508
+
5509
+ const sidebarHeader = {
5510
+ slots: {
5511
+ root: [
5512
+ "p-4",
5513
+ "flex flex-col",
5514
+ // 'border-b border-base-950/5 dark:border-white/5',
5515
+ "[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
5516
+ ].join(" ")
5517
+ }
5518
+ };
5519
+
5520
+ const sidebarBody = {
5521
+ slots: {
5522
+ root: [
5523
+ "p-4",
5524
+ "flex flex-1 flex-col",
5525
+ "overflow-y-auto",
5526
+ "[&>[data-slot=section]+[data-slot=section]]:mt-8"
5527
+ ].join(" ")
5528
+ },
5529
+ variants: {
5530
+ scrollbarThin: {
5531
+ true: {
5532
+ root: "scrollbar-thin scrollbar-transparent"
5533
+ }
5534
+ }
5535
+ },
5536
+ defaultVariants: {
5537
+ scrollbarThin: true
5538
+ }
5539
+ };
5540
+
5541
+ const sidebarFooter = {
5542
+ slots: {
5543
+ root: [
5544
+ "p-4",
5545
+ "flex flex-col",
5546
+ "max-lg:hidden",
5547
+ // 'border-t border-base-950/5 dark:border-white/5',
5548
+ "[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
5549
+ ].join(" ")
5550
+ }
5551
+ };
5552
+
5553
+ const sidebarSection = {
5554
+ slots: {
5555
+ root: [
5556
+ "flex flex-col gap-0.5"
5557
+ ].join(" ")
5558
+ }
5559
+ };
5560
+
5561
+ const sidebarHeading = {
5562
+ slots: {
5563
+ root: [
5564
+ "mb-1",
5565
+ "px-2",
5566
+ "text-xs/6 font-medium ",
5567
+ "text-base-500 dark:text-base-400"
5568
+ ].join(" ")
5569
+ }
5570
+ };
5571
+
5572
+ const sidebarSpacer = {
5573
+ slots: {
5574
+ root: [
5575
+ "mt-8",
5576
+ "flex-1"
5577
+ ].join(" ")
5578
+ }
5579
+ };
5580
+
5581
+ const navbar = {
5582
+ slots: {
5583
+ root: [
5584
+ "py-2.5",
5585
+ "flex-1",
5586
+ "flex items-center gap-4"
5587
+ ].join(" ")
5588
+ }
5589
+ };
5590
+
5591
+ const navbarSection = {
5592
+ slots: {
5593
+ root: [
5594
+ "flex items-center gap-3"
5595
+ ].join(" ")
5596
+ }
5597
+ };
5598
+
5599
+ const navbarDivider = {
5600
+ slots: {
5601
+ root: [
5602
+ "h-6 w-px",
5603
+ "bg-base-950/10 dark:bg-base-100/20"
5604
+ ].join(" ")
5605
+ }
5606
+ };
5607
+
5608
+ const navbarSpacer = {
5609
+ slots: {
5610
+ root: [
5611
+ "-ml-4",
5612
+ "flex-1"
5613
+ ].join(" ")
5614
+ }
5615
+ };
5616
+
5400
5617
  const theme = {
5401
5618
  __proto__: null,
5402
5619
  advice: advice,
@@ -5421,6 +5638,10 @@ const theme = {
5421
5638
  kbd: kbd,
5422
5639
  link: link,
5423
5640
  modal: modal,
5641
+ navbar: navbar,
5642
+ navbarDivider: navbarDivider,
5643
+ navbarSection: navbarSection,
5644
+ navbarSpacer: navbarSpacer,
5424
5645
  popover: popover,
5425
5646
  progress: progress,
5426
5647
  radioGroup: radioGroup,
@@ -5428,8 +5649,17 @@ const theme = {
5428
5649
  select: select,
5429
5650
  selectMenu: selectMenu,
5430
5651
  separator: separator,
5652
+ sidebar: sidebar,
5653
+ sidebarBody: sidebarBody,
5654
+ sidebarFooter: sidebarFooter,
5655
+ sidebarHeader: sidebarHeader,
5656
+ sidebarHeading: sidebarHeading,
5657
+ sidebarLayout: sidebarLayout,
5658
+ sidebarSection: sidebarSection,
5659
+ sidebarSpacer: sidebarSpacer,
5431
5660
  skeleton: skeleton,
5432
5661
  slideover: slideover,
5662
+ stackedLayout: stackedLayout,
5433
5663
  switch: _switch,
5434
5664
  tabs: tabs,
5435
5665
  textarea: textarea,
@@ -5395,6 +5395,223 @@ const tooltip = {
5395
5395
  }
5396
5396
  };
5397
5397
 
5398
+ const sidebarLayout = {
5399
+ slots: {
5400
+ root: [
5401
+ "min-h-svh w-full",
5402
+ "flex max-lg:flex-col",
5403
+ "relative isolate"
5404
+ ].join(" "),
5405
+ sidebar: [
5406
+ "w-[240px]",
5407
+ "pr-[3px]",
5408
+ "fixed inset-y-0 left-0",
5409
+ "max-lg:hidden"
5410
+ ].join(" "),
5411
+ sidebarSlideoverContainer: [
5412
+ "max-w-80",
5413
+ "p-2",
5414
+ "bg-transparent dark:bg-transparent sm:shadow-none"
5415
+ ].join(" "),
5416
+ sidebarSlideover: [
5417
+ "h-full",
5418
+ "overflow-hidden",
5419
+ "flex flex-col",
5420
+ "bg-white dark:bg-base-dark",
5421
+ "ring-1 ring-base-950/5 dark:ring-white/10",
5422
+ "shadow-xs",
5423
+ "rounded-lg"
5424
+ ].join(" "),
5425
+ sidebarSlideoverBtnClose: [
5426
+ "-mb-3",
5427
+ "px-4 pt-3"
5428
+ ].join(" "),
5429
+ header: [
5430
+ "px-4",
5431
+ "flex items-center",
5432
+ "lg:hidden"
5433
+ ].join(" "),
5434
+ headerPaddings: [
5435
+ "py-2.5"
5436
+ ].join(" "),
5437
+ headerWrapper: [
5438
+ "min-w-0",
5439
+ "flex-1"
5440
+ ].join(" "),
5441
+ container: [
5442
+ "flex-1 flex flex-col",
5443
+ "lg:min-w-0",
5444
+ "pb-2",
5445
+ "lg:pt-2 lg:pr-2"
5446
+ ].join(" "),
5447
+ containerWrapper: [
5448
+ "grow"
5449
+ ].join(" "),
5450
+ containerWrapperInner: ""
5451
+ },
5452
+ variants: {
5453
+ useSidebar: {
5454
+ true: {
5455
+ container: "lg:pl-[240px]"
5456
+ },
5457
+ false: {
5458
+ container: ""
5459
+ }
5460
+ },
5461
+ useLightContent: {
5462
+ true: {
5463
+ root: [
5464
+ "bg-white dark:bg-white/10",
5465
+ "lg:bg-base-50 dark:lg:bg-base-dark"
5466
+ ].join(" "),
5467
+ containerWrapper: [
5468
+ "p-6 lg:p-10",
5469
+ "lg:bg-white dark:lg:bg-white/10",
5470
+ "lg:ring-1 lg:ring-base-950/5 dark:lg:ring-white/10",
5471
+ "lg:shadow-xs",
5472
+ "lg:rounded-lg"
5473
+ ].join(" ")
5474
+ },
5475
+ false: {
5476
+ container: [
5477
+ "px-4"
5478
+ ].join(" ")
5479
+ }
5480
+ }
5481
+ },
5482
+ compoundVariants: [],
5483
+ defaultVariants: {
5484
+ useLightContent: true
5485
+ }
5486
+ };
5487
+
5488
+ const stackedLayout = {
5489
+ slots: {
5490
+ root: "",
5491
+ container: ""
5492
+ },
5493
+ variants: {},
5494
+ compoundVariants: [],
5495
+ defaultVariants: {}
5496
+ };
5497
+
5498
+ const sidebar = {
5499
+ slots: {
5500
+ root: [
5501
+ "h-full min-h-0",
5502
+ "flex flex-col"
5503
+ ].join(" ")
5504
+ }
5505
+ };
5506
+
5507
+ const sidebarHeader = {
5508
+ slots: {
5509
+ root: [
5510
+ "p-4",
5511
+ "flex flex-col",
5512
+ // 'border-b border-base-950/5 dark:border-white/5',
5513
+ "[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
5514
+ ].join(" ")
5515
+ }
5516
+ };
5517
+
5518
+ const sidebarBody = {
5519
+ slots: {
5520
+ root: [
5521
+ "p-4",
5522
+ "flex flex-1 flex-col",
5523
+ "overflow-y-auto",
5524
+ "[&>[data-slot=section]+[data-slot=section]]:mt-8"
5525
+ ].join(" ")
5526
+ },
5527
+ variants: {
5528
+ scrollbarThin: {
5529
+ true: {
5530
+ root: "scrollbar-thin scrollbar-transparent"
5531
+ }
5532
+ }
5533
+ },
5534
+ defaultVariants: {
5535
+ scrollbarThin: true
5536
+ }
5537
+ };
5538
+
5539
+ const sidebarFooter = {
5540
+ slots: {
5541
+ root: [
5542
+ "p-4",
5543
+ "flex flex-col",
5544
+ "max-lg:hidden",
5545
+ // 'border-t border-base-950/5 dark:border-white/5',
5546
+ "[&>[data-slot=section]+[data-slot=section]]:mt-2.5"
5547
+ ].join(" ")
5548
+ }
5549
+ };
5550
+
5551
+ const sidebarSection = {
5552
+ slots: {
5553
+ root: [
5554
+ "flex flex-col gap-0.5"
5555
+ ].join(" ")
5556
+ }
5557
+ };
5558
+
5559
+ const sidebarHeading = {
5560
+ slots: {
5561
+ root: [
5562
+ "mb-1",
5563
+ "px-2",
5564
+ "text-xs/6 font-medium ",
5565
+ "text-base-500 dark:text-base-400"
5566
+ ].join(" ")
5567
+ }
5568
+ };
5569
+
5570
+ const sidebarSpacer = {
5571
+ slots: {
5572
+ root: [
5573
+ "mt-8",
5574
+ "flex-1"
5575
+ ].join(" ")
5576
+ }
5577
+ };
5578
+
5579
+ const navbar = {
5580
+ slots: {
5581
+ root: [
5582
+ "py-2.5",
5583
+ "flex-1",
5584
+ "flex items-center gap-4"
5585
+ ].join(" ")
5586
+ }
5587
+ };
5588
+
5589
+ const navbarSection = {
5590
+ slots: {
5591
+ root: [
5592
+ "flex items-center gap-3"
5593
+ ].join(" ")
5594
+ }
5595
+ };
5596
+
5597
+ const navbarDivider = {
5598
+ slots: {
5599
+ root: [
5600
+ "h-6 w-px",
5601
+ "bg-base-950/10 dark:bg-base-100/20"
5602
+ ].join(" ")
5603
+ }
5604
+ };
5605
+
5606
+ const navbarSpacer = {
5607
+ slots: {
5608
+ root: [
5609
+ "-ml-4",
5610
+ "flex-1"
5611
+ ].join(" ")
5612
+ }
5613
+ };
5614
+
5398
5615
  const theme = {
5399
5616
  __proto__: null,
5400
5617
  advice: advice,
@@ -5419,6 +5636,10 @@ const theme = {
5419
5636
  kbd: kbd,
5420
5637
  link: link,
5421
5638
  modal: modal,
5639
+ navbar: navbar,
5640
+ navbarDivider: navbarDivider,
5641
+ navbarSection: navbarSection,
5642
+ navbarSpacer: navbarSpacer,
5422
5643
  popover: popover,
5423
5644
  progress: progress,
5424
5645
  radioGroup: radioGroup,
@@ -5426,8 +5647,17 @@ const theme = {
5426
5647
  select: select,
5427
5648
  selectMenu: selectMenu,
5428
5649
  separator: separator,
5650
+ sidebar: sidebar,
5651
+ sidebarBody: sidebarBody,
5652
+ sidebarFooter: sidebarFooter,
5653
+ sidebarHeader: sidebarHeader,
5654
+ sidebarHeading: sidebarHeading,
5655
+ sidebarLayout: sidebarLayout,
5656
+ sidebarSection: sidebarSection,
5657
+ sidebarSpacer: sidebarSpacer,
5429
5658
  skeleton: skeleton,
5430
5659
  slideover: slideover,
5660
+ stackedLayout: stackedLayout,
5431
5661
  switch: _switch,
5432
5662
  tabs: tabs,
5433
5663
  textarea: textarea,