@docubook/ui-react 0.1.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.
Files changed (80) hide show
  1. package/README.md +126 -0
  2. package/dist/breadcrumbs.cjs +13 -0
  3. package/dist/breadcrumbs.d.cts +19 -0
  4. package/dist/breadcrumbs.d.ts +19 -0
  5. package/dist/breadcrumbs.js +14 -0
  6. package/dist/chunk-42YUT467.cjs +41 -0
  7. package/dist/chunk-4DCBYM74.js +42 -0
  8. package/dist/chunk-54N6HTQV.cjs +49 -0
  9. package/dist/chunk-7HHY2WDF.cjs +43 -0
  10. package/dist/chunk-ACEM5N2Y.cjs +123 -0
  11. package/dist/chunk-BCJ3FW3Y.cjs +66 -0
  12. package/dist/chunk-EJCGJCVK.cjs +89 -0
  13. package/dist/chunk-EN2X23AN.cjs +330 -0
  14. package/dist/chunk-FGJ6EYLA.js +90 -0
  15. package/dist/chunk-HTNZRBKW.js +67 -0
  16. package/dist/chunk-I4CZWV3M.js +124 -0
  17. package/dist/chunk-IBKH77YN.js +50 -0
  18. package/dist/chunk-KHU72DOY.cjs +25 -0
  19. package/dist/chunk-LJV3UIMK.cjs +53 -0
  20. package/dist/chunk-LUO4YXRQ.js +38 -0
  21. package/dist/chunk-NJKWNMJF.js +44 -0
  22. package/dist/chunk-OB6B2KN5.js +54 -0
  23. package/dist/chunk-OKMEBWPL.cjs +133 -0
  24. package/dist/chunk-PB4SHWMJ.cjs +101 -0
  25. package/dist/chunk-Q55KNNKE.js +26 -0
  26. package/dist/chunk-QZH7EIFW.js +134 -0
  27. package/dist/chunk-VRODU4ZV.cjs +37 -0
  28. package/dist/chunk-W5G2ZBYA.js +102 -0
  29. package/dist/chunk-ZMIZV66S.js +331 -0
  30. package/dist/cn.cjs +6 -0
  31. package/dist/cn.d.cts +4 -0
  32. package/dist/cn.d.ts +4 -0
  33. package/dist/cn.js +7 -0
  34. package/dist/collapse.cjs +12 -0
  35. package/dist/collapse.d.cts +31 -0
  36. package/dist/collapse.d.ts +31 -0
  37. package/dist/collapse.js +13 -0
  38. package/dist/drawer.cjs +16 -0
  39. package/dist/drawer.d.cts +44 -0
  40. package/dist/drawer.d.ts +44 -0
  41. package/dist/drawer.js +17 -0
  42. package/dist/dropdown.cjs +12 -0
  43. package/dist/dropdown.d.cts +20 -0
  44. package/dist/dropdown.d.ts +20 -0
  45. package/dist/dropdown.js +13 -0
  46. package/dist/index.cjs +96 -0
  47. package/dist/index.d.cts +15 -0
  48. package/dist/index.d.ts +15 -0
  49. package/dist/index.js +97 -0
  50. package/dist/input.cjs +9 -0
  51. package/dist/input.d.cts +17 -0
  52. package/dist/input.d.ts +17 -0
  53. package/dist/input.js +10 -0
  54. package/dist/kbd.cjs +9 -0
  55. package/dist/kbd.d.cts +27 -0
  56. package/dist/kbd.d.ts +27 -0
  57. package/dist/kbd.js +10 -0
  58. package/dist/modal.cjs +10 -0
  59. package/dist/modal.d.cts +17 -0
  60. package/dist/modal.d.ts +17 -0
  61. package/dist/modal.js +11 -0
  62. package/dist/navbar.cjs +13 -0
  63. package/dist/navbar.d.cts +36 -0
  64. package/dist/navbar.d.ts +36 -0
  65. package/dist/navbar.js +14 -0
  66. package/dist/pagination.cjs +20 -0
  67. package/dist/pagination.d.cts +88 -0
  68. package/dist/pagination.d.ts +88 -0
  69. package/dist/pagination.js +21 -0
  70. package/dist/theme-controller.cjs +8 -0
  71. package/dist/theme-controller.d.cts +21 -0
  72. package/dist/theme-controller.d.ts +21 -0
  73. package/dist/theme-controller.js +9 -0
  74. package/dist/toggle.cjs +10 -0
  75. package/dist/toggle.d.cts +36 -0
  76. package/dist/toggle.d.ts +36 -0
  77. package/dist/toggle.js +11 -0
  78. package/dist/types-BZI5Cv8-.d.cts +6 -0
  79. package/dist/types-BZI5Cv8-.d.ts +6 -0
  80. package/package.json +200 -0
@@ -0,0 +1,88 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ type PaginationSize = "lg" | "md" | "sm" | "xs";
5
+ type PaginationVariant = "default" | "square" | "rounded";
6
+ interface PaginationItemProps {
7
+ children: ReactNode;
8
+ active?: boolean;
9
+ disabled?: boolean;
10
+ onClick?: () => void;
11
+ className?: string;
12
+ size?: PaginationSize;
13
+ "aria-label"?: string;
14
+ }
15
+ interface PaginationFullProps {
16
+ current: number;
17
+ total: number;
18
+ pageSize?: number;
19
+ onPageChange: (page: number) => void;
20
+ siblingCount?: number;
21
+ className?: string;
22
+ size?: PaginationSize;
23
+ variant?: PaginationVariant;
24
+ showFirstLast?: boolean;
25
+ showPrevNext?: boolean;
26
+ infoClassName?: string;
27
+ }
28
+ interface PaginationDocsProps {
29
+ prev?: {
30
+ href: string;
31
+ title: string;
32
+ };
33
+ next?: {
34
+ href: string;
35
+ title: string;
36
+ };
37
+ className?: string;
38
+ prevIcon?: ReactNode;
39
+ nextIcon?: ReactNode;
40
+ linkClassName?: string;
41
+ }
42
+ interface PaginationButtonsProps {
43
+ page: number;
44
+ totalPages: number;
45
+ onPageChange: (page: number) => void;
46
+ className?: string;
47
+ size?: PaginationSize;
48
+ showFirstLast?: boolean;
49
+ showPrevNext?: boolean;
50
+ prevLabel?: string;
51
+ nextLabel?: string;
52
+ firstLabel?: string;
53
+ lastLabel?: string;
54
+ disabled?: boolean;
55
+ }
56
+ interface PaginationRangeProps {
57
+ start: number;
58
+ end: number;
59
+ total: number;
60
+ current: number;
61
+ onPageChange: (page: number) => void;
62
+ siblingCount?: number;
63
+ className?: string;
64
+ size?: PaginationSize;
65
+ variant?: PaginationVariant;
66
+ }
67
+ interface PaginationInfoProps {
68
+ current: number;
69
+ total: number;
70
+ pageSize?: number;
71
+ className?: string;
72
+ label?: string;
73
+ showTotal?: boolean;
74
+ }
75
+ declare function getPaginationRange({ totalCount, pageSize, siblingCount, currentPage, }: {
76
+ totalCount: number;
77
+ pageSize: number;
78
+ siblingCount?: number;
79
+ currentPage: number;
80
+ }): (number | "ellipsis")[];
81
+ declare function PaginationItem({ children, active, disabled, onClick, className, size, "aria-label": ariaLabel, }: PaginationItemProps): react_jsx_runtime.JSX.Element;
82
+ declare function PaginationButtons({ page, totalPages, onPageChange, className, size, showFirstLast, showPrevNext, prevLabel, nextLabel, firstLabel, lastLabel, disabled, }: PaginationButtonsProps): react_jsx_runtime.JSX.Element;
83
+ declare function PaginationRange({ start, end, total, current, onPageChange, siblingCount, className, size, variant, }: PaginationRangeProps): react_jsx_runtime.JSX.Element;
84
+ declare function PaginationInfo({ current, total, pageSize, className, label, showTotal, }: PaginationInfoProps): react_jsx_runtime.JSX.Element;
85
+ declare function PaginationFull({ current, total, pageSize, onPageChange, siblingCount, className, size, variant, showFirstLast, showPrevNext, infoClassName, }: PaginationFullProps): react_jsx_runtime.JSX.Element;
86
+ declare function PaginationDocs({ prev, next, className, prevIcon, nextIcon, linkClassName, }: PaginationDocsProps): react_jsx_runtime.JSX.Element;
87
+
88
+ export { PaginationButtons, type PaginationButtonsProps, PaginationDocs, type PaginationDocsProps, PaginationFull, type PaginationFullProps, PaginationInfo, type PaginationInfoProps, PaginationItem, type PaginationItemProps, PaginationRange, type PaginationRangeProps, type PaginationSize, type PaginationVariant, getPaginationRange };
@@ -0,0 +1,88 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ type PaginationSize = "lg" | "md" | "sm" | "xs";
5
+ type PaginationVariant = "default" | "square" | "rounded";
6
+ interface PaginationItemProps {
7
+ children: ReactNode;
8
+ active?: boolean;
9
+ disabled?: boolean;
10
+ onClick?: () => void;
11
+ className?: string;
12
+ size?: PaginationSize;
13
+ "aria-label"?: string;
14
+ }
15
+ interface PaginationFullProps {
16
+ current: number;
17
+ total: number;
18
+ pageSize?: number;
19
+ onPageChange: (page: number) => void;
20
+ siblingCount?: number;
21
+ className?: string;
22
+ size?: PaginationSize;
23
+ variant?: PaginationVariant;
24
+ showFirstLast?: boolean;
25
+ showPrevNext?: boolean;
26
+ infoClassName?: string;
27
+ }
28
+ interface PaginationDocsProps {
29
+ prev?: {
30
+ href: string;
31
+ title: string;
32
+ };
33
+ next?: {
34
+ href: string;
35
+ title: string;
36
+ };
37
+ className?: string;
38
+ prevIcon?: ReactNode;
39
+ nextIcon?: ReactNode;
40
+ linkClassName?: string;
41
+ }
42
+ interface PaginationButtonsProps {
43
+ page: number;
44
+ totalPages: number;
45
+ onPageChange: (page: number) => void;
46
+ className?: string;
47
+ size?: PaginationSize;
48
+ showFirstLast?: boolean;
49
+ showPrevNext?: boolean;
50
+ prevLabel?: string;
51
+ nextLabel?: string;
52
+ firstLabel?: string;
53
+ lastLabel?: string;
54
+ disabled?: boolean;
55
+ }
56
+ interface PaginationRangeProps {
57
+ start: number;
58
+ end: number;
59
+ total: number;
60
+ current: number;
61
+ onPageChange: (page: number) => void;
62
+ siblingCount?: number;
63
+ className?: string;
64
+ size?: PaginationSize;
65
+ variant?: PaginationVariant;
66
+ }
67
+ interface PaginationInfoProps {
68
+ current: number;
69
+ total: number;
70
+ pageSize?: number;
71
+ className?: string;
72
+ label?: string;
73
+ showTotal?: boolean;
74
+ }
75
+ declare function getPaginationRange({ totalCount, pageSize, siblingCount, currentPage, }: {
76
+ totalCount: number;
77
+ pageSize: number;
78
+ siblingCount?: number;
79
+ currentPage: number;
80
+ }): (number | "ellipsis")[];
81
+ declare function PaginationItem({ children, active, disabled, onClick, className, size, "aria-label": ariaLabel, }: PaginationItemProps): react_jsx_runtime.JSX.Element;
82
+ declare function PaginationButtons({ page, totalPages, onPageChange, className, size, showFirstLast, showPrevNext, prevLabel, nextLabel, firstLabel, lastLabel, disabled, }: PaginationButtonsProps): react_jsx_runtime.JSX.Element;
83
+ declare function PaginationRange({ start, end, total, current, onPageChange, siblingCount, className, size, variant, }: PaginationRangeProps): react_jsx_runtime.JSX.Element;
84
+ declare function PaginationInfo({ current, total, pageSize, className, label, showTotal, }: PaginationInfoProps): react_jsx_runtime.JSX.Element;
85
+ declare function PaginationFull({ current, total, pageSize, onPageChange, siblingCount, className, size, variant, showFirstLast, showPrevNext, infoClassName, }: PaginationFullProps): react_jsx_runtime.JSX.Element;
86
+ declare function PaginationDocs({ prev, next, className, prevIcon, nextIcon, linkClassName, }: PaginationDocsProps): react_jsx_runtime.JSX.Element;
87
+
88
+ export { PaginationButtons, type PaginationButtonsProps, PaginationDocs, type PaginationDocsProps, PaginationFull, type PaginationFullProps, PaginationInfo, type PaginationInfoProps, PaginationItem, type PaginationItemProps, PaginationRange, type PaginationRangeProps, type PaginationSize, type PaginationVariant, getPaginationRange };
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ PaginationButtons,
5
+ PaginationDocs,
6
+ PaginationFull,
7
+ PaginationInfo,
8
+ PaginationItem,
9
+ PaginationRange,
10
+ getPaginationRange
11
+ } from "./chunk-ZMIZV66S.js";
12
+ import "./chunk-NJKWNMJF.js";
13
+ export {
14
+ PaginationButtons,
15
+ PaginationDocs,
16
+ PaginationFull,
17
+ PaginationInfo,
18
+ PaginationItem,
19
+ PaginationRange,
20
+ getPaginationRange
21
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+
4
+ var _chunkBCJ3FW3Ycjs = require('./chunk-BCJ3FW3Y.cjs');
5
+ require('./chunk-7HHY2WDF.cjs');
6
+
7
+
8
+ exports.ThemeControllerToggle = _chunkBCJ3FW3Ycjs.ThemeControllerToggle;
@@ -0,0 +1,21 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+ import { a as Size } from './types-BZI5Cv8-.cjs';
4
+
5
+ interface ThemeControllerToggleProps {
6
+ defaultTheme?: string;
7
+ lightTheme?: string;
8
+ darkTheme?: string;
9
+ onThemeChange?: (theme: string) => void;
10
+ className?: string;
11
+ label?: ReactNode;
12
+ size?: Size;
13
+ children?: (state: {
14
+ isDark: boolean;
15
+ checked: boolean;
16
+ toggle: (checked: boolean) => void;
17
+ }) => ReactNode;
18
+ }
19
+ declare function ThemeControllerToggle({ defaultTheme, lightTheme, darkTheme, onThemeChange, className, label, size, children, }: ThemeControllerToggleProps): react_jsx_runtime.JSX.Element;
20
+
21
+ export { ThemeControllerToggle, type ThemeControllerToggleProps };
@@ -0,0 +1,21 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+ import { a as Size } from './types-BZI5Cv8-.js';
4
+
5
+ interface ThemeControllerToggleProps {
6
+ defaultTheme?: string;
7
+ lightTheme?: string;
8
+ darkTheme?: string;
9
+ onThemeChange?: (theme: string) => void;
10
+ className?: string;
11
+ label?: ReactNode;
12
+ size?: Size;
13
+ children?: (state: {
14
+ isDark: boolean;
15
+ checked: boolean;
16
+ toggle: (checked: boolean) => void;
17
+ }) => ReactNode;
18
+ }
19
+ declare function ThemeControllerToggle({ defaultTheme, lightTheme, darkTheme, onThemeChange, className, label, size, children, }: ThemeControllerToggleProps): react_jsx_runtime.JSX.Element;
20
+
21
+ export { ThemeControllerToggle, type ThemeControllerToggleProps };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ ThemeControllerToggle
5
+ } from "./chunk-HTNZRBKW.js";
6
+ import "./chunk-NJKWNMJF.js";
7
+ export {
8
+ ThemeControllerToggle
9
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+
4
+
5
+ var _chunkACEM5N2Ycjs = require('./chunk-ACEM5N2Y.cjs');
6
+ require('./chunk-7HHY2WDF.cjs');
7
+
8
+
9
+
10
+ exports.Toggle = _chunkACEM5N2Ycjs.Toggle; exports.ToggleGroup = _chunkACEM5N2Ycjs.ToggleGroup;
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { InputHTMLAttributes, ReactNode } from 'react';
4
+ import { C as Color, a as Size } from './types-BZI5Cv8-.cjs';
5
+
6
+ type ToggleColor = Color;
7
+ type ToggleSize = Size;
8
+ interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
9
+ color?: ToggleColor;
10
+ size?: ToggleSize;
11
+ label?: ReactNode;
12
+ description?: ReactNode;
13
+ indeterminate?: boolean;
14
+ containerClassName?: string;
15
+ labelClassName?: string;
16
+ descriptionClassName?: string;
17
+ }
18
+ declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLInputElement>>;
19
+ interface ToggleGroupItem {
20
+ value: string;
21
+ label: ReactNode;
22
+ disabled?: boolean;
23
+ }
24
+ interface ToggleGroupProps {
25
+ items: ToggleGroupItem[];
26
+ value?: string[];
27
+ defaultValue?: string[];
28
+ onChange?: (value: string[]) => void;
29
+ color?: ToggleColor;
30
+ size?: ToggleSize;
31
+ controlled?: boolean;
32
+ className?: string;
33
+ }
34
+ declare function ToggleGroup({ items, value, defaultValue, onChange, color, size, controlled, className, }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
35
+
36
+ export { Toggle, type ToggleColor, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps, type ToggleProps, type ToggleSize };
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { InputHTMLAttributes, ReactNode } from 'react';
4
+ import { C as Color, a as Size } from './types-BZI5Cv8-.js';
5
+
6
+ type ToggleColor = Color;
7
+ type ToggleSize = Size;
8
+ interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
9
+ color?: ToggleColor;
10
+ size?: ToggleSize;
11
+ label?: ReactNode;
12
+ description?: ReactNode;
13
+ indeterminate?: boolean;
14
+ containerClassName?: string;
15
+ labelClassName?: string;
16
+ descriptionClassName?: string;
17
+ }
18
+ declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLInputElement>>;
19
+ interface ToggleGroupItem {
20
+ value: string;
21
+ label: ReactNode;
22
+ disabled?: boolean;
23
+ }
24
+ interface ToggleGroupProps {
25
+ items: ToggleGroupItem[];
26
+ value?: string[];
27
+ defaultValue?: string[];
28
+ onChange?: (value: string[]) => void;
29
+ color?: ToggleColor;
30
+ size?: ToggleSize;
31
+ controlled?: boolean;
32
+ className?: string;
33
+ }
34
+ declare function ToggleGroup({ items, value, defaultValue, onChange, color, size, controlled, className, }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
35
+
36
+ export { Toggle, type ToggleColor, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps, type ToggleProps, type ToggleSize };
package/dist/toggle.js ADDED
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ Toggle,
5
+ ToggleGroup
6
+ } from "./chunk-I4CZWV3M.js";
7
+ import "./chunk-NJKWNMJF.js";
8
+ export {
9
+ Toggle,
10
+ ToggleGroup
11
+ };
@@ -0,0 +1,6 @@
1
+ type Size = "xs" | "sm" | "md" | "lg";
2
+ type Color = "primary" | "secondary" | "accent" | "neutral" | "success" | "warning" | "info" | "error";
3
+ type Side = "left" | "right";
4
+ type Placement = "top" | "middle" | "bottom";
5
+
6
+ export type { Color as C, Placement as P, Side as S, Size as a };
@@ -0,0 +1,6 @@
1
+ type Size = "xs" | "sm" | "md" | "lg";
2
+ type Color = "primary" | "secondary" | "accent" | "neutral" | "success" | "warning" | "info" | "error";
3
+ type Side = "left" | "right";
4
+ type Placement = "top" | "middle" | "bottom";
5
+
6
+ export type { Color as C, Placement as P, Side as S, Size as a };
package/package.json ADDED
@@ -0,0 +1,200 @@
1
+ {
2
+ "name": "@docubook/ui-react",
3
+ "version": "0.1.0",
4
+ "description": "React + DaisyUI component library for documentation sites",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ },
20
+ "./cn": {
21
+ "import": {
22
+ "types": "./dist/cn.d.ts",
23
+ "default": "./dist/cn.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/cn.d.cts",
27
+ "default": "./dist/cn.cjs"
28
+ }
29
+ },
30
+ "./input": {
31
+ "import": {
32
+ "types": "./dist/input.d.ts",
33
+ "default": "./dist/input.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/input.d.cts",
37
+ "default": "./dist/input.cjs"
38
+ }
39
+ },
40
+ "./kbd": {
41
+ "import": {
42
+ "types": "./dist/kbd.d.ts",
43
+ "default": "./dist/kbd.js"
44
+ },
45
+ "require": {
46
+ "types": "./dist/kbd.d.cts",
47
+ "default": "./dist/kbd.cjs"
48
+ }
49
+ },
50
+ "./toggle": {
51
+ "import": {
52
+ "types": "./dist/toggle.d.ts",
53
+ "default": "./dist/toggle.js"
54
+ },
55
+ "require": {
56
+ "types": "./dist/toggle.d.cts",
57
+ "default": "./dist/toggle.cjs"
58
+ }
59
+ },
60
+ "./dropdown": {
61
+ "import": {
62
+ "types": "./dist/dropdown.d.ts",
63
+ "default": "./dist/dropdown.js"
64
+ },
65
+ "require": {
66
+ "types": "./dist/dropdown.d.cts",
67
+ "default": "./dist/dropdown.cjs"
68
+ }
69
+ },
70
+ "./modal": {
71
+ "import": {
72
+ "types": "./dist/modal.d.ts",
73
+ "default": "./dist/modal.js"
74
+ },
75
+ "require": {
76
+ "types": "./dist/modal.d.cts",
77
+ "default": "./dist/modal.cjs"
78
+ }
79
+ },
80
+ "./drawer": {
81
+ "import": {
82
+ "types": "./dist/drawer.d.ts",
83
+ "default": "./dist/drawer.js"
84
+ },
85
+ "require": {
86
+ "types": "./dist/drawer.d.cts",
87
+ "default": "./dist/drawer.cjs"
88
+ }
89
+ },
90
+ "./collapse": {
91
+ "import": {
92
+ "types": "./dist/collapse.d.ts",
93
+ "default": "./dist/collapse.js"
94
+ },
95
+ "require": {
96
+ "types": "./dist/collapse.d.cts",
97
+ "default": "./dist/collapse.cjs"
98
+ }
99
+ },
100
+ "./theme-controller": {
101
+ "import": {
102
+ "types": "./dist/theme-controller.d.ts",
103
+ "default": "./dist/theme-controller.js"
104
+ },
105
+ "require": {
106
+ "types": "./dist/theme-controller.d.cts",
107
+ "default": "./dist/theme-controller.cjs"
108
+ }
109
+ },
110
+ "./navbar": {
111
+ "import": {
112
+ "types": "./dist/navbar.d.ts",
113
+ "default": "./dist/navbar.js"
114
+ },
115
+ "require": {
116
+ "types": "./dist/navbar.d.cts",
117
+ "default": "./dist/navbar.cjs"
118
+ }
119
+ },
120
+ "./breadcrumbs": {
121
+ "import": {
122
+ "types": "./dist/breadcrumbs.d.ts",
123
+ "default": "./dist/breadcrumbs.js"
124
+ },
125
+ "require": {
126
+ "types": "./dist/breadcrumbs.d.cts",
127
+ "default": "./dist/breadcrumbs.cjs"
128
+ }
129
+ },
130
+ "./pagination": {
131
+ "import": {
132
+ "types": "./dist/pagination.d.ts",
133
+ "default": "./dist/pagination.js"
134
+ },
135
+ "require": {
136
+ "types": "./dist/pagination.d.cts",
137
+ "default": "./dist/pagination.cjs"
138
+ }
139
+ }
140
+ },
141
+ "files": [
142
+ "dist",
143
+ "README.md"
144
+ ],
145
+ "sideEffects": false,
146
+ "scripts": {
147
+ "build": "tsup",
148
+ "dev": "tsup --watch",
149
+ "typecheck": "tsc --noEmit",
150
+ "lint": "eslint src --ext .ts,.tsx",
151
+ "test": "vitest run",
152
+ "test:watch": "vitest",
153
+ "clean": "rm -rf dist",
154
+ "prepublishOnly": "pnpm run clean && pnpm run build && pnpm run lint && pnpm run typecheck && pnpm run test"
155
+ },
156
+ "peerDependencies": {
157
+ "daisyui": ">=5.0.0 <6.0.0",
158
+ "lucide-react": ">=1.0.0",
159
+ "react": ">=18.0.0",
160
+ "tailwindcss": ">=4.0.0"
161
+ },
162
+ "peerDependenciesMeta": {
163
+ "lucide-react": {
164
+ "optional": true
165
+ }
166
+ },
167
+ "devDependencies": {
168
+ "@testing-library/jest-dom": "^6.9.1",
169
+ "@testing-library/react": "^16.3.0",
170
+ "@types/react": "^19.2.0",
171
+ "jsdom": "^26.1.0",
172
+ "react": "^19.2.0",
173
+ "react-dom": "^19.2.0",
174
+ "tsup": "^8.5.0",
175
+ "typescript": "^5.9.3",
176
+ "vitest": "^4.1.6"
177
+ },
178
+ "publishConfig": {
179
+ "access": "public"
180
+ },
181
+ "homepage": "https://docubook.pro/",
182
+ "repository": {
183
+ "type": "git",
184
+ "url": "git+https://github.com/DocuBook/docubook.git",
185
+ "directory": "packages/ui/react"
186
+ },
187
+ "author": "wildan.nrs",
188
+ "author-url": "https://wildan.dev",
189
+ "license": "MIT",
190
+ "keywords": [
191
+ "docubook",
192
+ "documentation",
193
+ "static-site",
194
+ "daisyui",
195
+ "bun",
196
+ "docs framework",
197
+ "ui",
198
+ "tailwindcss"
199
+ ]
200
+ }