@visulima/dev-toolbar 1.0.10 → 1.0.12
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/CHANGELOG.md +4 -0
- package/dist/apps/a11y/index.d.ts +1 -1
- package/dist/apps/annotations/index.d.ts +1 -1
- package/dist/apps/assets/index.d.ts +1 -1
- package/dist/apps/inspector/index.d.ts +1 -1
- package/dist/apps/module-graph/index.d.ts +1 -1
- package/dist/apps/performance/index.d.ts +1 -1
- package/dist/apps/seo/index.d.ts +1 -1
- package/dist/apps/settings/index.d.ts +1 -1
- package/dist/apps/tailwind/index.d.ts +1 -1
- package/dist/apps/timeline/index.d.ts +1 -1
- package/dist/apps/vite-config/index.d.ts +1 -1
- package/dist/index.d.ts +75 -75
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/packem_shared/annotation-store-DkqJ7H3F.js +1 -0
- package/dist/packem_shared/app.d-BV5WIojP.d.ts +229 -0
- package/dist/packem_shared/createServerRPCContext-Mi6xw5Iz.js +1 -0
- package/dist/packem_shared/{global-api.d-DeaCvII9.d.ts → global-api.d-PUBE6Od9.d.ts} +228 -226
- package/dist/packem_shared/server.d-CF1fcO17.d.ts +39 -0
- package/dist/toolbar/index.d.ts +82 -82
- package/dist/ui/index.d.ts +42 -197
- package/dist/vite-plugin.d.ts +110 -110
- package/dist/vite-plugin.js +3 -3
- package/package.json +1 -1
- package/dist/packem_shared/annotation-store-WIJhHG5y.js +0 -1
- package/dist/packem_shared/app.d-SmKEDxsI.d.ts +0 -229
- package/dist/packem_shared/createServerRPCContext-0Fs78uvP.js +0 -1
- package/dist/packem_shared/server.d-ZkcY0pge.d.ts +0 -39
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ViteDevServer } from 'vite';
|
|
2
|
+
import { S as ServerFunctions, a as ServerRPCContext } from "./global-api.d-PUBE6Od9.js";
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the `readFile` RPC endpoint.
|
|
5
|
+
*/
|
|
6
|
+
interface ReadFileOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Lower-cased file extensions (without the dot) the `readFile` RPC may return.
|
|
9
|
+
* Defaults to a curated list of source/markup/text formats — set this to widen
|
|
10
|
+
* or narrow the surface. Sensitive formats (`.env`, `.pem`, lockfiles) are not
|
|
11
|
+
* in the default list.
|
|
12
|
+
*/
|
|
13
|
+
extensions?: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Options accepted by {@link createServerRPCContext}.
|
|
17
|
+
*/
|
|
18
|
+
interface ServerRPCOptions {
|
|
19
|
+
/** Editor to use for "open in editor" functionality. */
|
|
20
|
+
editor?: string;
|
|
21
|
+
/**
|
|
22
|
+
* `readFile` RPC behaviour. Set to `false` to remove the endpoint entirely,
|
|
23
|
+
* or pass an object to customise the allowed extensions.
|
|
24
|
+
* @default { extensions: curated source/text list }
|
|
25
|
+
*/
|
|
26
|
+
readFile?: ReadFileOptions | false;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Creates server-side RPC context.
|
|
30
|
+
* @param server Vite dev server instance.
|
|
31
|
+
* @param customFunctions Custom server functions to register.
|
|
32
|
+
* @param options Additional options (e.g. which editor to launch, readFile policy).
|
|
33
|
+
* @param options.editor Editor to use for "open in editor" functionality.
|
|
34
|
+
* @param options.readFile `readFile` RPC policy — `false` disables it, or pass an
|
|
35
|
+
* object to override the allowed extension list.
|
|
36
|
+
* @returns Server RPC context.
|
|
37
|
+
*/
|
|
38
|
+
declare const createServerRPCContext: (server: ViteDevServer, customFunctions?: Partial<ServerFunctions>, options?: ServerRPCOptions) => ServerRPCContext;
|
|
39
|
+
export { ReadFileOptions as R, ServerRPCOptions as S, createServerRPCContext as c };
|
package/dist/toolbar/index.d.ts
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import { D as DevToolbarApp, a as DevToolbarAppState } from "../packem_shared/app.d-
|
|
2
|
-
import "../packem_shared/global-api.d-
|
|
1
|
+
import { D as DevToolbarApp, a as DevToolbarAppState } from "../packem_shared/app.d-BV5WIojP.js";
|
|
2
|
+
import "../packem_shared/global-api.d-PUBE6Od9.js";
|
|
3
3
|
import 'vite';
|
|
4
4
|
import 'preact';
|
|
5
5
|
/**
|
|
6
|
-
* Manages the lifecycle of all registered dev-toolbar apps.
|
|
7
|
-
*/
|
|
6
|
+
* Manages the lifecycle of all registered dev-toolbar apps.
|
|
7
|
+
*/
|
|
8
8
|
declare class AppManager {
|
|
9
9
|
private apps;
|
|
10
10
|
private activeAppId;
|
|
11
11
|
private initializedApps;
|
|
12
12
|
private appCanvases;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
* Registers an app with the toolbar.
|
|
15
|
+
* @param app App definition.
|
|
16
|
+
* @param builtIn Whether this is a built-in app.
|
|
17
|
+
*/
|
|
18
18
|
registerApp(app: DevToolbarApp, builtIn?: boolean): void;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
* Unregisters an app and calls its destroy hook if initialized.
|
|
21
|
+
* @param appId App ID to unregister.
|
|
22
|
+
*/
|
|
23
23
|
unregisterApp(appId: string): Promise<void>;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
* Returns the app state for a given ID.
|
|
26
|
+
* @param appId App ID to look up.
|
|
27
|
+
* @returns App state or undefined.
|
|
28
|
+
*/
|
|
29
29
|
getApp(appId: string): DevToolbarAppState | undefined;
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
* Returns all registered app states.
|
|
32
|
+
*/
|
|
33
33
|
getAllApps(): DevToolbarAppState[];
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
* Returns the currently active app state, or undefined if none is active.
|
|
36
|
+
*/
|
|
37
37
|
getActiveApp(): DevToolbarAppState | undefined;
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
* Toggles the active state of an app.
|
|
40
|
+
* @param appId App ID to toggle.
|
|
41
|
+
* @returns Whether the toggle was successful.
|
|
42
|
+
*/
|
|
43
43
|
toggleApp(appId: string): Promise<boolean>;
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
* Directly sets the active state of an action button without invoking callbacks.
|
|
46
|
+
* Use this to deactivate a button from outside the toolbar (e.g. after async work).
|
|
47
|
+
* @param appId The unique identifier of the app whose active state to change.
|
|
48
|
+
* @param active New active state.
|
|
49
|
+
*/
|
|
50
50
|
setAppActive(appId: string, active: boolean): void;
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
* Returns whether an app has already had its init() called.
|
|
53
|
+
* @param appId App ID to check.
|
|
54
|
+
*/
|
|
55
55
|
isAppInitialized(appId: string): boolean;
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
* Marks an app as having been initialized.
|
|
58
|
+
* @param appId App ID to mark.
|
|
59
|
+
*/
|
|
60
60
|
markAppInitialized(appId: string): void;
|
|
61
61
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
* Opens an app and initializes it if necessary.
|
|
63
|
+
* @param appId App ID to open.
|
|
64
|
+
* @returns Whether the open was successful.
|
|
65
|
+
*/
|
|
66
66
|
openApp(appId: string): Promise<boolean>;
|
|
67
67
|
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
* Closes an active app.
|
|
69
|
+
* @param appId App ID to close.
|
|
70
|
+
* @returns Whether the close was successful.
|
|
71
|
+
*/
|
|
72
72
|
closeApp(appId: string): Promise<boolean>;
|
|
73
73
|
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
* Sets a notification for an app.
|
|
75
|
+
* @param appId The unique identifier of the app to notify.
|
|
76
|
+
* @param state Whether the notification is currently visible.
|
|
77
|
+
* @param level The severity level of the notification badge.
|
|
78
|
+
*/
|
|
79
79
|
setNotification(appId: string, state: boolean, level?: "info" | "warning" | "error"): void;
|
|
80
80
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
* Clears the notification for an app.
|
|
82
|
+
* @param appId The unique identifier of the app whose notification to clear.
|
|
83
|
+
*/
|
|
84
84
|
clearNotification(appId: string): void;
|
|
85
85
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
* Returns the canvas element and shadow root for an app.
|
|
87
|
+
* @param appId The unique identifier of the app whose canvas to retrieve.
|
|
88
|
+
* @returns Canvas element with shadow root or undefined.
|
|
89
|
+
*/
|
|
90
90
|
getAppCanvas(appId: string): {
|
|
91
91
|
element: HTMLElement;
|
|
92
92
|
shadowRoot: ShadowRoot;
|
|
93
93
|
} | undefined;
|
|
94
94
|
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
* Stores the canvas element and shadow root for an app.
|
|
96
|
+
* @param appId The unique identifier of the app whose canvas to store.
|
|
97
|
+
* @param canvas The canvas object containing the host element and its shadow root.
|
|
98
|
+
* @param canvas.element The host HTMLElement that wraps the app's shadow DOM.
|
|
99
|
+
* @param canvas.shadowRoot The ShadowRoot attached to the canvas element.
|
|
100
|
+
*/
|
|
101
101
|
setAppCanvas(appId: string, canvas: {
|
|
102
102
|
element: HTMLElement;
|
|
103
103
|
shadowRoot: ShadowRoot;
|
|
@@ -105,50 +105,50 @@ declare class AppManager {
|
|
|
105
105
|
}
|
|
106
106
|
declare const sharedToolbarStylesheet: CSSStyleSheet | undefined;
|
|
107
107
|
/**
|
|
108
|
-
* Dev Toolbar Web Component.
|
|
109
|
-
*/
|
|
108
|
+
* Dev Toolbar Web Component.
|
|
109
|
+
*/
|
|
110
110
|
declare class DevToolbar extends HTMLElement {
|
|
111
111
|
private appManager;
|
|
112
112
|
private hasBeenInitialized;
|
|
113
113
|
private renderRoot;
|
|
114
114
|
constructor();
|
|
115
115
|
/**
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
* Called when element is inserted into the DOM.
|
|
117
|
+
* According to Preact docs, rendering should happen here or after connection.
|
|
118
|
+
*/
|
|
119
119
|
connectedCallback(): void;
|
|
120
120
|
/**
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
* Called when element is removed from the DOM.
|
|
122
|
+
* Cleans up the Preact component to prevent memory leaks.
|
|
123
|
+
*/
|
|
124
124
|
disconnectedCallback(): void;
|
|
125
125
|
/**
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
* Initialize the toolbar.
|
|
127
|
+
*/
|
|
128
128
|
init(): void;
|
|
129
129
|
/**
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
* Check if toolbar is hidden.
|
|
131
|
+
*/
|
|
132
132
|
isHidden(): boolean;
|
|
133
133
|
/**
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
* Set toolbar visibility.
|
|
135
|
+
*/
|
|
136
136
|
setToolbarVisible(visible: boolean): void;
|
|
137
137
|
/**
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
* Adds an app to the toolbar and triggers a re-render.
|
|
139
|
+
*/
|
|
140
140
|
registerApp(app: DevToolbarApp, builtIn?: boolean): void;
|
|
141
141
|
/**
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
* Get app manager (for external access).
|
|
143
|
+
*/
|
|
144
144
|
getAppManager(): AppManager;
|
|
145
145
|
/**
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
* Renders the toolbar UI using Preact.
|
|
147
|
+
*/
|
|
148
148
|
private render;
|
|
149
149
|
/**
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
* Attaches global keyboard shortcuts and other DOM event listeners.
|
|
151
|
+
*/
|
|
152
152
|
private setupEventListeners;
|
|
153
153
|
}
|
|
154
154
|
export { DevToolbar, sharedToolbarStylesheet };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -14,34 +14,16 @@ interface AlertDescriptionProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
children?: ComponentChildren;
|
|
15
15
|
class?: string;
|
|
16
16
|
}
|
|
17
|
-
declare const Alert: ({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
variant,
|
|
21
|
-
...rest
|
|
22
|
-
}: AlertProps) => JSX.Element;
|
|
23
|
-
declare const AlertTitle: ({
|
|
24
|
-
children,
|
|
25
|
-
class: className,
|
|
26
|
-
...rest
|
|
27
|
-
}: AlertTitleProps) => JSX.Element;
|
|
28
|
-
declare const AlertDescription: ({
|
|
29
|
-
children,
|
|
30
|
-
class: className,
|
|
31
|
-
...rest
|
|
32
|
-
}: AlertDescriptionProps) => JSX.Element;
|
|
17
|
+
declare const Alert: ({ children, class: className, variant, ...rest }: AlertProps) => JSX.Element;
|
|
18
|
+
declare const AlertTitle: ({ children, class: className, ...rest }: AlertTitleProps) => JSX.Element;
|
|
19
|
+
declare const AlertDescription: ({ children, class: className, ...rest }: AlertDescriptionProps) => JSX.Element;
|
|
33
20
|
type BadgeVariant = "default" | "destructive" | "info" | "outline" | "secondary" | "success" | "warning";
|
|
34
21
|
interface BadgeProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
35
22
|
children?: ComponentChildren;
|
|
36
23
|
class?: string;
|
|
37
24
|
variant?: BadgeVariant;
|
|
38
25
|
}
|
|
39
|
-
declare const Badge: ({
|
|
40
|
-
children,
|
|
41
|
-
class: className,
|
|
42
|
-
variant,
|
|
43
|
-
...rest
|
|
44
|
-
}: BadgeProps) => JSX.Element;
|
|
26
|
+
declare const Badge: ({ children, class: className, variant, ...rest }: BadgeProps) => JSX.Element;
|
|
45
27
|
type ButtonSize = "default" | "icon" | "lg" | "sm";
|
|
46
28
|
type ButtonVariant = "default" | "destructive" | "ghost" | "link" | "outline" | "secondary";
|
|
47
29
|
interface ButtonProps extends JSX.ButtonHTMLAttributes {
|
|
@@ -50,14 +32,7 @@ interface ButtonProps extends JSX.ButtonHTMLAttributes {
|
|
|
50
32
|
size?: ButtonSize;
|
|
51
33
|
variant?: ButtonVariant;
|
|
52
34
|
}
|
|
53
|
-
declare const Button: ({
|
|
54
|
-
children,
|
|
55
|
-
class: className,
|
|
56
|
-
size,
|
|
57
|
-
type,
|
|
58
|
-
variant,
|
|
59
|
-
...rest
|
|
60
|
-
}: ButtonProps) => JSX.Element;
|
|
35
|
+
declare const Button: ({ children, class: className, size, type, variant, ...rest }: ButtonProps) => JSX.Element;
|
|
61
36
|
interface CardProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
62
37
|
children?: ComponentChildren;
|
|
63
38
|
class?: string;
|
|
@@ -66,57 +41,29 @@ interface CardTitleProps extends JSX.HTMLAttributes<HTMLHeadingElement> {
|
|
|
66
41
|
children?: ComponentChildren;
|
|
67
42
|
class?: string;
|
|
68
43
|
}
|
|
69
|
-
declare const Card: ({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}: CardProps) => JSX.Element;
|
|
74
|
-
declare const
|
|
75
|
-
children,
|
|
76
|
-
class: className,
|
|
77
|
-
...rest
|
|
78
|
-
}: CardProps) => JSX.Element;
|
|
79
|
-
declare const CardTitle: ({
|
|
80
|
-
children,
|
|
81
|
-
class: className,
|
|
82
|
-
...rest
|
|
83
|
-
}: CardTitleProps) => JSX.Element;
|
|
84
|
-
declare const CardDescription: ({
|
|
85
|
-
children,
|
|
86
|
-
class: className,
|
|
87
|
-
...rest
|
|
88
|
-
}: CardProps) => JSX.Element;
|
|
89
|
-
declare const CardContent: ({
|
|
90
|
-
children,
|
|
91
|
-
class: className,
|
|
92
|
-
...rest
|
|
93
|
-
}: CardProps) => JSX.Element;
|
|
94
|
-
declare const CardFooter: ({
|
|
95
|
-
children,
|
|
96
|
-
class: className,
|
|
97
|
-
...rest
|
|
98
|
-
}: CardProps) => JSX.Element;
|
|
44
|
+
declare const Card: ({ children, class: className, ...rest }: CardProps) => JSX.Element;
|
|
45
|
+
declare const CardHeader: ({ children, class: className, ...rest }: CardProps) => JSX.Element;
|
|
46
|
+
declare const CardTitle: ({ children, class: className, ...rest }: CardTitleProps) => JSX.Element;
|
|
47
|
+
declare const CardDescription: ({ children, class: className, ...rest }: CardProps) => JSX.Element;
|
|
48
|
+
declare const CardContent: ({ children, class: className, ...rest }: CardProps) => JSX.Element;
|
|
49
|
+
declare const CardFooter: ({ children, class: className, ...rest }: CardProps) => JSX.Element;
|
|
99
50
|
interface IconProps {
|
|
100
51
|
class?: string;
|
|
101
52
|
size?: number;
|
|
102
53
|
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
54
|
+
* CSS data-URI from a `?data-uri&encoding=css` lucide-static import.
|
|
55
|
+
* Uses CSS mask-image so the icon inherits currentColor from the parent.
|
|
56
|
+
*/
|
|
106
57
|
src: string;
|
|
107
58
|
}
|
|
108
59
|
/**
|
|
109
|
-
* Renders a lucide-static icon using CSS mask-image.
|
|
110
|
-
* Color is driven by the parent element's `color` property (currentColor).
|
|
111
|
-
* @example
|
|
112
|
-
* import xIcon from "lucide-static/icons/x.svg?data-uri&encoding=css";
|
|
113
|
-
* <Icon src={xIcon} size={13} />
|
|
114
|
-
*/
|
|
115
|
-
declare const Icon: ({
|
|
116
|
-
class: className,
|
|
117
|
-
size,
|
|
118
|
-
src
|
|
119
|
-
}: IconProps) => ComponentChildren;
|
|
60
|
+
* Renders a lucide-static icon using CSS mask-image.
|
|
61
|
+
* Color is driven by the parent element's `color` property (currentColor).
|
|
62
|
+
* @example
|
|
63
|
+
* import xIcon from "lucide-static/icons/x.svg?data-uri&encoding=css";
|
|
64
|
+
* <Icon src={xIcon} size={13} />
|
|
65
|
+
*/
|
|
66
|
+
declare const Icon: ({ class: className, size, src }: IconProps) => ComponentChildren;
|
|
120
67
|
interface InputProps extends JSX.InputHTMLAttributes {
|
|
121
68
|
class?: string;
|
|
122
69
|
}
|
|
@@ -125,11 +72,7 @@ interface LabelProps extends JSX.LabelHTMLAttributes {
|
|
|
125
72
|
children?: ComponentChildren;
|
|
126
73
|
class?: string;
|
|
127
74
|
}
|
|
128
|
-
declare const Label: ({
|
|
129
|
-
children,
|
|
130
|
-
class: className,
|
|
131
|
-
...rest
|
|
132
|
-
}: LabelProps) => JSX.Element;
|
|
75
|
+
declare const Label: ({ children, class: className, ...rest }: LabelProps) => JSX.Element;
|
|
133
76
|
interface PopoverProps {
|
|
134
77
|
children: ComponentChildren;
|
|
135
78
|
defaultOpen?: boolean;
|
|
@@ -151,39 +94,15 @@ interface PopoverCloseProps extends JSX.ButtonHTMLAttributes {
|
|
|
151
94
|
children?: ComponentChildren;
|
|
152
95
|
class?: string;
|
|
153
96
|
}
|
|
154
|
-
declare const Popover: ({
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
open
|
|
159
|
-
}: PopoverProps) => JSX.Element;
|
|
160
|
-
declare const PopoverTrigger: ({
|
|
161
|
-
children,
|
|
162
|
-
class: className,
|
|
163
|
-
...rest
|
|
164
|
-
}: PopoverTriggerProps) => JSX.Element;
|
|
165
|
-
declare const PopoverContent: ({
|
|
166
|
-
align,
|
|
167
|
-
children,
|
|
168
|
-
class: className,
|
|
169
|
-
side,
|
|
170
|
-
sideOffset,
|
|
171
|
-
...rest
|
|
172
|
-
}: PopoverContentProps) => JSX.Element | undefined;
|
|
173
|
-
declare const PopoverClose: ({
|
|
174
|
-
children,
|
|
175
|
-
class: className,
|
|
176
|
-
...rest
|
|
177
|
-
}: PopoverCloseProps) => JSX.Element;
|
|
97
|
+
declare const Popover: ({ children, defaultOpen, onOpenChange, open }: PopoverProps) => JSX.Element;
|
|
98
|
+
declare const PopoverTrigger: ({ children, class: className, ...rest }: PopoverTriggerProps) => JSX.Element;
|
|
99
|
+
declare const PopoverContent: ({ align, children, class: className, side, sideOffset, ...rest }: PopoverContentProps) => JSX.Element | undefined;
|
|
100
|
+
declare const PopoverClose: ({ children, class: className, ...rest }: PopoverCloseProps) => JSX.Element;
|
|
178
101
|
interface ProgressProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
179
102
|
class?: string;
|
|
180
103
|
value?: number;
|
|
181
104
|
}
|
|
182
|
-
declare const Progress: ({
|
|
183
|
-
class: className,
|
|
184
|
-
value,
|
|
185
|
-
...rest
|
|
186
|
-
}: ProgressProps) => JSX.Element;
|
|
105
|
+
declare const Progress: ({ class: className, value, ...rest }: ProgressProps) => JSX.Element;
|
|
187
106
|
interface SelectContextValue {
|
|
188
107
|
highlightedValue: string | null;
|
|
189
108
|
instanceId: string;
|
|
@@ -230,52 +149,21 @@ interface SelectValueProps {
|
|
|
230
149
|
options: SelectOption[];
|
|
231
150
|
placeholder?: string;
|
|
232
151
|
}
|
|
233
|
-
declare const Select: ({
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}:
|
|
238
|
-
declare const SelectTrigger: ({
|
|
239
|
-
children,
|
|
240
|
-
class: className,
|
|
241
|
-
...rest
|
|
242
|
-
}: SelectTriggerProps) => JSX.Element;
|
|
243
|
-
declare const SelectValue: ({
|
|
244
|
-
class: className,
|
|
245
|
-
options,
|
|
246
|
-
placeholder
|
|
247
|
-
}: SelectValueProps) => JSX.Element;
|
|
248
|
-
declare const SelectContent: ({
|
|
249
|
-
align,
|
|
250
|
-
children,
|
|
251
|
-
class: className,
|
|
252
|
-
searchable,
|
|
253
|
-
side,
|
|
254
|
-
sideOffset
|
|
255
|
-
}: SelectContentProps) => JSX.Element | undefined;
|
|
256
|
-
declare const SelectItem: ({
|
|
257
|
-
children,
|
|
258
|
-
class: className,
|
|
259
|
-
value: itemValue
|
|
260
|
-
}: SelectItemProps) => JSX.Element;
|
|
152
|
+
declare const Select: ({ children, onValueChange, value }: SelectProps) => JSX.Element;
|
|
153
|
+
declare const SelectTrigger: ({ children, class: className, ...rest }: SelectTriggerProps) => JSX.Element;
|
|
154
|
+
declare const SelectValue: ({ class: className, options, placeholder }: SelectValueProps) => JSX.Element;
|
|
155
|
+
declare const SelectContent: ({ align, children, class: className, searchable, side, sideOffset }: SelectContentProps) => JSX.Element | undefined;
|
|
156
|
+
declare const SelectItem: ({ children, class: className, value: itemValue }: SelectItemProps) => JSX.Element;
|
|
261
157
|
interface SeparatorProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
262
158
|
class?: string;
|
|
263
159
|
decorative?: boolean;
|
|
264
160
|
orientation?: "horizontal" | "vertical";
|
|
265
161
|
}
|
|
266
|
-
declare const Separator: ({
|
|
267
|
-
class: className,
|
|
268
|
-
decorative,
|
|
269
|
-
orientation,
|
|
270
|
-
...rest
|
|
271
|
-
}: SeparatorProps) => JSX.Element;
|
|
162
|
+
declare const Separator: ({ class: className, decorative, orientation, ...rest }: SeparatorProps) => JSX.Element;
|
|
272
163
|
interface SkeletonProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
273
164
|
class?: string;
|
|
274
165
|
}
|
|
275
|
-
declare const Skeleton: ({
|
|
276
|
-
class: className,
|
|
277
|
-
...rest
|
|
278
|
-
}: SkeletonProps) => JSX.Element;
|
|
166
|
+
declare const Skeleton: ({ class: className, ...rest }: SkeletonProps) => JSX.Element;
|
|
279
167
|
interface SwitchProps extends Omit<JSX.ButtonHTMLAttributes, "onChange"> {
|
|
280
168
|
checked?: boolean;
|
|
281
169
|
class?: string;
|
|
@@ -284,15 +172,7 @@ interface SwitchProps extends Omit<JSX.ButtonHTMLAttributes, "onChange"> {
|
|
|
284
172
|
id?: string;
|
|
285
173
|
onCheckedChange?: (checked: boolean) => void;
|
|
286
174
|
}
|
|
287
|
-
declare const Switch: ({
|
|
288
|
-
checked,
|
|
289
|
-
class: className,
|
|
290
|
-
defaultChecked,
|
|
291
|
-
disabled,
|
|
292
|
-
id,
|
|
293
|
-
onCheckedChange,
|
|
294
|
-
...rest
|
|
295
|
-
}: SwitchProps) => JSX.Element;
|
|
175
|
+
declare const Switch: ({ checked, class: className, defaultChecked, disabled, id, onCheckedChange, ...rest }: SwitchProps) => JSX.Element;
|
|
296
176
|
interface TabsProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
297
177
|
children?: ComponentChildren;
|
|
298
178
|
class?: string;
|
|
@@ -315,32 +195,10 @@ interface TabsContentProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
315
195
|
class?: string;
|
|
316
196
|
value: string;
|
|
317
197
|
}
|
|
318
|
-
declare const Tabs: ({
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
onValueChange,
|
|
323
|
-
value,
|
|
324
|
-
...rest
|
|
325
|
-
}: TabsProps) => JSX.Element;
|
|
326
|
-
declare const TabsList: ({
|
|
327
|
-
children,
|
|
328
|
-
class: className,
|
|
329
|
-
...rest
|
|
330
|
-
}: TabsListProps) => JSX.Element;
|
|
331
|
-
declare const TabsTrigger: ({
|
|
332
|
-
children,
|
|
333
|
-
class: className,
|
|
334
|
-
disabled,
|
|
335
|
-
value,
|
|
336
|
-
...rest
|
|
337
|
-
}: TabsTriggerProps) => JSX.Element;
|
|
338
|
-
declare const TabsContent: ({
|
|
339
|
-
children,
|
|
340
|
-
class: className,
|
|
341
|
-
value,
|
|
342
|
-
...rest
|
|
343
|
-
}: TabsContentProps) => JSX.Element | undefined;
|
|
198
|
+
declare const Tabs: ({ children, class: className, defaultValue, onValueChange, value, ...rest }: TabsProps) => JSX.Element;
|
|
199
|
+
declare const TabsList: ({ children, class: className, ...rest }: TabsListProps) => JSX.Element;
|
|
200
|
+
declare const TabsTrigger: ({ children, class: className, disabled, value, ...rest }: TabsTriggerProps) => JSX.Element;
|
|
201
|
+
declare const TabsContent: ({ children, class: className, value, ...rest }: TabsContentProps) => JSX.Element | undefined;
|
|
344
202
|
interface TextareaProps extends JSX.TextareaHTMLAttributes {
|
|
345
203
|
class?: string;
|
|
346
204
|
}
|
|
@@ -359,22 +217,9 @@ interface TooltipContentProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
359
217
|
side?: "bottom" | "left" | "right" | "top";
|
|
360
218
|
sideOffset?: number;
|
|
361
219
|
}
|
|
362
|
-
declare const Tooltip: ({
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}: TooltipProps) => JSX.Element;
|
|
366
|
-
declare const TooltipTrigger: ({
|
|
367
|
-
children,
|
|
368
|
-
class: className,
|
|
369
|
-
...rest
|
|
370
|
-
}: TooltipTriggerProps) => JSX.Element;
|
|
371
|
-
declare const TooltipContent: ({
|
|
372
|
-
children,
|
|
373
|
-
class: className,
|
|
374
|
-
side,
|
|
375
|
-
sideOffset,
|
|
376
|
-
...rest
|
|
377
|
-
}: TooltipContentProps) => JSX.Element | undefined;
|
|
220
|
+
declare const Tooltip: ({ children, delayDuration: _delayDuration }: TooltipProps) => JSX.Element;
|
|
221
|
+
declare const TooltipTrigger: ({ children, class: className, ...rest }: TooltipTriggerProps) => JSX.Element;
|
|
222
|
+
declare const TooltipContent: ({ children, class: className, side, sideOffset, ...rest }: TooltipContentProps) => JSX.Element | undefined;
|
|
378
223
|
type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
|
|
379
224
|
type ClassDictionary = Record<string, any>;
|
|
380
225
|
type ClassArray = ClassValue[];
|