react-lib-tools 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GettingStartedRoute-BJh6Q9Fv.cjs +2 -0
- package/dist/GettingStartedRoute-BJh6Q9Fv.cjs.map +1 -0
- package/dist/GettingStartedRoute-Bea34m1X.js +38 -0
- package/dist/GettingStartedRoute-Bea34m1X.js.map +1 -0
- package/dist/PageNotFound-CrHjMQNv.cjs +2 -0
- package/dist/PageNotFound-CrHjMQNv.cjs.map +1 -0
- package/dist/PageNotFound-DE5Z0RR6.js +24 -0
- package/dist/PageNotFound-DE5Z0RR6.js.map +1 -0
- package/dist/SupportRoute-Bww0QSix.cjs +2 -0
- package/dist/SupportRoute-Bww0QSix.cjs.map +1 -0
- package/dist/SupportRoute-DPlYEYJn.js +44 -0
- package/dist/SupportRoute-DPlYEYJn.js.map +1 -0
- package/dist/index-BpfFWZm4.cjs +8 -0
- package/dist/index-BpfFWZm4.cjs.map +1 -0
- package/dist/index-DdaUFzS-.js +9403 -0
- package/dist/index-DdaUFzS-.js.map +1 -0
- package/dist/react-lib-tools.cjs +1 -7
- package/dist/react-lib-tools.cjs.map +1 -1
- package/dist/react-lib-tools.d.ts +26 -1
- package/dist/react-lib-tools.js +25 -9388
- package/dist/react-lib-tools.js.map +1 -1
- package/package.json +1 -1
- package/scripts/compile-docs.ts +16 -9
- package/scripts/utils/docs/compileComponents.ts +3 -1
- package/scripts/utils/docs/compileImperativeHandles.ts +8 -5
- package/styles.css +23 -9
|
@@ -11,12 +11,14 @@ import { MouseEvent as MouseEvent_2 } from 'react';
|
|
|
11
11
|
import { PropsWithChildren } from 'react';
|
|
12
12
|
import { ReactNode } from 'react';
|
|
13
13
|
|
|
14
|
-
export declare function AppRoot({ hideVersions, navLinks, packageDescription, packageName, routes }: {
|
|
14
|
+
export declare function AppRoot({ hideVersions, navLinks, overview, packageDescription, packageName, routes, showOpenCollectLink }: {
|
|
15
15
|
hideVersions?: boolean | undefined;
|
|
16
16
|
navLinks: ReactNode;
|
|
17
|
+
overview?: ReactNode | undefined;
|
|
17
18
|
packageDescription: ReactNode;
|
|
18
19
|
packageName: string;
|
|
19
20
|
routes: Record<string, LazyExoticComponent<ComponentType<unknown>>>;
|
|
21
|
+
showOpenCollectLink?: boolean | undefined;
|
|
20
22
|
}): JSX.Element;
|
|
21
23
|
|
|
22
24
|
export declare function assert(expectedCondition: unknown, message?: string): asserts expectedCondition;
|
|
@@ -88,6 +90,13 @@ export declare function ComponentProps({ json, section }: {
|
|
|
88
90
|
section: string;
|
|
89
91
|
}): JSX.Element;
|
|
90
92
|
|
|
93
|
+
export declare function ComponentPropsSection({ header, props }: {
|
|
94
|
+
header: string;
|
|
95
|
+
props: ComponentPropMetadata[];
|
|
96
|
+
}): JSX.Element | null;
|
|
97
|
+
|
|
98
|
+
export declare type DefaultPath = keyof Routes;
|
|
99
|
+
|
|
91
100
|
export declare function DocsSection({ className, sections }: {
|
|
92
101
|
className?: string;
|
|
93
102
|
sections: Section[];
|
|
@@ -99,6 +108,8 @@ export declare function ExternalLink({ children, className, href, target, ...res
|
|
|
99
108
|
|
|
100
109
|
export declare function getIntentClassNames(intent: Intent, minimal?: boolean): "bg-red-950 text-red-300 [&_svg]:text-red-500" | "bg-black/10 bg-border border-2 border-red-500 text-white [&_svg]:text-red-500 [&_a]:text-red-400!" | "bg-white/10 text-slate-300 [&_svg]:text-slate-400" | "bg-black/10 bg-border border-2 border-white/40 text-white [&_svg]:text-white/60" | "bg-sky-950 text-sky-300 [&_svg]:text-sky-400" | "bg-black/10 bg-border border-2 border-sky-400 text-white [&_svg]:text-sky-400" | "bg-emerald-950 text-emerald-300 [&_svg]:text-emerald-400" | "bg-black/10 bg-border border-2 border-emerald-400 text-white [&_svg]:text-emerald-400" | "bg-amber-950/65 text-amber-200 [&_svg]:text-amber-300" | "bg-black/10 bg-border border-2 border-amber-400 text-white [&_svg]:text-amber-400 [&_a]:text-amber-400!";
|
|
101
110
|
|
|
111
|
+
declare function GettingStartedRoute(): JSX.Element;
|
|
112
|
+
|
|
102
113
|
export declare function Header({ section, title }: {
|
|
103
114
|
section?: string;
|
|
104
115
|
title: string;
|
|
@@ -152,6 +163,8 @@ declare type Option_2<Value extends string> = {
|
|
|
152
163
|
};
|
|
153
164
|
export { Option_2 as Option }
|
|
154
165
|
|
|
166
|
+
declare function PageNotFoundRoute(): JSX.Element;
|
|
167
|
+
|
|
155
168
|
export declare function Radio<Value extends string>({ checked, children, className, name, onChange, value, ...rest }: PropsWithChildren<Omit<HTMLAttributes<HTMLElement>, "defaultChecked" | "onChange"> & {
|
|
156
169
|
checked: boolean;
|
|
157
170
|
name: string;
|
|
@@ -164,6 +177,16 @@ declare type RenderFunction = (params: {
|
|
|
164
177
|
isPending: boolean;
|
|
165
178
|
}) => ReactNode;
|
|
166
179
|
|
|
180
|
+
declare type Route = LazyExoticComponent<ComponentType<unknown>>;
|
|
181
|
+
|
|
182
|
+
declare type Routes = Record<keyof typeof routes, Route>;
|
|
183
|
+
|
|
184
|
+
declare const routes: {
|
|
185
|
+
"*": LazyExoticComponent<PageNotFoundRoute>;
|
|
186
|
+
"/": LazyExoticComponent<GettingStartedRoute>;
|
|
187
|
+
"/support": LazyExoticComponent<SupportRoute>;
|
|
188
|
+
};
|
|
189
|
+
|
|
167
190
|
export declare type Section = {
|
|
168
191
|
content: string;
|
|
169
192
|
intent?: Intent | undefined;
|
|
@@ -178,4 +201,6 @@ export declare function Select<Value extends string>({ className, defaultValue,
|
|
|
178
201
|
value: Option_2<Value> | undefined;
|
|
179
202
|
}): JSX.Element;
|
|
180
203
|
|
|
204
|
+
declare function SupportRoute(): JSX.Element;
|
|
205
|
+
|
|
181
206
|
export { }
|