@bixlab/mtone 0.10.3 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4X67DOKJ.js +377 -0
- package/dist/index.d.ts +120 -42
- package/dist/index.js +1811 -980
- package/dist/styles.css +1 -1
- package/dist/typography-highlight-GAYKSB6L.js +324 -0
- package/llms.txt +91 -42
- package/package.json +1 -1
- package/dist/typography-highlight-WZ7OAZVP.js +0 -62
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
// src/typography-languages.generated.ts
|
|
2
|
+
var languageNames = [
|
|
3
|
+
"abap",
|
|
4
|
+
"actionscript-3",
|
|
5
|
+
"ada",
|
|
6
|
+
"ahk",
|
|
7
|
+
"ahk2",
|
|
8
|
+
"angular-expression",
|
|
9
|
+
"angular-html",
|
|
10
|
+
"angular-inline-style",
|
|
11
|
+
"angular-inline-template",
|
|
12
|
+
"angular-let-declaration",
|
|
13
|
+
"angular-template",
|
|
14
|
+
"angular-template-blocks",
|
|
15
|
+
"angular-ts",
|
|
16
|
+
"apache",
|
|
17
|
+
"apex",
|
|
18
|
+
"apl",
|
|
19
|
+
"applescript",
|
|
20
|
+
"ara",
|
|
21
|
+
"asciidoc",
|
|
22
|
+
"asm",
|
|
23
|
+
"astro",
|
|
24
|
+
"awk",
|
|
25
|
+
"ballerina",
|
|
26
|
+
"bat",
|
|
27
|
+
"beancount",
|
|
28
|
+
"berry",
|
|
29
|
+
"bibtex",
|
|
30
|
+
"bicep",
|
|
31
|
+
"bird2",
|
|
32
|
+
"blade",
|
|
33
|
+
"bsl",
|
|
34
|
+
"c",
|
|
35
|
+
"c3",
|
|
36
|
+
"cadence",
|
|
37
|
+
"cairo",
|
|
38
|
+
"chapel",
|
|
39
|
+
"clarity",
|
|
40
|
+
"clojure",
|
|
41
|
+
"cmake",
|
|
42
|
+
"cobol",
|
|
43
|
+
"codeowners",
|
|
44
|
+
"codeql",
|
|
45
|
+
"coffee",
|
|
46
|
+
"common-lisp",
|
|
47
|
+
"coq",
|
|
48
|
+
"cpp",
|
|
49
|
+
"cpp-macro",
|
|
50
|
+
"crystal",
|
|
51
|
+
"csharp",
|
|
52
|
+
"css",
|
|
53
|
+
"csv",
|
|
54
|
+
"cue",
|
|
55
|
+
"cypher",
|
|
56
|
+
"d",
|
|
57
|
+
"dart",
|
|
58
|
+
"dax",
|
|
59
|
+
"desktop",
|
|
60
|
+
"diff",
|
|
61
|
+
"docker",
|
|
62
|
+
"dotenv",
|
|
63
|
+
"dream-maker",
|
|
64
|
+
"edge",
|
|
65
|
+
"elixir",
|
|
66
|
+
"elm",
|
|
67
|
+
"emacs-lisp",
|
|
68
|
+
"erb",
|
|
69
|
+
"erlang",
|
|
70
|
+
"es-tag-css",
|
|
71
|
+
"es-tag-glsl",
|
|
72
|
+
"es-tag-html",
|
|
73
|
+
"es-tag-sql",
|
|
74
|
+
"es-tag-xml",
|
|
75
|
+
"fennel",
|
|
76
|
+
"fish",
|
|
77
|
+
"fluent",
|
|
78
|
+
"fortran-fixed-form",
|
|
79
|
+
"fortran-free-form",
|
|
80
|
+
"fsharp",
|
|
81
|
+
"gdresource",
|
|
82
|
+
"gdscript",
|
|
83
|
+
"gdshader",
|
|
84
|
+
"genie",
|
|
85
|
+
"gherkin",
|
|
86
|
+
"git-commit",
|
|
87
|
+
"git-rebase",
|
|
88
|
+
"gleam",
|
|
89
|
+
"glimmer-js",
|
|
90
|
+
"glimmer-ts",
|
|
91
|
+
"glsl",
|
|
92
|
+
"gn",
|
|
93
|
+
"gnuplot",
|
|
94
|
+
"go",
|
|
95
|
+
"graphql",
|
|
96
|
+
"groovy",
|
|
97
|
+
"hack",
|
|
98
|
+
"haml",
|
|
99
|
+
"handlebars",
|
|
100
|
+
"haskell",
|
|
101
|
+
"haxe",
|
|
102
|
+
"hcl",
|
|
103
|
+
"hjson",
|
|
104
|
+
"hlsl",
|
|
105
|
+
"html",
|
|
106
|
+
"html-derivative",
|
|
107
|
+
"http",
|
|
108
|
+
"hurl",
|
|
109
|
+
"hxml",
|
|
110
|
+
"hy",
|
|
111
|
+
"imba",
|
|
112
|
+
"ini",
|
|
113
|
+
"java",
|
|
114
|
+
"javascript",
|
|
115
|
+
"jinja",
|
|
116
|
+
"jinja-html",
|
|
117
|
+
"jison",
|
|
118
|
+
"json",
|
|
119
|
+
"json5",
|
|
120
|
+
"jsonc",
|
|
121
|
+
"jsonl",
|
|
122
|
+
"jsonnet",
|
|
123
|
+
"jssm",
|
|
124
|
+
"jsx",
|
|
125
|
+
"julia",
|
|
126
|
+
"just",
|
|
127
|
+
"kdl",
|
|
128
|
+
"kotlin",
|
|
129
|
+
"kusto",
|
|
130
|
+
"latex",
|
|
131
|
+
"lean",
|
|
132
|
+
"less",
|
|
133
|
+
"liquid",
|
|
134
|
+
"llvm",
|
|
135
|
+
"log",
|
|
136
|
+
"logo",
|
|
137
|
+
"lua",
|
|
138
|
+
"luau",
|
|
139
|
+
"make",
|
|
140
|
+
"markdown",
|
|
141
|
+
"markdown-nix",
|
|
142
|
+
"markdown-vue",
|
|
143
|
+
"marko",
|
|
144
|
+
"matlab",
|
|
145
|
+
"mdc",
|
|
146
|
+
"mdx",
|
|
147
|
+
"mermaid",
|
|
148
|
+
"mipsasm",
|
|
149
|
+
"mojo",
|
|
150
|
+
"moonbit",
|
|
151
|
+
"move",
|
|
152
|
+
"narrat",
|
|
153
|
+
"nextflow",
|
|
154
|
+
"nextflow-groovy",
|
|
155
|
+
"nginx",
|
|
156
|
+
"nim",
|
|
157
|
+
"nix",
|
|
158
|
+
"nsis",
|
|
159
|
+
"nushell",
|
|
160
|
+
"objective-c",
|
|
161
|
+
"objective-cpp",
|
|
162
|
+
"ocaml",
|
|
163
|
+
"odin",
|
|
164
|
+
"openscad",
|
|
165
|
+
"org",
|
|
166
|
+
"pascal",
|
|
167
|
+
"perl",
|
|
168
|
+
"php",
|
|
169
|
+
"pkl",
|
|
170
|
+
"plsql",
|
|
171
|
+
"po",
|
|
172
|
+
"polar",
|
|
173
|
+
"postcss",
|
|
174
|
+
"powerquery",
|
|
175
|
+
"powershell",
|
|
176
|
+
"prisma",
|
|
177
|
+
"prolog",
|
|
178
|
+
"proto",
|
|
179
|
+
"pug",
|
|
180
|
+
"puppet",
|
|
181
|
+
"purescript",
|
|
182
|
+
"python",
|
|
183
|
+
"qml",
|
|
184
|
+
"qmldir",
|
|
185
|
+
"qss",
|
|
186
|
+
"r",
|
|
187
|
+
"racket",
|
|
188
|
+
"raku",
|
|
189
|
+
"razor",
|
|
190
|
+
"rbs",
|
|
191
|
+
"reg",
|
|
192
|
+
"regexp",
|
|
193
|
+
"rel",
|
|
194
|
+
"riscv",
|
|
195
|
+
"ron",
|
|
196
|
+
"rosmsg",
|
|
197
|
+
"rst",
|
|
198
|
+
"ruby",
|
|
199
|
+
"rust",
|
|
200
|
+
"sas",
|
|
201
|
+
"sass",
|
|
202
|
+
"scala",
|
|
203
|
+
"scheme",
|
|
204
|
+
"scss",
|
|
205
|
+
"sdbl",
|
|
206
|
+
"shaderlab",
|
|
207
|
+
"shellscript",
|
|
208
|
+
"shellsession",
|
|
209
|
+
"smalltalk",
|
|
210
|
+
"smithy",
|
|
211
|
+
"solidity",
|
|
212
|
+
"soy",
|
|
213
|
+
"sparql",
|
|
214
|
+
"splunk",
|
|
215
|
+
"sql",
|
|
216
|
+
"ssh-config",
|
|
217
|
+
"stata",
|
|
218
|
+
"stylus",
|
|
219
|
+
"surrealql",
|
|
220
|
+
"svelte",
|
|
221
|
+
"swift",
|
|
222
|
+
"system-verilog",
|
|
223
|
+
"systemd",
|
|
224
|
+
"talonscript",
|
|
225
|
+
"tasl",
|
|
226
|
+
"tcl",
|
|
227
|
+
"templ",
|
|
228
|
+
"terraform",
|
|
229
|
+
"tex",
|
|
230
|
+
"toml",
|
|
231
|
+
"ts-tags",
|
|
232
|
+
"tsv",
|
|
233
|
+
"tsx",
|
|
234
|
+
"turtle",
|
|
235
|
+
"twig",
|
|
236
|
+
"typescript",
|
|
237
|
+
"typespec",
|
|
238
|
+
"typst",
|
|
239
|
+
"v",
|
|
240
|
+
"vala",
|
|
241
|
+
"vb",
|
|
242
|
+
"verilog",
|
|
243
|
+
"vhdl",
|
|
244
|
+
"viml",
|
|
245
|
+
"vue",
|
|
246
|
+
"vue-directives",
|
|
247
|
+
"vue-html",
|
|
248
|
+
"vue-interpolations",
|
|
249
|
+
"vue-sfc-style-variable-injection",
|
|
250
|
+
"vue-vine",
|
|
251
|
+
"vyper",
|
|
252
|
+
"wasm",
|
|
253
|
+
"wenyan",
|
|
254
|
+
"wgsl",
|
|
255
|
+
"wikitext",
|
|
256
|
+
"wit",
|
|
257
|
+
"wolfram",
|
|
258
|
+
"xml",
|
|
259
|
+
"xsl",
|
|
260
|
+
"yaml",
|
|
261
|
+
"zenscript",
|
|
262
|
+
"zig"
|
|
263
|
+
];
|
|
264
|
+
var languageAliases = {
|
|
265
|
+
"1c": "bsl",
|
|
266
|
+
"1c-query": "sdbl",
|
|
267
|
+
"actionscript": "actionscript-3",
|
|
268
|
+
"adoc": "asciidoc",
|
|
269
|
+
"ahk1": "ahk",
|
|
270
|
+
"as3": "actionscript-3",
|
|
271
|
+
"bash": "shellscript",
|
|
272
|
+
"batch": "bat",
|
|
273
|
+
"be": "berry",
|
|
274
|
+
"bird": "bird2",
|
|
275
|
+
"cdc": "cadence",
|
|
276
|
+
"chpl": "chapel",
|
|
277
|
+
"cjs": "javascript",
|
|
278
|
+
"clj": "clojure",
|
|
279
|
+
"closure-templates": "soy",
|
|
280
|
+
"cmd": "bat",
|
|
281
|
+
"coffeescript": "coffee",
|
|
282
|
+
"console": "shellsession",
|
|
283
|
+
"cql": "cypher",
|
|
284
|
+
"cs": "csharp",
|
|
285
|
+
"cts": "typescript",
|
|
286
|
+
"dockerfile": "docker",
|
|
287
|
+
"elisp": "emacs-lisp",
|
|
288
|
+
"erl": "erlang",
|
|
289
|
+
"f": "fortran-fixed-form",
|
|
290
|
+
"f03": "fortran-free-form",
|
|
291
|
+
"f08": "fortran-free-form",
|
|
292
|
+
"f18": "fortran-free-form",
|
|
293
|
+
"f77": "fortran-fixed-form",
|
|
294
|
+
"f90": "fortran-free-form",
|
|
295
|
+
"f95": "fortran-free-form",
|
|
296
|
+
"for": "fortran-fixed-form",
|
|
297
|
+
"fs": "fsharp",
|
|
298
|
+
"fsl": "jssm",
|
|
299
|
+
"ftl": "fluent",
|
|
300
|
+
"gd": "gdscript",
|
|
301
|
+
"gjs": "glimmer-js",
|
|
302
|
+
"gql": "graphql",
|
|
303
|
+
"gts": "glimmer-ts",
|
|
304
|
+
"hbs": "handlebars",
|
|
305
|
+
"hs": "haskell",
|
|
306
|
+
"jade": "pug",
|
|
307
|
+
"jl": "julia",
|
|
308
|
+
"js": "javascript",
|
|
309
|
+
"justfile": "just",
|
|
310
|
+
"kql": "kusto",
|
|
311
|
+
"kt": "kotlin",
|
|
312
|
+
"kts": "kotlin",
|
|
313
|
+
"lean4": "lean",
|
|
314
|
+
"lisp": "common-lisp",
|
|
315
|
+
"lit": "ts-tags",
|
|
316
|
+
"makefile": "make",
|
|
317
|
+
"mbt": "moonbit",
|
|
318
|
+
"mbti": "moonbit",
|
|
319
|
+
"md": "markdown",
|
|
320
|
+
"mediawiki": "wikitext",
|
|
321
|
+
"mips": "mipsasm",
|
|
322
|
+
"mjs": "javascript",
|
|
323
|
+
"mmd": "mermaid",
|
|
324
|
+
"mts": "typescript",
|
|
325
|
+
"nar": "narrat",
|
|
326
|
+
"nf": "nextflow",
|
|
327
|
+
"nu": "nushell",
|
|
328
|
+
"objc": "objective-c",
|
|
329
|
+
"perl6": "raku",
|
|
330
|
+
"pot": "po",
|
|
331
|
+
"potx": "po",
|
|
332
|
+
"properties": "ini",
|
|
333
|
+
"protobuf": "proto",
|
|
334
|
+
"ps": "powershell",
|
|
335
|
+
"ps1": "powershell",
|
|
336
|
+
"pwsh": "powershell",
|
|
337
|
+
"py": "python",
|
|
338
|
+
"ql": "codeql",
|
|
339
|
+
"rb": "ruby",
|
|
340
|
+
"regex": "regexp",
|
|
341
|
+
"rs": "rust",
|
|
342
|
+
"ruby-signature": "rbs",
|
|
343
|
+
"scad": "openscad",
|
|
344
|
+
"sh": "shellscript",
|
|
345
|
+
"shader": "shaderlab",
|
|
346
|
+
"shell": "shellscript",
|
|
347
|
+
"spl": "splunk",
|
|
348
|
+
"styl": "stylus",
|
|
349
|
+
"surql": "surrealql",
|
|
350
|
+
"talon": "talonscript",
|
|
351
|
+
"tf": "terraform",
|
|
352
|
+
"tfvars": "terraform",
|
|
353
|
+
"tres": "gdresource",
|
|
354
|
+
"ts": "typescript",
|
|
355
|
+
"tscn": "gdresource",
|
|
356
|
+
"tsp": "typespec",
|
|
357
|
+
"typ": "typst",
|
|
358
|
+
"vim": "viml",
|
|
359
|
+
"vimscript": "viml",
|
|
360
|
+
"vy": "vyper",
|
|
361
|
+
"wiki": "wikitext",
|
|
362
|
+
"wl": "wolfram",
|
|
363
|
+
"yml": "yaml",
|
|
364
|
+
"zsh": "shellscript"
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
// src/typography-language.ts
|
|
368
|
+
var canonical = new Set(languageNames);
|
|
369
|
+
function resolveCodeLanguage(language) {
|
|
370
|
+
const id = language.trim().toLowerCase();
|
|
371
|
+
if (canonical.has(id)) return id;
|
|
372
|
+
return Object.hasOwn(languageAliases, id) ? languageAliases[id] : void 0;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export {
|
|
376
|
+
resolveCodeLanguage
|
|
377
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,9 @@ interface FormValidationError {
|
|
|
91
91
|
errorFields: FormFieldError[];
|
|
92
92
|
outOfDate: boolean;
|
|
93
93
|
}
|
|
94
|
+
declare const emptyStringIsValue: unique symbol;
|
|
94
95
|
interface FieldRegistration {
|
|
96
|
+
[emptyStringIsValue]?: boolean;
|
|
95
97
|
rules?: FormRule[];
|
|
96
98
|
initialValue?: unknown;
|
|
97
99
|
}
|
|
@@ -303,20 +305,6 @@ interface DividerProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
303
305
|
/** A non-interactive separator. Titles are supported in horizontal orientation only. */
|
|
304
306
|
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>>;
|
|
305
307
|
|
|
306
|
-
interface PopoverSearchableSelectItem {
|
|
307
|
-
value: string;
|
|
308
|
-
label: string;
|
|
309
|
-
icon?: React__default.ReactNode;
|
|
310
|
-
disabled?: boolean;
|
|
311
|
-
}
|
|
312
|
-
interface PopoverSearchableSelectProps extends Omit<PopoverProps, "content" | "unstyled"> {
|
|
313
|
-
items: readonly PopoverSearchableSelectItem[];
|
|
314
|
-
value?: string | null;
|
|
315
|
-
defaultValue?: string | null;
|
|
316
|
-
onValueChange?: (value: string) => void;
|
|
317
|
-
searchPlaceholder?: string;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
308
|
type FloatingAlign = "start" | "end" | "left" | "right";
|
|
321
309
|
interface FloatingLayoutProps {
|
|
322
310
|
/** Content-sized by default. Numbers are CSS pixels; strings are CSS widths. */
|
|
@@ -325,6 +313,74 @@ interface FloatingLayoutProps {
|
|
|
325
313
|
align?: FloatingAlign;
|
|
326
314
|
}
|
|
327
315
|
|
|
316
|
+
interface SelectOption extends Option {
|
|
317
|
+
/** Text to search when the visible label is not plain text. */
|
|
318
|
+
searchText?: string;
|
|
319
|
+
}
|
|
320
|
+
interface SelectOptionGroup {
|
|
321
|
+
label: React__default.ReactNode;
|
|
322
|
+
options: readonly SelectOption[];
|
|
323
|
+
}
|
|
324
|
+
interface SelectCommonProps extends OpenProps {
|
|
325
|
+
options: readonly (SelectOption | SelectOptionGroup)[];
|
|
326
|
+
/** Overrides option row content, not its selected display or search text. */
|
|
327
|
+
renderOption?: (option: SelectOption) => React__default.ReactNode;
|
|
328
|
+
placeholder?: string;
|
|
329
|
+
clearable?: boolean;
|
|
330
|
+
emptyContent?: React__default.ReactNode;
|
|
331
|
+
className?: string;
|
|
332
|
+
disabled?: boolean;
|
|
333
|
+
required?: boolean;
|
|
334
|
+
name?: string;
|
|
335
|
+
form?: string;
|
|
336
|
+
label?: string;
|
|
337
|
+
id?: string;
|
|
338
|
+
"aria-invalid"?: React__default.AriaAttributes["aria-invalid"];
|
|
339
|
+
"aria-describedby"?: string;
|
|
340
|
+
"aria-labelledby"?: string;
|
|
341
|
+
"aria-busy"?: boolean;
|
|
342
|
+
onBlur?: React__default.FocusEventHandler<HTMLElement>;
|
|
343
|
+
}
|
|
344
|
+
interface SelectSingleBaseProps extends SelectCommonProps {
|
|
345
|
+
mode?: "single";
|
|
346
|
+
searchPlaceholder?: string;
|
|
347
|
+
value?: string | null;
|
|
348
|
+
defaultValue?: string | null;
|
|
349
|
+
onValueChange?: (value: string | null) => void;
|
|
350
|
+
}
|
|
351
|
+
interface SelectSingleProps extends SelectSingleBaseProps {
|
|
352
|
+
searchable?: boolean;
|
|
353
|
+
}
|
|
354
|
+
interface SelectPopupSearchProps extends SelectSingleBaseProps {
|
|
355
|
+
searchable: "popup";
|
|
356
|
+
trigger?: React__default.ReactElement | string;
|
|
357
|
+
popupWidth?: number | string;
|
|
358
|
+
popupTitle?: React__default.ReactNode;
|
|
359
|
+
}
|
|
360
|
+
interface SelectMultipleProps extends SelectCommonProps {
|
|
361
|
+
mode: "multiple";
|
|
362
|
+
value?: string[];
|
|
363
|
+
defaultValue?: string[];
|
|
364
|
+
onValueChange?: (value: string[]) => void;
|
|
365
|
+
}
|
|
366
|
+
interface SelectTagsProps extends Omit<SelectMultipleProps, "mode"> {
|
|
367
|
+
mode: "tags";
|
|
368
|
+
}
|
|
369
|
+
type SelectProps = SelectSingleProps | SelectPopupSearchProps | SelectMultipleProps | SelectTagsProps;
|
|
370
|
+
/** @deprecated Use SelectMultipleProps and Select with mode="multiple". */
|
|
371
|
+
type MultiSelectProps = Omit<SelectMultipleProps, "mode">;
|
|
372
|
+
declare function Select(props: SelectProps): React__default.JSX.Element;
|
|
373
|
+
declare namespace Select {
|
|
374
|
+
var formValueType: (props: {
|
|
375
|
+
mode?: unknown;
|
|
376
|
+
}) => "array" | "select-single";
|
|
377
|
+
}
|
|
378
|
+
/** @deprecated Use <Select mode="multiple" />. */
|
|
379
|
+
declare function MultiSelect(props: MultiSelectProps): React__default.JSX.Element;
|
|
380
|
+
declare namespace MultiSelect {
|
|
381
|
+
var formValueType: "array";
|
|
382
|
+
}
|
|
383
|
+
|
|
328
384
|
declare const accentNames: readonly ["neutral", "blue", "green", "orange", "red", "purple", "teal", "coral"];
|
|
329
385
|
/** Shared theme accent keys, backed by the matching --mt-accent-* properties. */
|
|
330
386
|
type MtoneAccent = (typeof accentNames)[number];
|
|
@@ -448,30 +504,7 @@ interface RadioGroupProps extends Common, ValueProps<string> {
|
|
|
448
504
|
orientation?: "horizontal" | "vertical";
|
|
449
505
|
}
|
|
450
506
|
declare function RadioGroup({ options, label, className, variant, orientation, ...props }: RadioGroupProps): React__default.JSX.Element;
|
|
451
|
-
|
|
452
|
-
id?: string;
|
|
453
|
-
"aria-invalid"?: React__default.AriaAttributes["aria-invalid"];
|
|
454
|
-
"aria-describedby"?: string;
|
|
455
|
-
"aria-labelledby"?: string;
|
|
456
|
-
"aria-busy"?: boolean;
|
|
457
|
-
onBlur?: React__default.FocusEventHandler<HTMLElement>;
|
|
458
|
-
}
|
|
459
|
-
interface SelectProps extends Common, ValueProps<string | null>, OpenProps, FieldControlProps {
|
|
460
|
-
options: Option[];
|
|
461
|
-
placeholder?: string;
|
|
462
|
-
}
|
|
463
|
-
declare function Select({ options, label, placeholder, className, id, onBlur, "aria-invalid": invalid, "aria-describedby": describedBy, "aria-labelledby": labelledBy, "aria-busy": busy, ...props }: SelectProps): React__default.JSX.Element;
|
|
464
|
-
declare namespace Select {
|
|
465
|
-
var formValueType: "nullable";
|
|
466
|
-
}
|
|
467
|
-
interface MultiSelectProps extends Common, ValueProps<string[]>, OpenProps, FieldControlProps {
|
|
468
|
-
options: Option[];
|
|
469
|
-
placeholder?: string;
|
|
470
|
-
}
|
|
471
|
-
declare function MultiSelect({ options, label, placeholder, className, id, onBlur, "aria-invalid": invalid, "aria-describedby": describedBy, "aria-labelledby": labelledBy, "aria-busy": busy, ...props }: MultiSelectProps): React__default.JSX.Element;
|
|
472
|
-
declare namespace MultiSelect {
|
|
473
|
-
var formValueType: "array";
|
|
474
|
-
}
|
|
507
|
+
|
|
475
508
|
interface SliderProps extends Common, ValueProps<number> {
|
|
476
509
|
min?: number;
|
|
477
510
|
max?: number;
|
|
@@ -576,10 +609,8 @@ interface PopoverProps extends OpenProps, Omit<FloatingLayoutProps, "align"> {
|
|
|
576
609
|
unstyled?: boolean;
|
|
577
610
|
}
|
|
578
611
|
declare function PopoverRoot(props: PopoverProps): React__default.JSX.Element;
|
|
579
|
-
declare function PopoverSearchableSelect({ items, value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, searchPlaceholder, title, width, align, ...props }: PopoverSearchableSelectProps): React__default.JSX.Element;
|
|
580
612
|
declare const Popover: typeof PopoverRoot & {
|
|
581
613
|
Menu: typeof PopoverMenu;
|
|
582
|
-
SearchableSelect: typeof PopoverSearchableSelect;
|
|
583
614
|
};
|
|
584
615
|
declare function Tooltip({ children, content, side, ...props }: OpenProps & Pick<PopoverProps, "content" | "side"> & {
|
|
585
616
|
children: React__default.ReactElement;
|
|
@@ -873,9 +904,14 @@ declare function Spinner({ label }: {
|
|
|
873
904
|
label?: string;
|
|
874
905
|
}): React.JSX.Element;
|
|
875
906
|
|
|
907
|
+
interface SidebarTabsOptions extends Pick<TabsProps, "label" | "value" | "defaultValue" | "onValueChange"> {
|
|
908
|
+
items: readonly Pick<TabItem, "value" | "label" | "content" | "disabled" | "icon">[];
|
|
909
|
+
}
|
|
876
910
|
type SidebarProps = React.HTMLAttributes<HTMLElement> & {
|
|
877
911
|
header?: React.ReactNode | ((collapsed: boolean) => React.ReactNode);
|
|
878
912
|
footer?: React.ReactNode | ((collapsed: boolean) => React.ReactNode);
|
|
913
|
+
/** A nonempty list replaces children with tabbed local navigation. */
|
|
914
|
+
tabs?: SidebarTabsOptions;
|
|
879
915
|
collapsePlacement?: "header" | "footer";
|
|
880
916
|
collapsible?: boolean;
|
|
881
917
|
collapsed?: boolean;
|
|
@@ -884,7 +920,7 @@ type SidebarProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
884
920
|
collapseLabel?: string;
|
|
885
921
|
expandLabel?: string;
|
|
886
922
|
};
|
|
887
|
-
declare function Sidebar({ className, children, header, footer, collapsePlacement, collapsible, collapsed, defaultCollapsed, onCollapsedChange, collapseLabel, expandLabel, ...p }: SidebarProps): React.JSX.Element;
|
|
923
|
+
declare function Sidebar({ className, children, header, footer, tabs, collapsePlacement, collapsible, collapsed, defaultCollapsed, onCollapsedChange, collapseLabel, expandLabel, ...p }: SidebarProps): React.JSX.Element;
|
|
888
924
|
interface NavItemAction {
|
|
889
925
|
content: React.ReactNode;
|
|
890
926
|
visibility?: "always" | "hover" | "active";
|
|
@@ -2583,4 +2619,46 @@ declare const CheckCard: typeof CheckCardRoot & {
|
|
|
2583
2619
|
Group: typeof CheckCardGroup;
|
|
2584
2620
|
};
|
|
2585
2621
|
|
|
2586
|
-
|
|
2622
|
+
interface ToolbarProps extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
|
|
2623
|
+
/** Search or another control that takes the full first row in a narrow toolbar. */
|
|
2624
|
+
search?: React.ReactNode;
|
|
2625
|
+
/** Controls aligned at the logical start, after search when present. */
|
|
2626
|
+
start?: React.ReactNode;
|
|
2627
|
+
/** Controls aligned at the logical end. */
|
|
2628
|
+
end?: React.ReactNode;
|
|
2629
|
+
/** Surface color resolved from the active mtone theme. */
|
|
2630
|
+
background?: "white" | "gray";
|
|
2631
|
+
}
|
|
2632
|
+
/** Standalone presentation for search, filters and actions. */
|
|
2633
|
+
declare const Toolbar: React.ForwardRefExoticComponent<ToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
2634
|
+
|
|
2635
|
+
type Position = {
|
|
2636
|
+
left: number;
|
|
2637
|
+
top: number;
|
|
2638
|
+
};
|
|
2639
|
+
type Size = {
|
|
2640
|
+
width: number;
|
|
2641
|
+
height: number;
|
|
2642
|
+
};
|
|
2643
|
+
interface FloatingWindowProps {
|
|
2644
|
+
title: React.ReactNode;
|
|
2645
|
+
children?: React.ReactNode;
|
|
2646
|
+
trigger?: React.ReactElement | string;
|
|
2647
|
+
open?: boolean;
|
|
2648
|
+
defaultOpen?: boolean;
|
|
2649
|
+
onOpenChange?: (open: boolean) => void;
|
|
2650
|
+
initialPosition?: Position;
|
|
2651
|
+
initialSize?: Size;
|
|
2652
|
+
minWidth?: number;
|
|
2653
|
+
minHeight?: number;
|
|
2654
|
+
maxWidth?: number;
|
|
2655
|
+
maxHeight?: number;
|
|
2656
|
+
draggable?: boolean;
|
|
2657
|
+
resizable?: boolean;
|
|
2658
|
+
minimizable?: boolean;
|
|
2659
|
+
minimizedIcon?: React.ReactNode;
|
|
2660
|
+
zIndex?: number;
|
|
2661
|
+
}
|
|
2662
|
+
declare function FloatingWindow({ title, children, trigger, open: controlledOpen, defaultOpen, onOpenChange, initialPosition, initialSize, minWidth, minHeight, maxWidth, maxHeight, draggable, resizable, minimizable, minimizedIcon, zIndex, }: FloatingWindowProps): React.JSX.Element;
|
|
2663
|
+
|
|
2664
|
+
export { AdminLayout, type AdminLayoutContentProps, type AdminLayoutHeaderProps, type AdminLayoutProps, type AdminLayoutSiderProps, Affix, type AffixProps, type AiActivityProps, type AiActivityStatus, type AiActivityStep, AiChat, type AiChatProps, AiCheckpoint, type AiCheckpointProps, AiConfirmation, type AiConfirmationProps, AiContext, type AiContextProps, type AiEvidenceAppearance, type AiFileNode, AiFileTree, type AiFileTreeProps, AiInlineCitation, type AiInlineCitationProps, AiMessage, type AiMessageProps, type AiModelOption, AiModelSelector, type AiModelSelectorProps, AiPlan, type AiPlanProps, type AiPromptAttachment, AiPromptInput, type AiPromptInputProps, type AiPromptStatus, type AiPromptSubmission, AiQueue, type AiQueueProps, AiReasoning, type AiReasoningProps, type AiSource, AiSources, type AiSourcesProps, type AiStackFrame, AiStackTrace, type AiStackTraceProps, AiSubagent, type AiSubagentProps, AiSuggestion, type AiSuggestionProps, AiTask, type AiTaskProps, AiTerminal, type AiTerminalProps, type AiTerminalStatus, type AiTestResult, AiTestResults, type AiTestResultsProps, type AiTestStatus, AiTool, type AiToolProps, Alert, AutoComplete, type AutoCompleteGroup, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarBreakpoint, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Blockquote, type BlockquoteProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonToggleOptions, Calendar, type CalendarCellInfo, type CalendarHeaderInfo, type CalendarMode, type CalendarProps, type CalendarSelectInfo, type CalendarSemanticSlot, Card, type CardGridProps, CardGroup, type CardGroupBreakpoint, type CardGroupItemProps, type CardGroupProps, type CardGroupResponsive, type CardMetaProps, type CardMetaSemantic, type CardProps, type CardSemantic, type CardTabItem, type CardTokens, Cascader, type CascaderKey, type CascaderOption, CascaderPanel, type CascaderPanelProps, type CascaderPath, type CascaderProps, CheckCard, type CheckCardGroupProps, type CheckCardOption, type CheckCardProps, type CheckCardSize, Checkbox, type CheckboxProps, ConfirmDialog, type ConfirmDialogProps, ContextMenu, DataList, type DataListBatchContext, type DataListExpansion, type DataListKey, type DataListLocalPagination, type DataListPagination, type DataListProps, type DataListRemotePagination, type DataListSearch, type DataListSelection, DatePicker, type DatePickerProps, Dialog, type DialogProps, Divider, type DividerProps, DocumentCard, type DocumentItem, DocumentList, Drawer, Empty, Fieldset, type FieldsetProps, FloatingWindow, type FloatingWindowProps, Form, type FormFieldProps, type FormInstance, type FormProps, type FormRule, type FormValidateTrigger, type FormValidationError, type FormValues, GlobalNotice, type GlobalNoticeProps, HoverCard, type HoverCardProps, Image, ImageGroup, type ImageGroupProps, type ImageItem, ImagePreview, type ImagePreviewProps, type ImageProps, Input, type InputControlSize, type InputOTPProps, type InputPasswordProps, type InputProps, type InputSearchProps, type InputTextAreaProps, type InputVariant, Link, type LinkProps, List, type ListHandle, ListItem, type ListItemProps, type ListProps, type ListScrollTarget, type ListSortHandleProps, LoadingOverlay, type LoadingOverlayProps, type Locale, type MentionOption, Mentions, type MentionsProps, type MentionsRef, type MentionsSemantic, Menu, type MenuCheckboxItem, type MenuDivider, type MenuEntry, type MenuGroup, type MenuItem, type MenuProps, type MenuRadioGroup, Menubar, type MenubarMenu, type MenubarProps, type MtoneAccent, MtoneProvider, type MtoneProviderProps, MtoneScope, type MtoneScopeProps, type MtoneTheme, MultiSelect, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemAction, type NavItemButtonProps, type NavItemLinkProps, type NavItemProps, NavSubmenu, type NavSubmenuProps, NumberInput, type NumberInputProps, type OpenProps, type Option, PageLayout, type PageLayoutProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popconfirm, type PopconfirmPlacement, type PopconfirmProps, Popover, type PopoverMenuProps, type PopoverProps, Progress, type ProgressColor, type ProgressProps, type ProgressStatus, type ProgressType, PropertyItem, PropertyList, Questionnaire, type QuestionnaireAnswer, type QuestionnaireAnswers, type QuestionnaireChoice, type QuestionnaireItem, type QuestionnaireProps, RadioGroup, type RadioGroupProps, Rate, type RateCharacterInfo, type RateProps, Result, type ResultProps, type ResultSemantic, type ResultStatus, SectionGroup, type SectionGroupProps, type SectionGroupSectionProps, Select, type SelectMultipleProps, type SelectOption, type SelectOptionGroup, type SelectPopupSearchProps, type SelectProps, type SelectSingleProps, type SelectTagsProps, Sidebar, type SidebarProps, type SidebarTabsOptions, Skeleton, Slider, type SliderProps, type SortOrder, Spinner, Splitter, type SplitterPanelProps, type SplitterProps, type SplitterSize, Spotlight, type SpotlightAction, type SpotlightProps, Status, Switch, type TabItem, Table, type TableClassNames, type TableColumn, type TableColumnTitleProps, type TableColumnsType, type TableExpandableConfig, type TableFilterDropdownProps, type TableFilterItem, type TableFilterValue, type TableFilters, type TableLocale, TableOfContents, type TableOfContentsHandle, type TableOfContentsItem, type TableOfContentsProps, type TablePagination, type TableProps, type TableRef, type TableRowSelection, type TableSelectionType, type TableSortResult, type TableState, type TableStyles, Tabs, type TabsIndicatorColor, type TabsProps, Tag, type TagProps, TagSelect, type TagSelectOption, type TagSelectProps, Text, type TextProps, Timeline, type TimelineItem, type TimelinePlacement, type TimelineProps, type TimelineSemantic, Title, type TitleProps, type ToastOptions, type ToastPosition, type ToastPromiseOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToastUpdateOptions, type Tokens, type Tone, Toolbar, type ToolbarProps, Tooltip, Transfer, type TransferDirection, type TransferItem, type TransferListContext, type TransferProps, Tree, type TreeCheckedKeys, type TreeDropInfo, type TreeItem, type TreeKey, type TreeNode, type TreeNodeInfo, type TreeProps, type TreeRef, TreeSelect, type TreeSelectCommonProps, type TreeSelectProps, Typography, type TypographyCodeProps, type TypographyCopyable, type TypographyEditable, type TypographyEllipsis, type TypographyTone, Upload, type UploadAdapter, type UploadContext, type UploadFile, type UploadProps, cn, getMentions, useMtone, useToast };
|