@docubook/ui-react 0.1.4 → 1.0.0

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.
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  interface BreadcrumbProps {
@@ -9,11 +9,11 @@ interface BreadcrumbItemProps {
9
9
  children: ReactNode;
10
10
  className?: string;
11
11
  }
12
- declare function Breadcrumb({ children, className }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
13
- declare function BreadcrumbItem({ children, className }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
14
- declare function BreadcrumbPage({ children, className }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
12
+ declare function Breadcrumb({ children, className }: BreadcrumbProps): react.JSX.Element;
13
+ declare function BreadcrumbItem({ children, className }: BreadcrumbItemProps): react.JSX.Element;
14
+ declare function BreadcrumbPage({ children, className }: BreadcrumbItemProps): react.JSX.Element;
15
15
  declare function BreadcrumbList({ children }: {
16
16
  children: React.ReactNode;
17
- }): react_jsx_runtime.JSX.Element;
17
+ }): react.JSX.Element;
18
18
 
19
19
  export { Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  interface BreadcrumbProps {
@@ -9,11 +9,11 @@ interface BreadcrumbItemProps {
9
9
  children: ReactNode;
10
10
  className?: string;
11
11
  }
12
- declare function Breadcrumb({ children, className }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
13
- declare function BreadcrumbItem({ children, className }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
14
- declare function BreadcrumbPage({ children, className }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
12
+ declare function Breadcrumb({ children, className }: BreadcrumbProps): react.JSX.Element;
13
+ declare function BreadcrumbItem({ children, className }: BreadcrumbItemProps): react.JSX.Element;
14
+ declare function BreadcrumbPage({ children, className }: BreadcrumbItemProps): react.JSX.Element;
15
15
  declare function BreadcrumbList({ children }: {
16
16
  children: React.ReactNode;
17
- }): react_jsx_runtime.JSX.Element;
17
+ }): react.JSX.Element;
18
18
 
19
19
  export { Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  type CollapseVariant = "arrow" | "plus";
@@ -13,7 +13,7 @@ interface CollapseProps {
13
13
  contentClassName?: string;
14
14
  disabled?: boolean;
15
15
  }
16
- declare function Collapse({ title, children, defaultOpen, onOpenChange, variant, className, titleClassName, contentClassName, disabled, }: CollapseProps): react_jsx_runtime.JSX.Element;
16
+ declare function Collapse({ title, children, defaultOpen, onOpenChange, variant, className, titleClassName, contentClassName, disabled, }: CollapseProps): react.JSX.Element;
17
17
  interface AccordionItem {
18
18
  id: string;
19
19
  title: ReactNode;
@@ -26,6 +26,6 @@ interface AccordionProps {
26
26
  className?: string;
27
27
  allowMultiple?: boolean;
28
28
  }
29
- declare function Accordion({ items, defaultOpen, variant, className, allowMultiple, }: AccordionProps): react_jsx_runtime.JSX.Element;
29
+ declare function Accordion({ items, defaultOpen, variant, className, allowMultiple, }: AccordionProps): react.JSX.Element;
30
30
 
31
31
  export { Accordion, type AccordionItem, type AccordionProps, Collapse, type CollapseProps, type CollapseVariant, Collapse as default };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  type CollapseVariant = "arrow" | "plus";
@@ -13,7 +13,7 @@ interface CollapseProps {
13
13
  contentClassName?: string;
14
14
  disabled?: boolean;
15
15
  }
16
- declare function Collapse({ title, children, defaultOpen, onOpenChange, variant, className, titleClassName, contentClassName, disabled, }: CollapseProps): react_jsx_runtime.JSX.Element;
16
+ declare function Collapse({ title, children, defaultOpen, onOpenChange, variant, className, titleClassName, contentClassName, disabled, }: CollapseProps): react.JSX.Element;
17
17
  interface AccordionItem {
18
18
  id: string;
19
19
  title: ReactNode;
@@ -26,6 +26,6 @@ interface AccordionProps {
26
26
  className?: string;
27
27
  allowMultiple?: boolean;
28
28
  }
29
- declare function Accordion({ items, defaultOpen, variant, className, allowMultiple, }: AccordionProps): react_jsx_runtime.JSX.Element;
29
+ declare function Accordion({ items, defaultOpen, variant, className, allowMultiple, }: AccordionProps): react.JSX.Element;
30
30
 
31
31
  export { Accordion, type AccordionItem, type AccordionProps, Collapse, type CollapseProps, type CollapseVariant, Collapse as default };
package/dist/drawer.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { S as Side } from './types-BZI5Cv8-.cjs';
4
4
 
@@ -14,7 +14,7 @@ interface DrawerProps {
14
14
  contentClassName?: string;
15
15
  className?: string;
16
16
  }
17
- declare function Drawer({ id, children, defaultOpen, side, breakpoint, withOverlay, overlayClassName, sideClassName, contentClassName, className, }: DrawerProps): react_jsx_runtime.JSX.Element;
17
+ declare function Drawer({ id, children, defaultOpen, side, breakpoint, withOverlay, overlayClassName, sideClassName, contentClassName, className, }: DrawerProps): react.JSX.Element;
18
18
  declare function useDrawerState(initialState?: boolean): {
19
19
  isOpen: boolean;
20
20
  open: () => void;
@@ -26,7 +26,7 @@ interface DrawerTriggerProps {
26
26
  children: ReactNode;
27
27
  className?: string;
28
28
  }
29
- declare function DrawerTrigger({ drawerId, children, className }: DrawerTriggerProps): react_jsx_runtime.JSX.Element;
29
+ declare function DrawerTrigger({ drawerId, children, className }: DrawerTriggerProps): react.JSX.Element;
30
30
  interface DrawerSidePanelProps {
31
31
  id: string;
32
32
  children: ReactNode;
@@ -35,10 +35,10 @@ interface DrawerSidePanelProps {
35
35
  overlayClassName?: string;
36
36
  className?: string;
37
37
  }
38
- declare function DrawerSidePanel({ id, children, side, withOverlay, overlayClassName, className, }: DrawerSidePanelProps): react_jsx_runtime.JSX.Element;
38
+ declare function DrawerSidePanel({ id, children, side, withOverlay, overlayClassName, className, }: DrawerSidePanelProps): react.JSX.Element;
39
39
  declare function DrawerContent({ children, className, }: {
40
40
  children: React.ReactNode;
41
41
  className?: string;
42
- }): react_jsx_runtime.JSX.Element;
42
+ }): react.JSX.Element;
43
43
 
44
44
  export { Drawer, DrawerContent, type DrawerProps, DrawerSidePanel, type DrawerSidePanelProps, DrawerTrigger, type DrawerTriggerProps, useDrawerState };
package/dist/drawer.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { S as Side } from './types-BZI5Cv8-.js';
4
4
 
@@ -14,7 +14,7 @@ interface DrawerProps {
14
14
  contentClassName?: string;
15
15
  className?: string;
16
16
  }
17
- declare function Drawer({ id, children, defaultOpen, side, breakpoint, withOverlay, overlayClassName, sideClassName, contentClassName, className, }: DrawerProps): react_jsx_runtime.JSX.Element;
17
+ declare function Drawer({ id, children, defaultOpen, side, breakpoint, withOverlay, overlayClassName, sideClassName, contentClassName, className, }: DrawerProps): react.JSX.Element;
18
18
  declare function useDrawerState(initialState?: boolean): {
19
19
  isOpen: boolean;
20
20
  open: () => void;
@@ -26,7 +26,7 @@ interface DrawerTriggerProps {
26
26
  children: ReactNode;
27
27
  className?: string;
28
28
  }
29
- declare function DrawerTrigger({ drawerId, children, className }: DrawerTriggerProps): react_jsx_runtime.JSX.Element;
29
+ declare function DrawerTrigger({ drawerId, children, className }: DrawerTriggerProps): react.JSX.Element;
30
30
  interface DrawerSidePanelProps {
31
31
  id: string;
32
32
  children: ReactNode;
@@ -35,10 +35,10 @@ interface DrawerSidePanelProps {
35
35
  overlayClassName?: string;
36
36
  className?: string;
37
37
  }
38
- declare function DrawerSidePanel({ id, children, side, withOverlay, overlayClassName, className, }: DrawerSidePanelProps): react_jsx_runtime.JSX.Element;
38
+ declare function DrawerSidePanel({ id, children, side, withOverlay, overlayClassName, className, }: DrawerSidePanelProps): react.JSX.Element;
39
39
  declare function DrawerContent({ children, className, }: {
40
40
  children: React.ReactNode;
41
41
  className?: string;
42
- }): react_jsx_runtime.JSX.Element;
42
+ }): react.JSX.Element;
43
43
 
44
44
  export { Drawer, DrawerContent, type DrawerProps, DrawerSidePanel, type DrawerSidePanelProps, DrawerTrigger, type DrawerTriggerProps, useDrawerState };
package/dist/index.d.cts CHANGED
@@ -13,4 +13,3 @@ export { PaginationDocs, PaginationDocsProps } from './pagination.cjs';
13
13
  import 'clsx';
14
14
  import 'react';
15
15
  import './types-BZI5Cv8-.cjs';
16
- import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -13,4 +13,3 @@ export { PaginationDocs, PaginationDocsProps } from './pagination.js';
13
13
  import 'clsx';
14
14
  import 'react';
15
15
  import './types-BZI5Cv8-.js';
16
- import 'react/jsx-runtime';
package/dist/kbd.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
2
  import { a as Size } from './types-BZI5Cv8-.cjs';
4
3
 
@@ -27,18 +26,18 @@ interface FnKeyIcons {
27
26
  }
28
27
  declare const FnKey: {
29
28
  configure(icons: FnKeyIcons): void;
30
- Cmd: () => react_jsx_runtime.JSX.Element;
31
- Option: () => react_jsx_runtime.JSX.Element;
32
- Ctrl: () => react_jsx_runtime.JSX.Element;
33
- Shift: () => react_jsx_runtime.JSX.Element;
34
- Esc: () => react_jsx_runtime.JSX.Element;
35
- Space: () => react_jsx_runtime.JSX.Element;
36
- Delete: () => react_jsx_runtime.JSX.Element;
37
- Tab: () => react_jsx_runtime.JSX.Element;
38
- Up: () => react_jsx_runtime.JSX.Element;
39
- Down: () => react_jsx_runtime.JSX.Element;
40
- Left: () => react_jsx_runtime.JSX.Element;
41
- Right: () => react_jsx_runtime.JSX.Element;
29
+ Cmd: () => react.JSX.Element;
30
+ Option: () => react.JSX.Element;
31
+ Ctrl: () => react.JSX.Element;
32
+ Shift: () => react.JSX.Element;
33
+ Esc: () => react.JSX.Element;
34
+ Space: () => react.JSX.Element;
35
+ Delete: () => react.JSX.Element;
36
+ Tab: () => react.JSX.Element;
37
+ Up: () => react.JSX.Element;
38
+ Down: () => react.JSX.Element;
39
+ Left: () => react.JSX.Element;
40
+ Right: () => react.JSX.Element;
42
41
  };
43
42
 
44
43
  export { FnKey, type FnKeyIcons, Kbd, type KbdProps, type KbdSize };
package/dist/kbd.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
2
  import { a as Size } from './types-BZI5Cv8-.js';
4
3
 
@@ -27,18 +26,18 @@ interface FnKeyIcons {
27
26
  }
28
27
  declare const FnKey: {
29
28
  configure(icons: FnKeyIcons): void;
30
- Cmd: () => react_jsx_runtime.JSX.Element;
31
- Option: () => react_jsx_runtime.JSX.Element;
32
- Ctrl: () => react_jsx_runtime.JSX.Element;
33
- Shift: () => react_jsx_runtime.JSX.Element;
34
- Esc: () => react_jsx_runtime.JSX.Element;
35
- Space: () => react_jsx_runtime.JSX.Element;
36
- Delete: () => react_jsx_runtime.JSX.Element;
37
- Tab: () => react_jsx_runtime.JSX.Element;
38
- Up: () => react_jsx_runtime.JSX.Element;
39
- Down: () => react_jsx_runtime.JSX.Element;
40
- Left: () => react_jsx_runtime.JSX.Element;
41
- Right: () => react_jsx_runtime.JSX.Element;
29
+ Cmd: () => react.JSX.Element;
30
+ Option: () => react.JSX.Element;
31
+ Ctrl: () => react.JSX.Element;
32
+ Shift: () => react.JSX.Element;
33
+ Esc: () => react.JSX.Element;
34
+ Space: () => react.JSX.Element;
35
+ Delete: () => react.JSX.Element;
36
+ Tab: () => react.JSX.Element;
37
+ Up: () => react.JSX.Element;
38
+ Down: () => react.JSX.Element;
39
+ Left: () => react.JSX.Element;
40
+ Right: () => react.JSX.Element;
42
41
  };
43
42
 
44
43
  export { FnKey, type FnKeyIcons, Kbd, type KbdProps, type KbdSize };
package/dist/navbar.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode, CSSProperties } from 'react';
3
3
 
4
4
  interface NavbarProps {
@@ -24,13 +24,13 @@ interface NavMenuProps {
24
24
  activePath?: string;
25
25
  className?: string;
26
26
  }
27
- declare function Navbar({ id, children, className, style }: NavbarProps): react_jsx_runtime.JSX.Element;
28
- declare function Logo({ src, alt, text, href, className }: LogoProps): react_jsx_runtime.JSX.Element;
29
- declare function NavMenu({ items, activePath, className }: NavMenuProps): react_jsx_runtime.JSX.Element;
27
+ declare function Navbar({ id, children, className, style }: NavbarProps): react.JSX.Element;
28
+ declare function Logo({ src, alt, text, href, className }: LogoProps): react.JSX.Element;
29
+ declare function NavMenu({ items, activePath, className }: NavMenuProps): react.JSX.Element;
30
30
  declare function NavMenuLink({ item, isActive, className, }: {
31
31
  item: NavMenuItem;
32
32
  isActive?: boolean;
33
33
  className?: string;
34
- }): react_jsx_runtime.JSX.Element;
34
+ }): react.JSX.Element;
35
35
 
36
36
  export { Logo, type LogoProps, NavMenu, type NavMenuItem, NavMenuLink, type NavMenuProps, Navbar, type NavbarProps };
package/dist/navbar.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode, CSSProperties } from 'react';
3
3
 
4
4
  interface NavbarProps {
@@ -24,13 +24,13 @@ interface NavMenuProps {
24
24
  activePath?: string;
25
25
  className?: string;
26
26
  }
27
- declare function Navbar({ id, children, className, style }: NavbarProps): react_jsx_runtime.JSX.Element;
28
- declare function Logo({ src, alt, text, href, className }: LogoProps): react_jsx_runtime.JSX.Element;
29
- declare function NavMenu({ items, activePath, className }: NavMenuProps): react_jsx_runtime.JSX.Element;
27
+ declare function Navbar({ id, children, className, style }: NavbarProps): react.JSX.Element;
28
+ declare function Logo({ src, alt, text, href, className }: LogoProps): react.JSX.Element;
29
+ declare function NavMenu({ items, activePath, className }: NavMenuProps): react.JSX.Element;
30
30
  declare function NavMenuLink({ item, isActive, className, }: {
31
31
  item: NavMenuItem;
32
32
  isActive?: boolean;
33
33
  className?: string;
34
- }): react_jsx_runtime.JSX.Element;
34
+ }): react.JSX.Element;
35
35
 
36
36
  export { Logo, type LogoProps, NavMenu, type NavMenuItem, NavMenuLink, type NavMenuProps, Navbar, type NavbarProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  interface PaginationDocsProps {
@@ -15,6 +15,6 @@ interface PaginationDocsProps {
15
15
  nextIcon?: ReactNode;
16
16
  linkClassName?: string;
17
17
  }
18
- declare function PaginationDocs({ prev, next, className, prevIcon, nextIcon, linkClassName, }: PaginationDocsProps): react_jsx_runtime.JSX.Element;
18
+ declare function PaginationDocs({ prev, next, className, prevIcon, nextIcon, linkClassName, }: PaginationDocsProps): react.JSX.Element;
19
19
 
20
20
  export { PaginationDocs, type PaginationDocsProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  interface PaginationDocsProps {
@@ -15,6 +15,6 @@ interface PaginationDocsProps {
15
15
  nextIcon?: ReactNode;
16
16
  linkClassName?: string;
17
17
  }
18
- declare function PaginationDocs({ prev, next, className, prevIcon, nextIcon, linkClassName, }: PaginationDocsProps): react_jsx_runtime.JSX.Element;
18
+ declare function PaginationDocs({ prev, next, className, prevIcon, nextIcon, linkClassName, }: PaginationDocsProps): react.JSX.Element;
19
19
 
20
20
  export { PaginationDocs, type PaginationDocsProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { a as Size } from './types-BZI5Cv8-.cjs';
4
4
 
@@ -16,6 +16,6 @@ interface ThemeControllerToggleProps {
16
16
  toggle: (checked: boolean) => void;
17
17
  }) => ReactNode;
18
18
  }
19
- declare function ThemeControllerToggle({ defaultTheme, lightTheme, darkTheme, onThemeChange, className, label, size, children, }: ThemeControllerToggleProps): react_jsx_runtime.JSX.Element;
19
+ declare function ThemeControllerToggle({ defaultTheme, lightTheme, darkTheme, onThemeChange, className, label, size, children, }: ThemeControllerToggleProps): react.JSX.Element;
20
20
 
21
21
  export { ThemeControllerToggle, type ThemeControllerToggleProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { a as Size } from './types-BZI5Cv8-.js';
4
4
 
@@ -16,6 +16,6 @@ interface ThemeControllerToggleProps {
16
16
  toggle: (checked: boolean) => void;
17
17
  }) => ReactNode;
18
18
  }
19
- declare function ThemeControllerToggle({ defaultTheme, lightTheme, darkTheme, onThemeChange, className, label, size, children, }: ThemeControllerToggleProps): react_jsx_runtime.JSX.Element;
19
+ declare function ThemeControllerToggle({ defaultTheme, lightTheme, darkTheme, onThemeChange, className, label, size, children, }: ThemeControllerToggleProps): react.JSX.Element;
20
20
 
21
21
  export { ThemeControllerToggle, type ThemeControllerToggleProps };
package/dist/toggle.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
2
  import { InputHTMLAttributes, ReactNode } from 'react';
4
3
  import { C as Color, a as Size } from './types-BZI5Cv8-.cjs';
@@ -31,6 +30,6 @@ interface ToggleGroupProps {
31
30
  controlled?: boolean;
32
31
  className?: string;
33
32
  }
34
- declare function ToggleGroup({ items, value, defaultValue, onChange, color, size, controlled, className, }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
33
+ declare function ToggleGroup({ items, value, defaultValue, onChange, color, size, controlled, className, }: ToggleGroupProps): react.JSX.Element;
35
34
 
36
35
  export { Toggle, type ToggleColor, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps, type ToggleProps, type ToggleSize };
package/dist/toggle.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
2
  import { InputHTMLAttributes, ReactNode } from 'react';
4
3
  import { C as Color, a as Size } from './types-BZI5Cv8-.js';
@@ -31,6 +30,6 @@ interface ToggleGroupProps {
31
30
  controlled?: boolean;
32
31
  className?: string;
33
32
  }
34
- declare function ToggleGroup({ items, value, defaultValue, onChange, color, size, controlled, className, }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
33
+ declare function ToggleGroup({ items, value, defaultValue, onChange, color, size, controlled, className, }: ToggleGroupProps): react.JSX.Element;
35
34
 
36
35
  export { Toggle, type ToggleColor, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps, type ToggleProps, type ToggleSize };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/ui-react",
3
- "version": "0.1.4",
3
+ "version": "1.0.0",
4
4
  "description": "React + DaisyUI component library for documentation sites",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",