@rcarls/rc-webcomponents 0.0.0-next-20260921045401
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 +595 -0
- package/README.md +104 -0
- package/dist/rc-webcomponents-define.js +75 -0
- package/dist/rc-webcomponents-define.js.map +1 -0
- package/dist/rc-webcomponents.js +38 -0
- package/dist/rc-webcomponents.js.map +1 -0
- package/dist/types/define.d.ts +1 -0
- package/dist/types/index.d.ts +37 -0
- package/package.json +100 -0
- package/src/react.d.ts +1140 -0
- package/src/solid.d.ts +1217 -0
- package/themes/base.css +77 -0
package/src/react.d.ts
ADDED
|
@@ -0,0 +1,1140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React JSX type augmentation for rc-webcomponents.
|
|
3
|
+
*
|
|
4
|
+
* Add a triple-slash reference once in your React project (e.g. vite-env.d.ts):
|
|
5
|
+
*
|
|
6
|
+
* /// <reference types="@rcarls/rc-webcomponents/react" />
|
|
7
|
+
*
|
|
8
|
+
* Ref types use HTMLElement intersections — not LitElement — so TypeScript
|
|
9
|
+
* resolves correctly without requiring `lit` in your tsconfig paths.
|
|
10
|
+
*
|
|
11
|
+
* Import ref and event detail types directly for use with useRef and
|
|
12
|
+
* addEventListener:
|
|
13
|
+
*
|
|
14
|
+
* import type { RCComboboxRef, RCComboboxCreateDetail } from '@rcarls/rc-webcomponents/react';
|
|
15
|
+
*
|
|
16
|
+
* const ref = useRef<RCComboboxRef>(null);
|
|
17
|
+
* el.addEventListener('rc-combobox-create', (e: CustomEvent<RCComboboxCreateDetail>) => { ... });
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import type { RCTextareaPlugin } from '@rcarls/rc-textarea';
|
|
21
|
+
|
|
22
|
+
// ── Shared value types ───────────────────────────────────────────────────────
|
|
23
|
+
|
|
24
|
+
export type RCSelectOption = {
|
|
25
|
+
kind?: 'option';
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
data?: unknown;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type RCListboxActionOption<Action extends string = string> = {
|
|
33
|
+
kind: 'action';
|
|
34
|
+
action: Action;
|
|
35
|
+
value: string;
|
|
36
|
+
label: string;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
data?: unknown;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type RCListboxOption = RCSelectOption | RCListboxActionOption;
|
|
42
|
+
|
|
43
|
+
export type RCSelectValue = string | string[];
|
|
44
|
+
|
|
45
|
+
// ── Event detail types ───────────────────────────────────────────────────────
|
|
46
|
+
|
|
47
|
+
export type RCDisclosureToggleDetail = {
|
|
48
|
+
open: boolean;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type RCSelectChangeDetail = {
|
|
52
|
+
value: RCSelectValue;
|
|
53
|
+
selectedValues: string[];
|
|
54
|
+
selectedOptions: RCSelectOption[];
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type RCListboxSelectChangeDetail = RCSelectChangeDetail & {
|
|
58
|
+
reason: 'select';
|
|
59
|
+
selected: boolean;
|
|
60
|
+
optionValue: string;
|
|
61
|
+
option: RCSelectOption;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type RCListboxActionChangeDetail<Action extends string = string> = RCSelectChangeDetail & {
|
|
65
|
+
reason: 'action';
|
|
66
|
+
selected: false;
|
|
67
|
+
optionValue: string;
|
|
68
|
+
option: RCListboxActionOption<Action>;
|
|
69
|
+
action: Action;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type RCListboxChangeDetail = RCListboxSelectChangeDetail | RCListboxActionChangeDetail;
|
|
73
|
+
|
|
74
|
+
export type RCComboboxCreateDetail = {
|
|
75
|
+
text: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type RCDialogToggleDetail = {
|
|
79
|
+
open: boolean;
|
|
80
|
+
returnValue: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type RCDialogCloseDetail = {
|
|
84
|
+
returnValue: string;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** Detail shape for `rc-bottom-sheet-snap`. */
|
|
88
|
+
export type RCBottomSheetSnapDetail = {
|
|
89
|
+
/** Index into the resolved snap-point list selected as the target. */
|
|
90
|
+
index: number;
|
|
91
|
+
|
|
92
|
+
/** Target height, in pixels. */
|
|
93
|
+
height: number;
|
|
94
|
+
|
|
95
|
+
/** Whether the snap came from a drag release or a `snapTo()` call. */
|
|
96
|
+
trigger: 'drag' | 'api';
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type RCBottomSheetResizeStartDetail = {
|
|
100
|
+
height: number;
|
|
101
|
+
inputType: 'pointer' | 'keyboard';
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type RCMenuActivateDetail = {
|
|
105
|
+
item: HTMLElement;
|
|
106
|
+
value: string;
|
|
107
|
+
text: string;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export type RCMenuCloseDetail = {
|
|
111
|
+
reason: 'escape';
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type RCAdaptiveMenuToggleDetail = {
|
|
115
|
+
open: boolean;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export type RCMenuButtonToggleDetail = {
|
|
119
|
+
open: boolean;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type RCSliderChangeDetail = {
|
|
123
|
+
value: number;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export type RCRangeSliderChangeDetail = {
|
|
127
|
+
value: [number, number];
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export type RCTransferListOption = {
|
|
131
|
+
value: string;
|
|
132
|
+
label: string;
|
|
133
|
+
disabled?: boolean;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export type RCTransferListChangeDetail = {
|
|
137
|
+
selected: RCTransferListOption[];
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export type RCSplitterChangeDetail = {
|
|
141
|
+
value: number;
|
|
142
|
+
valueText: string;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export type RCMarkdownEditorFormats = {
|
|
146
|
+
bold?: boolean;
|
|
147
|
+
italic?: boolean;
|
|
148
|
+
underline?: boolean;
|
|
149
|
+
strikethrough?: boolean;
|
|
150
|
+
code?: boolean;
|
|
151
|
+
link?: boolean;
|
|
152
|
+
heading?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | null;
|
|
153
|
+
blockquote?: boolean;
|
|
154
|
+
bulletList?: boolean;
|
|
155
|
+
orderedList?: boolean;
|
|
156
|
+
codeBlock?: boolean;
|
|
157
|
+
codeLanguage?: string | null;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export type RCMarkdownEditorChangeDetail = {
|
|
161
|
+
value: string;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export type RCMarkdownEditorModeChangeDetail = {
|
|
165
|
+
mode: 'rich' | 'source';
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export type RCVirtualCanvasViewRect = Readonly<{
|
|
169
|
+
x: number;
|
|
170
|
+
y: number;
|
|
171
|
+
width: number;
|
|
172
|
+
height: number;
|
|
173
|
+
}>;
|
|
174
|
+
|
|
175
|
+
export type RCVirtualCanvasRenderDetail = {
|
|
176
|
+
time: DOMHighResTimeStamp;
|
|
177
|
+
reason: 'animation-frame' | 'viewport-change' | 'manual';
|
|
178
|
+
viewRect: RCVirtualCanvasViewRect;
|
|
179
|
+
contentRect: RCVirtualCanvasViewRect;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export type RCVirtualCanvasPointerDetail = {
|
|
183
|
+
type: string;
|
|
184
|
+
clientX: number;
|
|
185
|
+
clientY: number;
|
|
186
|
+
contentX: number;
|
|
187
|
+
contentY: number;
|
|
188
|
+
viewRect: RCVirtualCanvasViewRect;
|
|
189
|
+
button: number;
|
|
190
|
+
buttons: number;
|
|
191
|
+
altKey: boolean;
|
|
192
|
+
ctrlKey: boolean;
|
|
193
|
+
shiftKey: boolean;
|
|
194
|
+
metaKey: boolean;
|
|
195
|
+
sourceEvent: PointerEvent | MouseEvent;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export type RCAppBarScrollDetail = {
|
|
199
|
+
scrolled: boolean;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export type RCSearchBarInputDetail = {
|
|
203
|
+
value: string;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export type RCCarouselChangeTrigger = 'api' | 'button' | 'keyboard' | 'swipe';
|
|
207
|
+
|
|
208
|
+
/** Detail shape for `rc-carousel-change`. */
|
|
209
|
+
export type RCCarouselChangeDetail = {
|
|
210
|
+
index: number;
|
|
211
|
+
trigger: RCCarouselChangeTrigger;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export type RCTextareaChangeDetail = {
|
|
215
|
+
value: string;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
export type RCTextareaSelectDetail = {
|
|
219
|
+
selectionStart: number;
|
|
220
|
+
selectionEnd: number;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export type RCSwitchChangeDetail = {
|
|
224
|
+
checked: boolean;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export type RCSegmentedButtonChangeDetail = {
|
|
228
|
+
value: string;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export type RCChipVariant = 'assist' | 'filter' | 'input' | 'suggestion';
|
|
232
|
+
|
|
233
|
+
export type RCChipChangeDetail = {
|
|
234
|
+
selected: boolean;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
export type RCChipRemoveDetail = {
|
|
238
|
+
chip: HTMLElement;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type RCChipGroupLayout = 'auto' | 'wrap' | 'scroll';
|
|
242
|
+
export type RCChipGroupKind = 'generic' | 'assist' | 'filter';
|
|
243
|
+
export type RCChipGroupSelection = 'none' | 'single' | 'multiple';
|
|
244
|
+
|
|
245
|
+
export type RCChipGroupToggleDetail = {
|
|
246
|
+
expanded: boolean;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export type RCButtonToggleDetail = {
|
|
250
|
+
selected: boolean;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export type RCSnackbarQueuePolicy = 'queue' | 'replace';
|
|
254
|
+
export type RCSnackbarCloseReason = 'action' | 'api' | 'timeout' | 'replace' | 'clear';
|
|
255
|
+
|
|
256
|
+
export type RCSnackbarShowOptions = {
|
|
257
|
+
message: string;
|
|
258
|
+
actionLabel?: string;
|
|
259
|
+
duration?: number;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export type RCSnackbarActionDetail = {
|
|
263
|
+
message: string;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export type RCSnackbarCloseDetail = {
|
|
267
|
+
reason: RCSnackbarCloseReason;
|
|
268
|
+
message: string;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
// ── Ref types ────────────────────────────────────────────────────────────────
|
|
272
|
+
|
|
273
|
+
/** Public API surface of `<rc-button>`. */
|
|
274
|
+
export type RCButtonRef = HTMLElement & {
|
|
275
|
+
disabled: boolean;
|
|
276
|
+
pending: boolean;
|
|
277
|
+
progress: boolean;
|
|
278
|
+
progressValue: number | undefined;
|
|
279
|
+
toggle: boolean;
|
|
280
|
+
selected: boolean;
|
|
281
|
+
defaultSelected: boolean;
|
|
282
|
+
iconOnly: boolean;
|
|
283
|
+
fullWidth: boolean;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/** Public API surface of `<rc-card>`. */
|
|
287
|
+
export type RCCardOrientation = 'vertical' | 'horizontal';
|
|
288
|
+
|
|
289
|
+
export type RCCardRef = HTMLElement & {
|
|
290
|
+
orientation: RCCardOrientation;
|
|
291
|
+
selected: boolean;
|
|
292
|
+
disabled: boolean;
|
|
293
|
+
interactive: boolean;
|
|
294
|
+
actionTarget: string;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export type RCScrollerAxis = 'block' | 'inline' | 'both';
|
|
298
|
+
export type RCScrollerLayout = 'none' | 'content';
|
|
299
|
+
|
|
300
|
+
/** Public API surface of `<rc-scroller>`. */
|
|
301
|
+
export type RCScrollerRef = HTMLElement & {
|
|
302
|
+
axis: RCScrollerAxis;
|
|
303
|
+
layout: RCScrollerLayout;
|
|
304
|
+
readonly atBlockStart: boolean;
|
|
305
|
+
readonly atBlockEnd: boolean;
|
|
306
|
+
readonly atInlineStart: boolean;
|
|
307
|
+
readonly atInlineEnd: boolean;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
export type RCListVariant = 'standard' | 'segmented';
|
|
311
|
+
export type RCListSelection = 'none' | 'single' | 'multiple';
|
|
312
|
+
|
|
313
|
+
/** Public API surface of `<rc-list>`. */
|
|
314
|
+
export type RCListRef = HTMLElement & {
|
|
315
|
+
variant: RCListVariant;
|
|
316
|
+
selection: RCListSelection;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/** Public API surface of `<rc-list-item>`. */
|
|
320
|
+
export type RCListItemRef = HTMLElement & {
|
|
321
|
+
selected: boolean;
|
|
322
|
+
disabled: boolean;
|
|
323
|
+
interactive: boolean;
|
|
324
|
+
actionTarget: string;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
/** Public API surface of `<rc-switch>`. */
|
|
328
|
+
export type RCSwitchRef = HTMLElement & {
|
|
329
|
+
checked: boolean;
|
|
330
|
+
defaultChecked: boolean;
|
|
331
|
+
disabled: boolean;
|
|
332
|
+
icons: boolean;
|
|
333
|
+
showOnlySelectedIcon: boolean;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/** Public API surface of `<rc-segmented-button>`. */
|
|
337
|
+
export type RCSegmentedButtonRef = HTMLElement & {
|
|
338
|
+
value: string;
|
|
339
|
+
defaultValue: string;
|
|
340
|
+
disabled: boolean;
|
|
341
|
+
orientation: 'horizontal' | 'vertical';
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
/** Public API surface of `<rc-chip>`. */
|
|
345
|
+
export type RCChipRef = HTMLElement & {
|
|
346
|
+
variant: RCChipVariant;
|
|
347
|
+
selected: boolean;
|
|
348
|
+
defaultSelected: boolean;
|
|
349
|
+
disabled: boolean;
|
|
350
|
+
readonly: boolean;
|
|
351
|
+
removable: boolean;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
export type RCChipGroupRef = HTMLElement & {
|
|
355
|
+
layout: RCChipGroupLayout;
|
|
356
|
+
maxRows: number;
|
|
357
|
+
kind: RCChipGroupKind;
|
|
358
|
+
selection: RCChipGroupSelection;
|
|
359
|
+
expanded: boolean;
|
|
360
|
+
defaultExpanded: boolean;
|
|
361
|
+
label: string;
|
|
362
|
+
showAllLabel: string;
|
|
363
|
+
showLessLabel: string;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
/** Public API surface of `<rc-snackbar>`. */
|
|
367
|
+
export type RCSnackbarRef = HTMLElement & {
|
|
368
|
+
open: boolean;
|
|
369
|
+
message: string;
|
|
370
|
+
actionLabel: string;
|
|
371
|
+
duration: number;
|
|
372
|
+
queuePolicy: RCSnackbarQueuePolicy;
|
|
373
|
+
show(message: string | RCSnackbarShowOptions): void;
|
|
374
|
+
close(reason?: RCSnackbarCloseReason): void;
|
|
375
|
+
clear(): void;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
/** Public API surface of `<rc-disclosure>`. */
|
|
379
|
+
export type RCDisclosureRef = HTMLElement & {
|
|
380
|
+
open: boolean;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/** Public API surface of `<rc-accordion>`. */
|
|
384
|
+
export type RCAccordionRef = HTMLElement & {
|
|
385
|
+
multiple: boolean;
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
/** Public API surface of `<rc-listbox>`. */
|
|
389
|
+
export type RCListboxRef = HTMLElement & {
|
|
390
|
+
multiple: boolean;
|
|
391
|
+
checkmark: boolean;
|
|
392
|
+
filterStrategy: 'prefix' | 'contains' | ((label: string, query: string) => boolean);
|
|
393
|
+
value: RCSelectValue;
|
|
394
|
+
defaultValue: RCSelectValue | undefined;
|
|
395
|
+
options: RCListboxOption[];
|
|
396
|
+
readonly allOptions: ReadonlyArray<RCListboxOption>;
|
|
397
|
+
readonly filteredOptions: ReadonlyArray<RCListboxOption>;
|
|
398
|
+
readonly selectedValues: string[];
|
|
399
|
+
readonly navigableItems: Element[];
|
|
400
|
+
toggleOption(value: string): void;
|
|
401
|
+
clearSelection(): void;
|
|
402
|
+
filterOptions(text: string): void;
|
|
403
|
+
clearFilter(): void;
|
|
404
|
+
setCreateOption(label: string | null): void;
|
|
405
|
+
setSelectedValues(values: string[]): void;
|
|
406
|
+
appendOption(opt: RCListboxOption): void;
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
/** Public API surface of `<rc-select>`. */
|
|
410
|
+
export type RCSelectRef = HTMLElement & {
|
|
411
|
+
open: boolean;
|
|
412
|
+
multiple: boolean;
|
|
413
|
+
disabled: boolean;
|
|
414
|
+
placeholder: string;
|
|
415
|
+
display: 'auto' | 'chips' | 'compact';
|
|
416
|
+
popupMode: 'popover' | 'dialog';
|
|
417
|
+
dialogConfirmLabel: string;
|
|
418
|
+
dialogCancelLabel: string;
|
|
419
|
+
dialogCancelButton: 'visible' | 'hidden';
|
|
420
|
+
value: RCSelectValue;
|
|
421
|
+
defaultValue: RCSelectValue | undefined;
|
|
422
|
+
options: RCSelectOption[] | undefined;
|
|
423
|
+
readonly selectedValues: string[];
|
|
424
|
+
openPopup(): void;
|
|
425
|
+
closePopup(returnFocus?: boolean): void;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
/** Public API surface of `<rc-combobox>`. */
|
|
429
|
+
export type RCComboboxRef = RCSelectRef & {
|
|
430
|
+
allowCreate: boolean;
|
|
431
|
+
filterStrategy: 'prefix' | 'contains' | ((label: string, query: string) => boolean);
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
/** Public API surface of `<rc-dialog>`. */
|
|
435
|
+
export type RCDialogResizeOrigin =
|
|
436
|
+
| ''
|
|
437
|
+
| 'top'
|
|
438
|
+
| 'right'
|
|
439
|
+
| 'bottom'
|
|
440
|
+
| 'left'
|
|
441
|
+
| 'top-left'
|
|
442
|
+
| 'top-right'
|
|
443
|
+
| 'bottom-left'
|
|
444
|
+
| 'bottom-right';
|
|
445
|
+
|
|
446
|
+
export type RCDialogRef = HTMLElement & {
|
|
447
|
+
open: boolean | undefined;
|
|
448
|
+
defaultOpen: boolean;
|
|
449
|
+
variant: 'standard' | 'fullscreen';
|
|
450
|
+
movable: boolean;
|
|
451
|
+
moveHandle: string;
|
|
452
|
+
moveBounds: 'viewport' | 'parent';
|
|
453
|
+
moveStep: number;
|
|
454
|
+
resize: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
455
|
+
resizeOrigin: RCDialogResizeOrigin;
|
|
456
|
+
resizeHandle: string;
|
|
457
|
+
resizeThreshold: number;
|
|
458
|
+
resizeStep: number;
|
|
459
|
+
closedBy: 'any' | 'closerequest' | 'none' | '';
|
|
460
|
+
lightDismiss: boolean;
|
|
461
|
+
readonly returnValue: string;
|
|
462
|
+
showModal(): void;
|
|
463
|
+
show(): void;
|
|
464
|
+
close(returnValue?: string): void;
|
|
465
|
+
requestClose(returnValue?: string): void;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
/** Public API surface of `<rc-bottom-sheet>`. */
|
|
469
|
+
export type RCBottomSheetRef = RCDialogRef & {
|
|
470
|
+
snapPoints: string;
|
|
471
|
+
swipeDismiss: boolean;
|
|
472
|
+
swipeVelocity: number;
|
|
473
|
+
snapTo(index: number, behavior?: 'animated' | 'instant'): void;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
/** Public API surface of `<rc-menu>`. */
|
|
477
|
+
export type RCMenuRef = HTMLElement & {
|
|
478
|
+
label: string;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
/** Public API surface of `<rc-adaptive-menu>`. */
|
|
482
|
+
export type RCAdaptiveMenuRef = HTMLElement & {
|
|
483
|
+
label: string;
|
|
484
|
+
maxShown: number;
|
|
485
|
+
open: boolean;
|
|
486
|
+
defaultOpen: boolean;
|
|
487
|
+
orientation: 'horizontal' | 'vertical';
|
|
488
|
+
overflowLabel: string;
|
|
489
|
+
readonly $actions: HTMLElement[];
|
|
490
|
+
readonly $promotedActions: HTMLElement[];
|
|
491
|
+
readonly $overflowedActions: HTMLElement[];
|
|
492
|
+
openMenu(focus?: 'first' | 'last' | 'none'): void;
|
|
493
|
+
closeMenu(returnFocus?: boolean): void;
|
|
494
|
+
toggleMenu(focus?: 'first' | 'last' | 'none'): void;
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
/** Public API surface of `<rc-menu-button>`. */
|
|
498
|
+
export type RCMenuButtonPlacement =
|
|
499
|
+
| 'top'
|
|
500
|
+
| 'top-start'
|
|
501
|
+
| 'top-end'
|
|
502
|
+
| 'bottom'
|
|
503
|
+
| 'bottom-start'
|
|
504
|
+
| 'bottom-end'
|
|
505
|
+
| 'left'
|
|
506
|
+
| 'left-start'
|
|
507
|
+
| 'left-end'
|
|
508
|
+
| 'right'
|
|
509
|
+
| 'right-start'
|
|
510
|
+
| 'right-end';
|
|
511
|
+
|
|
512
|
+
export type RCMenuButtonRef = HTMLElement & {
|
|
513
|
+
open: boolean | undefined;
|
|
514
|
+
defaultOpen: boolean;
|
|
515
|
+
orientation: 'horizontal' | 'vertical' | undefined;
|
|
516
|
+
placement: RCMenuButtonPlacement;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
/** Public API surface of `<rc-fab-menu>`. */
|
|
520
|
+
export type RCFabMenuRef = RCMenuButtonRef & {
|
|
521
|
+
position: 'bottom-end' | 'bottom-start' | 'top-end' | 'top-start';
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
export type RCFabMenuToggleDetail = {
|
|
525
|
+
open: boolean;
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
/** Public API surface of `<rc-navigation-bar>`. */
|
|
529
|
+
export type RCNavigationBarRef = HTMLElement & {
|
|
530
|
+
activeSelector: string;
|
|
531
|
+
indicatorTarget: string;
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
/** Public API surface of `<rc-navigation-rail>`. */
|
|
535
|
+
export type RCNavigationRailRef = RCNavigationBarRef & {
|
|
536
|
+
expanded: boolean;
|
|
537
|
+
defaultExpanded: boolean;
|
|
538
|
+
expand(): void;
|
|
539
|
+
collapse(): void;
|
|
540
|
+
toggleExpanded(): void;
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
export type RCNavigationRailToggleDetail = {
|
|
544
|
+
expanded: boolean;
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
/** Public API surface of `<rc-menubar>`. */
|
|
548
|
+
export type RCMenubarRef = HTMLElement & {
|
|
549
|
+
label: string;
|
|
550
|
+
orientation: 'horizontal' | 'vertical';
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
/** Public API surface of `<rc-toolbar>`. */
|
|
554
|
+
export type RCToolbarRef = HTMLElement & {
|
|
555
|
+
label: string;
|
|
556
|
+
orientation: 'horizontal' | 'vertical';
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
/** Public API surface of `<rc-splitter>`. */
|
|
560
|
+
export type RCSplitterRef = HTMLElement & {
|
|
561
|
+
label: string;
|
|
562
|
+
orientation: 'horizontal' | 'vertical';
|
|
563
|
+
mode: 'length' | 'percent' | 'fixed';
|
|
564
|
+
step: number;
|
|
565
|
+
min: number;
|
|
566
|
+
max: number | undefined;
|
|
567
|
+
value: number;
|
|
568
|
+
defaultValue: number | undefined;
|
|
569
|
+
fixed: boolean;
|
|
570
|
+
collapsible: boolean;
|
|
571
|
+
snapPoints: string;
|
|
572
|
+
swipeVelocity: number;
|
|
573
|
+
snapTo(index: number, behavior?: 'animated' | 'instant'): void;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
/** Public API surface of `<rc-slider>`. */
|
|
577
|
+
export type RCSliderRef = HTMLElement & {
|
|
578
|
+
min: number;
|
|
579
|
+
max: number;
|
|
580
|
+
step: number;
|
|
581
|
+
value: number;
|
|
582
|
+
defaultValue: number | undefined;
|
|
583
|
+
disabled: boolean;
|
|
584
|
+
readonly: boolean;
|
|
585
|
+
display: 'float' | 'inline-start' | 'inline-end' | null;
|
|
586
|
+
valueText: string;
|
|
587
|
+
orientation: 'horizontal' | 'vertical';
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
/** Public API surface of `<rc-progress>`. */
|
|
591
|
+
export type RCProgressRef = HTMLElement & {
|
|
592
|
+
readonly max: number;
|
|
593
|
+
value: number;
|
|
594
|
+
defaultValue: number | undefined;
|
|
595
|
+
indeterminate: boolean;
|
|
596
|
+
disabled: boolean;
|
|
597
|
+
display: 'inline-start' | 'inline-end' | 'overlay' | null;
|
|
598
|
+
valueText: string;
|
|
599
|
+
orientation: 'horizontal' | 'vertical';
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
/** Public API surface of `<rc-range-slider>`. */
|
|
603
|
+
export type RCRangeSliderRef = HTMLElement & {
|
|
604
|
+
min: number;
|
|
605
|
+
max: number;
|
|
606
|
+
step: number;
|
|
607
|
+
value: [number, number];
|
|
608
|
+
defaultValue: [number, number] | undefined;
|
|
609
|
+
disabled: boolean;
|
|
610
|
+
readonly: boolean;
|
|
611
|
+
lowLabel: string;
|
|
612
|
+
highLabel: string;
|
|
613
|
+
lowValueText: string;
|
|
614
|
+
highValueText: string;
|
|
615
|
+
display: 'float' | 'inline-start' | 'inline-end' | null;
|
|
616
|
+
orientation: 'horizontal' | 'vertical';
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
/** Public API surface of `<rc-transfer-list>`. */
|
|
620
|
+
export type RCTransferListRef = HTMLElement & {
|
|
621
|
+
multiple: boolean;
|
|
622
|
+
compact: boolean;
|
|
623
|
+
availableLabel: string;
|
|
624
|
+
selectedLabel: string;
|
|
625
|
+
available: RCTransferListOption[];
|
|
626
|
+
selected: RCTransferListOption[];
|
|
627
|
+
defaultSelected: RCTransferListOption[] | undefined;
|
|
628
|
+
addSelected(): void;
|
|
629
|
+
addAll(): void;
|
|
630
|
+
removeSelected(): void;
|
|
631
|
+
clearSelected(): void;
|
|
632
|
+
moveSelected(delta: number): void;
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
/** Public API surface of `<rc-textarea>`. */
|
|
636
|
+
export type RCTextareaRef = HTMLElement & {
|
|
637
|
+
value: string;
|
|
638
|
+
defaultValue: string | undefined;
|
|
639
|
+
plugin: RCTextareaPlugin | null;
|
|
640
|
+
lineNumbers: boolean;
|
|
641
|
+
gutter: boolean;
|
|
642
|
+
wordWrap: boolean;
|
|
643
|
+
autoGrow: boolean;
|
|
644
|
+
readOnly: boolean;
|
|
645
|
+
usePlugin(plugin: RCTextareaPlugin): void;
|
|
646
|
+
removePlugin(): void;
|
|
647
|
+
wrapSelection(prefix: string, suffix: string): void;
|
|
648
|
+
replaceSelection(text: string): void;
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
/** Public API surface of `<rc-markdown-editor>`. */
|
|
652
|
+
export type RCMarkdownEditorRef = HTMLElement & {
|
|
653
|
+
value: string;
|
|
654
|
+
defaultValue: string;
|
|
655
|
+
toolbar: boolean;
|
|
656
|
+
sourceMode: boolean;
|
|
657
|
+
defaultSourceMode: boolean;
|
|
658
|
+
readOnly: boolean;
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
/** Public API surface of `<rc-virtual-canvas>`. */
|
|
662
|
+
export type RCVirtualCanvasRef = HTMLElement & {
|
|
663
|
+
contentWidth: number;
|
|
664
|
+
contentHeight: number;
|
|
665
|
+
autoResizeCanvas: boolean;
|
|
666
|
+
renderMode: 'continuous' | 'viewport-change' | 'manual';
|
|
667
|
+
imageRendering: 'auto' | 'crisp-edges' | 'pixelated';
|
|
668
|
+
readonly canvasScaleX: number;
|
|
669
|
+
readonly canvasScaleY: number;
|
|
670
|
+
getViewRect(): RCVirtualCanvasViewRect;
|
|
671
|
+
scrollToContent(x: number, y: number, options?: ScrollToOptions): void;
|
|
672
|
+
centerOnContent(x: number, y: number, options?: ScrollToOptions): void;
|
|
673
|
+
clientToContent(clientX: number, clientY: number): Readonly<{ x: number; y: number }>;
|
|
674
|
+
contentToClient(x: number, y: number): Readonly<{ x: number; y: number }>;
|
|
675
|
+
requestRender(reason?: 'animation-frame' | 'viewport-change' | 'manual'): void;
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
/** Public API surface of `<rc-app-bar>`. */
|
|
679
|
+
export type RCAppBarRef = HTMLElement & {
|
|
680
|
+
variant: 'compact' | 'expanded';
|
|
681
|
+
scrollBehavior: 'pinned' | 'collapse' | 'hide';
|
|
682
|
+
scrolled: boolean | undefined;
|
|
683
|
+
scrollTarget: Element | Document | Window | string | null;
|
|
684
|
+
scrollThreshold: number;
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
/** Public API surface of `<rc-search-bar>`. */
|
|
688
|
+
export type RCSearchBarRef = HTMLElement & {
|
|
689
|
+
variant: 'bar' | 'view';
|
|
690
|
+
open: boolean;
|
|
691
|
+
defaultOpen: boolean;
|
|
692
|
+
value: string;
|
|
693
|
+
defaultValue: string | undefined;
|
|
694
|
+
debounce: number;
|
|
695
|
+
clearLabel: string;
|
|
696
|
+
placeholder: string | undefined;
|
|
697
|
+
showView(): void;
|
|
698
|
+
closeView(): void;
|
|
699
|
+
toggleView(): void;
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
export type RCFieldControl = HTMLInputElement | HTMLTextAreaElement;
|
|
703
|
+
|
|
704
|
+
/** Public API surface of `<rc-field>`. */
|
|
705
|
+
export type RCFieldRef = HTMLElement & {
|
|
706
|
+
counter: boolean;
|
|
707
|
+
invalid: boolean;
|
|
708
|
+
readonly control: RCFieldControl | null;
|
|
709
|
+
focus(options?: FocusOptions): void;
|
|
710
|
+
blur(): void;
|
|
711
|
+
sync(): void;
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
/** Public API surface of `<rc-carousel>`. */
|
|
715
|
+
export type RCCarouselRef = HTMLElement & {
|
|
716
|
+
activeIndex: number | undefined;
|
|
717
|
+
defaultActiveIndex: number;
|
|
718
|
+
loop: boolean;
|
|
719
|
+
navigation: boolean;
|
|
720
|
+
pagination: boolean;
|
|
721
|
+
mouseDragging: boolean;
|
|
722
|
+
next(): void;
|
|
723
|
+
previous(): void;
|
|
724
|
+
goToIndex(index: number, instant?: boolean): void;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
/** Public API surface of `<rc-carousel-item>`. */
|
|
728
|
+
export type RCCarouselItemRef = HTMLElement;
|
|
729
|
+
|
|
730
|
+
// ── React JSX declarations ───────────────────────────────────────────────────
|
|
731
|
+
|
|
732
|
+
declare module 'react' {
|
|
733
|
+
namespace JSX {
|
|
734
|
+
interface IntrinsicElements {
|
|
735
|
+
'rc-disclosure': React.DetailedHTMLProps<
|
|
736
|
+
React.HTMLAttributes<RCDisclosureRef>,
|
|
737
|
+
RCDisclosureRef
|
|
738
|
+
> & {
|
|
739
|
+
open?: boolean;
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
'rc-accordion': React.DetailedHTMLProps<
|
|
743
|
+
React.HTMLAttributes<RCAccordionRef>,
|
|
744
|
+
RCAccordionRef
|
|
745
|
+
> & {
|
|
746
|
+
name?: string;
|
|
747
|
+
multiple?: boolean;
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
'rc-button': React.DetailedHTMLProps<React.HTMLAttributes<RCButtonRef>, RCButtonRef> & {
|
|
751
|
+
disabled?: boolean;
|
|
752
|
+
pending?: boolean;
|
|
753
|
+
progress?: boolean;
|
|
754
|
+
'progress-value'?: number | string;
|
|
755
|
+
toggle?: boolean;
|
|
756
|
+
selected?: boolean;
|
|
757
|
+
'default-selected'?: boolean;
|
|
758
|
+
'icon-only'?: boolean;
|
|
759
|
+
'full-width'?: boolean;
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
'rc-card': React.DetailedHTMLProps<React.HTMLAttributes<RCCardRef>, RCCardRef> & {
|
|
763
|
+
orientation?: RCCardOrientation;
|
|
764
|
+
selected?: boolean;
|
|
765
|
+
disabled?: boolean;
|
|
766
|
+
interactive?: boolean;
|
|
767
|
+
'action-target'?: string;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
'rc-scroller': React.DetailedHTMLProps<React.HTMLAttributes<RCScrollerRef>, RCScrollerRef> & {
|
|
771
|
+
axis?: RCScrollerAxis;
|
|
772
|
+
layout?: RCScrollerLayout;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
'rc-carousel': React.DetailedHTMLProps<React.HTMLAttributes<RCCarouselRef>, RCCarouselRef> & {
|
|
776
|
+
'active-index'?: number | string;
|
|
777
|
+
'default-active-index'?: number | string;
|
|
778
|
+
loop?: boolean;
|
|
779
|
+
navigation?: boolean;
|
|
780
|
+
pagination?: boolean;
|
|
781
|
+
'mouse-dragging'?: boolean;
|
|
782
|
+
'onrc-carousel-change'?: (event: CustomEvent<RCCarouselChangeDetail>) => void;
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
'rc-carousel-item': React.DetailedHTMLProps<
|
|
786
|
+
React.HTMLAttributes<RCCarouselItemRef>,
|
|
787
|
+
RCCarouselItemRef
|
|
788
|
+
>;
|
|
789
|
+
|
|
790
|
+
'rc-list': React.DetailedHTMLProps<React.HTMLAttributes<RCListRef>, RCListRef> & {
|
|
791
|
+
variant?: RCListVariant;
|
|
792
|
+
selection?: RCListSelection;
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
'rc-list-item': React.DetailedHTMLProps<
|
|
796
|
+
React.HTMLAttributes<RCListItemRef>,
|
|
797
|
+
RCListItemRef
|
|
798
|
+
> & {
|
|
799
|
+
selected?: boolean;
|
|
800
|
+
disabled?: boolean;
|
|
801
|
+
interactive?: boolean;
|
|
802
|
+
'action-target'?: string;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
'rc-switch': React.DetailedHTMLProps<React.HTMLAttributes<RCSwitchRef>, RCSwitchRef> & {
|
|
806
|
+
checked?: boolean;
|
|
807
|
+
'default-checked'?: boolean;
|
|
808
|
+
disabled?: boolean;
|
|
809
|
+
icons?: boolean;
|
|
810
|
+
'show-only-selected-icon'?: boolean;
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
'rc-segmented-button': React.DetailedHTMLProps<
|
|
814
|
+
React.HTMLAttributes<RCSegmentedButtonRef>,
|
|
815
|
+
RCSegmentedButtonRef
|
|
816
|
+
> & {
|
|
817
|
+
value?: string;
|
|
818
|
+
'default-value'?: string;
|
|
819
|
+
disabled?: boolean;
|
|
820
|
+
orientation?: 'horizontal' | 'vertical';
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
'rc-chip': React.DetailedHTMLProps<React.HTMLAttributes<RCChipRef>, RCChipRef> & {
|
|
824
|
+
variant?: RCChipVariant;
|
|
825
|
+
selected?: boolean;
|
|
826
|
+
'default-selected'?: boolean;
|
|
827
|
+
disabled?: boolean;
|
|
828
|
+
readonly?: boolean;
|
|
829
|
+
removable?: boolean;
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
'rc-chip-group': React.DetailedHTMLProps<
|
|
833
|
+
React.HTMLAttributes<RCChipGroupRef>,
|
|
834
|
+
RCChipGroupRef
|
|
835
|
+
> & {
|
|
836
|
+
layout?: RCChipGroupLayout;
|
|
837
|
+
'max-rows'?: number | string;
|
|
838
|
+
kind?: RCChipGroupKind;
|
|
839
|
+
selection?: RCChipGroupSelection;
|
|
840
|
+
expanded?: boolean;
|
|
841
|
+
'default-expanded'?: boolean;
|
|
842
|
+
label?: string;
|
|
843
|
+
'show-all-label'?: string;
|
|
844
|
+
'show-less-label'?: string;
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
'rc-snackbar': React.DetailedHTMLProps<React.HTMLAttributes<RCSnackbarRef>, RCSnackbarRef> & {
|
|
848
|
+
open?: boolean;
|
|
849
|
+
message?: string;
|
|
850
|
+
'action-label'?: string;
|
|
851
|
+
duration?: number | string;
|
|
852
|
+
'queue-policy'?: RCSnackbarQueuePolicy;
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
'rc-listbox': React.DetailedHTMLProps<React.HTMLAttributes<RCListboxRef>, RCListboxRef> & {
|
|
856
|
+
multiple?: boolean;
|
|
857
|
+
checkmark?: boolean;
|
|
858
|
+
'filter-strategy'?: 'prefix' | 'contains';
|
|
859
|
+
value?: RCSelectValue;
|
|
860
|
+
'default-value'?: RCSelectValue;
|
|
861
|
+
options?: RCListboxOption[];
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
'rc-select': React.DetailedHTMLProps<React.HTMLAttributes<RCSelectRef>, RCSelectRef> & {
|
|
865
|
+
open?: boolean;
|
|
866
|
+
multiple?: boolean;
|
|
867
|
+
disabled?: boolean;
|
|
868
|
+
placeholder?: string;
|
|
869
|
+
display?: 'auto' | 'chips' | 'compact';
|
|
870
|
+
'popup-mode'?: 'popover' | 'dialog';
|
|
871
|
+
'dialog-confirm-label'?: string;
|
|
872
|
+
'dialog-cancel-label'?: string;
|
|
873
|
+
'dialog-cancel-button'?: 'visible' | 'hidden';
|
|
874
|
+
value?: RCSelectValue;
|
|
875
|
+
'default-value'?: RCSelectValue;
|
|
876
|
+
options?: RCSelectOption[];
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
'rc-combobox': React.DetailedHTMLProps<React.HTMLAttributes<RCComboboxRef>, RCComboboxRef> & {
|
|
880
|
+
open?: boolean;
|
|
881
|
+
multiple?: boolean;
|
|
882
|
+
disabled?: boolean;
|
|
883
|
+
placeholder?: string;
|
|
884
|
+
display?: 'auto' | 'chips' | 'compact';
|
|
885
|
+
'allow-create'?: boolean;
|
|
886
|
+
'filter-strategy'?: 'prefix' | 'contains';
|
|
887
|
+
'popup-mode'?: 'popover' | 'dialog';
|
|
888
|
+
'dialog-confirm-label'?: string;
|
|
889
|
+
'dialog-cancel-label'?: string;
|
|
890
|
+
'dialog-cancel-button'?: 'visible' | 'hidden';
|
|
891
|
+
value?: RCSelectValue;
|
|
892
|
+
'default-value'?: RCSelectValue;
|
|
893
|
+
options?: RCSelectOption[];
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
'rc-dialog': React.DetailedHTMLProps<React.HTMLAttributes<RCDialogRef>, RCDialogRef> & {
|
|
897
|
+
open?: boolean;
|
|
898
|
+
'default-open'?: boolean;
|
|
899
|
+
variant?: 'standard' | 'fullscreen';
|
|
900
|
+
movable?: boolean;
|
|
901
|
+
'move-handle'?: string;
|
|
902
|
+
'move-bounds'?: 'viewport' | 'parent';
|
|
903
|
+
'move-step'?: number | string;
|
|
904
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
905
|
+
'resize-origin'?: RCDialogResizeOrigin;
|
|
906
|
+
'resize-handle'?: string;
|
|
907
|
+
'resize-threshold'?: number | string;
|
|
908
|
+
'resize-step'?: number | string;
|
|
909
|
+
'closed-by'?: 'any' | 'closerequest' | 'none';
|
|
910
|
+
'light-dismiss'?: boolean;
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
'rc-bottom-sheet': React.DetailedHTMLProps<
|
|
914
|
+
React.HTMLAttributes<RCBottomSheetRef>,
|
|
915
|
+
RCBottomSheetRef
|
|
916
|
+
> & {
|
|
917
|
+
open?: boolean;
|
|
918
|
+
'default-open'?: boolean;
|
|
919
|
+
'light-dismiss'?: boolean;
|
|
920
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
921
|
+
'resize-origin'?: RCDialogResizeOrigin;
|
|
922
|
+
'resize-handle'?: string;
|
|
923
|
+
'resize-threshold'?: number | string;
|
|
924
|
+
'resize-step'?: number | string;
|
|
925
|
+
'snap-points'?: string;
|
|
926
|
+
'swipe-dismiss'?: boolean;
|
|
927
|
+
'swipe-velocity'?: number | string;
|
|
928
|
+
'onrc-bottom-sheet-resize-start'?: (
|
|
929
|
+
event: CustomEvent<RCBottomSheetResizeStartDetail>,
|
|
930
|
+
) => void;
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
'rc-menu': React.DetailedHTMLProps<React.HTMLAttributes<RCMenuRef>, RCMenuRef> & {
|
|
934
|
+
label?: string;
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
'rc-adaptive-menu': React.DetailedHTMLProps<
|
|
938
|
+
React.HTMLAttributes<RCAdaptiveMenuRef>,
|
|
939
|
+
RCAdaptiveMenuRef
|
|
940
|
+
> & {
|
|
941
|
+
label?: string;
|
|
942
|
+
'max-shown'?: number | string;
|
|
943
|
+
open?: boolean;
|
|
944
|
+
'default-open'?: boolean;
|
|
945
|
+
orientation?: 'horizontal' | 'vertical';
|
|
946
|
+
'overflow-label'?: string;
|
|
947
|
+
'onrc-adaptive-menu-toggle'?: (event: CustomEvent<RCAdaptiveMenuToggleDetail>) => void;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
'rc-menu-button': React.DetailedHTMLProps<
|
|
951
|
+
React.HTMLAttributes<RCMenuButtonRef>,
|
|
952
|
+
RCMenuButtonRef
|
|
953
|
+
> & {
|
|
954
|
+
open?: boolean;
|
|
955
|
+
'default-open'?: boolean;
|
|
956
|
+
orientation?: 'horizontal' | 'vertical';
|
|
957
|
+
placement?: RCMenuButtonPlacement;
|
|
958
|
+
'icon-only'?: boolean;
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
'rc-fab-menu': React.DetailedHTMLProps<React.HTMLAttributes<RCFabMenuRef>, RCFabMenuRef> & {
|
|
962
|
+
open?: boolean;
|
|
963
|
+
'default-open'?: boolean;
|
|
964
|
+
placement?: RCMenuButtonPlacement;
|
|
965
|
+
position?: 'bottom-end' | 'bottom-start' | 'top-end' | 'top-start';
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
'rc-navigation-bar': React.DetailedHTMLProps<
|
|
969
|
+
React.HTMLAttributes<RCNavigationBarRef>,
|
|
970
|
+
RCNavigationBarRef
|
|
971
|
+
> & {
|
|
972
|
+
'active-selector'?: string;
|
|
973
|
+
'indicator-target'?: string;
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
'rc-navigation-rail': React.DetailedHTMLProps<
|
|
977
|
+
React.HTMLAttributes<RCNavigationRailRef>,
|
|
978
|
+
RCNavigationRailRef
|
|
979
|
+
> & {
|
|
980
|
+
expanded?: boolean;
|
|
981
|
+
'default-expanded'?: boolean;
|
|
982
|
+
'active-selector'?: string;
|
|
983
|
+
'indicator-target'?: string;
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
'rc-menubar': React.DetailedHTMLProps<React.HTMLAttributes<RCMenubarRef>, RCMenubarRef> & {
|
|
987
|
+
label?: string;
|
|
988
|
+
orientation?: 'horizontal' | 'vertical';
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
'rc-toolbar': React.DetailedHTMLProps<React.HTMLAttributes<RCToolbarRef>, RCToolbarRef> & {
|
|
992
|
+
label?: string;
|
|
993
|
+
orientation?: 'horizontal' | 'vertical';
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
'rc-slider': React.DetailedHTMLProps<React.HTMLAttributes<RCSliderRef>, RCSliderRef> & {
|
|
997
|
+
min?: number | string;
|
|
998
|
+
max?: number | string;
|
|
999
|
+
step?: number | string;
|
|
1000
|
+
value?: number | string;
|
|
1001
|
+
'default-value'?: number | string;
|
|
1002
|
+
disabled?: boolean;
|
|
1003
|
+
readonly?: boolean;
|
|
1004
|
+
display?: 'float' | 'inline-start' | 'inline-end';
|
|
1005
|
+
'value-text'?: string;
|
|
1006
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
'rc-progress': React.DetailedHTMLProps<React.HTMLAttributes<RCProgressRef>, RCProgressRef> & {
|
|
1010
|
+
value?: number | string;
|
|
1011
|
+
'default-value'?: number | string;
|
|
1012
|
+
indeterminate?: boolean;
|
|
1013
|
+
disabled?: boolean;
|
|
1014
|
+
display?: 'inline-start' | 'inline-end' | 'overlay';
|
|
1015
|
+
'value-text'?: string;
|
|
1016
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
'rc-range-slider': React.DetailedHTMLProps<
|
|
1020
|
+
React.HTMLAttributes<RCRangeSliderRef>,
|
|
1021
|
+
RCRangeSliderRef
|
|
1022
|
+
> & {
|
|
1023
|
+
min?: number | string;
|
|
1024
|
+
max?: number | string;
|
|
1025
|
+
step?: number | string;
|
|
1026
|
+
value?: [number, number];
|
|
1027
|
+
'default-value'?: [number, number];
|
|
1028
|
+
disabled?: boolean;
|
|
1029
|
+
readonly?: boolean;
|
|
1030
|
+
'low-label'?: string;
|
|
1031
|
+
'high-label'?: string;
|
|
1032
|
+
'low-value-text'?: string;
|
|
1033
|
+
'high-value-text'?: string;
|
|
1034
|
+
display?: 'float' | 'inline-start' | 'inline-end';
|
|
1035
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
'rc-transfer-list': React.DetailedHTMLProps<
|
|
1039
|
+
React.HTMLAttributes<RCTransferListRef>,
|
|
1040
|
+
RCTransferListRef
|
|
1041
|
+
> & {
|
|
1042
|
+
multiple?: boolean;
|
|
1043
|
+
compact?: boolean;
|
|
1044
|
+
'available-label'?: string;
|
|
1045
|
+
'selected-label'?: string;
|
|
1046
|
+
available?: RCTransferListOption[];
|
|
1047
|
+
selected?: RCTransferListOption[];
|
|
1048
|
+
'default-selected'?: RCTransferListOption[];
|
|
1049
|
+
};
|
|
1050
|
+
|
|
1051
|
+
'rc-splitter': React.DetailedHTMLProps<React.HTMLAttributes<RCSplitterRef>, RCSplitterRef> & {
|
|
1052
|
+
label?: string;
|
|
1053
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1054
|
+
mode?: 'length' | 'percent' | 'fixed';
|
|
1055
|
+
step?: number | string;
|
|
1056
|
+
min?: number | string;
|
|
1057
|
+
max?: number | string;
|
|
1058
|
+
value?: number | string;
|
|
1059
|
+
'default-value'?: number | string;
|
|
1060
|
+
fixed?: boolean;
|
|
1061
|
+
collapsible?: boolean;
|
|
1062
|
+
'snap-points'?: string;
|
|
1063
|
+
'swipe-velocity'?: number | string;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
'rc-editor-toolbar': React.DetailedHTMLProps<
|
|
1067
|
+
React.HTMLAttributes<HTMLElement>,
|
|
1068
|
+
HTMLElement
|
|
1069
|
+
> & {
|
|
1070
|
+
label?: string;
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
'rc-markdown-editor': React.DetailedHTMLProps<
|
|
1074
|
+
React.HTMLAttributes<RCMarkdownEditorRef>,
|
|
1075
|
+
RCMarkdownEditorRef
|
|
1076
|
+
> & {
|
|
1077
|
+
value?: string;
|
|
1078
|
+
'default-value'?: string;
|
|
1079
|
+
toolbar?: boolean;
|
|
1080
|
+
'source-mode'?: boolean;
|
|
1081
|
+
'default-source-mode'?: boolean;
|
|
1082
|
+
'read-only'?: boolean;
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
'rc-fab': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
|
|
1086
|
+
position?: 'bottom-end' | 'bottom-start' | 'top-end' | 'top-start';
|
|
1087
|
+
'scroll-reveal'?: boolean;
|
|
1088
|
+
};
|
|
1089
|
+
|
|
1090
|
+
'rc-app-bar': React.DetailedHTMLProps<React.HTMLAttributes<RCAppBarRef>, RCAppBarRef> & {
|
|
1091
|
+
variant?: 'compact' | 'expanded';
|
|
1092
|
+
'scroll-behavior'?: 'pinned' | 'collapse' | 'hide';
|
|
1093
|
+
'scroll-target'?: string;
|
|
1094
|
+
'scroll-threshold'?: number | string;
|
|
1095
|
+
scrollTarget?: Element | Document | Window | string | null;
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
'rc-search-bar': React.DetailedHTMLProps<
|
|
1099
|
+
React.HTMLAttributes<RCSearchBarRef>,
|
|
1100
|
+
RCSearchBarRef
|
|
1101
|
+
> & {
|
|
1102
|
+
variant?: 'bar' | 'view';
|
|
1103
|
+
open?: boolean;
|
|
1104
|
+
'default-open'?: boolean;
|
|
1105
|
+
debounce?: number | string;
|
|
1106
|
+
'clear-label'?: string;
|
|
1107
|
+
placeholder?: string;
|
|
1108
|
+
'default-value'?: string;
|
|
1109
|
+
value?: string;
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
'rc-field': React.DetailedHTMLProps<React.HTMLAttributes<RCFieldRef>, RCFieldRef> & {
|
|
1113
|
+
counter?: boolean;
|
|
1114
|
+
invalid?: boolean;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
'rc-virtual-canvas': React.DetailedHTMLProps<
|
|
1118
|
+
React.HTMLAttributes<RCVirtualCanvasRef>,
|
|
1119
|
+
RCVirtualCanvasRef
|
|
1120
|
+
> & {
|
|
1121
|
+
'content-width'?: number | string;
|
|
1122
|
+
'content-height'?: number | string;
|
|
1123
|
+
'auto-resize-canvas'?: boolean;
|
|
1124
|
+
'render-mode'?: 'continuous' | 'viewport-change' | 'manual';
|
|
1125
|
+
'image-rendering'?: 'auto' | 'crisp-edges' | 'pixelated';
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
'rc-textarea': React.DetailedHTMLProps<React.HTMLAttributes<RCTextareaRef>, RCTextareaRef> & {
|
|
1129
|
+
value?: string;
|
|
1130
|
+
'default-value'?: string;
|
|
1131
|
+
plugin?: RCTextareaPlugin | null;
|
|
1132
|
+
'line-numbers'?: boolean;
|
|
1133
|
+
gutter?: boolean;
|
|
1134
|
+
'word-wrap'?: boolean;
|
|
1135
|
+
'auto-grow'?: boolean;
|
|
1136
|
+
'read-only'?: boolean;
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
}
|