@visulima/dev-toolbar 1.0.0-alpha.8 → 1.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.
- package/CHANGELOG.md +479 -0
- package/LICENSE.md +21 -0
- package/README.md +64 -17
- package/bin/mcp.js +1 -1
- package/dist/apps/a11y/index.d.ts +3 -2
- package/dist/apps/a11y/index.js +3 -3
- package/dist/apps/annotations/index.d.ts +3 -2
- package/dist/apps/annotations/index.js +2 -2
- package/dist/apps/assets/index.d.ts +3 -2
- package/dist/apps/assets/index.js +2 -2
- package/dist/apps/inspector/index.d.ts +3 -2
- package/dist/apps/inspector/index.js +11 -11
- package/dist/apps/module-graph/index.d.ts +3 -2
- package/dist/apps/module-graph/index.js +2 -2
- package/dist/apps/performance/index.d.ts +3 -2
- package/dist/apps/performance/index.js +2 -2
- package/dist/apps/seo/index.d.ts +3 -2
- package/dist/apps/seo/index.js +2 -2
- package/dist/apps/settings/index.d.ts +3 -2
- package/dist/apps/settings/index.js +2 -2
- package/dist/apps/tailwind/index.d.ts +3 -2
- package/dist/apps/tailwind/index.js +5 -5
- package/dist/apps/timeline/index.d.ts +3 -2
- package/dist/apps/timeline/index.js +2 -2
- package/dist/apps/vite-config/index.d.ts +3 -2
- package/dist/apps/vite-config/index.js +2 -2
- package/dist/client/overlay.d.ts +1 -1
- package/dist/client/overlay.js +1 -1
- package/dist/index.d.ts +133 -8
- package/dist/index.js +1 -1
- package/dist/mcp/server.d.ts +2 -12
- package/dist/mcp/server.js +1 -1
- package/dist/packem_chunks/inject-source.js +7 -9
- package/dist/packem_shared/Alert-CZq7C43v.js +1 -0
- package/dist/packem_shared/Badge-PpblpNWg.js +1 -0
- package/dist/packem_shared/Button-CAKvtfij.js +1 -0
- package/dist/packem_shared/Card-BSy2oRiS.js +1 -0
- package/dist/packem_shared/Icon-0XYV-4AL.js +1 -0
- package/dist/packem_shared/{Input-Cs6aduTi.js → Input-Dc1WiT01.js} +1 -1
- package/dist/packem_shared/Label-BZh8XxUb.js +1 -0
- package/dist/packem_shared/Popover-DuiU8EPg.js +1 -0
- package/dist/packem_shared/Progress-C90LC--2.js +1 -0
- package/dist/packem_shared/Select-CwD-d0pi.js +1 -0
- package/dist/packem_shared/Separator-PSjfhX_W.js +1 -0
- package/dist/packem_shared/Skeleton-BAFrGUR1.js +1 -0
- package/dist/packem_shared/Switch-Wpsp5M3p.js +1 -0
- package/dist/packem_shared/Tabs-BdNFQd3c.js +1 -0
- package/dist/packem_shared/{Textarea-Yfg3dLZi.js → Textarea-DP9gpte-.js} +1 -1
- package/dist/packem_shared/Tooltip-DVeuszoY.js +1 -0
- package/dist/packem_shared/annotation-settings-DlLZO5Zp.js +1 -0
- package/dist/packem_shared/annotation-store-CXMIg0dM.js +1 -0
- package/dist/packem_shared/app.d-SmKEDxsI.d.ts +229 -0
- package/dist/packem_shared/clsx-CtZWcPHt.js +1 -0
- package/dist/packem_shared/createClientRPCContext-5Bh0Q7ai.js +1 -0
- package/dist/packem_shared/createDevToolbarHook-C_TF-RyL.js +1 -0
- package/dist/packem_shared/createServerRPCContext-2MNcj-v3.js +1 -0
- package/dist/packem_shared/getGlobalHook-D6jRtv7N.js +1 -0
- package/dist/packem_shared/getTimelineStore-BT5sImVb.js +1 -0
- package/dist/packem_shared/global-api.d-DeaCvII9.d.ts +546 -0
- package/dist/packem_shared/loadSettings-C0pUyx9j.js +1 -0
- package/dist/packem_shared/server.d-ZkcY0pge.d.ts +39 -0
- package/dist/packem_shared/sharedToolbarStylesheet-DCndH0A0.js +2 -0
- package/dist/packem_shared/store-Dqy0FbGw.js +1 -0
- package/dist/packem_shared/use-theme-DIqZkPAe.js +1 -0
- package/dist/toolbar/index.d.ts +152 -48
- package/dist/toolbar/index.js +3 -3
- package/dist/ui/index.d.ts +382 -18
- package/dist/ui/index.js +1 -1
- package/dist/vite-plugin.d.ts +183 -146
- package/dist/vite-plugin.js +4 -4
- package/package.json +14 -17
- package/dist/apps/a11y/a11y-app.d.ts +0 -4
- package/dist/apps/a11y/a11y-store.d.ts +0 -42
- package/dist/apps/a11y/a11y-tooltip.d.ts +0 -10
- package/dist/apps/annotations/annotations-app.d.ts +0 -4
- package/dist/apps/assets/assets-app.d.ts +0 -4
- package/dist/apps/inspector/a11y-capture.d.ts +0 -12
- package/dist/apps/inspector/annotation-overlay.d.ts +0 -55
- package/dist/apps/inspector/annotation-settings.d.ts +0 -33
- package/dist/apps/inspector/element-utils.d.ts +0 -115
- package/dist/apps/inspector/freeze-animations.d.ts +0 -22
- package/dist/apps/inspector/inspector-app.d.ts +0 -14
- package/dist/apps/inspector/rulers.d.ts +0 -14
- package/dist/apps/inspector/theme-palette.d.ts +0 -34
- package/dist/apps/module-graph/module-graph-app.d.ts +0 -4
- package/dist/apps/performance/performance-app.d.ts +0 -4
- package/dist/apps/performance/performance-tooltip.d.ts +0 -4
- package/dist/apps/seo/seo-app.d.ts +0 -4
- package/dist/apps/settings/settings-app.d.ts +0 -4
- package/dist/apps/tailwind/tailwind-app.d.ts +0 -4
- package/dist/apps/timeline/timeline-app.d.ts +0 -4
- package/dist/apps/vite-config/vite-config-app.d.ts +0 -4
- package/dist/hooks/create-hook.d.ts +0 -12
- package/dist/hooks/events.d.ts +0 -7
- package/dist/hooks/global-hook.d.ts +0 -15
- package/dist/hooks/index.d.ts +0 -6
- package/dist/packem_shared/Alert-D2CvX4fw.js +0 -1
- package/dist/packem_shared/Badge-BEgU04nl.js +0 -1
- package/dist/packem_shared/Button-Bkx66Co7.js +0 -1
- package/dist/packem_shared/Card-CJa4vHVc.js +0 -1
- package/dist/packem_shared/Icon-B6UHkC0o.js +0 -1
- package/dist/packem_shared/Label-DyCng4Cp.js +0 -1
- package/dist/packem_shared/Popover-BtFVaZYg.js +0 -1
- package/dist/packem_shared/Progress-DN6zn-0l.js +0 -1
- package/dist/packem_shared/Select-eaUIfvFb.js +0 -1
- package/dist/packem_shared/Separator-D38mKeZv.js +0 -1
- package/dist/packem_shared/Skeleton-Dv-tcA1P.js +0 -1
- package/dist/packem_shared/Switch-C3NTpeoR.js +0 -1
- package/dist/packem_shared/Tabs-DKWMiawt.js +0 -1
- package/dist/packem_shared/Tooltip-CioncSXj.js +0 -1
- package/dist/packem_shared/annotation-settings-Bv0TH4WI.js +0 -1
- package/dist/packem_shared/annotation-store-bLQRYMaI.js +0 -1
- package/dist/packem_shared/clsx-wGlvpUfw.js +0 -1
- package/dist/packem_shared/createClientRPCContext-DgRxrllw.js +0 -1
- package/dist/packem_shared/createDevToolbarHook-4bZZiHPI.js +0 -1
- package/dist/packem_shared/createServerRPCContext-CJ6F87o_.js +0 -1
- package/dist/packem_shared/getTimelineStore-B1cfjWV8.js +0 -1
- package/dist/packem_shared/loadSettings-hvjR4fcS.js +0 -1
- package/dist/packem_shared/setupGlobalHook-CCf9Logv.js +0 -1
- package/dist/packem_shared/sharedToolbarStylesheet-CaTdYhVe.js +0 -2
- package/dist/packem_shared/store-DaUtLjf3.js +0 -1
- package/dist/packem_shared/use-frame-state-CxrlPUM5.js +0 -1
- package/dist/packem_shared/use-theme-zpm4zmqP.js +0 -1
- package/dist/performance/monitor.d.ts +0 -116
- package/dist/rpc/client.d.ts +0 -9
- package/dist/rpc/functions/annotations.d.ts +0 -28
- package/dist/rpc/functions/assets.d.ts +0 -16
- package/dist/rpc/functions/module-graph.d.ts +0 -17
- package/dist/rpc/functions/open-in-editor.d.ts +0 -16
- package/dist/rpc/functions/tailwind-config.d.ts +0 -15
- package/dist/rpc/functions/vite-config.d.ts +0 -83
- package/dist/rpc/server.d.ts +0 -15
- package/dist/store/annotation-store.d.ts +0 -41
- package/dist/timeline/capture.d.ts +0 -8
- package/dist/timeline/index.d.ts +0 -8
- package/dist/timeline/store.d.ts +0 -42
- package/dist/toolbar/app-manager.d.ts +0 -104
- package/dist/toolbar/components/app-button.d.ts +0 -18
- package/dist/toolbar/components/app-canvas.d.ts +0 -12
- package/dist/toolbar/components/app-tooltip-overlay.d.ts +0 -12
- package/dist/toolbar/components/first-visit-hint.d.ts +0 -15
- package/dist/toolbar/components/index.d.ts +0 -4
- package/dist/toolbar/components/pinned-tooltip-card.d.ts +0 -22
- package/dist/toolbar/components/toolbar-bar.d.ts +0 -9
- package/dist/toolbar/components/toolbar-container.d.ts +0 -49
- package/dist/toolbar/components/vite-overlay-button.d.ts +0 -14
- package/dist/toolbar/context/index.d.ts +0 -2
- package/dist/toolbar/context/toolbar-context.d.ts +0 -107
- package/dist/toolbar/global-api.d.ts +0 -24
- package/dist/toolbar/helpers.d.ts +0 -8
- package/dist/toolbar/hooks/index.d.ts +0 -10
- package/dist/toolbar/hooks/use-apps.d.ts +0 -15
- package/dist/toolbar/hooks/use-frame-state.d.ts +0 -110
- package/dist/toolbar/hooks/use-panel-visible.d.ts +0 -23
- package/dist/toolbar/hooks/use-position.d.ts +0 -24
- package/dist/toolbar/hooks/use-theme.d.ts +0 -15
- package/dist/toolbar/hooks/use-toolbar.d.ts +0 -16
- package/dist/toolbar/settings.d.ts +0 -17
- package/dist/toolbar/stylesheet.d.ts +0 -3
- package/dist/toolbar/utils/index.d.ts +0 -12
- package/dist/types/annotations.d.ts +0 -156
- package/dist/types/app.d.ts +0 -175
- package/dist/types/global-api.d.ts +0 -91
- package/dist/types/hooks.d.ts +0 -86
- package/dist/types/index.d.ts +0 -13
- package/dist/types/messaging.d.ts +0 -43
- package/dist/types/rpc.d.ts +0 -137
- package/dist/types/timeline.d.ts +0 -62
- package/dist/types/toolbar.d.ts +0 -56
- package/dist/ui/components/alert.d.ts +0 -19
- package/dist/ui/components/badge.d.ts +0 -9
- package/dist/ui/components/button.d.ts +0 -11
- package/dist/ui/components/card.d.ts +0 -16
- package/dist/ui/components/icon.d.ts +0 -19
- package/dist/ui/components/input.d.ts +0 -7
- package/dist/ui/components/label.d.ts +0 -7
- package/dist/ui/components/popover.d.ts +0 -27
- package/dist/ui/components/progress.d.ts +0 -7
- package/dist/ui/components/select.d.ts +0 -54
- package/dist/ui/components/separator.d.ts +0 -8
- package/dist/ui/components/skeleton.d.ts +0 -6
- package/dist/ui/components/switch.d.ts +0 -11
- package/dist/ui/components/tabs.d.ts +0 -28
- package/dist/ui/components/textarea.d.ts +0 -7
- package/dist/ui/components/tooltip.d.ts +0 -19
- package/dist/vite/inject-source.d.ts +0 -24
- package/dist/vite/matcher.d.ts +0 -6
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,18 +1,382 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { ComponentChildren, JSX } from 'preact';
|
|
2
|
+
import { RefAttributes, ForwardRefExoticComponent } from 'preact/compat';
|
|
3
|
+
type AlertVariant = "default" | "destructive" | "info" | "success" | "warning";
|
|
4
|
+
interface AlertProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
children?: ComponentChildren;
|
|
6
|
+
class?: string;
|
|
7
|
+
variant?: AlertVariant;
|
|
8
|
+
}
|
|
9
|
+
interface AlertTitleProps extends JSX.HTMLAttributes<HTMLHeadingElement> {
|
|
10
|
+
children?: ComponentChildren;
|
|
11
|
+
class?: string;
|
|
12
|
+
}
|
|
13
|
+
interface AlertDescriptionProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
children?: ComponentChildren;
|
|
15
|
+
class?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const Alert: ({
|
|
18
|
+
children,
|
|
19
|
+
class: className,
|
|
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;
|
|
33
|
+
type BadgeVariant = "default" | "destructive" | "info" | "outline" | "secondary" | "success" | "warning";
|
|
34
|
+
interface BadgeProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
children?: ComponentChildren;
|
|
36
|
+
class?: string;
|
|
37
|
+
variant?: BadgeVariant;
|
|
38
|
+
}
|
|
39
|
+
declare const Badge: ({
|
|
40
|
+
children,
|
|
41
|
+
class: className,
|
|
42
|
+
variant,
|
|
43
|
+
...rest
|
|
44
|
+
}: BadgeProps) => JSX.Element;
|
|
45
|
+
type ButtonSize = "default" | "icon" | "lg" | "sm";
|
|
46
|
+
type ButtonVariant = "default" | "destructive" | "ghost" | "link" | "outline" | "secondary";
|
|
47
|
+
interface ButtonProps extends JSX.ButtonHTMLAttributes {
|
|
48
|
+
children?: ComponentChildren;
|
|
49
|
+
class?: string;
|
|
50
|
+
size?: ButtonSize;
|
|
51
|
+
variant?: ButtonVariant;
|
|
52
|
+
}
|
|
53
|
+
declare const Button: ({
|
|
54
|
+
children,
|
|
55
|
+
class: className,
|
|
56
|
+
size,
|
|
57
|
+
type,
|
|
58
|
+
variant,
|
|
59
|
+
...rest
|
|
60
|
+
}: ButtonProps) => JSX.Element;
|
|
61
|
+
interface CardProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
62
|
+
children?: ComponentChildren;
|
|
63
|
+
class?: string;
|
|
64
|
+
}
|
|
65
|
+
interface CardTitleProps extends JSX.HTMLAttributes<HTMLHeadingElement> {
|
|
66
|
+
children?: ComponentChildren;
|
|
67
|
+
class?: string;
|
|
68
|
+
}
|
|
69
|
+
declare const Card: ({
|
|
70
|
+
children,
|
|
71
|
+
class: className,
|
|
72
|
+
...rest
|
|
73
|
+
}: CardProps) => JSX.Element;
|
|
74
|
+
declare const CardHeader: ({
|
|
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;
|
|
99
|
+
interface IconProps {
|
|
100
|
+
class?: string;
|
|
101
|
+
size?: number;
|
|
102
|
+
/**
|
|
103
|
+
* CSS data-URI from a `?data-uri&encoding=css` lucide-static import.
|
|
104
|
+
* Uses CSS mask-image so the icon inherits currentColor from the parent.
|
|
105
|
+
*/
|
|
106
|
+
src: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
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;
|
|
120
|
+
interface InputProps extends JSX.InputHTMLAttributes {
|
|
121
|
+
class?: string;
|
|
122
|
+
}
|
|
123
|
+
declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
|
|
124
|
+
interface LabelProps extends JSX.LabelHTMLAttributes {
|
|
125
|
+
children?: ComponentChildren;
|
|
126
|
+
class?: string;
|
|
127
|
+
}
|
|
128
|
+
declare const Label: ({
|
|
129
|
+
children,
|
|
130
|
+
class: className,
|
|
131
|
+
...rest
|
|
132
|
+
}: LabelProps) => JSX.Element;
|
|
133
|
+
interface PopoverProps {
|
|
134
|
+
children: ComponentChildren;
|
|
135
|
+
defaultOpen?: boolean;
|
|
136
|
+
onOpenChange?: (open: boolean) => void;
|
|
137
|
+
open?: boolean;
|
|
138
|
+
}
|
|
139
|
+
interface PopoverTriggerProps extends JSX.ButtonHTMLAttributes {
|
|
140
|
+
children: ComponentChildren;
|
|
141
|
+
class?: string;
|
|
142
|
+
}
|
|
143
|
+
interface PopoverContentProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
144
|
+
align?: "center" | "end" | "start";
|
|
145
|
+
children: ComponentChildren;
|
|
146
|
+
class?: string;
|
|
147
|
+
side?: "bottom" | "left" | "right" | "top";
|
|
148
|
+
sideOffset?: number;
|
|
149
|
+
}
|
|
150
|
+
interface PopoverCloseProps extends JSX.ButtonHTMLAttributes {
|
|
151
|
+
children?: ComponentChildren;
|
|
152
|
+
class?: string;
|
|
153
|
+
}
|
|
154
|
+
declare const Popover: ({
|
|
155
|
+
children,
|
|
156
|
+
defaultOpen,
|
|
157
|
+
onOpenChange,
|
|
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;
|
|
178
|
+
interface ProgressProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
179
|
+
class?: string;
|
|
180
|
+
value?: number;
|
|
181
|
+
}
|
|
182
|
+
declare const Progress: ({
|
|
183
|
+
class: className,
|
|
184
|
+
value,
|
|
185
|
+
...rest
|
|
186
|
+
}: ProgressProps) => JSX.Element;
|
|
187
|
+
interface SelectContextValue {
|
|
188
|
+
highlightedValue: string | null;
|
|
189
|
+
instanceId: string;
|
|
190
|
+
onSelect: (value: string) => void;
|
|
191
|
+
open: boolean;
|
|
192
|
+
search: string;
|
|
193
|
+
setHighlightedValue: (v: string | null) => void;
|
|
194
|
+
setOpen: (v: boolean) => void;
|
|
195
|
+
setSearch: (v: string) => void;
|
|
196
|
+
triggerRef: {
|
|
197
|
+
current: HTMLButtonElement | null;
|
|
198
|
+
};
|
|
199
|
+
value: string;
|
|
200
|
+
}
|
|
201
|
+
declare const useSelectContext: () => SelectContextValue;
|
|
202
|
+
interface SelectOption {
|
|
203
|
+
label: string;
|
|
204
|
+
value: string;
|
|
205
|
+
}
|
|
206
|
+
interface SelectProps {
|
|
207
|
+
children: ComponentChildren;
|
|
208
|
+
onValueChange?: (value: string) => void;
|
|
209
|
+
value?: string;
|
|
210
|
+
}
|
|
211
|
+
interface SelectTriggerProps extends Omit<JSX.ButtonHTMLAttributes, "children"> {
|
|
212
|
+
children: ComponentChildren;
|
|
213
|
+
class?: string;
|
|
214
|
+
}
|
|
215
|
+
interface SelectContentProps {
|
|
216
|
+
align?: "center" | "end" | "start";
|
|
217
|
+
children: ComponentChildren;
|
|
218
|
+
class?: string;
|
|
219
|
+
searchable?: boolean;
|
|
220
|
+
side?: "bottom" | "top";
|
|
221
|
+
sideOffset?: number;
|
|
222
|
+
}
|
|
223
|
+
interface SelectItemProps {
|
|
224
|
+
children: ComponentChildren;
|
|
225
|
+
class?: string;
|
|
226
|
+
value: string;
|
|
227
|
+
}
|
|
228
|
+
interface SelectValueProps {
|
|
229
|
+
class?: string;
|
|
230
|
+
options: SelectOption[];
|
|
231
|
+
placeholder?: string;
|
|
232
|
+
}
|
|
233
|
+
declare const Select: ({
|
|
234
|
+
children,
|
|
235
|
+
onValueChange,
|
|
236
|
+
value
|
|
237
|
+
}: SelectProps) => JSX.Element;
|
|
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;
|
|
261
|
+
interface SeparatorProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
262
|
+
class?: string;
|
|
263
|
+
decorative?: boolean;
|
|
264
|
+
orientation?: "horizontal" | "vertical";
|
|
265
|
+
}
|
|
266
|
+
declare const Separator: ({
|
|
267
|
+
class: className,
|
|
268
|
+
decorative,
|
|
269
|
+
orientation,
|
|
270
|
+
...rest
|
|
271
|
+
}: SeparatorProps) => JSX.Element;
|
|
272
|
+
interface SkeletonProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
273
|
+
class?: string;
|
|
274
|
+
}
|
|
275
|
+
declare const Skeleton: ({
|
|
276
|
+
class: className,
|
|
277
|
+
...rest
|
|
278
|
+
}: SkeletonProps) => JSX.Element;
|
|
279
|
+
interface SwitchProps extends Omit<JSX.ButtonHTMLAttributes, "onChange"> {
|
|
280
|
+
checked?: boolean;
|
|
281
|
+
class?: string;
|
|
282
|
+
defaultChecked?: boolean;
|
|
283
|
+
disabled?: boolean;
|
|
284
|
+
id?: string;
|
|
285
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
286
|
+
}
|
|
287
|
+
declare const Switch: ({
|
|
288
|
+
checked,
|
|
289
|
+
class: className,
|
|
290
|
+
defaultChecked,
|
|
291
|
+
disabled,
|
|
292
|
+
id,
|
|
293
|
+
onCheckedChange,
|
|
294
|
+
...rest
|
|
295
|
+
}: SwitchProps) => JSX.Element;
|
|
296
|
+
interface TabsProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
297
|
+
children?: ComponentChildren;
|
|
298
|
+
class?: string;
|
|
299
|
+
defaultValue?: string;
|
|
300
|
+
onValueChange?: (value: string) => void;
|
|
301
|
+
value?: string;
|
|
302
|
+
}
|
|
303
|
+
interface TabsListProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
304
|
+
children?: ComponentChildren;
|
|
305
|
+
class?: string;
|
|
306
|
+
}
|
|
307
|
+
interface TabsTriggerProps extends JSX.ButtonHTMLAttributes {
|
|
308
|
+
children?: ComponentChildren;
|
|
309
|
+
class?: string;
|
|
310
|
+
disabled?: boolean;
|
|
311
|
+
value: string;
|
|
312
|
+
}
|
|
313
|
+
interface TabsContentProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
314
|
+
children?: ComponentChildren;
|
|
315
|
+
class?: string;
|
|
316
|
+
value: string;
|
|
317
|
+
}
|
|
318
|
+
declare const Tabs: ({
|
|
319
|
+
children,
|
|
320
|
+
class: className,
|
|
321
|
+
defaultValue,
|
|
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;
|
|
344
|
+
interface TextareaProps extends JSX.TextareaHTMLAttributes {
|
|
345
|
+
class?: string;
|
|
346
|
+
}
|
|
347
|
+
declare const Textarea: ForwardRefExoticComponent<RefAttributes<HTMLTextAreaElement> & TextareaProps>;
|
|
348
|
+
interface TooltipProps {
|
|
349
|
+
children: ComponentChildren;
|
|
350
|
+
delayDuration?: number;
|
|
351
|
+
}
|
|
352
|
+
interface TooltipTriggerProps extends JSX.HTMLAttributes<HTMLSpanElement> {
|
|
353
|
+
children: ComponentChildren;
|
|
354
|
+
class?: string;
|
|
355
|
+
}
|
|
356
|
+
interface TooltipContentProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
357
|
+
children: ComponentChildren;
|
|
358
|
+
class?: string;
|
|
359
|
+
side?: "bottom" | "left" | "right" | "top";
|
|
360
|
+
sideOffset?: number;
|
|
361
|
+
}
|
|
362
|
+
declare const Tooltip: ({
|
|
363
|
+
children,
|
|
364
|
+
delayDuration: _delayDuration
|
|
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;
|
|
378
|
+
type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
|
|
379
|
+
type ClassDictionary = Record<string, any>;
|
|
380
|
+
type ClassArray = ClassValue[];
|
|
381
|
+
declare function clsx(...inputs: ClassValue[]): string;
|
|
382
|
+
export { Alert, AlertDescription, AlertTitle, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Icon, Input, Label, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, Select, SelectContent, SelectItem, type SelectOption, SelectTrigger, SelectValue, Separator, Skeleton, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Tooltip, TooltipContent, TooltipTrigger, clsx, useSelectContext };
|
package/dist/ui/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Alert as o,AlertDescription as r,AlertTitle as a}from"../packem_shared/Alert-
|
|
1
|
+
import{Alert as o,AlertDescription as r,AlertTitle as a}from"../packem_shared/Alert-CZq7C43v.js";import{default as p}from"../packem_shared/Badge-PpblpNWg.js";import{default as s}from"../packem_shared/Button-CAKvtfij.js";import{Card as d,CardContent as m,CardDescription as n,CardFooter as i,CardHeader as u,CardTitle as T}from"../packem_shared/Card-BSy2oRiS.js";import{default as c}from"../packem_shared/Icon-0XYV-4AL.js";import{default as S}from"../packem_shared/Input-Dc1WiT01.js";import{default as P}from"../packem_shared/Label-BZh8XxUb.js";import{Popover as A,PopoverClose as I,PopoverContent as B,PopoverTrigger as D}from"../packem_shared/Popover-DuiU8EPg.js";import{default as h}from"../packem_shared/Progress-C90LC--2.js";import{Select as w,SelectContent as F,SelectItem as H,SelectTrigger as V,SelectValue as j,useSelectContext as q}from"../packem_shared/Select-CwD-d0pi.js";import{default as z}from"../packem_shared/Separator-PSjfhX_W.js";import{default as G}from"../packem_shared/Skeleton-BAFrGUR1.js";import{default as K}from"../packem_shared/Switch-Wpsp5M3p.js";import{Tabs as N,TabsContent as O,TabsList as Q,TabsTrigger as R}from"../packem_shared/Tabs-BdNFQd3c.js";import{default as W}from"../packem_shared/Textarea-DP9gpte-.js";import{Tooltip as Y,TooltipContent as Z,TooltipTrigger as _}from"../packem_shared/Tooltip-DVeuszoY.js";import{clsx as ee}from"../packem_shared/clsx-CtZWcPHt.js";export{o as Alert,r as AlertDescription,a as AlertTitle,p as Badge,s as Button,d as Card,m as CardContent,n as CardDescription,i as CardFooter,u as CardHeader,T as CardTitle,c as Icon,S as Input,P as Label,A as Popover,I as PopoverClose,B as PopoverContent,D as PopoverTrigger,h as Progress,w as Select,F as SelectContent,H as SelectItem,V as SelectTrigger,j as SelectValue,z as Separator,G as Skeleton,K as Switch,N as Tabs,O as TabsContent,Q as TabsList,R as TabsTrigger,W as Textarea,Y as Tooltip,Z as TooltipContent,_ as TooltipTrigger,ee as clsx,q as useSelectContext};
|