@docubook/ui-react 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -45,6 +45,37 @@ import { Modal, Collapse, Input, Navbar } from "@docubook/ui-react";
45
45
  | `Toggle`, `ToggleGroup` | `@docubook/ui-react/toggle` | Toggle switch with label/description |
46
46
  | `Dropdown`, `DropdownItem`, `DropdownLink` | `@docubook/ui-react/dropdown` | Details-based dropdown menu |
47
47
 
48
+ #### FnKey with Lucide Icons
49
+
50
+ `FnKey` renders HTML entities by default. Call `FnKey.configure()` once at your app entry point to use Lucide icons instead:
51
+
52
+ ```tsx
53
+ // app/layout.tsx or main.tsx
54
+ import {
55
+ Command, Option, ChevronUp, ArrowBigUp,
56
+ CircleArrowOutUpLeft, Space, Delete, ArrowRightToLine,
57
+ ChevronDown, ChevronLeft, ChevronRight,
58
+ } from "lucide-react";
59
+ import { FnKey } from "@docubook/ui-react/kbd";
60
+
61
+ FnKey.configure({
62
+ Command, Option, ChevronUp, ArrowBigUp,
63
+ CircleArrowOutUpLeft, Space, Delete, ArrowRightToLine,
64
+ ChevronDown, ChevronLeft, ChevronRight,
65
+ });
66
+ ```
67
+
68
+ Then use `FnKey` anywhere — icons are applied globally:
69
+
70
+ ```tsx
71
+ import { Kbd, FnKey } from "@docubook/ui-react/kbd";
72
+
73
+ <Kbd><FnKey.Cmd /></Kbd> // → Command icon
74
+ <Kbd><FnKey.Shift /></Kbd> // → ArrowBigUp icon
75
+ ```
76
+
77
+ Without `configure()`, all keys fall back to HTML entities automatically.
78
+
48
79
  #### PaginationDocs with Custom Icons
49
80
 
50
81
  ```tsx
@@ -74,7 +105,7 @@ import { ChevronLeft, ChevronRight } from "lucide-react";
74
105
  | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------- | ------------------------- |
75
106
  | `Navbar`, `Logo`, `NavMenu`, `NavMenuLink` | `@docubook/ui-react/navbar` | Navigation bar components |
76
107
  | `Breadcrumb`, `BreadcrumbItem`, `BreadcrumbPage`, `BreadcrumbList` | `@docubook/ui-react/breadcrumbs` | Breadcrumb navigation |
77
- | `PaginationItem`, `PaginationFull`, `PaginationDocs`, `PaginationButtons`, `PaginationRange`, `PaginationInfo`, `getPaginationRange` | `@docubook/ui-react/pagination` | Page navigation utilities |
108
+ | `PaginationDocs` | `@docubook/ui-react/pagination` | Page navigation utilities |
78
109
 
79
110
  ### Utilities
80
111
 
@@ -15,7 +15,7 @@ function Logo({ src, alt, text, href = "/", className }) {
15
15
  }
16
16
  function NavMenu({ items, activePath, className }) {
17
17
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk2DFF5NELcjs.cn.call(void 0, "menu menu-horizontal gap-1", className), children: items.map((item) => {
18
- const isActive = activePath ? item.href === "/" ? activePath === "/" : activePath.startsWith(item.href) : false;
18
+ const isActive = activePath ? item.href === "/" ? activePath === "/" : activePath === item.href || activePath.startsWith(item.href + "/") : false;
19
19
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
20
20
  "a",
21
21
  {
@@ -0,0 +1,45 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues,
5
+ cn
6
+ } from "./chunk-GRADTONK.js";
7
+
8
+ // src/base/kbd.tsx
9
+ import { forwardRef } from "react";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var Kbd = forwardRef(
12
+ (_a, ref) => {
13
+ var _b = _a, { children, className, size } = _b, props = __objRest(_b, ["children", "className", "size"]);
14
+ return /* @__PURE__ */ jsx("kbd", __spreadProps(__spreadValues({ ref, className: cn("kbd", size && `kbd-${size}`, className) }, props), { children }));
15
+ }
16
+ );
17
+ Kbd.displayName = "Kbd";
18
+ var _icons = {};
19
+ var iconSize = 12;
20
+ function Key({ icon: Icon, entity }) {
21
+ if (Icon) return /* @__PURE__ */ jsx(Icon, { size: iconSize });
22
+ return /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: entity });
23
+ }
24
+ var FnKey = {
25
+ configure(icons) {
26
+ _icons = icons;
27
+ },
28
+ Cmd: () => /* @__PURE__ */ jsx(Key, { icon: _icons.Command, entity: "\u2318" }),
29
+ Option: () => /* @__PURE__ */ jsx(Key, { icon: _icons.Option, entity: "\u2325" }),
30
+ Ctrl: () => /* @__PURE__ */ jsx(Key, { icon: _icons.ChevronUp, entity: "\u2303" }),
31
+ Shift: () => /* @__PURE__ */ jsx(Key, { icon: _icons.ArrowBigUp, entity: "\u21E7" }),
32
+ Esc: () => /* @__PURE__ */ jsx(Key, { icon: _icons.CircleArrowOutUpLeft, entity: "\u238B" }),
33
+ Space: () => /* @__PURE__ */ jsx(Key, { icon: _icons.Space, entity: "\u2423" }),
34
+ Delete: () => /* @__PURE__ */ jsx(Key, { icon: _icons.Delete, entity: "\u232B" }),
35
+ Tab: () => /* @__PURE__ */ jsx(Key, { icon: _icons.ArrowRightToLine, entity: "\u21E5" }),
36
+ Up: () => /* @__PURE__ */ jsx(Key, { icon: _icons.ChevronUp, entity: "\u2191" }),
37
+ Down: () => /* @__PURE__ */ jsx(Key, { icon: _icons.ChevronDown, entity: "\u2193" }),
38
+ Left: () => /* @__PURE__ */ jsx(Key, { icon: _icons.ChevronLeft, entity: "\u2190" }),
39
+ Right: () => /* @__PURE__ */ jsx(Key, { icon: _icons.ChevronRight, entity: "\u2192" })
40
+ };
41
+
42
+ export {
43
+ Kbd,
44
+ FnKey
45
+ };
@@ -15,7 +15,7 @@ function Logo({ src, alt, text, href = "/", className }) {
15
15
  }
16
16
  function NavMenu({ items, activePath, className }) {
17
17
  return /* @__PURE__ */ jsx("ul", { className: cn("menu menu-horizontal gap-1", className), children: items.map((item) => {
18
- const isActive = activePath ? item.href === "/" ? activePath === "/" : activePath.startsWith(item.href) : false;
18
+ const isActive = activePath ? item.href === "/" ? activePath === "/" : activePath === item.href || activePath.startsWith(item.href + "/") : false;
19
19
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
20
20
  "a",
21
21
  {
@@ -0,0 +1,45 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunk2DFF5NELcjs = require('./chunk-2DFF5NEL.cjs');
7
+
8
+ // src/base/kbd.tsx
9
+ var _react = require('react');
10
+ var _jsxruntime = require('react/jsx-runtime');
11
+ var Kbd = _react.forwardRef.call(void 0,
12
+ (_a, ref) => {
13
+ var _b = _a, { children, className, size } = _b, props = _chunk2DFF5NELcjs.__objRest.call(void 0, _b, ["children", "className", "size"]);
14
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "kbd", _chunk2DFF5NELcjs.__spreadProps.call(void 0, _chunk2DFF5NELcjs.__spreadValues.call(void 0, { ref, className: _chunk2DFF5NELcjs.cn.call(void 0, "kbd", size && `kbd-${size}`, className) }, props), { children }));
15
+ }
16
+ );
17
+ Kbd.displayName = "Kbd";
18
+ var _icons = {};
19
+ var iconSize = 12;
20
+ function Key({ icon: Icon, entity }) {
21
+ if (Icon) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: iconSize });
22
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: entity });
23
+ }
24
+ var FnKey = {
25
+ configure(icons) {
26
+ _icons = icons;
27
+ },
28
+ Cmd: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.Command, entity: "\u2318" }),
29
+ Option: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.Option, entity: "\u2325" }),
30
+ Ctrl: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.ChevronUp, entity: "\u2303" }),
31
+ Shift: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.ArrowBigUp, entity: "\u21E7" }),
32
+ Esc: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.CircleArrowOutUpLeft, entity: "\u238B" }),
33
+ Space: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.Space, entity: "\u2423" }),
34
+ Delete: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.Delete, entity: "\u232B" }),
35
+ Tab: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.ArrowRightToLine, entity: "\u21E5" }),
36
+ Up: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.ChevronUp, entity: "\u2191" }),
37
+ Down: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.ChevronDown, entity: "\u2193" }),
38
+ Left: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.ChevronLeft, entity: "\u2190" }),
39
+ Right: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Key, { icon: _icons.ChevronRight, entity: "\u2192" })
40
+ };
41
+
42
+
43
+
44
+
45
+ exports.Kbd = Kbd; exports.FnKey = FnKey;
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@ var _chunkHTH2UTCLcjs = require('./chunk-HTH2UTCL.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkBXRTL6BJcjs = require('./chunk-BXRTL6BJ.cjs');
10
+ var _chunk6B7U7IWTcjs = require('./chunk-6B7U7IWT.cjs');
11
11
 
12
12
 
13
13
  var _chunkK22HSWMWcjs = require('./chunk-K22HSWMW.cjs');
@@ -47,7 +47,7 @@ var _chunkMWJV72OMcjs = require('./chunk-MWJV72OM.cjs');
47
47
 
48
48
 
49
49
 
50
- var _chunkK6B7XOJ5cjs = require('./chunk-K6B7XOJ5.cjs');
50
+ var _chunkTDFVUBGOcjs = require('./chunk-TDFVUBGO.cjs');
51
51
 
52
52
 
53
53
  var _chunk2DFF5NELcjs = require('./chunk-2DFF5NEL.cjs');
@@ -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 = _chunkLUVR2YGTcjs.Dropdown; exports.DropdownItem = _chunkLUVR2YGTcjs.DropdownItem; exports.DropdownLink = _chunkLUVR2YGTcjs.DropdownLink; exports.FnKey = _chunkK6B7XOJ5cjs.FnKey; exports.Input = _chunkMWJV72OMcjs.Input; exports.InputGroup = _chunkMWJV72OMcjs.InputGroup; exports.Kbd = _chunkK6B7XOJ5cjs.Kbd; exports.Logo = _chunkBXRTL6BJcjs.Logo; exports.Modal = _chunkHTH2UTCLcjs.Modal; exports.NavMenu = _chunkBXRTL6BJcjs.NavMenu; exports.NavMenuLink = _chunkBXRTL6BJcjs.NavMenuLink; exports.Navbar = _chunkBXRTL6BJcjs.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;
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 = _chunkLUVR2YGTcjs.Dropdown; exports.DropdownItem = _chunkLUVR2YGTcjs.DropdownItem; exports.DropdownLink = _chunkLUVR2YGTcjs.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
@@ -1,6 +1,6 @@
1
1
  export { cn } from './cn.cjs';
2
2
  export { Input, InputColor, InputGroup, InputGroupProps, InputProps, InputSize } from './input.cjs';
3
- export { FnKey, Kbd, KbdProps, KbdSize } from './kbd.cjs';
3
+ export { FnKey, FnKeyIcons, Kbd, KbdProps, KbdSize } from './kbd.cjs';
4
4
  export { Toggle, ToggleColor, ToggleGroup, ToggleGroupItem, ToggleGroupProps, ToggleProps, ToggleSize } from './toggle.cjs';
5
5
  export { Dropdown, DropdownItem, DropdownItemProps, DropdownLink, DropdownProps } from './dropdown.cjs';
6
6
  export { Modal, ModalProps, useModal } from './modal.cjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { cn } from './cn.js';
2
2
  export { Input, InputColor, InputGroup, InputGroupProps, InputProps, InputSize } from './input.js';
3
- export { FnKey, Kbd, KbdProps, KbdSize } from './kbd.js';
3
+ export { FnKey, FnKeyIcons, Kbd, KbdProps, KbdSize } from './kbd.js';
4
4
  export { Toggle, ToggleColor, ToggleGroup, ToggleGroupItem, ToggleGroupProps, ToggleProps, ToggleSize } from './toggle.js';
5
5
  export { Dropdown, DropdownItem, DropdownItemProps, DropdownLink, DropdownProps } from './dropdown.js';
6
6
  export { Modal, ModalProps, useModal } from './modal.js';
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  NavMenu,
8
8
  NavMenuLink,
9
9
  Navbar
10
- } from "./chunk-JHI4G22P.js";
10
+ } from "./chunk-RXFYKKNI.js";
11
11
  import {
12
12
  PaginationDocs
13
13
  } from "./chunk-4QUABBES.js";
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  FnKey,
49
49
  Kbd
50
- } from "./chunk-7BWAXCW2.js";
50
+ } from "./chunk-QOGH6NKS.js";
51
51
  import {
52
52
  cn
53
53
  } from "./chunk-GRADTONK.js";
package/dist/kbd.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkK6B7XOJ5cjs = require('./chunk-K6B7XOJ5.cjs');
5
+ var _chunkTDFVUBGOcjs = require('./chunk-TDFVUBGO.cjs');
6
6
  require('./chunk-2DFF5NEL.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.FnKey = _chunkK6B7XOJ5cjs.FnKey; exports.Kbd = _chunkK6B7XOJ5cjs.Kbd;
10
+ exports.FnKey = _chunkTDFVUBGOcjs.FnKey; exports.Kbd = _chunkTDFVUBGOcjs.Kbd;
package/dist/kbd.d.cts CHANGED
@@ -9,7 +9,24 @@ interface KbdProps extends React.HTMLAttributes<HTMLElement> {
9
9
  }
10
10
  declare const Kbd: react.ForwardRefExoticComponent<KbdProps & react.RefAttributes<HTMLElement>>;
11
11
 
12
+ type IconComponent = React.ComponentType<{
13
+ size?: number;
14
+ }>;
15
+ interface FnKeyIcons {
16
+ Command?: IconComponent;
17
+ Option?: IconComponent;
18
+ ArrowBigUp?: IconComponent;
19
+ CircleArrowOutUpLeft?: IconComponent;
20
+ Space?: IconComponent;
21
+ Delete?: IconComponent;
22
+ ArrowRightToLine?: IconComponent;
23
+ ChevronUp?: IconComponent;
24
+ ChevronDown?: IconComponent;
25
+ ChevronLeft?: IconComponent;
26
+ ChevronRight?: IconComponent;
27
+ }
12
28
  declare const FnKey: {
29
+ configure(icons: FnKeyIcons): void;
13
30
  Cmd: () => react_jsx_runtime.JSX.Element;
14
31
  Option: () => react_jsx_runtime.JSX.Element;
15
32
  Ctrl: () => react_jsx_runtime.JSX.Element;
@@ -24,4 +41,4 @@ declare const FnKey: {
24
41
  Right: () => react_jsx_runtime.JSX.Element;
25
42
  };
26
43
 
27
- export { FnKey, Kbd, type KbdProps, type KbdSize };
44
+ export { FnKey, type FnKeyIcons, Kbd, type KbdProps, type KbdSize };
package/dist/kbd.d.ts CHANGED
@@ -9,7 +9,24 @@ interface KbdProps extends React.HTMLAttributes<HTMLElement> {
9
9
  }
10
10
  declare const Kbd: react.ForwardRefExoticComponent<KbdProps & react.RefAttributes<HTMLElement>>;
11
11
 
12
+ type IconComponent = React.ComponentType<{
13
+ size?: number;
14
+ }>;
15
+ interface FnKeyIcons {
16
+ Command?: IconComponent;
17
+ Option?: IconComponent;
18
+ ArrowBigUp?: IconComponent;
19
+ CircleArrowOutUpLeft?: IconComponent;
20
+ Space?: IconComponent;
21
+ Delete?: IconComponent;
22
+ ArrowRightToLine?: IconComponent;
23
+ ChevronUp?: IconComponent;
24
+ ChevronDown?: IconComponent;
25
+ ChevronLeft?: IconComponent;
26
+ ChevronRight?: IconComponent;
27
+ }
12
28
  declare const FnKey: {
29
+ configure(icons: FnKeyIcons): void;
13
30
  Cmd: () => react_jsx_runtime.JSX.Element;
14
31
  Option: () => react_jsx_runtime.JSX.Element;
15
32
  Ctrl: () => react_jsx_runtime.JSX.Element;
@@ -24,4 +41,4 @@ declare const FnKey: {
24
41
  Right: () => react_jsx_runtime.JSX.Element;
25
42
  };
26
43
 
27
- export { FnKey, Kbd, type KbdProps, type KbdSize };
44
+ export { FnKey, type FnKeyIcons, Kbd, type KbdProps, type KbdSize };
package/dist/kbd.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  FnKey,
4
4
  Kbd
5
- } from "./chunk-7BWAXCW2.js";
5
+ } from "./chunk-QOGH6NKS.js";
6
6
  import "./chunk-GRADTONK.js";
7
7
  export {
8
8
  FnKey,
package/dist/navbar.cjs CHANGED
@@ -3,11 +3,11 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkBXRTL6BJcjs = require('./chunk-BXRTL6BJ.cjs');
6
+ var _chunk6B7U7IWTcjs = require('./chunk-6B7U7IWT.cjs');
7
7
  require('./chunk-2DFF5NEL.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
- exports.Logo = _chunkBXRTL6BJcjs.Logo; exports.NavMenu = _chunkBXRTL6BJcjs.NavMenu; exports.NavMenuLink = _chunkBXRTL6BJcjs.NavMenuLink; exports.Navbar = _chunkBXRTL6BJcjs.Navbar;
13
+ exports.Logo = _chunk6B7U7IWTcjs.Logo; exports.NavMenu = _chunk6B7U7IWTcjs.NavMenu; exports.NavMenuLink = _chunk6B7U7IWTcjs.NavMenuLink; exports.Navbar = _chunk6B7U7IWTcjs.Navbar;
package/dist/navbar.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  NavMenu,
4
4
  NavMenuLink,
5
5
  Navbar
6
- } from "./chunk-JHI4G22P.js";
6
+ } from "./chunk-RXFYKKNI.js";
7
7
  import "./chunk-GRADTONK.js";
8
8
  export {
9
9
  Logo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/ui-react",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "React + DaisyUI component library for documentation sites",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -178,7 +178,7 @@
178
178
  "publishConfig": {
179
179
  "access": "public"
180
180
  },
181
- "homepage": "https://docubook.pro/",
181
+ "homepage": "https://github.com/DocuBook/docubook/tree/main/packages/ui/react",
182
182
  "repository": {
183
183
  "type": "git",
184
184
  "url": "git+https://github.com/DocuBook/docubook.git",
@@ -1,37 +0,0 @@
1
- import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues,
5
- cn
6
- } from "./chunk-GRADTONK.js";
7
-
8
- // src/base/kbd.tsx
9
- import { forwardRef } from "react";
10
- import { jsx } from "react/jsx-runtime";
11
- var Kbd = forwardRef(
12
- (_a, ref) => {
13
- var _b = _a, { children, className, size } = _b, props = __objRest(_b, ["children", "className", "size"]);
14
- return /* @__PURE__ */ jsx("kbd", __spreadProps(__spreadValues({ ref, className: cn("kbd", size && `kbd-${size}`, className) }, props), { children }));
15
- }
16
- );
17
- Kbd.displayName = "Kbd";
18
- var iconSize = 12;
19
- var FnKey = {
20
- Cmd: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u2318" }),
21
- Option: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u2325" }),
22
- Ctrl: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u2303" }),
23
- Shift: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u21E7" }),
24
- Esc: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u238B" }),
25
- Space: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u2423" }),
26
- Delete: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u232B" }),
27
- Tab: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u21E5" }),
28
- Up: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u2191" }),
29
- Down: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u2193" }),
30
- Left: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u2190" }),
31
- Right: () => /* @__PURE__ */ jsx("span", { style: { fontSize: iconSize }, children: "\u2192" })
32
- };
33
-
34
- export {
35
- Kbd,
36
- FnKey
37
- };
@@ -1,37 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
- var _chunk2DFF5NELcjs = require('./chunk-2DFF5NEL.cjs');
7
-
8
- // src/base/kbd.tsx
9
- var _react = require('react');
10
- var _jsxruntime = require('react/jsx-runtime');
11
- var Kbd = _react.forwardRef.call(void 0,
12
- (_a, ref) => {
13
- var _b = _a, { children, className, size } = _b, props = _chunk2DFF5NELcjs.__objRest.call(void 0, _b, ["children", "className", "size"]);
14
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "kbd", _chunk2DFF5NELcjs.__spreadProps.call(void 0, _chunk2DFF5NELcjs.__spreadValues.call(void 0, { ref, className: _chunk2DFF5NELcjs.cn.call(void 0, "kbd", size && `kbd-${size}`, className) }, props), { children }));
15
- }
16
- );
17
- Kbd.displayName = "Kbd";
18
- var iconSize = 12;
19
- var FnKey = {
20
- Cmd: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u2318" }),
21
- Option: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u2325" }),
22
- Ctrl: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u2303" }),
23
- Shift: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u21E7" }),
24
- Esc: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u238B" }),
25
- Space: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u2423" }),
26
- Delete: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u232B" }),
27
- Tab: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u21E5" }),
28
- Up: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u2191" }),
29
- Down: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u2193" }),
30
- Left: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u2190" }),
31
- Right: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontSize: iconSize }, children: "\u2192" })
32
- };
33
-
34
-
35
-
36
-
37
- exports.Kbd = Kbd; exports.FnKey = FnKey;