@next-library/theme 1.0.0 → 1.0.2

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 (116) hide show
  1. package/LICENSE +22 -0
  2. package/dist/client.d.ts +44 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +0 -2
  5. package/dist/client.js.map +1 -1
  6. package/dist/components/layout/documentation-layout.d.ts +12 -0
  7. package/dist/components/layout/documentation-layout.d.ts.map +1 -0
  8. package/dist/components/layout/footer.d.ts +14 -0
  9. package/dist/components/layout/footer.d.ts.map +1 -0
  10. package/dist/components/layout/left-sidebar.d.ts +8 -0
  11. package/dist/components/layout/left-sidebar.d.ts.map +1 -0
  12. package/dist/components/layout/navigation-bar.d.ts +13 -0
  13. package/dist/components/layout/navigation-bar.d.ts.map +1 -0
  14. package/dist/components/layout/right-sidebar.d.ts +8 -0
  15. package/dist/components/layout/right-sidebar.d.ts.map +1 -0
  16. package/dist/components/layout/utils.d.ts +3 -0
  17. package/dist/components/layout/utils.d.ts.map +1 -0
  18. package/dist/components/markdown/copy-page-button.d.ts +22 -0
  19. package/dist/components/markdown/copy-page-button.d.ts.map +1 -0
  20. package/dist/components/markdown/fallback-locale-warning.d.ts +16 -0
  21. package/dist/components/markdown/fallback-locale-warning.d.ts.map +1 -0
  22. package/dist/components/markdown/markdown-renderer.d.ts +7 -0
  23. package/dist/components/markdown/markdown-renderer.d.ts.map +1 -0
  24. package/dist/components/markdown/page-header.d.ts +18 -0
  25. package/dist/components/markdown/page-header.d.ts.map +1 -0
  26. package/dist/components/navigation/main/breadcrumbs.d.ts +9 -0
  27. package/dist/components/navigation/main/breadcrumbs.d.ts.map +1 -0
  28. package/dist/components/navigation/main/folder-cards.d.ts +7 -0
  29. package/dist/components/navigation/main/folder-cards.d.ts.map +1 -0
  30. package/dist/components/navigation/navbar/banner.d.ts +9 -0
  31. package/dist/components/navigation/navbar/banner.d.ts.map +1 -0
  32. package/dist/components/navigation/navbar/github-link.d.ts +8 -0
  33. package/dist/components/navigation/navbar/github-link.d.ts.map +1 -0
  34. package/dist/components/navigation/navbar/github-star.d.ts +6 -0
  35. package/dist/components/navigation/navbar/github-star.d.ts.map +1 -0
  36. package/dist/components/navigation/navbar/language-switcher.d.ts +12 -0
  37. package/dist/components/navigation/navbar/language-switcher.d.ts.map +1 -0
  38. package/dist/components/navigation/navbar/logo.d.ts +9 -0
  39. package/dist/components/navigation/navbar/logo.d.ts.map +1 -0
  40. package/dist/components/navigation/navbar/mobile-menu.d.ts +12 -0
  41. package/dist/components/navigation/navbar/mobile-menu.d.ts.map +1 -0
  42. package/dist/components/navigation/navbar/search-bar.d.ts +8 -0
  43. package/dist/components/navigation/navbar/search-bar.d.ts.map +1 -0
  44. package/dist/components/navigation/navbar/theme-switcher.d.ts +2 -0
  45. package/dist/components/navigation/navbar/theme-switcher.d.ts.map +1 -0
  46. package/dist/components/navigation/navbar/top-categories.d.ts +12 -0
  47. package/dist/components/navigation/navbar/top-categories.d.ts.map +1 -0
  48. package/dist/components/navigation/sidebar-left/level-elevator.d.ts +7 -0
  49. package/dist/components/navigation/sidebar-left/level-elevator.d.ts.map +1 -0
  50. package/dist/components/navigation/sidebar-left/parent.d.ts +9 -0
  51. package/dist/components/navigation/sidebar-left/parent.d.ts.map +1 -0
  52. package/dist/components/navigation/sidebar-left/sidebar.d.ts +13 -0
  53. package/dist/components/navigation/sidebar-left/sidebar.d.ts.map +1 -0
  54. package/dist/components/navigation/sidebar-left/toolbox.d.ts +23 -0
  55. package/dist/components/navigation/sidebar-left/toolbox.d.ts.map +1 -0
  56. package/dist/components/navigation/sidebar-right/github-contributors.d.ts +19 -0
  57. package/dist/components/navigation/sidebar-right/github-contributors.d.ts.map +1 -0
  58. package/dist/components/navigation/sidebar-right/table-of-contents.d.ts +12 -0
  59. package/dist/components/navigation/sidebar-right/table-of-contents.d.ts.map +1 -0
  60. package/dist/components/seo/structured-data.d.ts +10 -0
  61. package/dist/components/seo/structured-data.d.ts.map +1 -0
  62. package/dist/components/tracking/cookie-banner.d.ts +17 -0
  63. package/dist/components/tracking/cookie-banner.d.ts.map +1 -0
  64. package/dist/components/ui/anchor-link-handler.d.ts +7 -0
  65. package/dist/components/ui/anchor-link-handler.d.ts.map +1 -0
  66. package/dist/components/ui/avatar.d.ts +7 -0
  67. package/dist/components/ui/avatar.d.ts.map +1 -0
  68. package/dist/components/ui/breadcrumb-toggle.d.ts +11 -0
  69. package/dist/components/ui/breadcrumb-toggle.d.ts.map +1 -0
  70. package/dist/components/ui/breadcrumb.d.ts +12 -0
  71. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  72. package/dist/components/ui/button.d.ts +12 -0
  73. package/dist/components/ui/button.d.ts.map +1 -0
  74. package/dist/components/ui/card.d.ts +9 -0
  75. package/dist/components/ui/card.d.ts.map +1 -0
  76. package/dist/components/ui/collapsible.d.ts +7 -0
  77. package/dist/components/ui/collapsible.d.ts.map +1 -0
  78. package/dist/components/ui/drawer.d.ts +14 -0
  79. package/dist/components/ui/drawer.d.ts.map +1 -0
  80. package/dist/components/ui/dropdown-menu.d.ts +26 -0
  81. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  82. package/dist/components/ui/input.d.ts +4 -0
  83. package/dist/components/ui/input.d.ts.map +1 -0
  84. package/dist/components/ui/select.d.ts +16 -0
  85. package/dist/components/ui/select.d.ts.map +1 -0
  86. package/dist/components/ui/separator.d.ts +5 -0
  87. package/dist/components/ui/separator.d.ts.map +1 -0
  88. package/dist/components/ui/sheet.d.ts +14 -0
  89. package/dist/components/ui/sheet.d.ts.map +1 -0
  90. package/dist/components/ui/sidebar.d.ts +70 -0
  91. package/dist/components/ui/sidebar.d.ts.map +1 -0
  92. package/dist/components/ui/skeleton.d.ts +4 -0
  93. package/dist/components/ui/skeleton.d.ts.map +1 -0
  94. package/dist/components/ui/sticky-banner.d.ts +12 -0
  95. package/dist/components/ui/sticky-banner.d.ts.map +1 -0
  96. package/dist/components/ui/tooltip.d.ts +8 -0
  97. package/dist/components/ui/tooltip.d.ts.map +1 -0
  98. package/dist/hooks/use-media-query.d.ts +2 -0
  99. package/dist/hooks/use-media-query.d.ts.map +1 -0
  100. package/dist/hooks/use-mobile.d.ts +2 -0
  101. package/dist/hooks/use-mobile.d.ts.map +1 -0
  102. package/dist/index.d.ts +11 -0
  103. package/dist/index.d.ts.map +1 -0
  104. package/dist/index.js +27 -35
  105. package/dist/index.js.map +1 -1
  106. package/dist/lib/translations/hooks.d.ts +14 -0
  107. package/dist/lib/translations/hooks.d.ts.map +1 -0
  108. package/dist/lib/translations/index.d.ts +55 -0
  109. package/dist/lib/translations/index.d.ts.map +1 -0
  110. package/dist/lib/translations/locale-names.d.ts +10 -0
  111. package/dist/lib/translations/locale-names.d.ts.map +1 -0
  112. package/dist/server.d.ts +15 -0
  113. package/dist/server.d.ts.map +1 -0
  114. package/dist/server.js +26 -32
  115. package/dist/server.js.map +1 -1
  116. package/package.json +14 -14
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AAEpE,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAExF;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAEtE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAEtE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { Drawer as DrawerPrimitive } from 'vaul';
3
+ declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
9
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
11
+ declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
+ declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
13
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
14
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAEjD,iBAAS,MAAM,CAAC,EAAE,GAAG,KA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b,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
+ inset?: boolean;
10
+ variant?: 'default' | 'destructive';
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
13
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
15
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
16
+ inset?: boolean;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
20
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
21
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
22
+ inset?: boolean;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
25
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
26
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAIvE,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,2CAE1F;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;AAED,iBAAS,mBAAmB,CAAC,EAC3B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,OAAO,CAA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AO,qBAAqB,CAAC,SAAS,CAAC,2CAQ9D;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAQlF;AAED,iBAAS,eAAe,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAE5F;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,UAAU,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,2CAeA;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,UAAU,CAAC,2CAW/D;AAED,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): import("react/jsx-runtime").JSX.Element;
3
+ export { Input };
4
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAc1E;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import * as SelectPrimitive from '@radix-ui/react-select';
3
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
+ size?: 'sm' | 'default';
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
16
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,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G,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,2CAU7D;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,2CAU/D;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
5
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAGhE,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAatD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import * as SheetPrimitive from '@radix-ui/react-dialog';
3
+ declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
+ side?: 'top' | 'right' | 'bottom' | 'left';
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
13
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
14
+ //# sourceMappingURL=sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAIzD,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAE5E;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,2CAEtF;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,2CAElF;AAsBD,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,GAAG;IACvD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC5C,2CA4BA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,2CAQ7F;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,2CAQzD;AAED,OAAO,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
@@ -0,0 +1,70 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { Button } from './button';
4
+ import { Input } from './input';
5
+ import { Separator } from './separator';
6
+ import { TooltipContent } from './tooltip';
7
+ type SidebarContextProps = {
8
+ state: 'expanded' | 'collapsed';
9
+ open: boolean;
10
+ setOpen: (open: boolean) => void;
11
+ openMobile: boolean;
12
+ setOpenMobile: (open: boolean) => void;
13
+ isMobile: boolean;
14
+ toggleSidebar: () => void;
15
+ };
16
+ declare function useSidebar(): SidebarContextProps;
17
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
18
+ defaultOpen?: boolean;
19
+ open?: boolean;
20
+ onOpenChange?: (open: boolean) => void;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<'div'> & {
23
+ side?: 'left' | 'right';
24
+ variant?: 'sidebar' | 'floating' | 'inset';
25
+ collapsible?: 'offcanvas' | 'icon' | 'none';
26
+ }): import("react/jsx-runtime").JSX.Element;
27
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
28
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
29
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<'main'>): import("react/jsx-runtime").JSX.Element;
30
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
31
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
32
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
33
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
34
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
35
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
36
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<'div'> & {
37
+ asChild?: boolean;
38
+ }): import("react/jsx-runtime").JSX.Element;
39
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<'button'> & {
40
+ asChild?: boolean;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
43
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
44
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
45
+ declare const sidebarMenuButtonVariants: (props?: ({
46
+ variant?: "outline" | "default" | null | undefined;
47
+ size?: "default" | "sm" | "lg" | null | undefined;
48
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
49
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<'button'> & {
50
+ asChild?: boolean;
51
+ isActive?: boolean;
52
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
53
+ } & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
54
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<'button'> & {
55
+ asChild?: boolean;
56
+ showOnHover?: boolean;
57
+ }): import("react/jsx-runtime").JSX.Element;
58
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
59
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<'div'> & {
60
+ showIcon?: boolean;
61
+ }): import("react/jsx-runtime").JSX.Element;
62
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
63
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
64
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<'a'> & {
65
+ asChild?: boolean;
66
+ size?: 'sm' | 'md';
67
+ isActive?: boolean;
68
+ }): import("react/jsx-runtime").JSX.Element;
69
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
70
+ //# sourceMappingURL=sidebar.d.ts.map
@@ -0,0 +1 @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declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
3
+ export { Skeleton };
4
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQrE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { Locale } from '@next-library/core';
3
+ interface StickyBannerProps {
4
+ className?: string;
5
+ children: React.ReactNode;
6
+ hideOnScroll?: boolean;
7
+ locale?: Locale;
8
+ closeLabel?: string;
9
+ }
10
+ export declare function StickyBanner({ className, children, hideOnScroll, locale, closeLabel, }: StickyBannerProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=sticky-banner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sticky-banner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sticky-banner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAIlD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,QAAQ,EACR,YAAoB,EACpB,MAAa,EACb,UAAU,GACX,EAAE,iBAAiB,2CAkDnB"}
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
8
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAG5D,iBAAS,eAAe,CAAC,EACvB,aAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,2CAQxD;AAED,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAMhF;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAE1F;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAiBvD;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useMediaQuery(query: string): boolean;
2
+ //# sourceMappingURL=use-media-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-media-query.d.ts","sourceRoot":"","sources":["../../src/hooks/use-media-query.tsx"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,WAgB1C"}
@@ -0,0 +1,2 @@
1
+ export declare function useIsMobile(): boolean;
2
+ //# sourceMappingURL=use-mobile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.tsx"],"names":[],"mappings":"AAMA,wBAAgB,WAAW,YAc1B"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Main Theme Package Export
3
+ *
4
+ * This file exports all components from the theme package.
5
+ * For better tree-shaking and explicit client/server separation,
6
+ * prefer importing from '@next-library/theme/server' or '@next-library/theme/client'.
7
+ */
8
+ export * from './server';
9
+ export * from './client';
10
+ export { extractPageData, getLocaleFromParams, extractLocaleFromPathname, type Locale, type PageData, } from '@next-library/core';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC;AAGzB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,MAAM,EACX,KAAK,QAAQ,GACd,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as React8 from 'react';
2
2
  import React8__default, { Suspense, useState, useRef, useEffect, useCallback } from 'react';
3
3
  import { Logo, TopCategories, SearchBar, GithubLink, ThemeSwitcher, LanguageSwitcher, MobileMenu, GithubStar, Banner, CookieBanner, SidebarNavigation, GithubContributors, TableOfContents, CopyPageButton } from '@next-library/theme/client';
4
- import { getTopCategories, getDirection, getSupportedLocales, getLocaleConfig, getConfig } from '@next-library/core';
5
- export { extractLocaleFromPathname, extractPageData, getLocaleFromParams, loadContentTree } from '@next-library/core';
4
+ import { getDirection, getTopCategories, getSupportedLocales, getLocaleConfig } from '@next-library/core';
5
+ export { extractLocaleFromPathname, extractPageData, getLocaleFromParams } from '@next-library/core';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import Link2 from 'next/link';
8
8
  import Image from 'next/image';
@@ -31,7 +31,6 @@ import rehypeSanitize from 'rehype-sanitize';
31
31
  import rehypeSlug from 'rehype-slug';
32
32
  import rehypeCallouts from 'rehype-callouts';
33
33
  import rehypeExternalLinks from 'rehype-external-links';
34
- import rehypeMathJax from 'rehype-mathjax';
35
34
  import rehypeHighlight from 'rehype-highlight';
36
35
  import rehypeAutolinkHeadings from 'rehype-autolink-headings';
37
36
  import * as SelectPrimitive from '@radix-ui/react-select';
@@ -41,30 +40,23 @@ function NavigationBar({
41
40
  language = "en",
42
41
  className = "",
43
42
  pageData,
44
- websiteTitle
43
+ websiteTitle,
44
+ contentTree,
45
+ repoUrl: repoUrlProp
45
46
  }) {
46
- const categories = getTopCategories(language);
47
47
  const direction = getDirection(language);
48
- const availableLocales = typeof window === "undefined" ? getSupportedLocales() : [];
48
+ const categories = contentTree ? getTopCategories(contentTree, language) : [];
49
+ const availableLocales = typeof window === "undefined" && contentTree ? getSupportedLocales(contentTree) : [];
49
50
  const localeConfigs = typeof window === "undefined" ? availableLocales.map((locale) => ({
50
51
  code: locale,
51
52
  nativeName: getLocaleConfig(locale)?.nativeName || locale.toUpperCase()
52
53
  })) : void 0;
53
- let repoUrl;
54
- if (typeof window === "undefined") {
55
- try {
56
- const config = getConfig();
57
- if (config?.github?.user && config?.github?.repo) {
58
- repoUrl = `https://github.com/${config.github.user}/${config.github.repo}`;
59
- }
60
- } catch {
61
- }
62
- if (!repoUrl) {
63
- const githubUser = process.env.NEXT_PUBLIC_GITHUB_USER?.trim().replace(/^['"]|['"]$/g, "");
64
- const githubRepo = process.env.NEXT_PUBLIC_GITHUB_REPO?.trim().replace(/^['"]|['"]$/g, "");
65
- if (githubUser && githubRepo) {
66
- repoUrl = `https://github.com/${githubUser}/${githubRepo}`;
67
- }
54
+ let repoUrl = repoUrlProp;
55
+ if (!repoUrl && typeof window === "undefined") {
56
+ const githubUser = process.env.NEXT_PUBLIC_GITHUB_USER?.trim().replace(/^['"]|['"]$/g, "");
57
+ const githubRepo = process.env.NEXT_PUBLIC_GITHUB_REPO?.trim().replace(/^['"]|['"]$/g, "");
58
+ if (githubUser && githubRepo) {
59
+ repoUrl = `https://github.com/${githubUser}/${githubRepo}`;
68
60
  }
69
61
  }
70
62
  return /* @__PURE__ */ jsx(
@@ -124,23 +116,24 @@ function DocumentationLayout(props) {
124
116
  children,
125
117
  language = "en",
126
118
  bannerMessage = null,
127
- websiteTitle = void 0
119
+ websiteTitle,
120
+ contentTree,
121
+ repoUrl
128
122
  } = props;
129
123
  const direction = getDirection(language);
130
- let title = websiteTitle;
131
- if (!title && typeof window === "undefined") {
132
- try {
133
- const config = getConfig();
134
- title = config?.website?.title;
135
- } catch {
136
- }
137
- }
138
- if (!title && typeof window === "undefined") {
139
- title = process.env.NEXT_PUBLIC_WEBSITE_TITLE?.trim().replace(/^['"]|['"]$/g, "");
140
- }
124
+ const title = websiteTitle || (typeof window === "undefined" ? process.env.NEXT_PUBLIC_WEBSITE_TITLE?.trim().replace(/^['"]|['"]$/g, "") : void 0);
141
125
  return /* @__PURE__ */ jsxs("div", { className: "bg-background flex flex-col", dir: direction, children: [
142
126
  bannerMessage && /* @__PURE__ */ jsx(Banner, { language, children: bannerMessage }),
143
- /* @__PURE__ */ jsx(NavigationBar, { language, className: "hidden lg:block", websiteTitle: title }),
127
+ /* @__PURE__ */ jsx(
128
+ NavigationBar,
129
+ {
130
+ language,
131
+ className: "hidden lg:block",
132
+ websiteTitle: title,
133
+ contentTree,
134
+ repoUrl
135
+ }
136
+ ),
144
137
  children,
145
138
  /* @__PURE__ */ jsx(DocumentationFooter, {}),
146
139
  /* @__PURE__ */ jsx(CookieBanner, { locale: language })
@@ -3676,7 +3669,6 @@ function MarkdownRenderer({ markdown, className = "" }) {
3676
3669
  rehypeAutolinkHeadings,
3677
3670
  rehypeCallouts,
3678
3671
  rehypeExternalLinks,
3679
- rehypeMathJax,
3680
3672
  rehypeHighlight
3681
3673
  ],
3682
3674
  components: {