@povio/ui 5.0.0-rc.7 → 5.0.0-rc.9
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 +48 -0
- package/dist/AppCanvasPage--RG31Yyv.js +2421 -0
- package/dist/AppCanvasPage-BIFYeEeS.d.ts +80 -0
- package/dist/{ComponentGallery-Dp0kZVZM.js → ComponentGallery-C6exitZN.js} +1 -1
- package/dist/{Form-BJ12MjE-.d.ts → Form-DbEWnCKc.d.ts} +1 -1
- package/dist/{Inputs-DA73LmLc.d.ts → Inputs-O84btFJL.d.ts} +1 -1
- package/dist/UIConfigurator-BwLRfe-a.js +6704 -0
- package/dist/config/app-canvas-tanstack.d.ts +23 -0
- package/dist/config/app-canvas-tanstack.js +62 -0
- package/dist/config/app-canvas.d.ts +12 -0
- package/dist/config/app-canvas.js +2 -0
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/config/ui-configurator.d.ts +1 -920
- package/dist/config/ui-configurator.js +2 -6430
- package/dist/configuration.context-f_FSPWhQ.d.ts +926 -0
- package/dist/{dynamicInputs-iP39lVKf.d.ts → dynamicInputs-ByVMnx4Z.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf.d.ts +2 -2
- package/dist/styles/app-canvas.css +740 -0
- package/dist/styles/configurator.css +19 -5
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/inputs.d.ts +2 -2
- package/dist/tanstack.d.ts +4 -4
- package/package.json +16 -1
- package/dist/token-classes-Bfcx0get.js +0 -163
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
//#region src/app-canvas/route-model.d.ts
|
|
2
|
+
/** Structural TanStack Router contract; no router runtime is bundled with UI. */
|
|
3
|
+
interface CanvasRoute {
|
|
4
|
+
id?: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
fullPath?: string;
|
|
7
|
+
children?: readonly CanvasRoute[] | object;
|
|
8
|
+
options?: {
|
|
9
|
+
id?: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
component?: unknown;
|
|
12
|
+
lazyFn?: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
interface CanvasRouter {
|
|
16
|
+
routeTree: CanvasRoute;
|
|
17
|
+
routesById?: object;
|
|
18
|
+
}
|
|
19
|
+
interface CanvasRouteExample {
|
|
20
|
+
params?: Record<string, string>;
|
|
21
|
+
search?: Record<string, unknown>;
|
|
22
|
+
title?: string;
|
|
23
|
+
}
|
|
24
|
+
interface DiscoverCanvasPagesOptions {
|
|
25
|
+
examples?: Record<string, CanvasRouteExample>;
|
|
26
|
+
exclude?: string[];
|
|
27
|
+
excludePaths?: string[];
|
|
28
|
+
}
|
|
29
|
+
interface CanvasPage {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
path: string;
|
|
33
|
+
href?: string;
|
|
34
|
+
parentId?: string;
|
|
35
|
+
missingParams: string[];
|
|
36
|
+
kind: "page" | "unresolved";
|
|
37
|
+
}
|
|
38
|
+
interface CanvasPosition {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
}
|
|
42
|
+
interface CanvasPageLayout extends CanvasPage, CanvasPosition {
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}
|
|
46
|
+
/** Catalog route destinations without executing loaders or needing every dynamic parameter. */
|
|
47
|
+
declare function discoverCanvasPages(router: CanvasRouter, options?: DiscoverCanvasPagesOptions): CanvasPage[];
|
|
48
|
+
/** Deterministic masonry placement. Full measured heights (including 20,000px pages) are never capped. */
|
|
49
|
+
declare function layoutCanvasPages(pages: readonly CanvasPage[], width: number, heights: Record<string, number>, positions?: Record<string, CanvasPosition>): CanvasPageLayout[];
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/app-canvas/AppCanvas.d.ts
|
|
52
|
+
interface CanvasBreakpoint {
|
|
53
|
+
id: string;
|
|
54
|
+
label: string;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
}
|
|
58
|
+
declare const defaultCanvasBreakpoints: CanvasBreakpoint[];
|
|
59
|
+
interface AppCanvasProps {
|
|
60
|
+
router: CanvasRouter;
|
|
61
|
+
examples?: Record<string, CanvasRouteExample>;
|
|
62
|
+
exclude?: string[];
|
|
63
|
+
excludePaths?: string[];
|
|
64
|
+
breakpoints?: CanvasBreakpoint[];
|
|
65
|
+
storageKey?: string;
|
|
66
|
+
frameUrl?: (page: CanvasPage) => string;
|
|
67
|
+
}
|
|
68
|
+
/** Live route artboards. The camera transforms only the canvas, never the iframe viewport width. */
|
|
69
|
+
declare function AppCanvas({ router, examples, exclude, excludePaths, breakpoints, storageKey, frameUrl }: AppCanvasProps): import("react").JSX.Element;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/app-canvas/AppCanvasPage.d.ts
|
|
72
|
+
declare const APP_CANVAS_PATH = "/_canvas";
|
|
73
|
+
interface AppCanvasPageProps extends AppCanvasProps {
|
|
74
|
+
/** Excluded from the catalog to prevent recursively rendering the canvas itself. */
|
|
75
|
+
canvasPath?: string;
|
|
76
|
+
}
|
|
77
|
+
/** Ready-made route page. Mount beneath the app's UIConfigurationProvider. */
|
|
78
|
+
declare function AppCanvasPage({ canvasPath, excludePaths, ...props }: AppCanvasPageProps): import("react").JSX.Element | null;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { AppCanvasProps as a, CanvasPage as c, CanvasRouter as d, discoverCanvasPages as f, AppCanvas as i, CanvasPosition as l, AppCanvasPage as n, CanvasBreakpoint as o, layoutCanvasPages as p, AppCanvasPageProps as r, defaultCanvasBreakpoints as s, APP_CANVAS_PATH as t, CanvasRouteExample as u };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
+
import { i as inspectTokens } from "./UIConfigurator-BwLRfe-a.js";
|
|
2
3
|
import { n as ArrowLeft } from "./DropdownMenu-5jmtgLXd.js";
|
|
3
4
|
import { i as ArrowRight } from "./DropdownMenuDesktop-Cl9gZVq0.js";
|
|
4
5
|
import { n as Italic, r as Bold, t as Underline } from "./underline-66hmELxa.js";
|
|
@@ -48,7 +49,6 @@ import { t as Toast } from "./Toast-DtG3pA61.js";
|
|
|
48
49
|
import { t as Table } from "./Table-BN2_J_Ne.js";
|
|
49
50
|
import { Link } from "./components/link.js";
|
|
50
51
|
import { Badge } from "./components/badge.js";
|
|
51
|
-
import { t as inspectTokens } from "./token-classes-Bfcx0get.js";
|
|
52
52
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
53
53
|
import { c } from "react/compiler-runtime";
|
|
54
54
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as UIForm, l as UseFormProps, o as FormSubmitErrorHandler, s as FormSubmitHandler } from "./form.binding-DVJ5F0JE.js";
|
|
2
|
-
import { c as InputComponentProps, i as DefaultComponentType, r as AllowedComponentType, u as InputDefBaseProps } from "./dynamicInputs-
|
|
2
|
+
import { c as InputComponentProps, i as DefaultComponentType, r as AllowedComponentType, u as InputDefBaseProps } from "./dynamicInputs-ByVMnx4Z.js";
|
|
3
3
|
import { DependencyList, ReactNode } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/hooks/useAutosave.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as UIForm } from "./form.binding-DVJ5F0JE.js";
|
|
2
|
-
import { l as InputDef } from "./dynamicInputs-
|
|
2
|
+
import { l as InputDef } from "./dynamicInputs-ByVMnx4Z.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/components/inputs/Inputs/Inputs.d.ts
|