@lonik/prestige 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +29 -0
  2. package/dist/README.md +29 -0
  3. package/dist/client.d.ts +101 -0
  4. package/dist/content.types-BbDmygmP.d.ts +44 -0
  5. package/dist/index.d.ts +5 -0
  6. package/dist/index.js +6 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/ui.d.ts +124 -0
  9. package/dist/ui.js +675 -0
  10. package/dist/ui.js.map +1 -0
  11. package/dist/vite.d.ts +47 -0
  12. package/dist/vite.js +685 -0
  13. package/dist/vite.js.map +1 -0
  14. package/package.json +131 -0
  15. package/src/themes/core.css +54 -0
  16. package/src/themes/default-gray.css +44 -0
  17. package/src/themes/default-mauve.css +44 -0
  18. package/src/themes/default-mist.css +44 -0
  19. package/src/themes/default-neutral.css +44 -0
  20. package/src/themes/default-olive.css +44 -0
  21. package/src/themes/default-slate.css +44 -0
  22. package/src/themes/default-stone.css +44 -0
  23. package/src/themes/default-taupe.css +44 -0
  24. package/src/themes/default-zinc.css +44 -0
  25. package/src/themes/primary-amber.css +42 -0
  26. package/src/themes/primary-blue.css +42 -0
  27. package/src/themes/primary-cyan.css +42 -0
  28. package/src/themes/primary-emerald.css +42 -0
  29. package/src/themes/primary-fuchsia.css +42 -0
  30. package/src/themes/primary-gray.css +42 -0
  31. package/src/themes/primary-green.css +42 -0
  32. package/src/themes/primary-indigo.css +42 -0
  33. package/src/themes/primary-lime.css +42 -0
  34. package/src/themes/primary-mauve.css +42 -0
  35. package/src/themes/primary-mist.css +42 -0
  36. package/src/themes/primary-neutral.css +42 -0
  37. package/src/themes/primary-olive.css +42 -0
  38. package/src/themes/primary-orange.css +42 -0
  39. package/src/themes/primary-pink.css +42 -0
  40. package/src/themes/primary-purple.css +42 -0
  41. package/src/themes/primary-red.css +42 -0
  42. package/src/themes/primary-rose.css +42 -0
  43. package/src/themes/primary-sky.css +42 -0
  44. package/src/themes/primary-slate.css +42 -0
  45. package/src/themes/primary-stone.css +42 -0
  46. package/src/themes/primary-taupe.css +42 -0
  47. package/src/themes/primary-teal.css +42 -0
  48. package/src/themes/primary-violet.css +42 -0
  49. package/src/themes/primary-yellow.css +42 -0
  50. package/src/themes/primary-zinc.css +42 -0
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # react-components-starter
2
+
3
+ A starter for creating a React component library.
4
+
5
+ ## Development
6
+
7
+ - Install dependencies:
8
+
9
+ ```bash
10
+ npm install
11
+ ```
12
+
13
+ - Run the playground:
14
+
15
+ ```bash
16
+ npm run play
17
+ ```
18
+
19
+ - Run the unit tests:
20
+
21
+ ```bash
22
+ npm run test
23
+ ```
24
+
25
+ - Build the library:
26
+
27
+ ```bash
28
+ npm run build
29
+ ```
package/dist/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # react-components-starter
2
+
3
+ A starter for creating a React component library.
4
+
5
+ ## Development
6
+
7
+ - Install dependencies:
8
+
9
+ ```bash
10
+ npm install
11
+ ```
12
+
13
+ - Run the playground:
14
+
15
+ ```bash
16
+ npm run play
17
+ ```
18
+
19
+ - Run the unit tests:
20
+
21
+ ```bash
22
+ npm run test
23
+ ```
24
+
25
+ - Build the library:
26
+
27
+ ```bash
28
+ npm run build
29
+ ```
@@ -0,0 +1,101 @@
1
+ declare module "virtual:prestige/content-all" {
2
+ interface TocItem {
3
+ value: string;
4
+ href: string;
5
+ depth: HeadingDepth;
6
+ numbering: number[];
7
+ parent: HeadingParent;
8
+ data?: Record<string, unknown>;
9
+ }
10
+
11
+ interface NavigationLink {
12
+ slug: string;
13
+ label: string;
14
+ }
15
+
16
+ interface ContentHead {
17
+ title: string;
18
+ lastUpdated: string;
19
+ label: string;
20
+ description: string;
21
+ }
22
+
23
+ interface ContentType {
24
+ toc: TocItem[];
25
+ prev: NavigationLink;
26
+ next: NavigationLink;
27
+ default: React.ElementType;
28
+ }
29
+ export const contents: Record<
30
+ string,
31
+ {
32
+ content: () => Promise<ContentType>;
33
+ head: () => Promise<ContentHead>;
34
+ }
35
+ >;
36
+ export default contents;
37
+ }
38
+
39
+ declare module "virtual:prestige/content/*" {
40
+ export const content: any;
41
+ export default content;
42
+ }
43
+
44
+ declare module "virtual:prestige/sidebar-all" {
45
+ interface SidebarLinkType {
46
+ slug: string;
47
+ label: string;
48
+ }
49
+
50
+ interface SidebarGroupType {
51
+ label: string;
52
+ items: SidebarItemType[];
53
+ collapsible?: boolean | undefined;
54
+ }
55
+
56
+ type SidebarItemType = SidebarLinkType | SidebarGroupType;
57
+
58
+ interface SidebarType {
59
+ items: SidebarItemType[];
60
+ defaultLink: string;
61
+ }
62
+
63
+ const sidebars: Record<string, () => Promise<SidebarType>>;
64
+ export default sidebars;
65
+ }
66
+
67
+ declare module "virtual:prestige/sidebar/*" {
68
+ import { SidebarType } from "virtual:prestige/sidebar-all";
69
+ const sidebar: SidebarType;
70
+ export default sidebar;
71
+ }
72
+
73
+ declare module "virtual:prestige/collection-all" {
74
+ type CollectionNavigation = {
75
+ id: string;
76
+ label: string;
77
+ defaultLink: string;
78
+ };
79
+ const collections: Array<CollectionNavigation>;
80
+ export default collections;
81
+ }
82
+
83
+ declare module "virtual:prestige/config" {
84
+ interface PrestigeConfig {
85
+ favicon?: string;
86
+ algolia?: {
87
+ appId: string;
88
+ apiKey: string;
89
+ indices: string[];
90
+ };
91
+ github?: string;
92
+ title: string;
93
+ description: string;
94
+ license?: {
95
+ label: string;
96
+ url: string;
97
+ };
98
+ }
99
+ const config: PrestigeConfig;
100
+ export default config;
101
+ }
@@ -0,0 +1,44 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/vite/core/content/content.types.d.ts
4
+
5
+ declare const InternalCollectionLinkSchema: z.ZodUnion<readonly [z.ZodObject<{
6
+ label: z.ZodString;
7
+ slug: z.ZodString;
8
+ }, z.core.$strip>, z.ZodString]>;
9
+ declare const ExternalCollectionLinkSchema: z.ZodObject<{
10
+ label: z.ZodString;
11
+ link: z.ZodString;
12
+ }, z.core.$strip>;
13
+ type ExternalCollectionLink = z.infer<typeof ExternalCollectionLinkSchema>;
14
+ type InternalCollectionLink = z.infer<typeof InternalCollectionLinkSchema>;
15
+ type CollectionGroup = {
16
+ label: string;
17
+ items?: CollectionItem[] | undefined;
18
+ collapsible?: boolean | undefined;
19
+ autogenerate?: {
20
+ directory: string;
21
+ } | undefined;
22
+ };
23
+ type CollectionItem = InternalCollectionLink | CollectionGroup | ExternalCollectionLink;
24
+ interface InternalSidebarLinkType {
25
+ slug: string;
26
+ label: string;
27
+ }
28
+ interface ExternalSidebarLinkType {
29
+ label: string;
30
+ link: string;
31
+ }
32
+ interface SidebarGroupType {
33
+ label: string;
34
+ items: SidebarItemType[];
35
+ collapsible?: boolean | undefined;
36
+ }
37
+ type SidebarItemType = InternalSidebarLinkType | SidebarGroupType | ExternalSidebarLinkType;
38
+ interface SidebarType {
39
+ items: SidebarItemType[];
40
+ defaultLink: string;
41
+ }
42
+ //#endregion
43
+ export { SidebarType as n, CollectionItem as t };
44
+ //# sourceMappingURL=content.types-BbDmygmP.d.ts.map
@@ -0,0 +1,5 @@
1
+ //#region src/index.d.ts
2
+ declare const _default: 0;
3
+ //#endregion
4
+ export { _default as default };
5
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ //#region src/index.ts
2
+ var src_default = 0;
3
+
4
+ //#endregion
5
+ export { src_default as default };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export default 0;\n"],"mappings":";AAAA,kBAAe"}
package/dist/ui.d.ts ADDED
@@ -0,0 +1,124 @@
1
+ import { n as SidebarType } from "./content.types-BbDmygmP.js";
2
+ import { TocItem } from "remark-flexible-toc";
3
+ import React, { ReactNode } from "react";
4
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
5
+ import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
6
+
7
+ //#region src/ui/components/aside/aside.d.ts
8
+ type AsideType = "note" | "tip" | "caution" | "danger";
9
+ interface AsideProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
10
+ type?: AsideType;
11
+ title?: React.ReactNode;
12
+ children: React.ReactNode;
13
+ }
14
+ declare function Aside({
15
+ type,
16
+ title,
17
+ children,
18
+ className,
19
+ ...props
20
+ }: AsideProps): react_jsx_runtime7.JSX.Element;
21
+ //#endregion
22
+ //#region src/ui/components/code/code.d.ts
23
+ interface CodeProps {
24
+ code: string;
25
+ language?: string;
26
+ theme?: string;
27
+ children?: ReactNode;
28
+ }
29
+ declare function Code({
30
+ code,
31
+ children
32
+ }: CodeProps): react_jsx_runtime7.JSX.Element;
33
+ //#endregion
34
+ //#region src/ui/components/package-managers/package-managers.d.ts
35
+ type CommandType = "add" | "create" | "exec" | "run";
36
+ interface PackageManagersProps {
37
+ /** The name of the package (e.g., "@lonik/themer") */
38
+ pkg?: string;
39
+ /** The type of command to generate. Defaults to "add" */
40
+ type?: CommandType;
41
+ /** Whether this is a development dependency (-D) */
42
+ dev?: boolean;
43
+ /** Additional arguments to append to the command */
44
+ args?: string;
45
+ className?: string;
46
+ }
47
+ declare function PackageManagers({
48
+ pkg,
49
+ type,
50
+ dev,
51
+ args,
52
+ className
53
+ }: PackageManagersProps): react_jsx_runtime7.JSX.Element;
54
+ //#endregion
55
+ //#region src/ui/components/tabs/tabs.d.ts
56
+ declare function Tabs({
57
+ orientation,
58
+ className,
59
+ ...props
60
+ }: Tabs$1.Root.Props): react_jsx_runtime7.JSX.Element;
61
+ declare function TabsList({
62
+ className,
63
+ ...props
64
+ }: Tabs$1.List.Props): react_jsx_runtime7.JSX.Element;
65
+ declare function TabsTrigger({
66
+ className,
67
+ ...props
68
+ }: Tabs$1.Tab.Props): react_jsx_runtime7.JSX.Element;
69
+ declare function TabsContent({
70
+ className,
71
+ ...props
72
+ }: Tabs$1.Panel.Props): react_jsx_runtime7.JSX.Element;
73
+ //#endregion
74
+ //#region src/ui/routes/prestige-shell.d.ts
75
+ interface PrestigeShellProps {
76
+ customHeaderTitle?: (() => ReactNode) | undefined;
77
+ }
78
+ declare function PrestigeShell({
79
+ children,
80
+ options
81
+ }: {
82
+ children: ReactNode;
83
+ options?: PrestigeShellProps;
84
+ }): react_jsx_runtime7.JSX.Element;
85
+ //#endregion
86
+ //#region src/ui/core/header/header.d.ts
87
+ type HeaderProps = Pick<PrestigeShellProps, "customHeaderTitle">;
88
+ declare function Header({
89
+ customHeaderTitle
90
+ }: HeaderProps): react_jsx_runtime7.JSX.Element;
91
+ //#endregion
92
+ //#region src/ui/routes/content/content-navigations.d.ts
93
+ interface NavigationLink {
94
+ label: string;
95
+ slug: string;
96
+ }
97
+ //#endregion
98
+ //#region src/ui/core/prestige-page.d.ts
99
+ interface PrestigePageProps {
100
+ children: React.ReactNode;
101
+ toc?: TocItem[];
102
+ prev?: NavigationLink | null;
103
+ next?: NavigationLink | null;
104
+ }
105
+ declare function PrestigePage({
106
+ children,
107
+ toc,
108
+ prev,
109
+ next
110
+ }: PrestigePageProps): react_jsx_runtime7.JSX.Element;
111
+ //#endregion
112
+ //#region src/ui/routes/collection/collection.route.d.ts
113
+ declare function CollectionRoute(sidebar: SidebarType, id: string): {
114
+ component: () => react_jsx_runtime7.JSX.Element;
115
+ };
116
+ //#endregion
117
+ //#region src/ui/routes/content/content.route.d.ts
118
+ declare function ContentRoute(inlineData: any): any;
119
+ //#endregion
120
+ //#region src/ui/routes/not-found.d.ts
121
+ declare function NotFound(): react_jsx_runtime7.JSX.Element;
122
+ //#endregion
123
+ export { Aside, type AsideProps, type AsideType, Code, type CodeProps, CollectionRoute, ContentRoute, Header, NotFound, PackageManagers, type PackageManagersProps, PrestigePage, type PrestigePageProps, type PrestigeShellProps as PrestigeRootRouteOptions, PrestigeShell, Tabs, TabsContent, TabsList, TabsTrigger };
124
+ //# sourceMappingURL=ui.d.ts.map