@monoform-ui/react 0.0.0-stage → 0.2.0-beta.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/LICENSE +21 -0
- package/README.md +228 -2
- package/THIRD_PARTY_NOTICES.md +37 -0
- package/dist/actions.d.ts +80 -0
- package/dist/advanced-forms.d.ts +107 -0
- package/dist/advanced-inputs.d.ts +103 -0
- package/dist/agent-chat.d.ts +98 -0
- package/dist/agent-input.d.ts +54 -0
- package/dist/ai-creation-input.d.ts +71 -0
- package/dist/ai-interactions.d.ts +90 -0
- package/dist/ai-status.d.ts +17 -0
- package/dist/ai.cjs +2 -0
- package/dist/ai.cjs.map +1 -0
- package/dist/ai.d.ts +6 -0
- package/dist/ai.js +29 -0
- package/dist/ai.js.map +1 -0
- package/dist/app-shell.d.ts +69 -0
- package/dist/assets/backgrounds/monolith-field-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-dark.svg +58 -0
- package/dist/assets/backgrounds/monolith-field-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-light.svg +58 -0
- package/dist/assets/backgrounds/optical-fog-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-dark.svg +50 -0
- package/dist/assets/backgrounds/optical-fog-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-light.svg +50 -0
- package/dist/assets/backgrounds/orbital-field-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-dark.svg +49 -0
- package/dist/assets/backgrounds/orbital-field-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-light.svg +49 -0
- package/dist/assets/backgrounds/signal-lattice-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark.svg +39 -0
- package/dist/assets/backgrounds/signal-lattice-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-light.svg +39 -0
- package/dist/background-assets.d.ts +144 -0
- package/dist/backgrounds.cjs +2 -0
- package/dist/backgrounds.cjs.map +1 -0
- package/dist/backgrounds.css +463 -0
- package/dist/backgrounds.d.ts +44 -0
- package/dist/backgrounds.js +256 -0
- package/dist/backgrounds.js.map +1 -0
- package/dist/catalog.cjs +2 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.ts +27 -0
- package/dist/catalog.js +307 -0
- package/dist/catalog.js.map +1 -0
- package/dist/collections-CXPc6huw.cjs +2 -0
- package/dist/collections-CXPc6huw.cjs.map +1 -0
- package/dist/collections-GglQdMPr.js +1308 -0
- package/dist/collections-GglQdMPr.js.map +1 -0
- package/dist/collections.d.ts +52 -0
- package/dist/command-palette-B4r2GzmF.cjs +2 -0
- package/dist/command-palette-B4r2GzmF.cjs.map +1 -0
- package/dist/command-palette-DwfgljM2.js +2773 -0
- package/dist/command-palette-DwfgljM2.js.map +1 -0
- package/dist/command-palette.d.ts +26 -0
- package/dist/core.cjs +2 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.css +8659 -0
- package/dist/core.d.ts +19 -0
- package/dist/core.js +176 -0
- package/dist/core.js.map +1 -0
- package/dist/data-grid.d.ts +62 -0
- package/dist/data-workbench.d.ts +103 -0
- package/dist/data.cjs +2 -0
- package/dist/data.cjs.map +1 -0
- package/dist/data.d.ts +6 -0
- package/dist/data.js +19 -0
- package/dist/data.js.map +1 -0
- package/dist/description-list.d.ts +8 -0
- package/dist/effects.cjs +2 -0
- package/dist/effects.cjs.map +1 -0
- package/dist/effects.css +442 -0
- package/dist/effects.d.ts +2 -0
- package/dist/effects.js +19 -0
- package/dist/effects.js.map +1 -0
- package/dist/feedback.d.ts +40 -0
- package/dist/forms.d.ts +89 -0
- package/dist/harness-D7tlTUb2.cjs +2 -0
- package/dist/harness-D7tlTUb2.cjs.map +1 -0
- package/dist/harness-Dcqe3-AP.js +2282 -0
- package/dist/harness-Dcqe3-AP.js.map +1 -0
- package/dist/harness.d.ts +89 -0
- package/dist/hooks.d.ts +6 -0
- package/dist/image-effects-BaXRloLB.js +164 -0
- package/dist/image-effects-BaXRloLB.js.map +1 -0
- package/dist/image-effects-D57JACXp.cjs +2 -0
- package/dist/image-effects-D57JACXp.cjs.map +1 -0
- package/dist/image-effects.d.ts +14 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +239 -0
- package/dist/index.js.map +1 -0
- package/dist/locale.d.ts +358 -0
- package/dist/motion-effects-C1Rs4a2H.js +449 -0
- package/dist/motion-effects-C1Rs4a2H.js.map +1 -0
- package/dist/motion-effects-ze3SOVGs.cjs +2 -0
- package/dist/motion-effects-ze3SOVGs.cjs.map +1 -0
- package/dist/motion-effects.d.ts +76 -0
- package/dist/nav-menu.d.ts +45 -0
- package/dist/navigation-BG-qLyKt.cjs +2 -0
- package/dist/navigation-BG-qLyKt.cjs.map +1 -0
- package/dist/navigation-Bp7q1n-5.js +252 -0
- package/dist/navigation-Bp7q1n-5.js.map +1 -0
- package/dist/navigation.d.ts +53 -0
- package/dist/overlays-BhrWwlkN.js +1288 -0
- package/dist/overlays-BhrWwlkN.js.map +1 -0
- package/dist/overlays-DvozzH8D.cjs +2 -0
- package/dist/overlays-DvozzH8D.cjs.map +1 -0
- package/dist/overlays.d.ts +92 -0
- package/dist/people-picker.d.ts +65 -0
- package/dist/portal.d.ts +3 -0
- package/dist/primitives-Bb7v-uZh.js +217 -0
- package/dist/primitives-Bb7v-uZh.js.map +1 -0
- package/dist/primitives-CEcOVwUM.cjs +2 -0
- package/dist/primitives-CEcOVwUM.cjs.map +1 -0
- package/dist/primitives.d.ts +66 -0
- package/dist/rounded-card-border-B3d1HqwY.js +185 -0
- package/dist/rounded-card-border-B3d1HqwY.js.map +1 -0
- package/dist/rounded-card-border-CMiEPJIF.cjs +2 -0
- package/dist/rounded-card-border-CMiEPJIF.cjs.map +1 -0
- package/dist/rounded-card-border.d.ts +3 -0
- package/dist/sizes.d.ts +4 -0
- package/dist/status-toast.d.ts +20 -0
- package/dist/styles.css +9566 -0
- package/dist/theme-C3i6xkHd.cjs +2 -0
- package/dist/theme-C3i6xkHd.cjs.map +1 -0
- package/dist/theme-CHYnSgLv.js +914 -0
- package/dist/theme-CHYnSgLv.js.map +1 -0
- package/dist/theme.d.ts +24 -0
- package/dist/timeline.d.ts +15 -0
- package/dist/tree-view-Djlqyml-.js +132 -0
- package/dist/tree-view-Djlqyml-.js.map +1 -0
- package/dist/tree-view-iVh5jMNt.cjs +2 -0
- package/dist/tree-view-iVh5jMNt.cjs.map +1 -0
- package/dist/tree-view.d.ts +18 -0
- package/dist/utils.d.ts +2 -0
- package/package.json +162 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Monoform UI contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,229 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @monoform-ui/react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Monochrome React components for data-rich enterprise workflows and AI-native products.
|
|
4
|
+
|
|
5
|
+
Version `0.2.0-beta.0` exposes a Chinese-first component surface across themes, layout, actions, forms, overlays, navigation, feedback, data and AI. Stable, Beta and Experimental maturity is published through `@monoform-ui/react/catalog`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @monoform-ui/react@beta react react-dom
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Button, Field, InputGroup, ThemeProvider, TreeSelect } from "@monoform-ui/react";
|
|
15
|
+
import "@monoform-ui/react/styles.css";
|
|
16
|
+
|
|
17
|
+
export function App() {
|
|
18
|
+
return (
|
|
19
|
+
<ThemeProvider initialMode="system" initialDensity="comfortable">
|
|
20
|
+
<Field label="Workspace namespace">
|
|
21
|
+
<InputGroup prefix="console/" suffix=".dev" />
|
|
22
|
+
</Field>
|
|
23
|
+
<Field label="Resource scope">
|
|
24
|
+
<TreeSelect
|
|
25
|
+
nodes={[
|
|
26
|
+
{
|
|
27
|
+
value: "platform",
|
|
28
|
+
label: "Platform",
|
|
29
|
+
children: [{ value: "runtime", label: "Runtime" }],
|
|
30
|
+
},
|
|
31
|
+
]}
|
|
32
|
+
/>
|
|
33
|
+
</Field>
|
|
34
|
+
<Button variant="primary">Continue</Button>
|
|
35
|
+
</ThemeProvider>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Focused entries are available for smaller bundles:
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import { Button } from "@monoform-ui/react/core";
|
|
44
|
+
import { AgentInput } from "@monoform-ui/react/ai";
|
|
45
|
+
import { DataGrid } from "@monoform-ui/react/data";
|
|
46
|
+
import { Backdrop, MediaBackdrop, Surface } from "@monoform-ui/react/backgrounds";
|
|
47
|
+
import { ImageGeneration } from "@monoform-ui/react/effects";
|
|
48
|
+
import "@monoform-ui/react/core.css";
|
|
49
|
+
import "@monoform-ui/react/backgrounds.css";
|
|
50
|
+
import "@monoform-ui/react/effects.css";
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
`styles.css` remains the compatibility entry that combines both stylesheets.
|
|
54
|
+
|
|
55
|
+
Data, AI and visual-effect entry points use optional peer dependencies so a
|
|
56
|
+
`core`-only application does not install Three.js or the third-party effect
|
|
57
|
+
runtime:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Core only
|
|
61
|
+
pnpm add @monoform-ui/react react react-dom
|
|
62
|
+
|
|
63
|
+
# DataGrid and data workbench
|
|
64
|
+
pnpm add @tanstack/react-table @tanstack/react-virtual
|
|
65
|
+
|
|
66
|
+
# Agent and visual effects
|
|
67
|
+
pnpm add border-beam bot-avatars img-fx metal-fx thinking-orbs three voice-glow voice-ring
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Only install the peer set required by the subpaths you import. Missing optional
|
|
71
|
+
peers produce a normal module-resolution error for that focused entry rather than
|
|
72
|
+
inflating every `core` installation.
|
|
73
|
+
|
|
74
|
+
All controls consume semantic CSS variables, support light and dark themes, expose keyboard interaction and use Radix Primitives where complex focus or overlay behavior is required. See the workspace repository for the full inventory and release roadmap.
|
|
75
|
+
|
|
76
|
+
Dark cards render a single SVG border layer. Top and left edges use the light hairline color, while right and bottom edges use the deeper border color. The top-right and bottom-left quarter-circle arcs use independent `userSpaceOnUse` light-to-dark gradients. Their path radii are the CSS corner radius minus the `0.5px` stroke inset, keeping the 1px stroke centered on the Card edge. Light cards keep the original native hairline border.
|
|
77
|
+
|
|
78
|
+
`Card` owns its border, radius, and corner-gradient layer. Do not add `border`, ring, outline, shadow, gradient-border, or custom radius utilities to a Card, and do not wrap a Card in another rounded bordered container. For extension, change the host Card surface or spacing only; the existing SVG border must remain the only border layer.
|
|
79
|
+
|
|
80
|
+
Controls sharing one horizontal row use one exact outer height. Do not mix control sizes or hard-coded adjacent heights inside one action cluster or toolbar.
|
|
81
|
+
|
|
82
|
+
## Localization
|
|
83
|
+
|
|
84
|
+
`ThemeProvider` defaults to `zh-CN`. Built-in Chinese copy includes visible strings, dates and accessible names:
|
|
85
|
+
|
|
86
|
+
```tsx
|
|
87
|
+
<ThemeProvider locale="zh-CN">
|
|
88
|
+
<DatePicker aria-label="发布日期" />
|
|
89
|
+
</ThemeProvider>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Set `locale="en-US"` to restore the complete English dictionary:
|
|
93
|
+
|
|
94
|
+
```tsx
|
|
95
|
+
<ThemeProvider locale="en-US">
|
|
96
|
+
<DatePicker aria-label="Release date" />
|
|
97
|
+
</ThemeProvider>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Use `messages` for partial overrides. Nested objects are deep-merged with the selected built-in dictionary, while explicit component props remain authoritative:
|
|
101
|
+
|
|
102
|
+
```tsx
|
|
103
|
+
<ThemeProvider
|
|
104
|
+
messages={{
|
|
105
|
+
common: { loading: "正在准备" },
|
|
106
|
+
forms: { searchPlaceholder: "查找内容" },
|
|
107
|
+
}}
|
|
108
|
+
>
|
|
109
|
+
<SearchInput aria-label="搜索" />
|
|
110
|
+
</ThemeProvider>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
`useLocale()` returns `{ locale, messages, formatDate, formatNumber }` for custom components.
|
|
114
|
+
|
|
115
|
+
Typography primitives share font-size, line-height and zero letter-spacing tokens. Use `Prose` for continuous long-form content and `Icon` for standardized Lucide sizes, `1.5` stroke width and decorative or labeled accessibility semantics.
|
|
116
|
+
|
|
117
|
+
## Sizes
|
|
118
|
+
|
|
119
|
+
`ControlSize` provides `"sm" | "md" | "lg"` across form controls, selectors, SegmentedControl, Badge, Tag, Pagination and TabsList. Dialog and Drawer use `SurfaceSize`, adding `"full"`.
|
|
120
|
+
|
|
121
|
+
An explicit `size` overrides the current density. When `size` is omitted, the component inherits the `comfortable` or `compact` density variables from `ThemeProvider`.
|
|
122
|
+
|
|
123
|
+
`Select` defaults to `width="auto"` so standalone filter controls size to their
|
|
124
|
+
current label. Inside `Field`, it automatically becomes `width="full"` for form
|
|
125
|
+
layout. Pass `width` explicitly when a deliberate exception is required.
|
|
126
|
+
|
|
127
|
+
## Motion effects
|
|
128
|
+
|
|
129
|
+
The package includes theme- and locale-aware wrappers around the MIT-licensed Libraries.dev effects:
|
|
130
|
+
|
|
131
|
+
```tsx
|
|
132
|
+
import {
|
|
133
|
+
BorderBeam,
|
|
134
|
+
ThinkingOrb,
|
|
135
|
+
ThinkingOrbStatus,
|
|
136
|
+
VoiceBeam,
|
|
137
|
+
VoiceRing,
|
|
138
|
+
BotAvatar,
|
|
139
|
+
MetalFx,
|
|
140
|
+
MetalText,
|
|
141
|
+
MetalBadge,
|
|
142
|
+
ImageGeneration,
|
|
143
|
+
type ImageGenerationHandle,
|
|
144
|
+
} from "@monoform-ui/react";
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
`AICreationInput` combines prompts, reference images, `@` subject references, model selection, composite aspect-ratio and resolution settings, generation count, credits and submission in one media-generation composer. `ClarificationPrompt`, `ApprovalRequest` and `PlanReview` cover structured AI choices, side-effect authorization and ordered plan approval. `ModelSelector` adds rich model comparison and switching, while `ContextMeter` exposes used, reserved and remaining context with warning and danger thresholds. `ThinkingOrb` exposes all nine animation states at its tuned 64px avatar, 32px compact and 20px inline sizes. `ThinkingOrbStatus` adds a horizontal, locale-aware status capsule that defaults to the 32px compact orb and also supports 20px. It accepts an optional `elapsed` value but does not start a timer itself. `BotAvatar` exposes all 18 avatar shapes and defaults to the Mono Flat silhouette: black with white eyes in light mode and white with black eyes in dark mode. `mono-chrome` and the upstream `default` material remain optional. Both voice components accept either a microphone `stream` or a manual `level`. `VoiceRing` keeps its full spectrum when `emotion` is omitted, uses green, blue and red for `positive`, `calm` and `negative`, and accepts custom `emotionColors`. Metal components use the stable WebGL renderer and preserve their children as a fallback when it is unavailable. `ImageGeneration` provides pixel-mosaic loading, reveal, hide and regenerate transitions with `pixels-organic`, `pixels-mechanic` and `sweep-gradient` presets.
|
|
148
|
+
|
|
149
|
+
```tsx
|
|
150
|
+
<ThinkingOrb state="working" size={64} />
|
|
151
|
+
<ThinkingOrb state="searching" size={32} />
|
|
152
|
+
<ThinkingOrbStatus state="composing" size={20} elapsed="2.4 秒" />
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
The wrappers inherit the current light/dark theme, localize canvas accessibility labels and honor reduced-motion preferences where the underlying engine requires coordinating props.
|
|
156
|
+
|
|
157
|
+
```tsx
|
|
158
|
+
const imageRef = useRef<ImageGenerationHandle>(null);
|
|
159
|
+
|
|
160
|
+
<ImageGeneration
|
|
161
|
+
ref={imageRef}
|
|
162
|
+
preset="pixels-mechanic"
|
|
163
|
+
images={["/result-a.jpg", "/result-b.jpg"]}
|
|
164
|
+
onPhaseChange={(phase) => setImagePhase(phase)}
|
|
165
|
+
>
|
|
166
|
+
<img src="/result-a.jpg" alt="生成结果" />
|
|
167
|
+
</ImageGeneration>;
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Use `triggerReveal({ hold: "manual" })`, `triggerHide()` and `triggerRegenerate({ durationMs })` through the ref. The wrapper exposes localized accessible status announcements. Without WebGL or when reduced motion is enabled, the same controls switch between the loading surface and the original child image without animation.
|
|
171
|
+
|
|
172
|
+
`respectReducedMotion` defaults to `true`; set it to `false` only when motion is the explicit purpose of the surface, such as the effect showcase.
|
|
173
|
+
|
|
174
|
+
## Backgrounds and surfaces
|
|
175
|
+
|
|
176
|
+
The `backgrounds` entry provides a content-first three-layer system for workspace canvases, module surfaces and optional image-led feature areas. Runtime code contains no canvas, WebGL or image-processing dependency.
|
|
177
|
+
|
|
178
|
+
```tsx
|
|
179
|
+
import { Backdrop, Surface } from "@monoform-ui/react/backgrounds";
|
|
180
|
+
import "@monoform-ui/react/backgrounds.css";
|
|
181
|
+
|
|
182
|
+
<div style={{ position: "relative" }}>
|
|
183
|
+
<Backdrop preset="ambient" intensity="subtle" motion="drift" mask="edges" />
|
|
184
|
+
<Surface preset="glass">Agent workspace</Surface>
|
|
185
|
+
</div>;
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
`Backdrop` defaults to `none` and supports `ambient`, `grid`, `grain`, plus the deprecated `aura` and `blueprint` aliases. Only `ambient` supports `motion="drift"`, and the animation becomes static under `prefers-reduced-motion`.
|
|
189
|
+
|
|
190
|
+
`Surface` recommends `plain`, `raised` and `glass`. Use `glass` only for overlays, navigation and showcase surfaces. The legacy `signal`, `etched`, `spotlight` and `matrix` presets remain available for compatibility but are deprecated.
|
|
191
|
+
|
|
192
|
+
`MediaBackdrop` accepts custom `src`, `darkSrc`, `lightSrc` or responsive `sources` for real product screenshots and brand-owned media. The old `orbital-field`, `monolith-field`, `signal-lattice` and `optical-fog` presets remain for one compatibility cycle and are planned for removal in `0.3.0`.
|
|
193
|
+
|
|
194
|
+
## Agent input
|
|
195
|
+
|
|
196
|
+
`AgentInput` provides a complete AI composer with a multiline prompt, model picker, configurable parameter selects, attachments, loading state and structured submission:
|
|
197
|
+
|
|
198
|
+
```tsx
|
|
199
|
+
<AgentInput
|
|
200
|
+
models={models}
|
|
201
|
+
parameters={parameters}
|
|
202
|
+
onSubmit={async ({ value, model, parameters, files }) => {
|
|
203
|
+
await submitAgentRun({ value, model, parameters, files });
|
|
204
|
+
}}
|
|
205
|
+
/>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Enter sends and Shift + Enter adds a new line. Text, model, parameter values and files can all be controlled or left uncontrolled.
|
|
209
|
+
|
|
210
|
+
`beam` supports `auto`, `none`, `md`, `line`, `pulse-inner` and `pulse-outside`. `auto` uses the inner pulse only while submitting; explicit Border Beam states can be used for persistent emphasis.
|
|
211
|
+
|
|
212
|
+
## Navigation foundation
|
|
213
|
+
|
|
214
|
+
`AppShell`, `PrimaryNavigation`, `Sidebar` and `NavMenu` support both classic top-bar layouts and a no-header three-column workspace. In the three-column layout, `PrimaryNavigation` provides a 64px icon rail, `Sidebar` provides a 248px contextual column and the main content fills the remaining width. On mobile the rail remains available and opens the contextual navigation as a contained drawer. `NavigationMenu` handles optional global product navigation, while `CommandPalette` adds a `⌘K` command entry point. `PageHeader` standardizes page-level context and actions. Use `PageBreadcrumb` for a standard page path and optional return-to-parent entry; use the lower-level `Breadcrumb` family only for custom navigation paths.
|
|
215
|
+
|
|
216
|
+
The Agent conversation family includes `ChatThread`, `ChatMessage`, `StreamingText`, `MessageActions`, `ReasoningPanel`, `ToolCall`, `ToolResult`, `Citation`, `AttachmentList`, `SuggestionList`, `ClarificationPrompt`, `ApprovalRequest`, `PlanReview`, `ModelSelector` and `ContextMeter`. The AI evaluation harness family adds `RunOverview`, `TraceViewer` and `EvaluationSummary`.
|
|
217
|
+
|
|
218
|
+
Data workbench components include `FilterBuilder`, `ColumnSettings`, `SavedViews`, `BulkActionBar`, `TreeView`, `Timeline`, `MediaGrid`, `DocumentList`, `List` and `Table`.
|
|
219
|
+
|
|
220
|
+
`DataGrid` supports `state` / `onStateChange` for controlled sorting, filtering,
|
|
221
|
+
selection, visibility, pinning and pagination. Set `manualPagination`,
|
|
222
|
+
`manualFiltering` or `manualSorting` and provide `rowCount` when the server owns
|
|
223
|
+
those models. The state object also includes grouping and expanded rows. Grid cells
|
|
224
|
+
use roving focus with Arrow, Home/End and Enter behavior. Pair complete state
|
|
225
|
+
snapshots with `SavedViews` when users need to switch table views.
|
|
226
|
+
|
|
227
|
+
`MediaGrid` supports standard image grids and measured masonry columns. Initial
|
|
228
|
+
items are distributed round-robin; appended items enter the shortest column
|
|
229
|
+
measured through `ResizeObserver`, never a guessed image ratio.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
Monoform UI integrates the following MIT-licensed React effect packages:
|
|
4
|
+
|
|
5
|
+
- `border-beam`
|
|
6
|
+
- `thinking-orbs`
|
|
7
|
+
- `voice-glow`
|
|
8
|
+
- `voice-ring`
|
|
9
|
+
- `bot-avatars`
|
|
10
|
+
- `metal-fx`
|
|
11
|
+
- `img-fx`
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2026 Jakub Antalik
|
|
14
|
+
|
|
15
|
+
Source: https://github.com/Jakubantalik/Libraries.dev
|
|
16
|
+
|
|
17
|
+
Metal FX source: https://github.com/Jakubantalik/metal-fx
|
|
18
|
+
|
|
19
|
+
Image FX source: https://github.com/Jakubantalik/img-fx
|
|
20
|
+
|
|
21
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
22
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
23
|
+
in the Software without restriction, including without limitation the rights
|
|
24
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
25
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
26
|
+
furnished to do so, subject to the following conditions:
|
|
27
|
+
|
|
28
|
+
The above copyright notice and this permission notice shall be included in all
|
|
29
|
+
copies or substantial portions of the Software.
|
|
30
|
+
|
|
31
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
32
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
33
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
34
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
35
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
36
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
37
|
+
SOFTWARE.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { ControlSize } from './sizes';
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
variant?: "ghost" | "danger" | "primary" | "secondary" | null | undefined;
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
leadingIcon?: ReactNode;
|
|
11
|
+
trailingIcon?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export interface IconButtonProps extends Omit<ButtonProps, "children"> {
|
|
15
|
+
label: string;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare const IconButton: import('react').ForwardRefExoticComponent<IconButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export interface SegmentedOption<T extends string> {
|
|
20
|
+
value: T;
|
|
21
|
+
label: ReactNode;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface SegmentedControlProps<T extends string> extends HTMLAttributes<HTMLDivElement> {
|
|
25
|
+
options: Array<SegmentedOption<T>>;
|
|
26
|
+
value?: T;
|
|
27
|
+
defaultValue?: T;
|
|
28
|
+
onValueChange?: (value: T) => void;
|
|
29
|
+
size?: ControlSize;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Use the native `aria-label` prop instead.
|
|
33
|
+
*/
|
|
34
|
+
ariaLabel?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare function SegmentedControl<T extends string>({ options, value, defaultValue, onValueChange, size, disabled, ariaLabel, className, "aria-label": nativeAriaLabel, ...props }: SegmentedControlProps<T>): import("react").JSX.Element;
|
|
37
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
38
|
+
tone?: "neutral" | "success" | "warning" | "danger" | "info";
|
|
39
|
+
dot?: boolean;
|
|
40
|
+
size?: ControlSize;
|
|
41
|
+
}
|
|
42
|
+
export declare function Badge({ tone, dot, size, className, children, ...props }: BadgeProps): import("react").JSX.Element;
|
|
43
|
+
export interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
44
|
+
onRemove?: () => void;
|
|
45
|
+
removeLabel?: string;
|
|
46
|
+
size?: ControlSize;
|
|
47
|
+
}
|
|
48
|
+
export declare function Tag({ onRemove, removeLabel, size, className, children, ...props }: TagProps): import("react").JSX.Element;
|
|
49
|
+
export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
50
|
+
src?: string;
|
|
51
|
+
alt?: string;
|
|
52
|
+
fallback: string;
|
|
53
|
+
size?: "sm" | "md" | "lg";
|
|
54
|
+
status?: "online" | "busy" | "offline";
|
|
55
|
+
}
|
|
56
|
+
export declare function Avatar({ src, alt, fallback, size, status, className, ...props }: AvatarProps): import("react").JSX.Element;
|
|
57
|
+
export interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
58
|
+
max?: number;
|
|
59
|
+
children: ReactNode;
|
|
60
|
+
}
|
|
61
|
+
export declare function AvatarGroup({ max, children, className, ...props }: AvatarGroupProps): import("react").JSX.Element;
|
|
62
|
+
export declare const Card: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
63
|
+
export declare function CardHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
64
|
+
export declare function CardTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>): import("react").JSX.Element;
|
|
65
|
+
export declare function CardDescription({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): import("react").JSX.Element;
|
|
66
|
+
export declare function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
67
|
+
export declare function CardFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
68
|
+
export interface StatusDotProps extends HTMLAttributes<HTMLSpanElement> {
|
|
69
|
+
tone?: "online" | "busy" | "offline" | "neutral" | "danger";
|
|
70
|
+
pulse?: boolean;
|
|
71
|
+
}
|
|
72
|
+
export declare function StatusDot({ tone, pulse, className, ...props }: StatusDotProps): import("react").JSX.Element;
|
|
73
|
+
export interface CheckListProps {
|
|
74
|
+
items: Array<{
|
|
75
|
+
label: string;
|
|
76
|
+
complete?: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
export declare function CheckList({ items }: CheckListProps): import("react").JSX.Element;
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ControlSize } from './sizes';
|
|
3
|
+
export interface ComboboxOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ComboboxProps {
|
|
10
|
+
options: ComboboxOption[];
|
|
11
|
+
value?: string;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
onValueChange?: (value: string | undefined) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
searchPlaceholder?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
"aria-label"?: string;
|
|
20
|
+
"aria-describedby"?: string;
|
|
21
|
+
size?: ControlSize;
|
|
22
|
+
}
|
|
23
|
+
export declare function Combobox({ options, value, defaultValue, onValueChange, placeholder, searchPlaceholder, disabled, size, className, ...ariaProps }: ComboboxProps): import("react").JSX.Element;
|
|
24
|
+
export interface MultiSelectProps {
|
|
25
|
+
options: ComboboxOption[];
|
|
26
|
+
value?: string[];
|
|
27
|
+
defaultValue?: string[];
|
|
28
|
+
onValueChange?: (value: string[]) => void;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
maxDisplay?: number;
|
|
32
|
+
className?: string;
|
|
33
|
+
"aria-label"?: string;
|
|
34
|
+
size?: ControlSize;
|
|
35
|
+
}
|
|
36
|
+
export declare function MultiSelect({ options, value, defaultValue, onValueChange, placeholder, disabled, size, maxDisplay, className, ...ariaProps }: MultiSelectProps): import("react").JSX.Element;
|
|
37
|
+
export interface TagInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange" | "size"> {
|
|
38
|
+
value?: string[];
|
|
39
|
+
defaultValue?: string[];
|
|
40
|
+
onValueChange?: (value: string[]) => void;
|
|
41
|
+
maxTags?: number;
|
|
42
|
+
size?: ControlSize;
|
|
43
|
+
}
|
|
44
|
+
export declare function TagInput({ value, defaultValue, onValueChange, maxTags, placeholder, disabled, size, className, ...props }: TagInputProps): import("react").JSX.Element;
|
|
45
|
+
export interface UploadProps {
|
|
46
|
+
value?: File[];
|
|
47
|
+
defaultValue?: File[];
|
|
48
|
+
onFilesChange?: (files: File[]) => void;
|
|
49
|
+
accept?: string;
|
|
50
|
+
multiple?: boolean;
|
|
51
|
+
maxSize?: number;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
className?: string;
|
|
54
|
+
label?: ReactNode;
|
|
55
|
+
description?: ReactNode;
|
|
56
|
+
size?: ControlSize;
|
|
57
|
+
}
|
|
58
|
+
export declare function Upload({ value, defaultValue, onFilesChange, accept, multiple, maxSize, disabled, className, label, description, size, }: UploadProps): import("react").JSX.Element;
|
|
59
|
+
export type WeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
60
|
+
export interface CalendarProps {
|
|
61
|
+
value?: Date;
|
|
62
|
+
defaultValue?: Date;
|
|
63
|
+
onValueChange?: (value: Date | undefined) => void;
|
|
64
|
+
month?: Date;
|
|
65
|
+
defaultMonth?: Date;
|
|
66
|
+
onMonthChange?: (month: Date) => void;
|
|
67
|
+
disabledDate?: (date: Date) => boolean;
|
|
68
|
+
locale?: string;
|
|
69
|
+
weekStartsOn?: WeekStartsOn;
|
|
70
|
+
className?: string;
|
|
71
|
+
}
|
|
72
|
+
export declare function Calendar({ value, defaultValue, onValueChange, month, defaultMonth, onMonthChange, disabledDate, locale, weekStartsOn, className, }: CalendarProps): import("react").JSX.Element;
|
|
73
|
+
export interface DatePickerProps {
|
|
74
|
+
value?: Date;
|
|
75
|
+
defaultValue?: Date;
|
|
76
|
+
defaultMonth?: Date;
|
|
77
|
+
onValueChange?: (value: Date | undefined) => void;
|
|
78
|
+
placeholder?: string;
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
locale?: string;
|
|
81
|
+
weekStartsOn?: WeekStartsOn;
|
|
82
|
+
disabledDate?: (date: Date) => boolean;
|
|
83
|
+
className?: string;
|
|
84
|
+
id?: string;
|
|
85
|
+
"aria-label"?: string;
|
|
86
|
+
"aria-describedby"?: string;
|
|
87
|
+
size?: ControlSize;
|
|
88
|
+
}
|
|
89
|
+
export declare function DatePicker({ value, defaultValue, defaultMonth, onValueChange, placeholder, disabled, size, locale, weekStartsOn, disabledDate, className, ...ariaProps }: DatePickerProps): import("react").JSX.Element;
|
|
90
|
+
export interface DateRange {
|
|
91
|
+
from?: Date;
|
|
92
|
+
to?: Date;
|
|
93
|
+
}
|
|
94
|
+
export interface DateRangePickerProps {
|
|
95
|
+
value?: DateRange;
|
|
96
|
+
defaultValue?: DateRange;
|
|
97
|
+
onValueChange?: (value: DateRange) => void;
|
|
98
|
+
placeholder?: string;
|
|
99
|
+
disabled?: boolean;
|
|
100
|
+
locale?: string;
|
|
101
|
+
weekStartsOn?: WeekStartsOn;
|
|
102
|
+
disabledDate?: (date: Date) => boolean;
|
|
103
|
+
className?: string;
|
|
104
|
+
"aria-label"?: string;
|
|
105
|
+
size?: ControlSize;
|
|
106
|
+
}
|
|
107
|
+
export declare function DateRangePicker({ value, defaultValue, onValueChange, placeholder, disabled, size, locale, weekStartsOn, disabledDate, className, ...ariaProps }: DateRangePickerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ControlSize } from './sizes';
|
|
3
|
+
import { ComboboxOption } from './advanced-forms';
|
|
4
|
+
export interface InputGroupProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> {
|
|
5
|
+
prefix?: ReactNode;
|
|
6
|
+
suffix?: ReactNode;
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
size?: ControlSize;
|
|
9
|
+
}
|
|
10
|
+
export declare const InputGroup: import('react').ForwardRefExoticComponent<InputGroupProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export interface CheckboxGroupOption {
|
|
12
|
+
value: string;
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
description?: ReactNode;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, "defaultValue" | "onChange"> {
|
|
18
|
+
options: CheckboxGroupOption[];
|
|
19
|
+
label?: ReactNode;
|
|
20
|
+
value?: string[];
|
|
21
|
+
defaultValue?: string[];
|
|
22
|
+
onValueChange?: (value: string[]) => void;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
direction?: "vertical" | "horizontal";
|
|
25
|
+
size?: ControlSize;
|
|
26
|
+
}
|
|
27
|
+
export declare function CheckboxGroup({ options, label, value, defaultValue, onValueChange, disabled, size, direction, className, ...props }: CheckboxGroupProps): import("react").JSX.Element;
|
|
28
|
+
export interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange" | "size"> {
|
|
29
|
+
value?: number;
|
|
30
|
+
defaultValue?: number;
|
|
31
|
+
onValueChange?: (value: number) => void;
|
|
32
|
+
formatValue?: (value: number) => ReactNode;
|
|
33
|
+
size?: ControlSize;
|
|
34
|
+
}
|
|
35
|
+
export declare const Slider: import('react').ForwardRefExoticComponent<SliderProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
36
|
+
export interface RangeSliderValue {
|
|
37
|
+
start: number;
|
|
38
|
+
end: number;
|
|
39
|
+
}
|
|
40
|
+
export interface RangeSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> {
|
|
41
|
+
value?: RangeSliderValue;
|
|
42
|
+
defaultValue?: RangeSliderValue;
|
|
43
|
+
onValueChange?: (value: RangeSliderValue) => void;
|
|
44
|
+
min?: number;
|
|
45
|
+
max?: number;
|
|
46
|
+
step?: number;
|
|
47
|
+
formatValue?: (value: number) => ReactNode;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
"aria-label"?: string;
|
|
50
|
+
size?: ControlSize;
|
|
51
|
+
}
|
|
52
|
+
export declare function RangeSlider({ value, defaultValue, onValueChange, min, max, step, formatValue, disabled, size, className, "aria-label": ariaLabel, ...props }: RangeSliderProps): import("react").JSX.Element;
|
|
53
|
+
export interface AutocompleteProps {
|
|
54
|
+
options: ComboboxOption[];
|
|
55
|
+
value?: string;
|
|
56
|
+
defaultValue?: string;
|
|
57
|
+
onValueChange?: (value: string) => void;
|
|
58
|
+
onOptionSelect?: (option: ComboboxOption) => void;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
emptyMessage?: string;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
className?: string;
|
|
63
|
+
id?: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
"aria-label"?: string;
|
|
66
|
+
"aria-describedby"?: string;
|
|
67
|
+
"aria-invalid"?: boolean;
|
|
68
|
+
size?: ControlSize;
|
|
69
|
+
}
|
|
70
|
+
export declare function Autocomplete({ options, value, defaultValue, onValueChange, onOptionSelect, placeholder, emptyMessage, disabled, size, className, name, ...ariaProps }: AutocompleteProps): import("react").JSX.Element;
|
|
71
|
+
export interface TreeNode {
|
|
72
|
+
value: string;
|
|
73
|
+
label: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
children?: TreeNode[];
|
|
77
|
+
}
|
|
78
|
+
export interface TreeSelectProps {
|
|
79
|
+
nodes: TreeNode[];
|
|
80
|
+
value?: string;
|
|
81
|
+
defaultValue?: string;
|
|
82
|
+
onValueChange?: (value: string, node: TreeNode) => void;
|
|
83
|
+
placeholder?: string;
|
|
84
|
+
searchPlaceholder?: string;
|
|
85
|
+
emptyMessage?: string;
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
defaultExpanded?: string[];
|
|
88
|
+
className?: string;
|
|
89
|
+
"aria-label"?: string;
|
|
90
|
+
"aria-describedby"?: string;
|
|
91
|
+
size?: ControlSize;
|
|
92
|
+
}
|
|
93
|
+
export declare function TreeSelect({ nodes, value, defaultValue, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, size, defaultExpanded, className, ...ariaProps }: TreeSelectProps): import("react").JSX.Element;
|
|
94
|
+
export interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange" | "size"> {
|
|
95
|
+
value?: File[];
|
|
96
|
+
defaultValue?: File[];
|
|
97
|
+
onFilesChange?: (files: File[]) => void;
|
|
98
|
+
label?: ReactNode;
|
|
99
|
+
description?: ReactNode;
|
|
100
|
+
invalid?: boolean;
|
|
101
|
+
size?: ControlSize;
|
|
102
|
+
}
|
|
103
|
+
export declare const FileInput: import('react').ForwardRefExoticComponent<FileInputProps & import('react').RefAttributes<HTMLInputElement>>;
|