@docubook/ui-react 0.1.4 → 2.0.0-alpha.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.
- package/dist/breadcrumbs.d.cts +5 -5
- package/dist/breadcrumbs.d.ts +5 -5
- package/dist/{chunk-LUVR2YGT.cjs → chunk-CK4TY6B7.cjs} +2 -2
- package/dist/{chunk-AQP3U2YN.js → chunk-CNOJNKZ2.js} +2 -2
- package/dist/collapse.d.cts +3 -3
- package/dist/collapse.d.ts +3 -3
- package/dist/drawer.d.cts +5 -5
- package/dist/drawer.d.ts +5 -5
- package/dist/dropdown.cjs +2 -2
- package/dist/dropdown.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/kbd.d.cts +12 -13
- package/dist/kbd.d.ts +12 -13
- package/dist/navbar.d.cts +5 -5
- package/dist/navbar.d.ts +5 -5
- package/dist/pagination.d.cts +2 -2
- package/dist/pagination.d.ts +2 -2
- package/dist/theme-controller.d.cts +2 -2
- package/dist/theme-controller.d.ts +2 -2
- package/dist/toggle.d.cts +1 -2
- package/dist/toggle.d.ts +1 -2
- package/package.json +4 -5
package/dist/breadcrumbs.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
13
|
-
declare function BreadcrumbItem({ children, className }: BreadcrumbItemProps):
|
|
14
|
-
declare function BreadcrumbPage({ children, className }: BreadcrumbItemProps):
|
|
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
|
-
}):
|
|
17
|
+
}): react.JSX.Element;
|
|
18
18
|
|
|
19
19
|
export { Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps };
|
package/dist/breadcrumbs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
13
|
-
declare function BreadcrumbItem({ children, className }: BreadcrumbItemProps):
|
|
14
|
-
declare function BreadcrumbPage({ children, className }: BreadcrumbItemProps):
|
|
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
|
-
}):
|
|
17
|
+
}): react.JSX.Element;
|
|
18
18
|
|
|
19
19
|
export { Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps };
|
|
@@ -58,7 +58,7 @@ var DropdownItem = _react.forwardRef.call(void 0,
|
|
|
58
58
|
_chunk2DFF5NELcjs.__spreadProps.call(void 0, _chunk2DFF5NELcjs.__spreadValues.call(void 0, {
|
|
59
59
|
ref,
|
|
60
60
|
className: _chunk2DFF5NELcjs.cn.call(void 0,
|
|
61
|
-
"hover:bg-base-200 text-base-content/80 hover:text-base-content relative flex cursor-pointer items-center gap-2 rounded px-2 py-2 text-sm outline-none
|
|
61
|
+
"hover:bg-base-200 text-base-content/80 hover:text-base-content relative flex cursor-pointer items-center gap-2 rounded px-2 py-2 text-sm transition-colors outline-none",
|
|
62
62
|
className
|
|
63
63
|
),
|
|
64
64
|
role: "menuitem"
|
|
@@ -75,7 +75,7 @@ var DropdownLink = _react.forwardRef.call(void 0, (_a, ref) => {
|
|
|
75
75
|
"li",
|
|
76
76
|
{
|
|
77
77
|
role: "menuitem",
|
|
78
|
-
className: "hover:bg-base-200 text-base-content/80 hover:text-base-content relative flex cursor-pointer items-center gap-2 rounded px-2 py-2 text-sm outline-none
|
|
78
|
+
className: "hover:bg-base-200 text-base-content/80 hover:text-base-content relative flex cursor-pointer items-center gap-2 rounded px-2 py-2 text-sm transition-colors outline-none",
|
|
79
79
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", _chunk2DFF5NELcjs.__spreadProps.call(void 0, _chunk2DFF5NELcjs.__spreadValues.call(void 0, { ref, href, className: _chunk2DFF5NELcjs.cn.call(void 0, "text-inherit no-underline", className) }, props), { children }))
|
|
80
80
|
}
|
|
81
81
|
);
|
|
@@ -58,7 +58,7 @@ var DropdownItem = forwardRef(
|
|
|
58
58
|
__spreadProps(__spreadValues({
|
|
59
59
|
ref,
|
|
60
60
|
className: cn(
|
|
61
|
-
"hover:bg-base-200 text-base-content/80 hover:text-base-content relative flex cursor-pointer items-center gap-2 rounded px-2 py-2 text-sm outline-none
|
|
61
|
+
"hover:bg-base-200 text-base-content/80 hover:text-base-content relative flex cursor-pointer items-center gap-2 rounded px-2 py-2 text-sm transition-colors outline-none",
|
|
62
62
|
className
|
|
63
63
|
),
|
|
64
64
|
role: "menuitem"
|
|
@@ -75,7 +75,7 @@ var DropdownLink = forwardRef((_a, ref) => {
|
|
|
75
75
|
"li",
|
|
76
76
|
{
|
|
77
77
|
role: "menuitem",
|
|
78
|
-
className: "hover:bg-base-200 text-base-content/80 hover:text-base-content relative flex cursor-pointer items-center gap-2 rounded px-2 py-2 text-sm outline-none
|
|
78
|
+
className: "hover:bg-base-200 text-base-content/80 hover:text-base-content relative flex cursor-pointer items-center gap-2 rounded px-2 py-2 text-sm transition-colors outline-none",
|
|
79
79
|
children: /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({ ref, href, className: cn("text-inherit no-underline", className) }, props), { children }))
|
|
80
80
|
}
|
|
81
81
|
);
|
package/dist/collapse.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
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):
|
|
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/collapse.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
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):
|
|
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
|
|
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):
|
|
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):
|
|
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):
|
|
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
|
-
}):
|
|
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
|
|
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):
|
|
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):
|
|
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):
|
|
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
|
-
}):
|
|
42
|
+
}): react.JSX.Element;
|
|
43
43
|
|
|
44
44
|
export { Drawer, DrawerContent, type DrawerProps, DrawerSidePanel, type DrawerSidePanelProps, DrawerTrigger, type DrawerTriggerProps, useDrawerState };
|
package/dist/dropdown.cjs
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCK4TY6B7cjs = require('./chunk-CK4TY6B7.cjs');
|
|
7
7
|
require('./chunk-2DFF5NEL.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.Dropdown =
|
|
12
|
+
exports.Dropdown = _chunkCK4TY6B7cjs.Dropdown; exports.DropdownItem = _chunkCK4TY6B7cjs.DropdownItem; exports.DropdownLink = _chunkCK4TY6B7cjs.DropdownLink;
|
package/dist/dropdown.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ var _chunkBHHZBMD4cjs = require('./chunk-BHHZBMD4.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkCK4TY6B7cjs = require('./chunk-CK4TY6B7.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
@@ -81,4 +81,4 @@ var _chunk2DFF5NELcjs = require('./chunk-2DFF5NEL.cjs');
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
exports.Accordion = _chunkSV4L2FGTcjs.Accordion; exports.Breadcrumb = _chunkRDRDPR67cjs.Breadcrumb; exports.BreadcrumbItem = _chunkRDRDPR67cjs.BreadcrumbItem; exports.BreadcrumbList = _chunkRDRDPR67cjs.BreadcrumbList; exports.BreadcrumbPage = _chunkRDRDPR67cjs.BreadcrumbPage; exports.Collapse = _chunkSV4L2FGTcjs.Collapse; exports.Drawer = _chunkBHHZBMD4cjs.Drawer; exports.DrawerContent = _chunkBHHZBMD4cjs.DrawerContent; exports.DrawerSidePanel = _chunkBHHZBMD4cjs.DrawerSidePanel; exports.DrawerTrigger = _chunkBHHZBMD4cjs.DrawerTrigger; exports.Dropdown =
|
|
84
|
+
exports.Accordion = _chunkSV4L2FGTcjs.Accordion; exports.Breadcrumb = _chunkRDRDPR67cjs.Breadcrumb; exports.BreadcrumbItem = _chunkRDRDPR67cjs.BreadcrumbItem; exports.BreadcrumbList = _chunkRDRDPR67cjs.BreadcrumbList; exports.BreadcrumbPage = _chunkRDRDPR67cjs.BreadcrumbPage; exports.Collapse = _chunkSV4L2FGTcjs.Collapse; exports.Drawer = _chunkBHHZBMD4cjs.Drawer; exports.DrawerContent = _chunkBHHZBMD4cjs.DrawerContent; exports.DrawerSidePanel = _chunkBHHZBMD4cjs.DrawerSidePanel; exports.DrawerTrigger = _chunkBHHZBMD4cjs.DrawerTrigger; exports.Dropdown = _chunkCK4TY6B7cjs.Dropdown; exports.DropdownItem = _chunkCK4TY6B7cjs.DropdownItem; exports.DropdownLink = _chunkCK4TY6B7cjs.DropdownLink; exports.FnKey = _chunkTDFVUBGOcjs.FnKey; exports.Input = _chunkMWJV72OMcjs.Input; exports.InputGroup = _chunkMWJV72OMcjs.InputGroup; exports.Kbd = _chunkTDFVUBGOcjs.Kbd; exports.Logo = _chunk6B7U7IWTcjs.Logo; exports.Modal = _chunkHTH2UTCLcjs.Modal; exports.NavMenu = _chunk6B7U7IWTcjs.NavMenu; exports.NavMenuLink = _chunk6B7U7IWTcjs.NavMenuLink; exports.Navbar = _chunk6B7U7IWTcjs.Navbar; exports.PaginationDocs = _chunkK22HSWMWcjs.PaginationDocs; exports.ThemeControllerToggle = _chunk5SA5UPFQcjs.ThemeControllerToggle; exports.Toggle = _chunkOO3HHTPVcjs.Toggle; exports.ToggleGroup = _chunkOO3HHTPVcjs.ToggleGroup; exports.cn = _chunk2DFF5NELcjs.cn; exports.useDrawerState = _chunkBHHZBMD4cjs.useDrawerState; exports.useModal = _chunkHTH2UTCLcjs.useModal;
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
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: () =>
|
|
31
|
-
Option: () =>
|
|
32
|
-
Ctrl: () =>
|
|
33
|
-
Shift: () =>
|
|
34
|
-
Esc: () =>
|
|
35
|
-
Space: () =>
|
|
36
|
-
Delete: () =>
|
|
37
|
-
Tab: () =>
|
|
38
|
-
Up: () =>
|
|
39
|
-
Down: () =>
|
|
40
|
-
Left: () =>
|
|
41
|
-
Right: () =>
|
|
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: () =>
|
|
31
|
-
Option: () =>
|
|
32
|
-
Ctrl: () =>
|
|
33
|
-
Shift: () =>
|
|
34
|
-
Esc: () =>
|
|
35
|
-
Space: () =>
|
|
36
|
-
Delete: () =>
|
|
37
|
-
Tab: () =>
|
|
38
|
-
Up: () =>
|
|
39
|
-
Down: () =>
|
|
40
|
-
Left: () =>
|
|
41
|
-
Right: () =>
|
|
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
|
|
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):
|
|
28
|
-
declare function Logo({ src, alt, text, href, className }: LogoProps):
|
|
29
|
-
declare function NavMenu({ items, activePath, className }: NavMenuProps):
|
|
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
|
-
}):
|
|
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
|
|
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):
|
|
28
|
-
declare function Logo({ src, alt, text, href, className }: LogoProps):
|
|
29
|
-
declare function NavMenu({ items, activePath, className }: NavMenuProps):
|
|
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
|
-
}):
|
|
34
|
+
}): react.JSX.Element;
|
|
35
35
|
|
|
36
36
|
export { Logo, type LogoProps, NavMenu, type NavMenuItem, NavMenuLink, type NavMenuProps, Navbar, type NavbarProps };
|
package/dist/pagination.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
18
|
+
declare function PaginationDocs({ prev, next, className, prevIcon, nextIcon, linkClassName, }: PaginationDocsProps): react.JSX.Element;
|
|
19
19
|
|
|
20
20
|
export { PaginationDocs, type PaginationDocsProps };
|
package/dist/pagination.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
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
|
|
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):
|
|
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
|
|
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):
|
|
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):
|
|
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):
|
|
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.
|
|
3
|
+
"version": "2.0.0-alpha.0",
|
|
4
4
|
"description": "React + DaisyUI component library for documentation sites",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -162,17 +162,16 @@
|
|
|
162
162
|
"react": "^19.2.0",
|
|
163
163
|
"react-dom": "^19.2.0",
|
|
164
164
|
"tsup": "^8.5.0",
|
|
165
|
-
"typescript": "^5.9.3"
|
|
166
|
-
"vitest": "^4.1.8"
|
|
165
|
+
"typescript": "^5.9.3"
|
|
167
166
|
},
|
|
168
167
|
"publishConfig": {
|
|
169
168
|
"access": "public"
|
|
170
169
|
},
|
|
171
|
-
"homepage": "https://github.com/DocuBook/docubook/tree/main/packages/ui
|
|
170
|
+
"homepage": "https://github.com/DocuBook/docubook/tree/main/packages/ui-react",
|
|
172
171
|
"repository": {
|
|
173
172
|
"type": "git",
|
|
174
173
|
"url": "git+https://github.com/DocuBook/docubook.git",
|
|
175
|
-
"directory": "packages/ui
|
|
174
|
+
"directory": "packages/ui-react"
|
|
176
175
|
},
|
|
177
176
|
"author": "wildan.nrs",
|
|
178
177
|
"author-url": "https://wildan.dev",
|