fumadocs-ui 16.2.4 → 16.3.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/README.md +1 -1
- package/css/black.css +1 -39
- package/css/catppuccin.css +1 -49
- package/css/dusk.css +1 -47
- package/css/neutral.css +1 -7
- package/css/ocean.css +1 -48
- package/css/preset.css +1 -215
- package/css/purple.css +1 -39
- package/css/shadcn.css +1 -35
- package/css/solar.css +1 -75
- package/css/vitepress.css +1 -77
- package/dist/components/accordion.d.ts +5 -6
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/accordion.js +12 -14
- package/dist/components/banner.js +2 -2
- package/dist/components/callout.d.ts.map +1 -1
- package/dist/components/callout.js +2 -2
- package/dist/components/card.js +1 -1
- package/dist/components/codeblock.d.ts +1 -1
- package/dist/components/codeblock.d.ts.map +1 -1
- package/dist/components/codeblock.js +5 -5
- package/dist/components/dialog/search.js +2 -2
- package/dist/components/dynamic-codeblock.js +1 -1
- package/dist/components/files.js +2 -2
- package/dist/components/github-info.js +2 -2
- package/dist/components/heading.js +2 -2
- package/dist/components/inline-toc.js +2 -2
- package/dist/components/sidebar/base.d.ts +2 -2
- package/dist/components/sidebar/base.d.ts.map +1 -1
- package/dist/components/sidebar/base.js +4 -4
- package/dist/components/sidebar/link-item.d.ts +1 -1
- package/dist/components/sidebar/link-item.d.ts.map +1 -1
- package/dist/components/sidebar/tabs/dropdown.d.ts +1 -0
- package/dist/components/sidebar/tabs/dropdown.d.ts.map +1 -1
- package/dist/components/sidebar/tabs/dropdown.js +8 -3
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +2 -2
- package/dist/components/toc/clerk.d.ts +1 -2
- package/dist/components/toc/clerk.d.ts.map +1 -1
- package/dist/components/toc/clerk.js +1 -76
- package/dist/components/toc/default.d.ts +1 -2
- package/dist/components/toc/default.d.ts.map +1 -1
- package/dist/components/toc/default.js +1 -19
- package/dist/components/toc/index.d.ts +1 -10
- package/dist/components/toc/index.d.ts.map +1 -1
- package/dist/components/toc/index.js +1 -64
- package/dist/components/type-table.js +2 -2
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +20 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/collapsible.d.ts +7 -4
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +6 -7
- package/dist/components/ui/navigation-menu.d.ts +2 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/scroll-area.d.ts +5 -4
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +8 -8
- package/dist/components/{tabs.unstyled.d.ts → ui/tabs.d.ts} +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/{tabs.unstyled.js → ui/tabs.js} +1 -1
- package/dist/contexts/i18n.d.ts +1 -29
- package/dist/contexts/i18n.d.ts.map +1 -1
- package/dist/contexts/i18n.js +1 -23
- package/dist/contexts/search.d.ts +1 -60
- package/dist/contexts/search.d.ts.map +1 -1
- package/dist/contexts/search.js +1 -58
- package/dist/contexts/tree.d.ts +1 -14
- package/dist/contexts/tree.d.ts.map +1 -1
- package/dist/contexts/tree.js +1 -31
- package/dist/i18n.d.ts +1 -14
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +1 -16
- package/dist/layouts/docs/client.d.ts.map +1 -1
- package/dist/layouts/docs/client.js +3 -3
- package/dist/layouts/docs/index.js +4 -4
- package/dist/layouts/docs/page/client.js +6 -6
- package/dist/layouts/docs/page/index.js +2 -2
- package/dist/layouts/docs/sidebar.d.ts +1 -1
- package/dist/layouts/docs/sidebar.js +4 -4
- package/dist/layouts/home/client.d.ts +1 -1
- package/dist/layouts/home/client.js +4 -4
- package/dist/layouts/home/index.js +1 -1
- package/dist/layouts/home/navbar.d.ts +1 -1
- package/dist/layouts/home/navbar.d.ts.map +1 -1
- package/dist/layouts/home/navbar.js +1 -1
- package/dist/layouts/notebook/client.d.ts +3 -3
- package/dist/layouts/notebook/client.d.ts.map +1 -1
- package/dist/layouts/notebook/client.js +5 -5
- package/dist/layouts/notebook/index.js +4 -4
- package/dist/layouts/notebook/page/client.js +6 -6
- package/dist/layouts/notebook/page/index.js +2 -2
- package/dist/layouts/notebook/sidebar.d.ts +1 -1
- package/dist/layouts/notebook/sidebar.js +2 -2
- package/dist/layouts/shared/index.d.ts +2 -2
- package/dist/layouts/shared/index.d.ts.map +1 -1
- package/dist/layouts/shared/language-toggle.js +1 -1
- package/dist/layouts/shared/search-toggle.js +2 -2
- package/dist/layouts/shared/theme-toggle.js +2 -2
- package/dist/mdx.js +1 -1
- package/dist/mdx.server.d.ts +1 -1
- package/dist/mdx.server.d.ts.map +1 -1
- package/dist/mdx.server.js +1 -14
- package/dist/og.d.ts +1 -14
- package/dist/og.d.ts.map +1 -1
- package/dist/og.js +1 -45
- package/dist/page.d.ts.map +1 -1
- package/dist/page.js +1 -1
- package/dist/provider/base.d.ts +3 -22
- package/dist/provider/base.d.ts.map +1 -1
- package/dist/provider/base.js +4 -34
- package/dist/style.css +64 -131
- package/dist/utils/use-copy-button.d.ts +1 -2
- package/dist/utils/use-copy-button.d.ts.map +1 -1
- package/dist/utils/use-copy-button.js +1 -27
- package/dist/utils/use-footer-items.d.ts +1 -5
- package/dist/utils/use-footer-items.d.ts.map +1 -1
- package/dist/utils/use-footer-items.js +1 -27
- package/dist/utils/use-is-scroll-top.d.ts +1 -3
- package/dist/utils/use-is-scroll-top.d.ts.map +1 -1
- package/dist/utils/use-is-scroll-top.js +1 -17
- package/package.json +12 -25
- package/css/colors/index.css +0 -51
- package/css/shiki.css +0 -90
- package/dist/components/tabs.unstyled.d.ts.map +0 -1
- package/dist/icons.d.ts +0 -49
- package/dist/icons.d.ts.map +0 -1
- package/dist/icons.js +0 -282
- package/dist/layouts/shared/link-item.d.ts +0 -78
- package/dist/layouts/shared/link-item.d.ts.map +0 -1
- package/dist/layouts/shared/link-item.js +0 -12
- package/dist/theme/typography/index.d.ts +0 -10
- package/dist/theme/typography/index.d.ts.map +0 -1
- package/dist/theme/typography/index.js +0 -137
- package/dist/theme/typography/styles.d.ts +0 -93
- package/dist/theme/typography/styles.d.ts.map +0 -1
- package/dist/theme/typography/styles.js +0 -433
- package/dist/utils/cn.d.ts +0 -2
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.js +0 -1
- package/dist/utils/is-active.d.ts +0 -4
- package/dist/utils/is-active.d.ts.map +0 -1
- package/dist/utils/is-active.js +0 -15
- package/dist/utils/merge-refs.d.ts +0 -3
- package/dist/utils/merge-refs.d.ts.map +0 -1
- package/dist/utils/merge-refs.js +0 -12
package/css/shiki.css
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
.shiki:not(.not-fumadocs-codeblock *) {
|
|
2
|
-
--padding-left: calc(var(--spacing) * 4);
|
|
3
|
-
--padding-right: calc(var(--spacing) * 4);
|
|
4
|
-
|
|
5
|
-
code span {
|
|
6
|
-
color: var(--shiki-light);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.dark .shiki:not(.not-fumadocs-codeblock *) {
|
|
11
|
-
code span {
|
|
12
|
-
color: var(--shiki-dark);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:is(pre *):is(.shiki *):not(.not-fumadocs-codeblock *) {
|
|
17
|
-
.line& {
|
|
18
|
-
position: relative;
|
|
19
|
-
min-height: 1lh;
|
|
20
|
-
padding-left: var(--padding-left);
|
|
21
|
-
padding-right: var(--padding-right);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.has-focused .line&:not(.focused) {
|
|
25
|
-
filter: blur(2px);
|
|
26
|
-
transition: filter 200ms;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.has-focused:hover .line&:not(.focused) {
|
|
30
|
-
filter: blur(0);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
[data-line-numbers] .twoslash-meta-line& {
|
|
34
|
-
padding-left: calc(var(--padding-left) + 7 * var(--spacing));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
[data-line-numbers] .line& {
|
|
38
|
-
counter-increment: line;
|
|
39
|
-
padding-left: calc(var(--padding-left) + 7 * var(--spacing));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[data-line-numbers] .line&::after {
|
|
43
|
-
position: absolute;
|
|
44
|
-
content: counter(line);
|
|
45
|
-
color: color-mix(
|
|
46
|
-
in oklab,
|
|
47
|
-
var(--fd-counter-color, var(--color-fd-muted-foreground)) 60%,
|
|
48
|
-
transparent
|
|
49
|
-
);
|
|
50
|
-
@apply top-0 left-4;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.diff&::before {
|
|
54
|
-
position: absolute;
|
|
55
|
-
left: calc(var(--spacing) * 1.5);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.diff.remove& {
|
|
59
|
-
opacity: 0.7;
|
|
60
|
-
--fd-counter-color: var(--color-fd-diff-remove-symbol);
|
|
61
|
-
@apply bg-fd-diff-remove;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.diff.remove&::before {
|
|
65
|
-
content: '-';
|
|
66
|
-
@apply text-fd-diff-remove-symbol;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.diff.add& {
|
|
70
|
-
--fd-counter-color: var(--color-fd-diff-add-symbol);
|
|
71
|
-
@apply bg-fd-diff-add;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.diff.add&::before {
|
|
75
|
-
content: '+';
|
|
76
|
-
@apply text-fd-diff-add-symbol;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.highlighted& {
|
|
80
|
-
--fd-counter-color: var(--color-fd-primary);
|
|
81
|
-
padding-left: calc(var(--padding-left) - 2px);
|
|
82
|
-
|
|
83
|
-
@apply border-l-2 border-fd-primary/50 bg-fd-primary/10;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.highlighted-word& {
|
|
87
|
-
padding: 1px;
|
|
88
|
-
@apply border -my-px border-fd-primary/30 bg-fd-primary/10 rounded-md font-medium;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.unstyled.d.ts","sourceRoot":"","sources":["../../src/components/tabs.unstyled.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAQpB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAMlD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC;IACtE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAYD,eAAO,MAAM,QAAQ,oHAAqB,CAAC;AAE3C,eAAO,MAAM,WAAW,0HAAwB,CAAC;AAEjD,wBAAgB,IAAI,CAAC,EACnB,GAAG,EACH,OAAO,EACP,OAAe,EACf,YAAoB,EACpB,YAAY,EACZ,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,cAAc,EAC7B,GAAG,KAAK,EACT,EAAE,SAAS,2CAqEX;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,WAAW,CAAC,2CAY9C"}
|
package/dist/icons.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license lucide-react - ISC
|
|
3
|
-
*
|
|
4
|
-
* All copyright belongs to https://github.com/lucide-icons/lucide, we bundle it as part of library to avoid upstream issues.
|
|
5
|
-
*/
|
|
6
|
-
import { type ComponentProps } from 'react';
|
|
7
|
-
type SVGElementType = 'circle' | 'ellipse' | 'g' | 'line' | 'path' | 'polygon' | 'polyline' | 'rect';
|
|
8
|
-
export interface LucideProps extends ComponentProps<'svg'> {
|
|
9
|
-
size?: string | number;
|
|
10
|
-
}
|
|
11
|
-
export type IconNode = [
|
|
12
|
-
elementName: SVGElementType,
|
|
13
|
-
attrs: Record<string, string>
|
|
14
|
-
][];
|
|
15
|
-
export declare const ChevronDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
16
|
-
export declare const Languages: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
17
|
-
export declare const Sidebar: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18
|
-
export declare const ChevronsUpDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
19
|
-
export declare const Search: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
20
|
-
export declare const ExternalLink: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
21
|
-
export declare const Moon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
22
|
-
export declare const Sun: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
23
|
-
export declare const Airplay: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
24
|
-
export declare const Menu: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
25
|
-
export declare const X: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
26
|
-
export declare const LoaderCircle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
27
|
-
export declare const CircleCheck: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
28
|
-
export declare const CircleX: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
29
|
-
export declare const Check: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
30
|
-
export declare const TriangleAlert: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
31
|
-
export declare const Info: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
32
|
-
export declare const Copy: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
33
|
-
export declare const Clipboard: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
34
|
-
export declare const FileText: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
35
|
-
export declare const Hash: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
36
|
-
export declare const Text: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
37
|
-
export declare const File: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
38
|
-
export declare const Folder: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
39
|
-
export declare const FolderOpen: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
40
|
-
export declare const Star: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
41
|
-
export declare const Link: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
42
|
-
export declare const Edit: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
43
|
-
export declare const ChevronRight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
44
|
-
export declare const ChevronLeft: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
45
|
-
export declare const Plus: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
46
|
-
export declare const Trash2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
47
|
-
export declare const ChevronUp: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
48
|
-
export {};
|
|
49
|
-
//# sourceMappingURL=icons.d.ts.map
|
package/dist/icons.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,cAAc,EAA6B,MAAM,OAAO,CAAC;AAevE,KAAK,cAAc,GACf,QAAQ,GACR,SAAS,GACT,GAAG,GACH,MAAM,GACN,MAAM,GACN,SAAS,GACT,UAAU,GACV,MAAM,CAAC;AAEX,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,KAAK,CAAC;IACxD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,EAAE,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAC9B,EAAE,CAAC;AA6BJ,eAAO,MAAM,WAAW,oHAEtB,CAAC;AAEH,eAAO,MAAM,SAAS,oHAOpB,CAAC;AAEH,eAAO,MAAM,OAAO,oHAMlB,CAAC;AAEH,eAAO,MAAM,cAAc,oHAGzB,CAAC;AAEH,eAAO,MAAM,MAAM,oHAGjB,CAAC;AAEH,eAAO,MAAM,YAAY,oHAUvB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAEf,CAAC;AAEH,eAAO,MAAM,GAAG,oHAUd,CAAC;AAEH,eAAO,MAAM,OAAO,oHASlB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,CAAC,oHAGZ,CAAC;AAEH,eAAO,MAAM,YAAY,oHAEvB,CAAC;AAEH,eAAO,MAAM,WAAW,oHAGtB,CAAC;AAEH,eAAO,MAAM,OAAO,oHAIlB,CAAC;AAEH,eAAO,MAAM,KAAK,oHAEhB,CAAC;AAEH,eAAO,MAAM,aAAa,oHAUxB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAoBf,CAAC;AAEH,eAAO,MAAM,SAAS,oHAoBpB,CAAC;AAEH,eAAO,MAAM,QAAQ,oHAYnB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAKf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,IAAI,oHASf,CAAC;AAEH,eAAO,MAAM,MAAM,oHAQjB,CAAC;AAEH,eAAO,MAAM,UAAU,oHAQrB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAQf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAef,CAAC;AAEH,eAAO,MAAM,IAAI,oHAef,CAAC;AAEH,eAAO,MAAM,YAAY,oHAEvB,CAAC;AAEH,eAAO,MAAM,WAAW,oHAEtB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAGf,CAAC;AAEH,eAAO,MAAM,MAAM,oHAMjB,CAAC;AAEH,eAAO,MAAM,SAAS,oHAEpB,CAAC"}
|
package/dist/icons.js
DELETED
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react - ISC
|
|
4
|
-
*
|
|
5
|
-
* All copyright belongs to https://github.com/lucide-icons/lucide, we bundle it as part of library to avoid upstream issues.
|
|
6
|
-
*/
|
|
7
|
-
import { createElement, forwardRef } from 'react';
|
|
8
|
-
import { cn } from './utils/cn.js';
|
|
9
|
-
const defaultAttributes = {
|
|
10
|
-
xmlns: 'http://www.w3.org/2000/svg',
|
|
11
|
-
width: 24,
|
|
12
|
-
height: 24,
|
|
13
|
-
viewBox: '0 0 24 24',
|
|
14
|
-
fill: 'none',
|
|
15
|
-
stroke: 'currentColor',
|
|
16
|
-
strokeWidth: 2,
|
|
17
|
-
strokeLinecap: 'round',
|
|
18
|
-
strokeLinejoin: 'round',
|
|
19
|
-
};
|
|
20
|
-
const createLucideIcon = (iconName, iconNode) => {
|
|
21
|
-
const Component = forwardRef(({ className, size = 24, color = 'currentColor', children, ...props }, ref) => {
|
|
22
|
-
return (_jsxs("svg", { ref: ref, ...defaultAttributes, width: size, height: size, stroke: color, className: cn('lucide', className), ...props, children: [iconNode.map(([tag, attr]) => createElement(tag, attr)), children] }));
|
|
23
|
-
});
|
|
24
|
-
Component.displayName = iconName;
|
|
25
|
-
return Component;
|
|
26
|
-
};
|
|
27
|
-
export const ChevronDown = createLucideIcon('chevron-down', [
|
|
28
|
-
['path', { d: 'm6 9 6 6 6-6', key: 'qrunsl' }],
|
|
29
|
-
]);
|
|
30
|
-
export const Languages = createLucideIcon('languages', [
|
|
31
|
-
['path', { d: 'm5 8 6 6', key: '1wu5hv' }],
|
|
32
|
-
['path', { d: 'm4 14 6-6 2-3', key: '1k1g8d' }],
|
|
33
|
-
['path', { d: 'M2 5h12', key: 'or177f' }],
|
|
34
|
-
['path', { d: 'M7 2h1', key: '1t2jsx' }],
|
|
35
|
-
['path', { d: 'm22 22-5-10-5 10', key: 'don7ne' }],
|
|
36
|
-
['path', { d: 'M14 18h6', key: '1m8k6r' }],
|
|
37
|
-
]);
|
|
38
|
-
export const Sidebar = createLucideIcon('panel-left', [
|
|
39
|
-
[
|
|
40
|
-
'rect',
|
|
41
|
-
{ width: '18', height: '18', x: '3', y: '3', rx: '2', key: 'afitv7' },
|
|
42
|
-
],
|
|
43
|
-
['path', { d: 'M9 3v18', key: 'fh3hqa' }],
|
|
44
|
-
]);
|
|
45
|
-
export const ChevronsUpDown = createLucideIcon('chevrons-up-down', [
|
|
46
|
-
['path', { d: 'm7 15 5 5 5-5', key: '1hf1tw' }],
|
|
47
|
-
['path', { d: 'm7 9 5-5 5 5', key: 'sgt6xg' }],
|
|
48
|
-
]);
|
|
49
|
-
export const Search = createLucideIcon('search', [
|
|
50
|
-
['circle', { cx: '11', cy: '11', r: '8', key: '4ej97u' }],
|
|
51
|
-
['path', { d: 'm21 21-4.3-4.3', key: '1qie3q' }],
|
|
52
|
-
]);
|
|
53
|
-
export const ExternalLink = createLucideIcon('external-link', [
|
|
54
|
-
['path', { d: 'M15 3h6v6', key: '1q9fwt' }],
|
|
55
|
-
['path', { d: 'M10 14 21 3', key: 'gplh6r' }],
|
|
56
|
-
[
|
|
57
|
-
'path',
|
|
58
|
-
{
|
|
59
|
-
d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6',
|
|
60
|
-
key: 'a6xqqp',
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
]);
|
|
64
|
-
export const Moon = createLucideIcon('moon', [
|
|
65
|
-
['path', { d: 'M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z', key: 'a7tn18' }],
|
|
66
|
-
]);
|
|
67
|
-
export const Sun = createLucideIcon('sun', [
|
|
68
|
-
['circle', { cx: '12', cy: '12', r: '4', key: '4exip2' }],
|
|
69
|
-
['path', { d: 'M12 2v2', key: 'tus03m' }],
|
|
70
|
-
['path', { d: 'M12 20v2', key: '1lh1kg' }],
|
|
71
|
-
['path', { d: 'm4.93 4.93 1.41 1.41', key: '149t6j' }],
|
|
72
|
-
['path', { d: 'm17.66 17.66 1.41 1.41', key: 'ptbguv' }],
|
|
73
|
-
['path', { d: 'M2 12h2', key: '1t8f8n' }],
|
|
74
|
-
['path', { d: 'M20 12h2', key: '1q8mjw' }],
|
|
75
|
-
['path', { d: 'm6.34 17.66-1.41 1.41', key: '1m8zz5' }],
|
|
76
|
-
['path', { d: 'm19.07 4.93-1.41 1.41', key: '1shlcs' }],
|
|
77
|
-
]);
|
|
78
|
-
export const Airplay = createLucideIcon('airplay', [
|
|
79
|
-
[
|
|
80
|
-
'path',
|
|
81
|
-
{
|
|
82
|
-
d: 'M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1',
|
|
83
|
-
key: 'ns4c3b',
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
['path', { d: 'm12 15 5 6H7Z', key: '14qnn2' }],
|
|
87
|
-
]);
|
|
88
|
-
export const Menu = createLucideIcon('menu', [
|
|
89
|
-
['line', { x1: '4', x2: '20', y1: '12', y2: '12', key: '1e0a9i' }],
|
|
90
|
-
['line', { x1: '4', x2: '20', y1: '6', y2: '6', key: '1owob3' }],
|
|
91
|
-
['line', { x1: '4', x2: '20', y1: '18', y2: '18', key: 'yk5zj1' }],
|
|
92
|
-
]);
|
|
93
|
-
export const X = createLucideIcon('x', [
|
|
94
|
-
['path', { d: 'M18 6 6 18', key: '1bl5f8' }],
|
|
95
|
-
['path', { d: 'm6 6 12 12', key: 'd8bk6v' }],
|
|
96
|
-
]);
|
|
97
|
-
export const LoaderCircle = createLucideIcon('loader-circle', [
|
|
98
|
-
['path', { d: 'M21 12a9 9 0 1 1-6.219-8.56', key: '13zald' }],
|
|
99
|
-
]);
|
|
100
|
-
export const CircleCheck = createLucideIcon('circle-check', [
|
|
101
|
-
['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
|
|
102
|
-
['path', { d: 'm9 12 2 2 4-4', key: 'dzmm74' }],
|
|
103
|
-
]);
|
|
104
|
-
export const CircleX = createLucideIcon('circle-x', [
|
|
105
|
-
['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
|
|
106
|
-
['path', { d: 'm15 9-6 6', key: '1uzhvr' }],
|
|
107
|
-
['path', { d: 'm9 9 6 6', key: 'z0biqf' }],
|
|
108
|
-
]);
|
|
109
|
-
export const Check = createLucideIcon('check', [
|
|
110
|
-
['path', { d: 'M20 6 9 17l-5-5', key: '1gmf2c' }],
|
|
111
|
-
]);
|
|
112
|
-
export const TriangleAlert = createLucideIcon('triangle-alert', [
|
|
113
|
-
[
|
|
114
|
-
'path',
|
|
115
|
-
{
|
|
116
|
-
d: 'm21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3',
|
|
117
|
-
key: 'wmoenq',
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
['path', { d: 'M12 9v4', key: 'juzpu7' }],
|
|
121
|
-
['path', { d: 'M12 17h.01', key: 'p32p05' }],
|
|
122
|
-
]);
|
|
123
|
-
export const Info = createLucideIcon('info', [
|
|
124
|
-
['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
|
|
125
|
-
['path', { d: 'M12 16v-4', key: '1dtifu' }],
|
|
126
|
-
['path', { d: 'M12 8h.01', key: 'e9boi3' }],
|
|
127
|
-
]);
|
|
128
|
-
export const Copy = createLucideIcon('copy', [
|
|
129
|
-
[
|
|
130
|
-
'rect',
|
|
131
|
-
{
|
|
132
|
-
width: '14',
|
|
133
|
-
height: '14',
|
|
134
|
-
x: '8',
|
|
135
|
-
y: '8',
|
|
136
|
-
rx: '2',
|
|
137
|
-
ry: '2',
|
|
138
|
-
key: '17jyea',
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
[
|
|
142
|
-
'path',
|
|
143
|
-
{
|
|
144
|
-
d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2',
|
|
145
|
-
key: 'zix9uf',
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
]);
|
|
149
|
-
export const Clipboard = createLucideIcon('clipboard', [
|
|
150
|
-
[
|
|
151
|
-
'rect',
|
|
152
|
-
{
|
|
153
|
-
width: '8',
|
|
154
|
-
height: '4',
|
|
155
|
-
x: '8',
|
|
156
|
-
y: '2',
|
|
157
|
-
rx: '1',
|
|
158
|
-
ry: '1',
|
|
159
|
-
key: '1',
|
|
160
|
-
},
|
|
161
|
-
],
|
|
162
|
-
[
|
|
163
|
-
'path',
|
|
164
|
-
{
|
|
165
|
-
d: 'M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2',
|
|
166
|
-
key: '2',
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
]);
|
|
170
|
-
export const FileText = createLucideIcon('file-text', [
|
|
171
|
-
[
|
|
172
|
-
'path',
|
|
173
|
-
{
|
|
174
|
-
d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z',
|
|
175
|
-
key: '1rqfz7',
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],
|
|
179
|
-
['path', { d: 'M10 9H8', key: 'b1mrlr' }],
|
|
180
|
-
['path', { d: 'M16 13H8', key: 't4e002' }],
|
|
181
|
-
['path', { d: 'M16 17H8', key: 'z1uh3a' }],
|
|
182
|
-
]);
|
|
183
|
-
export const Hash = createLucideIcon('hash', [
|
|
184
|
-
['line', { x1: '4', x2: '20', y1: '9', y2: '9', key: '4lhtct' }],
|
|
185
|
-
['line', { x1: '4', x2: '20', y1: '15', y2: '15', key: 'vyu0kd' }],
|
|
186
|
-
['line', { x1: '10', x2: '8', y1: '3', y2: '21', key: '1ggp8o' }],
|
|
187
|
-
['line', { x1: '16', x2: '14', y1: '3', y2: '21', key: 'weycgp' }],
|
|
188
|
-
]);
|
|
189
|
-
export const Text = createLucideIcon('text', [
|
|
190
|
-
['path', { d: 'M15 18H3', key: 'olowqp' }],
|
|
191
|
-
['path', { d: 'M17 6H3', key: '16j9eg' }],
|
|
192
|
-
['path', { d: 'M21 12H3', key: '2avoz0' }],
|
|
193
|
-
]);
|
|
194
|
-
export const File = createLucideIcon('file', [
|
|
195
|
-
[
|
|
196
|
-
'path',
|
|
197
|
-
{
|
|
198
|
-
d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z',
|
|
199
|
-
key: '1rqfz7',
|
|
200
|
-
},
|
|
201
|
-
],
|
|
202
|
-
['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],
|
|
203
|
-
]);
|
|
204
|
-
export const Folder = createLucideIcon('folder', [
|
|
205
|
-
[
|
|
206
|
-
'path',
|
|
207
|
-
{
|
|
208
|
-
d: 'M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z',
|
|
209
|
-
key: '1kt360',
|
|
210
|
-
},
|
|
211
|
-
],
|
|
212
|
-
]);
|
|
213
|
-
export const FolderOpen = createLucideIcon('folder-open', [
|
|
214
|
-
[
|
|
215
|
-
'path',
|
|
216
|
-
{
|
|
217
|
-
d: 'm6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2',
|
|
218
|
-
key: 'usdka0',
|
|
219
|
-
},
|
|
220
|
-
],
|
|
221
|
-
]);
|
|
222
|
-
export const Star = createLucideIcon('star', [
|
|
223
|
-
[
|
|
224
|
-
'path',
|
|
225
|
-
{
|
|
226
|
-
d: 'M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z',
|
|
227
|
-
key: 'r04s7s',
|
|
228
|
-
},
|
|
229
|
-
],
|
|
230
|
-
]);
|
|
231
|
-
export const Link = createLucideIcon('link', [
|
|
232
|
-
[
|
|
233
|
-
'path',
|
|
234
|
-
{
|
|
235
|
-
d: 'M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71',
|
|
236
|
-
key: '1cjeqo',
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
[
|
|
240
|
-
'path',
|
|
241
|
-
{
|
|
242
|
-
d: 'M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71',
|
|
243
|
-
key: '19qd67',
|
|
244
|
-
},
|
|
245
|
-
],
|
|
246
|
-
]);
|
|
247
|
-
export const Edit = createLucideIcon('square-pen', [
|
|
248
|
-
[
|
|
249
|
-
'path',
|
|
250
|
-
{
|
|
251
|
-
d: 'M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7',
|
|
252
|
-
key: '1m0v6g',
|
|
253
|
-
},
|
|
254
|
-
],
|
|
255
|
-
[
|
|
256
|
-
'path',
|
|
257
|
-
{
|
|
258
|
-
d: 'M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z',
|
|
259
|
-
key: 'ohrbg2',
|
|
260
|
-
},
|
|
261
|
-
],
|
|
262
|
-
]);
|
|
263
|
-
export const ChevronRight = createLucideIcon('chevron-right', [
|
|
264
|
-
['path', { d: 'm9 18 6-6-6-6', key: 'mthhwq' }],
|
|
265
|
-
]);
|
|
266
|
-
export const ChevronLeft = createLucideIcon('chevron-left', [
|
|
267
|
-
['path', { d: 'm15 18-6-6 6-6', key: '1wnfg3' }],
|
|
268
|
-
]);
|
|
269
|
-
export const Plus = createLucideIcon('plus', [
|
|
270
|
-
['path', { d: 'M5 12h14', key: '1ays0h' }],
|
|
271
|
-
['path', { d: 'M12 5v14', key: 's699le' }],
|
|
272
|
-
]);
|
|
273
|
-
export const Trash2 = createLucideIcon('trash-2', [
|
|
274
|
-
['path', { d: 'M3 6h18', key: 'd0wm0j' }],
|
|
275
|
-
['path', { d: 'M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6', key: '4alrt4' }],
|
|
276
|
-
['path', { d: 'M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2', key: 'v07s0e' }],
|
|
277
|
-
['line', { x1: '10', x2: '10', y1: '11', y2: '17', key: '1uufr5' }],
|
|
278
|
-
['line', { x1: '14', x2: '14', y1: '11', y2: '17', key: 'xtxkd' }],
|
|
279
|
-
]);
|
|
280
|
-
export const ChevronUp = createLucideIcon('chevron-up', [
|
|
281
|
-
['path', { d: 'm18 15-6-6-6 6', key: '153udz' }],
|
|
282
|
-
]);
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
interface Filterable {
|
|
3
|
-
/**
|
|
4
|
-
* Restrict where the item is displayed
|
|
5
|
-
*
|
|
6
|
-
* @defaultValue 'all'
|
|
7
|
-
*/
|
|
8
|
-
on?: 'menu' | 'nav' | 'all';
|
|
9
|
-
}
|
|
10
|
-
interface WithHref {
|
|
11
|
-
url: string;
|
|
12
|
-
/**
|
|
13
|
-
* When the item is marked as active
|
|
14
|
-
*
|
|
15
|
-
* @defaultValue 'url'
|
|
16
|
-
*/
|
|
17
|
-
active?: 'url' | 'nested-url' | 'none';
|
|
18
|
-
external?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface MainItemType extends WithHref, Filterable {
|
|
21
|
-
type?: 'main';
|
|
22
|
-
icon?: ReactNode;
|
|
23
|
-
text: ReactNode;
|
|
24
|
-
description?: ReactNode;
|
|
25
|
-
}
|
|
26
|
-
export interface IconItemType extends WithHref, Filterable {
|
|
27
|
-
type: 'icon';
|
|
28
|
-
/**
|
|
29
|
-
* `aria-label` of icon button
|
|
30
|
-
*/
|
|
31
|
-
label?: string;
|
|
32
|
-
icon: ReactNode;
|
|
33
|
-
text: ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* @defaultValue true
|
|
36
|
-
*/
|
|
37
|
-
secondary?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface ButtonItemType extends WithHref, Filterable {
|
|
40
|
-
type: 'button';
|
|
41
|
-
icon?: ReactNode;
|
|
42
|
-
text: ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* @defaultValue false
|
|
45
|
-
*/
|
|
46
|
-
secondary?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface MenuItemType extends Partial<WithHref>, Filterable {
|
|
49
|
-
type: 'menu';
|
|
50
|
-
icon?: ReactNode;
|
|
51
|
-
text: ReactNode;
|
|
52
|
-
items: ((MainItemType & {
|
|
53
|
-
/**
|
|
54
|
-
* Options when displayed on navigation menu
|
|
55
|
-
*/
|
|
56
|
-
menu?: ComponentProps<'a'> & {
|
|
57
|
-
banner?: ReactNode;
|
|
58
|
-
};
|
|
59
|
-
}) | CustomItemType)[];
|
|
60
|
-
/**
|
|
61
|
-
* @defaultValue false
|
|
62
|
-
*/
|
|
63
|
-
secondary?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface CustomItemType extends Filterable {
|
|
66
|
-
type: 'custom';
|
|
67
|
-
/**
|
|
68
|
-
* @defaultValue false
|
|
69
|
-
*/
|
|
70
|
-
secondary?: boolean;
|
|
71
|
-
children: ReactNode;
|
|
72
|
-
}
|
|
73
|
-
export type LinkItemType = MainItemType | IconItemType | ButtonItemType | MenuItemType | CustomItemType;
|
|
74
|
-
export declare function LinkItem({ ref, item, ...props }: Omit<ComponentProps<'a'>, 'href'> & {
|
|
75
|
-
item: WithHref;
|
|
76
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
77
|
-
export {};
|
|
78
|
-
//# sourceMappingURL=link-item.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-item.d.ts","sourceRoot":"","sources":["../../../src/layouts/shared/link-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,UAAU,UAAU;IAClB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC7B;AAED,UAAU,QAAQ;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,YAAY,GAAG,MAAM,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ,EAAE,UAAU;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ,EAAE,UAAU;IACxD,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ,EAAE,UAAU;IAC1D,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,YAAa,SAAQ,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAEhB,KAAK,EAAE,CACH,CAAC,YAAY,GAAG;QACd;;WAEG;QACH,IAAI,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG;YAC3B,MAAM,CAAC,EAAE,SAAS,CAAC;SACpB,CAAC;KACH,CAAC,GACF,cAAc,CACjB,EAAE,CAAC;IAEJ;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,IAAI,EAAE,QAAQ,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,MAAM,YAAY,GACpB,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,cAAc,CAAC;AAEnB,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,2CAkBxD"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { usePathname } from 'fumadocs-core/framework';
|
|
4
|
-
import { isActive } from '../../utils/is-active.js';
|
|
5
|
-
import Link from 'fumadocs-core/link';
|
|
6
|
-
export function LinkItem({ ref, item, ...props }) {
|
|
7
|
-
const pathname = usePathname();
|
|
8
|
-
const activeType = item.active ?? 'url';
|
|
9
|
-
const active = activeType !== 'none' &&
|
|
10
|
-
isActive(item.url, pathname, activeType === 'nested-url');
|
|
11
|
-
return (_jsx(Link, { ref: ref, href: item.url, external: item.external, ...props, "data-active": active, children: props.children }));
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/typography/index.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,OAAO;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAmJD,eAAO,MAAM,UAAU,EAAE,OAsCxB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|