@rcarls/rc-webcomponents 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +802 -0
- package/README.md +89 -56
- package/dist/rc-accordion/define.js +3 -0
- package/dist/rc-accordion/define.js.map +1 -0
- package/dist/rc-accordion/index.js +2 -0
- package/dist/rc-accordion/index.js.map +1 -0
- package/dist/rc-adaptive-menu/define.js +3 -0
- package/dist/rc-adaptive-menu/define.js.map +1 -0
- package/dist/rc-adaptive-menu/index.js +2 -0
- package/dist/rc-adaptive-menu/index.js.map +1 -0
- package/dist/rc-app-bar/define.js +3 -0
- package/dist/rc-app-bar/define.js.map +1 -0
- package/dist/rc-app-bar/index.js +2 -0
- package/dist/rc-app-bar/index.js.map +1 -0
- package/dist/rc-bottom-sheet/define.js +3 -0
- package/dist/rc-bottom-sheet/define.js.map +1 -0
- package/dist/rc-bottom-sheet/index.js +2 -0
- package/dist/rc-bottom-sheet/index.js.map +1 -0
- package/dist/rc-button/define.js +3 -0
- package/dist/rc-button/define.js.map +1 -0
- package/dist/rc-button/index.js +2 -0
- package/dist/rc-button/index.js.map +1 -0
- package/dist/rc-card/define.js +3 -0
- package/dist/rc-card/define.js.map +1 -0
- package/dist/rc-card/index.js +2 -0
- package/dist/rc-card/index.js.map +1 -0
- package/dist/rc-carousel/define.js +3 -0
- package/dist/rc-carousel/define.js.map +1 -0
- package/dist/rc-carousel/index.js +2 -0
- package/dist/rc-carousel/index.js.map +1 -0
- package/dist/rc-chip/define.js +3 -0
- package/dist/rc-chip/define.js.map +1 -0
- package/dist/rc-chip/index.js +2 -0
- package/dist/rc-chip/index.js.map +1 -0
- package/dist/rc-chip-group/define.js +3 -0
- package/dist/rc-chip-group/define.js.map +1 -0
- package/dist/rc-chip-group/index.js +2 -0
- package/dist/rc-chip-group/index.js.map +1 -0
- package/dist/rc-combobox/define.js +3 -0
- package/dist/rc-combobox/define.js.map +1 -0
- package/dist/rc-combobox/index.js +2 -0
- package/dist/rc-combobox/index.js.map +1 -0
- package/dist/rc-dialog/define.js +3 -0
- package/dist/rc-dialog/define.js.map +1 -0
- package/dist/rc-dialog/index.js +2 -0
- package/dist/rc-dialog/index.js.map +1 -0
- package/dist/rc-disclosure/define.js +3 -0
- package/dist/rc-disclosure/define.js.map +1 -0
- package/dist/rc-disclosure/index.js +2 -0
- package/dist/rc-disclosure/index.js.map +1 -0
- package/dist/rc-fab/define.js +3 -0
- package/dist/rc-fab/define.js.map +1 -0
- package/dist/rc-fab/index.js +2 -0
- package/dist/rc-fab/index.js.map +1 -0
- package/dist/rc-fab-menu/define.js +3 -0
- package/dist/rc-fab-menu/define.js.map +1 -0
- package/dist/rc-fab-menu/index.js +2 -0
- package/dist/rc-fab-menu/index.js.map +1 -0
- package/dist/rc-field/define.js +3 -0
- package/dist/rc-field/define.js.map +1 -0
- package/dist/rc-field/index.js +2 -0
- package/dist/rc-field/index.js.map +1 -0
- package/dist/rc-list/define.js +3 -0
- package/dist/rc-list/define.js.map +1 -0
- package/dist/rc-list/index.js +2 -0
- package/dist/rc-list/index.js.map +1 -0
- package/dist/rc-listbox/define.js +3 -0
- package/dist/rc-listbox/define.js.map +1 -0
- package/dist/rc-listbox/index.js +2 -0
- package/dist/rc-listbox/index.js.map +1 -0
- package/dist/rc-markdown-editor/define.js +3 -0
- package/dist/rc-markdown-editor/define.js.map +1 -0
- package/dist/rc-markdown-editor/index.js +2 -0
- package/dist/rc-markdown-editor/index.js.map +1 -0
- package/dist/rc-menu/define.js +3 -0
- package/dist/rc-menu/define.js.map +1 -0
- package/dist/rc-menu/index.js +2 -0
- package/dist/rc-menu/index.js.map +1 -0
- package/dist/rc-menu-button/define.js +3 -0
- package/dist/rc-menu-button/define.js.map +1 -0
- package/dist/rc-menu-button/index.js +2 -0
- package/dist/rc-menu-button/index.js.map +1 -0
- package/dist/rc-menubar/define.js +3 -0
- package/dist/rc-menubar/define.js.map +1 -0
- package/dist/rc-menubar/index.js +2 -0
- package/dist/rc-menubar/index.js.map +1 -0
- package/dist/rc-navigation-bar/define.js +3 -0
- package/dist/rc-navigation-bar/define.js.map +1 -0
- package/dist/rc-navigation-bar/index.js +2 -0
- package/dist/rc-navigation-bar/index.js.map +1 -0
- package/dist/rc-navigation-rail/define.js +3 -0
- package/dist/rc-navigation-rail/define.js.map +1 -0
- package/dist/rc-navigation-rail/index.js +2 -0
- package/dist/rc-navigation-rail/index.js.map +1 -0
- package/dist/rc-popover/define.js +3 -0
- package/dist/rc-popover/define.js.map +1 -0
- package/dist/rc-popover/index.js +2 -0
- package/dist/rc-popover/index.js.map +1 -0
- package/dist/rc-progress/define.js +3 -0
- package/dist/rc-progress/define.js.map +1 -0
- package/dist/rc-progress/index.js +2 -0
- package/dist/rc-progress/index.js.map +1 -0
- package/dist/rc-range-slider/define.js +3 -0
- package/dist/rc-range-slider/define.js.map +1 -0
- package/dist/rc-range-slider/index.js +2 -0
- package/dist/rc-range-slider/index.js.map +1 -0
- package/dist/rc-scroller/define.js +3 -0
- package/dist/rc-scroller/define.js.map +1 -0
- package/dist/rc-scroller/index.js +2 -0
- package/dist/rc-scroller/index.js.map +1 -0
- package/dist/rc-search-bar/define.js +3 -0
- package/dist/rc-search-bar/define.js.map +1 -0
- package/dist/rc-search-bar/index.js +2 -0
- package/dist/rc-search-bar/index.js.map +1 -0
- package/dist/rc-segmented-button/define.js +3 -0
- package/dist/rc-segmented-button/define.js.map +1 -0
- package/dist/rc-segmented-button/index.js +2 -0
- package/dist/rc-segmented-button/index.js.map +1 -0
- package/dist/rc-select/define.js +3 -0
- package/dist/rc-select/define.js.map +1 -0
- package/dist/rc-select/index.js +2 -0
- package/dist/rc-select/index.js.map +1 -0
- package/dist/rc-slider/define.js +3 -0
- package/dist/rc-slider/define.js.map +1 -0
- package/dist/rc-slider/index.js +2 -0
- package/dist/rc-slider/index.js.map +1 -0
- package/dist/rc-snackbar/define.js +3 -0
- package/dist/rc-snackbar/define.js.map +1 -0
- package/dist/rc-snackbar/index.js +2 -0
- package/dist/rc-snackbar/index.js.map +1 -0
- package/dist/rc-splitter/define.js +3 -0
- package/dist/rc-splitter/define.js.map +1 -0
- package/dist/rc-splitter/index.js +2 -0
- package/dist/rc-splitter/index.js.map +1 -0
- package/dist/rc-switch/define.js +3 -0
- package/dist/rc-switch/define.js.map +1 -0
- package/dist/rc-switch/index.js +2 -0
- package/dist/rc-switch/index.js.map +1 -0
- package/dist/rc-textarea/define.js +3 -0
- package/dist/rc-textarea/define.js.map +1 -0
- package/dist/rc-textarea/folding.js +2 -0
- package/dist/rc-textarea/folding.js.map +1 -0
- package/dist/rc-textarea/index.js +2 -0
- package/dist/rc-textarea/index.js.map +1 -0
- package/dist/rc-toolbar/define.js +3 -0
- package/dist/rc-toolbar/define.js.map +1 -0
- package/dist/rc-toolbar/index.js +2 -0
- package/dist/rc-toolbar/index.js.map +1 -0
- package/dist/rc-tooltip/define.js +3 -0
- package/dist/rc-tooltip/define.js.map +1 -0
- package/dist/rc-tooltip/index.js +2 -0
- package/dist/rc-tooltip/index.js.map +1 -0
- package/dist/rc-transfer-list/define.js +3 -0
- package/dist/rc-transfer-list/define.js.map +1 -0
- package/dist/rc-transfer-list/index.js +2 -0
- package/dist/rc-transfer-list/index.js.map +1 -0
- package/dist/rc-virtual-canvas/define.js +3 -0
- package/dist/rc-virtual-canvas/define.js.map +1 -0
- package/dist/rc-virtual-canvas/index.js +2 -0
- package/dist/rc-virtual-canvas/index.js.map +1 -0
- package/dist/rc-virtual-scroller/define.js +3 -0
- package/dist/rc-virtual-scroller/define.js.map +1 -0
- package/dist/rc-virtual-scroller/index.js +2 -0
- package/dist/rc-virtual-scroller/index.js.map +1 -0
- package/dist/rc-webcomponents-define.js +24 -4
- package/dist/rc-webcomponents-define.js.map +1 -1
- package/dist/rc-webcomponents.js +10 -0
- package/dist/rc-webcomponents.js.map +1 -1
- package/dist/types/index.d.ts +10 -0
- package/dist/types/rc-accordion/define.d.ts +1 -0
- package/dist/types/rc-accordion/index.d.ts +1 -0
- package/dist/types/rc-adaptive-menu/define.d.ts +1 -0
- package/dist/types/rc-adaptive-menu/index.d.ts +1 -0
- package/dist/types/rc-app-bar/define.d.ts +1 -0
- package/dist/types/rc-app-bar/index.d.ts +1 -0
- package/dist/types/rc-bottom-sheet/define.d.ts +1 -0
- package/dist/types/rc-bottom-sheet/index.d.ts +1 -0
- package/dist/types/rc-button/define.d.ts +1 -0
- package/dist/types/rc-button/index.d.ts +1 -0
- package/dist/types/rc-card/define.d.ts +1 -0
- package/dist/types/rc-card/index.d.ts +1 -0
- package/dist/types/rc-carousel/define.d.ts +1 -0
- package/dist/types/rc-carousel/index.d.ts +1 -0
- package/dist/types/rc-chip/define.d.ts +1 -0
- package/dist/types/rc-chip/index.d.ts +1 -0
- package/dist/types/rc-chip-group/define.d.ts +1 -0
- package/dist/types/rc-chip-group/index.d.ts +1 -0
- package/dist/types/rc-combobox/define.d.ts +1 -0
- package/dist/types/rc-combobox/index.d.ts +1 -0
- package/dist/types/rc-dialog/define.d.ts +1 -0
- package/dist/types/rc-dialog/index.d.ts +1 -0
- package/dist/types/rc-disclosure/define.d.ts +1 -0
- package/dist/types/rc-disclosure/index.d.ts +1 -0
- package/dist/types/rc-fab/define.d.ts +1 -0
- package/dist/types/rc-fab/index.d.ts +1 -0
- package/dist/types/rc-fab-menu/define.d.ts +1 -0
- package/dist/types/rc-fab-menu/index.d.ts +1 -0
- package/dist/types/rc-field/define.d.ts +1 -0
- package/dist/types/rc-field/index.d.ts +1 -0
- package/dist/types/rc-list/define.d.ts +1 -0
- package/dist/types/rc-list/index.d.ts +1 -0
- package/dist/types/rc-listbox/define.d.ts +1 -0
- package/dist/types/rc-listbox/index.d.ts +1 -0
- package/dist/types/rc-markdown-editor/define.d.ts +1 -0
- package/dist/types/rc-markdown-editor/index.d.ts +1 -0
- package/dist/types/rc-menu/define.d.ts +1 -0
- package/dist/types/rc-menu/index.d.ts +1 -0
- package/dist/types/rc-menu-button/define.d.ts +1 -0
- package/dist/types/rc-menu-button/index.d.ts +1 -0
- package/dist/types/rc-menubar/define.d.ts +1 -0
- package/dist/types/rc-menubar/index.d.ts +1 -0
- package/dist/types/rc-navigation-bar/define.d.ts +1 -0
- package/dist/types/rc-navigation-bar/index.d.ts +1 -0
- package/dist/types/rc-navigation-rail/define.d.ts +1 -0
- package/dist/types/rc-navigation-rail/index.d.ts +1 -0
- package/dist/types/rc-popover/define.d.ts +1 -0
- package/dist/types/rc-popover/index.d.ts +1 -0
- package/dist/types/rc-progress/define.d.ts +1 -0
- package/dist/types/rc-progress/index.d.ts +1 -0
- package/dist/types/rc-range-slider/define.d.ts +1 -0
- package/dist/types/rc-range-slider/index.d.ts +1 -0
- package/dist/types/rc-scroller/define.d.ts +1 -0
- package/dist/types/rc-scroller/index.d.ts +1 -0
- package/dist/types/rc-search-bar/define.d.ts +1 -0
- package/dist/types/rc-search-bar/index.d.ts +1 -0
- package/dist/types/rc-segmented-button/define.d.ts +1 -0
- package/dist/types/rc-segmented-button/index.d.ts +1 -0
- package/dist/types/rc-select/define.d.ts +1 -0
- package/dist/types/rc-select/index.d.ts +1 -0
- package/dist/types/rc-slider/define.d.ts +1 -0
- package/dist/types/rc-slider/index.d.ts +1 -0
- package/dist/types/rc-snackbar/define.d.ts +1 -0
- package/dist/types/rc-snackbar/index.d.ts +1 -0
- package/dist/types/rc-splitter/define.d.ts +1 -0
- package/dist/types/rc-splitter/index.d.ts +1 -0
- package/dist/types/rc-switch/define.d.ts +1 -0
- package/dist/types/rc-switch/index.d.ts +1 -0
- package/dist/types/rc-textarea/define.d.ts +1 -0
- package/dist/types/rc-textarea/folding.d.ts +1 -0
- package/dist/types/rc-textarea/index.d.ts +1 -0
- package/dist/types/rc-toolbar/define.d.ts +1 -0
- package/dist/types/rc-toolbar/index.d.ts +1 -0
- package/dist/types/rc-tooltip/define.d.ts +1 -0
- package/dist/types/rc-tooltip/index.d.ts +1 -0
- package/dist/types/rc-transfer-list/define.d.ts +1 -0
- package/dist/types/rc-transfer-list/index.d.ts +1 -0
- package/dist/types/rc-virtual-canvas/define.d.ts +1 -0
- package/dist/types/rc-virtual-canvas/index.d.ts +1 -0
- package/dist/types/rc-virtual-scroller/define.d.ts +1 -0
- package/dist/types/rc-virtual-scroller/index.d.ts +1 -0
- package/package.json +529 -32
- package/src/react.d.ts +544 -38
- package/src/solid.d.ts +573 -39
- package/themes/base.css +34 -0
package/src/solid.d.ts
CHANGED
|
@@ -17,7 +17,8 @@ import type { RCTextareaPlugin } from '@rcarls/rc-textarea';
|
|
|
17
17
|
|
|
18
18
|
/** Public API surface of `<rc-disclosure>`. */
|
|
19
19
|
export type RCDisclosureRef = HTMLElement & {
|
|
20
|
-
open: boolean;
|
|
20
|
+
open: boolean | undefined;
|
|
21
|
+
defaultOpen: boolean;
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
export type RCDisclosureToggleDetail = {
|
|
@@ -38,11 +39,102 @@ export type RCButtonRef = HTMLElement & {
|
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
/** Public API surface of `<rc-card>`. */
|
|
42
|
+
export type RCCardOrientation = 'vertical' | 'horizontal';
|
|
43
|
+
|
|
41
44
|
export type RCCardRef = HTMLElement & {
|
|
45
|
+
orientation: RCCardOrientation;
|
|
46
|
+
selected: boolean;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
interactive: boolean;
|
|
49
|
+
actionTarget: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type RCScrollerAxis = 'block' | 'inline' | 'both';
|
|
53
|
+
export type RCScrollerLayout = 'none' | 'content';
|
|
54
|
+
|
|
55
|
+
/** Public API surface of `<rc-scroller>`. */
|
|
56
|
+
export type RCScrollerRef = HTMLElement & {
|
|
57
|
+
axis: RCScrollerAxis;
|
|
58
|
+
layout: RCScrollerLayout;
|
|
59
|
+
readonly atBlockStart: boolean;
|
|
60
|
+
readonly atBlockEnd: boolean;
|
|
61
|
+
readonly atInlineStart: boolean;
|
|
62
|
+
readonly atInlineEnd: boolean;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type RCVirtualScrollerAxis = 'block' | 'inline';
|
|
66
|
+
|
|
67
|
+
export type RCVirtualScrollerRangeDetail = {
|
|
68
|
+
readonly start: number;
|
|
69
|
+
readonly end: number;
|
|
70
|
+
readonly itemsPerLine: number;
|
|
71
|
+
readonly lineSize: number;
|
|
72
|
+
readonly measured: boolean;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** Public API surface of `<rc-virtual-scroller>`. */
|
|
76
|
+
export type RCVirtualScrollerRef = HTMLElement & {
|
|
77
|
+
axis: RCVirtualScrollerAxis;
|
|
78
|
+
count: number;
|
|
79
|
+
itemSize: number;
|
|
80
|
+
itemsPerLine: number;
|
|
81
|
+
overscan: number;
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
scrollTarget: Element | null;
|
|
84
|
+
readonly first: number;
|
|
85
|
+
readonly last: number;
|
|
86
|
+
readonly range: RCVirtualScrollerRangeDetail | null;
|
|
87
|
+
scrollToIndex(
|
|
88
|
+
index: number,
|
|
89
|
+
options?: { align?: 'start' | 'center' | 'end' | 'nearest'; behavior?: ScrollBehavior },
|
|
90
|
+
): void;
|
|
91
|
+
measure(): void;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type RCListVariant = 'standard' | 'segmented';
|
|
95
|
+
export type RCListSelection = 'none' | 'single' | 'multiple';
|
|
96
|
+
|
|
97
|
+
/** Public API surface of `<rc-list>`. */
|
|
98
|
+
export type RCListRef = HTMLElement & {
|
|
99
|
+
variant: RCListVariant;
|
|
100
|
+
selection: RCListSelection;
|
|
101
|
+
ordered: boolean;
|
|
102
|
+
reorderable: boolean;
|
|
103
|
+
/** Overrides for the reorder announcements and handle hint. Positions are 1-based. */
|
|
104
|
+
reorderMessages: RCListReorderMessages | undefined;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** Detail shape for `rc-list-reorder`. Positions are 0-based among visible items. */
|
|
108
|
+
export type RCListReorderDetail = {
|
|
109
|
+
item: RCListItemRef;
|
|
110
|
+
from: number;
|
|
111
|
+
to: number;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** Overridable `rc-list` reorder announcements. */
|
|
115
|
+
export type RCListReorderMessages = {
|
|
116
|
+
instructions?: string;
|
|
117
|
+
grabbed?: (position: number, count: number, locale?: string) => string;
|
|
118
|
+
moved?: (position: number, count: number, locale?: string) => string;
|
|
119
|
+
dropped?: (position: number, count: number, locale?: string) => string;
|
|
120
|
+
canceled?: (position: number, count: number, locale?: string) => string;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/** Public API surface of `<rc-list-item>`. */
|
|
124
|
+
export type RCListItemRef = HTMLElement & {
|
|
42
125
|
selected: boolean;
|
|
43
126
|
disabled: boolean;
|
|
44
127
|
interactive: boolean;
|
|
45
128
|
actionTarget: string;
|
|
129
|
+
/** Expanded state of the `details` region; host writes take control, `undefined` releases it. */
|
|
130
|
+
get expanded(): boolean;
|
|
131
|
+
set expanded(value: boolean | undefined);
|
|
132
|
+
defaultExpanded: boolean;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/** Detail shape for `rc-list-item-toggle`. */
|
|
136
|
+
export type RCListItemToggleDetail = {
|
|
137
|
+
expanded: boolean;
|
|
46
138
|
};
|
|
47
139
|
|
|
48
140
|
export type RCSwitchChangeDetail = {
|
|
@@ -78,6 +170,14 @@ export type RCChipRemoveDetail = {
|
|
|
78
170
|
chip: HTMLElement;
|
|
79
171
|
};
|
|
80
172
|
|
|
173
|
+
export type RCChipGroupLayout = 'auto' | 'wrap' | 'scroll';
|
|
174
|
+
export type RCChipGroupKind = 'generic' | 'assist' | 'filter';
|
|
175
|
+
export type RCChipGroupSelection = 'none' | 'single' | 'multiple';
|
|
176
|
+
|
|
177
|
+
export type RCChipGroupToggleDetail = {
|
|
178
|
+
expanded: boolean;
|
|
179
|
+
};
|
|
180
|
+
|
|
81
181
|
export type RCButtonToggleDetail = {
|
|
82
182
|
selected: boolean;
|
|
83
183
|
};
|
|
@@ -91,6 +191,25 @@ export type RCChipRef = HTMLElement & {
|
|
|
91
191
|
removable: boolean;
|
|
92
192
|
};
|
|
93
193
|
|
|
194
|
+
export type RCChipGroupRef = HTMLElement & {
|
|
195
|
+
layout: RCChipGroupLayout;
|
|
196
|
+
maxRows: number;
|
|
197
|
+
kind: RCChipGroupKind;
|
|
198
|
+
selection: RCChipGroupSelection;
|
|
199
|
+
expanded: boolean;
|
|
200
|
+
defaultExpanded: boolean;
|
|
201
|
+
label: string | undefined;
|
|
202
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
203
|
+
messages: RCChipGroupMessages | undefined;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
/** Overridable `<rc-chip-group>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
207
|
+
export type RCChipGroupMessages = {
|
|
208
|
+
label?: string;
|
|
209
|
+
showAll?: string;
|
|
210
|
+
showLess?: string;
|
|
211
|
+
};
|
|
212
|
+
|
|
94
213
|
export type RCSnackbarQueuePolicy = 'queue' | 'replace';
|
|
95
214
|
export type RCSnackbarCloseReason = 'action' | 'api' | 'timeout' | 'replace' | 'clear';
|
|
96
215
|
|
|
@@ -109,8 +228,42 @@ export type RCSnackbarCloseDetail = {
|
|
|
109
228
|
message: string;
|
|
110
229
|
};
|
|
111
230
|
|
|
231
|
+
export type RCTooltipPlacement =
|
|
232
|
+
| 'block-start'
|
|
233
|
+
| 'block-start-start'
|
|
234
|
+
| 'block-start-end'
|
|
235
|
+
| 'block-end'
|
|
236
|
+
| 'block-end-start'
|
|
237
|
+
| 'block-end-end'
|
|
238
|
+
| 'inline-start'
|
|
239
|
+
| 'inline-start-start'
|
|
240
|
+
| 'inline-start-end'
|
|
241
|
+
| 'inline-end'
|
|
242
|
+
| 'inline-end-start'
|
|
243
|
+
| 'inline-end-end';
|
|
244
|
+
|
|
245
|
+
export type RCPopoverPlacement = RCTooltipPlacement;
|
|
246
|
+
export type RCPopoverTriggerAction = 'toggle' | 'none';
|
|
247
|
+
export type RCPopoverToggleDetail = { open: boolean };
|
|
248
|
+
|
|
249
|
+
/** Public API surface of `<rc-popover>`. */
|
|
250
|
+
export type RCPopoverRef = HTMLElement & {
|
|
251
|
+
open: boolean;
|
|
252
|
+
defaultOpen: boolean;
|
|
253
|
+
placement: RCPopoverPlacement;
|
|
254
|
+
triggerAction: RCPopoverTriggerAction;
|
|
255
|
+
openOnHover: boolean;
|
|
256
|
+
openOnFocus: boolean;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
/** Public API surface of `<rc-tooltip>`. */
|
|
260
|
+
export type RCTooltipRef = HTMLElement & {
|
|
261
|
+
placement: RCTooltipPlacement;
|
|
262
|
+
};
|
|
263
|
+
|
|
112
264
|
export type RCSnackbarRef = HTMLElement & {
|
|
113
265
|
open: boolean;
|
|
266
|
+
defaultOpen: boolean;
|
|
114
267
|
message: string;
|
|
115
268
|
actionLabel: string;
|
|
116
269
|
duration: number;
|
|
@@ -142,6 +295,13 @@ export type RCListboxRef = HTMLElement & {
|
|
|
142
295
|
filterOptions(text: string): void;
|
|
143
296
|
clearFilter(): void;
|
|
144
297
|
setCreateOption(label: string | null): void;
|
|
298
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
299
|
+
messages: RCListboxMessages | undefined;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
/** Overridable `<rc-listbox>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
303
|
+
export type RCListboxMessages = {
|
|
304
|
+
create?: (text: string) => string;
|
|
145
305
|
};
|
|
146
306
|
|
|
147
307
|
/** Public API surface of `<rc-select>`. */
|
|
@@ -193,20 +353,43 @@ export type RCSelectRef = HTMLElement & {
|
|
|
193
353
|
open: boolean;
|
|
194
354
|
multiple: boolean;
|
|
195
355
|
disabled: boolean;
|
|
356
|
+
required: boolean;
|
|
196
357
|
placeholder: string;
|
|
197
358
|
display: 'auto' | 'chips' | 'compact';
|
|
359
|
+
popupMode: 'popover' | 'dialog';
|
|
360
|
+
dialogCancelButton: 'visible' | 'hidden';
|
|
198
361
|
value: RCSelectValue;
|
|
199
362
|
defaultValue: RCSelectValue | undefined;
|
|
200
|
-
options:
|
|
363
|
+
options: RCListboxOption[] | undefined;
|
|
201
364
|
readonly selectedValues: string[];
|
|
202
365
|
openPopup(): void;
|
|
203
366
|
closePopup(returnFocus?: boolean): void;
|
|
367
|
+
focus(options?: FocusOptions): void;
|
|
368
|
+
blur(): void;
|
|
369
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
370
|
+
messages: RCSelectMessages | undefined;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
/** Overridable `<rc-select>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
374
|
+
export type RCSelectMessages = {
|
|
375
|
+
options?: string;
|
|
376
|
+
selectedItems?: string;
|
|
377
|
+
remove?: (label: string) => string;
|
|
378
|
+
summary?: (first: string, more: number, locale?: string) => string;
|
|
379
|
+
done?: string;
|
|
380
|
+
cancel?: string;
|
|
204
381
|
};
|
|
205
382
|
|
|
206
383
|
/** Public API surface of `<rc-combobox>`. */
|
|
207
384
|
export type RCComboboxRef = RCSelectRef & {
|
|
208
385
|
allowCreate: boolean;
|
|
209
386
|
filterStrategy: 'prefix' | 'contains' | ((label: string, query: string) => boolean);
|
|
387
|
+
messages: RCComboboxMessages | undefined;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
/** Overridable `<rc-combobox>` built-in text: every `rc-select` key plus `search`. */
|
|
391
|
+
export type RCComboboxMessages = RCSelectMessages & {
|
|
392
|
+
search?: (name: string) => string;
|
|
210
393
|
};
|
|
211
394
|
|
|
212
395
|
export type RCComboboxCreateDetail = {
|
|
@@ -228,6 +411,7 @@ export type RCDialogResizeOrigin =
|
|
|
228
411
|
export type RCDialogRef = HTMLElement & {
|
|
229
412
|
open: boolean | undefined;
|
|
230
413
|
defaultOpen: boolean;
|
|
414
|
+
variant: 'standard' | 'fullscreen' | 'side';
|
|
231
415
|
movable: boolean;
|
|
232
416
|
moveHandle: string;
|
|
233
417
|
moveBounds: 'viewport' | 'parent';
|
|
@@ -238,7 +422,6 @@ export type RCDialogRef = HTMLElement & {
|
|
|
238
422
|
resizeThreshold: number;
|
|
239
423
|
resizeStep: number;
|
|
240
424
|
closedBy: 'any' | 'closerequest' | 'none' | '';
|
|
241
|
-
lightDismiss: boolean;
|
|
242
425
|
readonly returnValue: string;
|
|
243
426
|
showModal(): void;
|
|
244
427
|
show(): void;
|
|
@@ -258,6 +441,11 @@ export type RCBottomSheetSnapDetail = {
|
|
|
258
441
|
trigger: 'drag' | 'api';
|
|
259
442
|
};
|
|
260
443
|
|
|
444
|
+
export type RCBottomSheetResizeStartDetail = {
|
|
445
|
+
height: number;
|
|
446
|
+
inputType: 'pointer' | 'keyboard';
|
|
447
|
+
};
|
|
448
|
+
|
|
261
449
|
/** Public API surface of `<rc-bottom-sheet>`. */
|
|
262
450
|
export type RCBottomSheetRef = RCDialogRef & {
|
|
263
451
|
snapPoints: string;
|
|
@@ -290,26 +478,56 @@ export type RCMenuCloseDetail = {
|
|
|
290
478
|
reason: 'escape';
|
|
291
479
|
};
|
|
292
480
|
|
|
481
|
+
export type RCAdaptiveMenuToggleDetail = {
|
|
482
|
+
open: boolean;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
/** Public API surface of `<rc-adaptive-menu>`. */
|
|
486
|
+
export type RCAdaptiveMenuRef = HTMLElement & {
|
|
487
|
+
label: string | undefined;
|
|
488
|
+
maxShown: number;
|
|
489
|
+
open: boolean;
|
|
490
|
+
defaultOpen: boolean;
|
|
491
|
+
orientation: 'horizontal' | 'vertical';
|
|
492
|
+
readonly $actions: HTMLElement[];
|
|
493
|
+
readonly $promotedActions: HTMLElement[];
|
|
494
|
+
readonly $overflowedActions: HTMLElement[];
|
|
495
|
+
openMenu(focus?: 'first' | 'last' | 'none'): void;
|
|
496
|
+
closeMenu(returnFocus?: boolean): void;
|
|
497
|
+
toggleMenu(focus?: 'first' | 'last' | 'none'): void;
|
|
498
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
499
|
+
messages: RCAdaptiveMenuMessages | undefined;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
/** Overridable `<rc-adaptive-menu>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
503
|
+
export type RCAdaptiveMenuMessages = {
|
|
504
|
+
label?: string;
|
|
505
|
+
overflow?: string;
|
|
506
|
+
};
|
|
507
|
+
|
|
293
508
|
/** Public API surface of `<rc-menu-button>`. */
|
|
294
509
|
export type RCMenuButtonPlacement =
|
|
295
|
-
| '
|
|
296
|
-
| '
|
|
297
|
-
| '
|
|
298
|
-
| '
|
|
299
|
-
| '
|
|
300
|
-
| '
|
|
301
|
-
| '
|
|
302
|
-
| '
|
|
303
|
-
| '
|
|
304
|
-
| '
|
|
305
|
-
| '
|
|
306
|
-
| '
|
|
510
|
+
| 'block-start'
|
|
511
|
+
| 'block-start-start'
|
|
512
|
+
| 'block-start-end'
|
|
513
|
+
| 'block-end'
|
|
514
|
+
| 'block-end-start'
|
|
515
|
+
| 'block-end-end'
|
|
516
|
+
| 'inline-start'
|
|
517
|
+
| 'inline-start-start'
|
|
518
|
+
| 'inline-start-end'
|
|
519
|
+
| 'inline-end'
|
|
520
|
+
| 'inline-end-start'
|
|
521
|
+
| 'inline-end-end';
|
|
307
522
|
|
|
308
523
|
export type RCMenuButtonRef = HTMLElement & {
|
|
309
524
|
open: boolean | undefined;
|
|
310
525
|
defaultOpen: boolean;
|
|
311
526
|
orientation: 'horizontal' | 'vertical' | undefined;
|
|
312
527
|
placement: RCMenuButtonPlacement;
|
|
528
|
+
openMenu(focus?: 'first' | 'last'): void;
|
|
529
|
+
closeMenu(returnFocus?: boolean): void;
|
|
530
|
+
toggleMenu(): void;
|
|
313
531
|
};
|
|
314
532
|
|
|
315
533
|
export type RCMenuButtonToggleDetail = {
|
|
@@ -318,7 +536,11 @@ export type RCMenuButtonToggleDetail = {
|
|
|
318
536
|
|
|
319
537
|
/** Public API surface of `<rc-fab-menu>`. */
|
|
320
538
|
export type RCFabMenuRef = RCMenuButtonRef & {
|
|
321
|
-
position:
|
|
539
|
+
position:
|
|
540
|
+
| 'block-end-inline-end'
|
|
541
|
+
| 'block-end-inline-start'
|
|
542
|
+
| 'block-start-inline-end'
|
|
543
|
+
| 'block-start-inline-start';
|
|
322
544
|
};
|
|
323
545
|
|
|
324
546
|
export type RCFabMenuToggleDetail = RCMenuButtonToggleDetail;
|
|
@@ -344,19 +566,26 @@ export type RCNavigationRailToggleDetail = {
|
|
|
344
566
|
|
|
345
567
|
/** Public API surface of `<rc-menubar>`. */
|
|
346
568
|
export type RCMenubarRef = HTMLElement & {
|
|
347
|
-
label: string;
|
|
569
|
+
label: string | undefined;
|
|
348
570
|
orientation: 'horizontal' | 'vertical';
|
|
571
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
572
|
+
messages: RCMenubarMessages | undefined;
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
/** Overridable `<rc-menubar>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
576
|
+
export type RCMenubarMessages = {
|
|
577
|
+
label?: string;
|
|
349
578
|
};
|
|
350
579
|
|
|
351
580
|
/** Public API surface of `<rc-toolbar>`. */
|
|
352
581
|
export type RCToolbarRef = HTMLElement & {
|
|
353
582
|
label: string;
|
|
354
|
-
orientation:
|
|
583
|
+
orientation: 'horizontal' | 'vertical';
|
|
355
584
|
};
|
|
356
585
|
|
|
357
586
|
/** Public API surface of `<rc-splitter>`. */
|
|
358
587
|
export type RCSplitterRef = HTMLElement & {
|
|
359
|
-
label: string;
|
|
588
|
+
label: string | undefined;
|
|
360
589
|
orientation: 'horizontal' | 'vertical';
|
|
361
590
|
mode: 'length' | 'percent' | 'fixed';
|
|
362
591
|
step: number;
|
|
@@ -369,6 +598,15 @@ export type RCSplitterRef = HTMLElement & {
|
|
|
369
598
|
snapPoints: string;
|
|
370
599
|
swipeVelocity: number;
|
|
371
600
|
snapTo(index: number, behavior?: 'animated' | 'instant'): void;
|
|
601
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
602
|
+
messages: RCSplitterMessages | undefined;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
/** Overridable `<rc-splitter>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
606
|
+
export type RCSplitterMessages = {
|
|
607
|
+
label?: string;
|
|
608
|
+
expand?: (label: string) => string;
|
|
609
|
+
collapse?: (label: string) => string;
|
|
372
610
|
};
|
|
373
611
|
|
|
374
612
|
export type RCTextareaRef = HTMLElement & {
|
|
@@ -379,7 +617,10 @@ export type RCTextareaRef = HTMLElement & {
|
|
|
379
617
|
gutter: boolean;
|
|
380
618
|
wordWrap: boolean;
|
|
381
619
|
autoGrow: boolean;
|
|
382
|
-
|
|
620
|
+
/** `auto` gives each line the direction of its first strong character; `base` keeps the editor's. */
|
|
621
|
+
lineDirection: 'auto' | 'base';
|
|
622
|
+
/** Read-only state of the slotted textarea; set `readonly` on the textarea to change it. */
|
|
623
|
+
readonly readOnly: boolean;
|
|
383
624
|
usePlugin(plugin: RCTextareaPlugin): void;
|
|
384
625
|
removePlugin(): void;
|
|
385
626
|
wrapSelection(prefix: string, suffix: string): void;
|
|
@@ -393,6 +634,43 @@ export type RCMarkdownEditorRef = HTMLElement & {
|
|
|
393
634
|
sourceMode: boolean;
|
|
394
635
|
defaultSourceMode: boolean;
|
|
395
636
|
readOnly: boolean;
|
|
637
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
638
|
+
messages: RCMarkdownEditorMessages | undefined;
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
/** Overridable `<rc-editor-toolbar>` built-in text. */
|
|
642
|
+
export type RCEditorToolbarMessages = {
|
|
643
|
+
toolbar?: string;
|
|
644
|
+
bold?: string;
|
|
645
|
+
italic?: string;
|
|
646
|
+
underline?: string;
|
|
647
|
+
strikethrough?: string;
|
|
648
|
+
inlineCode?: string;
|
|
649
|
+
link?: string;
|
|
650
|
+
headingLevel?: string;
|
|
651
|
+
paragraph?: string;
|
|
652
|
+
heading?: (level: number, locale?: string) => string;
|
|
653
|
+
blockquote?: string;
|
|
654
|
+
bulletList?: string;
|
|
655
|
+
orderedList?: string;
|
|
656
|
+
codeBlock?: string;
|
|
657
|
+
codeBlockLanguage?: string;
|
|
658
|
+
languagePlaceholder?: string;
|
|
659
|
+
languageHint?: string;
|
|
660
|
+
sourceMode?: string;
|
|
661
|
+
sourceModeHint?: string;
|
|
662
|
+
shortcut?: (label: string, keys: string) => string;
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
/** Overridable `<rc-markdown-editor>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
666
|
+
export type RCMarkdownEditorMessages = {
|
|
667
|
+
source?: string;
|
|
668
|
+
linkPopover?: string;
|
|
669
|
+
url?: string;
|
|
670
|
+
applyLink?: string;
|
|
671
|
+
openLink?: string;
|
|
672
|
+
removeLink?: string;
|
|
673
|
+
shortcut?: (label: string, keys: string) => string;
|
|
396
674
|
};
|
|
397
675
|
|
|
398
676
|
export type RCMarkdownEditorFormats = {
|
|
@@ -481,6 +759,17 @@ export type RCSliderChangeDetail = {
|
|
|
481
759
|
value: number;
|
|
482
760
|
};
|
|
483
761
|
|
|
762
|
+
export type RCProgressRef = HTMLElement & {
|
|
763
|
+
readonly max: number;
|
|
764
|
+
value: number;
|
|
765
|
+
defaultValue: number | undefined;
|
|
766
|
+
indeterminate: boolean;
|
|
767
|
+
disabled: boolean;
|
|
768
|
+
display: 'inline-start' | 'inline-end' | 'overlay' | null;
|
|
769
|
+
valueText: string;
|
|
770
|
+
orientation: 'horizontal' | 'vertical';
|
|
771
|
+
};
|
|
772
|
+
|
|
484
773
|
export type RCRangeSliderRef = HTMLElement & {
|
|
485
774
|
min: number;
|
|
486
775
|
max: number;
|
|
@@ -488,12 +777,21 @@ export type RCRangeSliderRef = HTMLElement & {
|
|
|
488
777
|
value: [number, number];
|
|
489
778
|
defaultValue: [number, number] | undefined;
|
|
490
779
|
disabled: boolean;
|
|
491
|
-
|
|
492
|
-
|
|
780
|
+
readonly: boolean;
|
|
781
|
+
lowLabel: string | undefined;
|
|
782
|
+
highLabel: string | undefined;
|
|
493
783
|
lowValueText: string;
|
|
494
784
|
highValueText: string;
|
|
495
785
|
display: 'float' | 'inline-start' | 'inline-end' | null;
|
|
496
786
|
orientation: 'horizontal' | 'vertical';
|
|
787
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
788
|
+
messages: RCRangeSliderMessages | undefined;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
/** Overridable `<rc-range-slider>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
792
|
+
export type RCRangeSliderMessages = {
|
|
793
|
+
low?: string;
|
|
794
|
+
high?: string;
|
|
497
795
|
};
|
|
498
796
|
|
|
499
797
|
export type RCRangeSliderChangeDetail = {
|
|
@@ -509,8 +807,8 @@ export type RCTransferListOption = {
|
|
|
509
807
|
export type RCTransferListRef = HTMLElement & {
|
|
510
808
|
multiple: boolean;
|
|
511
809
|
compact: boolean;
|
|
512
|
-
availableLabel: string;
|
|
513
|
-
selectedLabel: string;
|
|
810
|
+
availableLabel: string | undefined;
|
|
811
|
+
selectedLabel: string | undefined;
|
|
514
812
|
available: RCTransferListOption[];
|
|
515
813
|
selected: RCTransferListOption[];
|
|
516
814
|
defaultSelected: RCTransferListOption[] | undefined;
|
|
@@ -519,6 +817,21 @@ export type RCTransferListRef = HTMLElement & {
|
|
|
519
817
|
removeSelected(): void;
|
|
520
818
|
clearSelected(): void;
|
|
521
819
|
moveSelected(delta: number): void;
|
|
820
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
821
|
+
messages: RCTransferListMessages | undefined;
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
/** Overridable `<rc-transfer-list>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
825
|
+
export type RCTransferListMessages = {
|
|
826
|
+
available?: string;
|
|
827
|
+
selected?: string;
|
|
828
|
+
actions?: string;
|
|
829
|
+
add?: string;
|
|
830
|
+
addAll?: string;
|
|
831
|
+
remove?: string;
|
|
832
|
+
clear?: string;
|
|
833
|
+
moveUp?: string;
|
|
834
|
+
moveDown?: string;
|
|
522
835
|
};
|
|
523
836
|
|
|
524
837
|
export type RCTransferListChangeDetail = {
|
|
@@ -532,6 +845,7 @@ export type RCAppBarRef = HTMLElement & {
|
|
|
532
845
|
scrolled: boolean | undefined;
|
|
533
846
|
scrollTarget: Element | Document | Window | string | null;
|
|
534
847
|
scrollThreshold: number;
|
|
848
|
+
hideDistance: number;
|
|
535
849
|
};
|
|
536
850
|
|
|
537
851
|
export type RCAppBarScrollDetail = {
|
|
@@ -546,11 +860,35 @@ export type RCSearchBarRef = HTMLElement & {
|
|
|
546
860
|
value: string;
|
|
547
861
|
defaultValue: string | undefined;
|
|
548
862
|
debounce: number;
|
|
549
|
-
|
|
863
|
+
allowNativeClear: boolean;
|
|
864
|
+
showClearOnFocus: boolean;
|
|
865
|
+
disabled: boolean;
|
|
550
866
|
placeholder: string | undefined;
|
|
551
867
|
showView(): void;
|
|
552
868
|
closeView(): void;
|
|
553
869
|
toggleView(): void;
|
|
870
|
+
clear(): void;
|
|
871
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
872
|
+
messages: RCSearchBarMessages | undefined;
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
/** Overridable `<rc-search-bar>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
876
|
+
export type RCSearchBarMessages = {
|
|
877
|
+
clear?: string;
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
export type RCFieldControl = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
881
|
+
|
|
882
|
+
/** Public API surface of `<rc-field>`. */
|
|
883
|
+
export type RCFieldRef = HTMLElement & {
|
|
884
|
+
counter: boolean;
|
|
885
|
+
invalid: boolean;
|
|
886
|
+
readonly control: RCFieldControl | null;
|
|
887
|
+
readonly group: HTMLFieldSetElement | null;
|
|
888
|
+
readonly controls: RCFieldControl[];
|
|
889
|
+
focus(options?: FocusOptions): void;
|
|
890
|
+
blur(): void;
|
|
891
|
+
sync(): void;
|
|
554
892
|
};
|
|
555
893
|
|
|
556
894
|
export type RCSearchBarInputDetail = {
|
|
@@ -571,6 +909,43 @@ export type RCSplitterChangeDetail = {
|
|
|
571
909
|
valueText: string;
|
|
572
910
|
};
|
|
573
911
|
|
|
912
|
+
export type RCCarouselChangeTrigger = 'api' | 'button' | 'keyboard' | 'swipe';
|
|
913
|
+
|
|
914
|
+
/** Detail shape for `rc-carousel-change`. */
|
|
915
|
+
export type RCCarouselChangeDetail = {
|
|
916
|
+
index: number;
|
|
917
|
+
trigger: RCCarouselChangeTrigger;
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
/** Public API surface of `<rc-carousel>`. */
|
|
921
|
+
export type RCCarouselRef = HTMLElement & {
|
|
922
|
+
activeIndex: number | undefined;
|
|
923
|
+
defaultActiveIndex: number;
|
|
924
|
+
loop: boolean;
|
|
925
|
+
navigation: boolean;
|
|
926
|
+
pagination: boolean;
|
|
927
|
+
mouseDragging: boolean;
|
|
928
|
+
next(): void;
|
|
929
|
+
previous(): void;
|
|
930
|
+
goToIndex(index: number, instant?: boolean): void;
|
|
931
|
+
/** Built-in text overrides; unset keys fall back to registered text, then English. */
|
|
932
|
+
messages: RCCarouselMessages | undefined;
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
/** Overridable `<rc-carousel>` built-in text. Register defaults with `registerMessages()` from `@rcarls/rc-common`. */
|
|
936
|
+
export type RCCarouselMessages = {
|
|
937
|
+
carousel?: string;
|
|
938
|
+
slide?: string;
|
|
939
|
+
position?: (position: number, count: number, locale?: string) => string;
|
|
940
|
+
previous?: string;
|
|
941
|
+
next?: string;
|
|
942
|
+
picker?: string;
|
|
943
|
+
goToSlide?: (position: number, count: number, locale?: string) => string;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
/** Public API surface of `<rc-carousel-item>`. */
|
|
947
|
+
export type RCCarouselItemRef = HTMLElement;
|
|
948
|
+
|
|
574
949
|
export type RCTextareaChangeDetail = {
|
|
575
950
|
value: string;
|
|
576
951
|
};
|
|
@@ -587,6 +962,9 @@ declare module 'solid-js' {
|
|
|
587
962
|
interface IntrinsicElements {
|
|
588
963
|
'rc-disclosure': JSX.HTMLAttributes<RCDisclosureRef> & {
|
|
589
964
|
open?: boolean | string;
|
|
965
|
+
'default-open'?: boolean | string;
|
|
966
|
+
'prop:open'?: boolean | undefined;
|
|
967
|
+
'prop:defaultOpen'?: boolean | undefined;
|
|
590
968
|
'on:rc-disclosure-toggle'?: (e: CustomEvent<RCDisclosureToggleDetail>) => void;
|
|
591
969
|
};
|
|
592
970
|
|
|
@@ -613,10 +991,70 @@ declare module 'solid-js' {
|
|
|
613
991
|
};
|
|
614
992
|
|
|
615
993
|
'rc-card': JSX.HTMLAttributes<RCCardRef> & {
|
|
994
|
+
orientation?: RCCardOrientation;
|
|
995
|
+
selected?: boolean | string;
|
|
996
|
+
disabled?: boolean | string;
|
|
997
|
+
interactive?: boolean | string;
|
|
998
|
+
'action-target'?: string;
|
|
999
|
+
'prop:actionTarget'?: string | undefined;
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
'rc-scroller': JSX.HTMLAttributes<RCScrollerRef> & {
|
|
1003
|
+
axis?: RCScrollerAxis;
|
|
1004
|
+
layout?: RCScrollerLayout;
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
'rc-virtual-scroller': JSX.HTMLAttributes<RCVirtualScrollerRef> & {
|
|
1008
|
+
axis?: RCVirtualScrollerAxis;
|
|
1009
|
+
count?: number | string;
|
|
1010
|
+
'item-size'?: number | string;
|
|
1011
|
+
'items-per-line'?: number | string;
|
|
1012
|
+
overscan?: number | string;
|
|
1013
|
+
disabled?: boolean | string;
|
|
1014
|
+
'prop:scrollTarget'?: Element | null | undefined;
|
|
1015
|
+
'on:rc-virtual-scroller-range'?: (e: CustomEvent<RCVirtualScrollerRangeDetail>) => void;
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
'rc-carousel': JSX.HTMLAttributes<RCCarouselRef> & {
|
|
1019
|
+
'prop:messages'?: RCCarouselMessages | undefined;
|
|
1020
|
+
'active-index'?: number | string;
|
|
1021
|
+
defaultActiveIndex?: number | string;
|
|
1022
|
+
'default-active-index'?: number | string;
|
|
1023
|
+
loop?: boolean | string;
|
|
1024
|
+
navigation?: boolean | string;
|
|
1025
|
+
pagination?: boolean | string;
|
|
1026
|
+
mouseDragging?: boolean | string;
|
|
1027
|
+
'mouse-dragging'?: boolean | string;
|
|
1028
|
+
'prop:activeIndex'?: number | undefined;
|
|
1029
|
+
'prop:defaultActiveIndex'?: number | undefined;
|
|
1030
|
+
'on:rc-carousel-change'?: (e: CustomEvent<RCCarouselChangeDetail>) => void;
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
'rc-carousel-item': JSX.HTMLAttributes<RCCarouselItemRef>;
|
|
1034
|
+
|
|
1035
|
+
'rc-list': JSX.HTMLAttributes<RCListRef> & {
|
|
1036
|
+
variant?: RCListVariant;
|
|
1037
|
+
selection?: RCListSelection;
|
|
1038
|
+
ordered?: boolean | string;
|
|
1039
|
+
reorderable?: boolean | string;
|
|
1040
|
+
'prop:reorderMessages'?: RCListReorderMessages | undefined;
|
|
1041
|
+
'on:rc-list-reorder'?: (e: CustomEvent<RCListReorderDetail>) => void;
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
'rc-list-item': JSX.HTMLAttributes<RCListItemRef> & {
|
|
616
1045
|
selected?: boolean | string;
|
|
617
1046
|
disabled?: boolean | string;
|
|
618
1047
|
interactive?: boolean | string;
|
|
619
1048
|
'action-target'?: string;
|
|
1049
|
+
'prop:selected'?: boolean | undefined;
|
|
1050
|
+
'prop:disabled'?: boolean | undefined;
|
|
1051
|
+
'prop:interactive'?: boolean | undefined;
|
|
1052
|
+
'prop:actionTarget'?: string | undefined;
|
|
1053
|
+
expanded?: boolean | string;
|
|
1054
|
+
'default-expanded'?: boolean | string;
|
|
1055
|
+
'prop:expanded'?: boolean | undefined;
|
|
1056
|
+
'prop:defaultExpanded'?: boolean | undefined;
|
|
1057
|
+
'on:rc-list-item-toggle'?: (e: CustomEvent<RCListItemToggleDetail>) => void;
|
|
620
1058
|
};
|
|
621
1059
|
|
|
622
1060
|
'rc-switch': JSX.HTMLAttributes<RCSwitchRef> & {
|
|
@@ -656,6 +1094,21 @@ declare module 'solid-js' {
|
|
|
656
1094
|
'on:rc-chip-remove'?: (e: CustomEvent<RCChipRemoveDetail>) => void;
|
|
657
1095
|
};
|
|
658
1096
|
|
|
1097
|
+
'rc-chip-group': JSX.HTMLAttributes<RCChipGroupRef> & {
|
|
1098
|
+
'prop:messages'?: RCChipGroupMessages | undefined;
|
|
1099
|
+
layout?: RCChipGroupLayout;
|
|
1100
|
+
'max-rows'?: number | string;
|
|
1101
|
+
kind?: RCChipGroupKind;
|
|
1102
|
+
selection?: RCChipGroupSelection;
|
|
1103
|
+
expanded?: boolean | string;
|
|
1104
|
+
defaultExpanded?: boolean | string;
|
|
1105
|
+
'default-expanded'?: boolean | string;
|
|
1106
|
+
label?: string;
|
|
1107
|
+
'prop:expanded'?: boolean | undefined;
|
|
1108
|
+
'prop:defaultExpanded'?: boolean | undefined;
|
|
1109
|
+
'on:rc-chip-group-toggle'?: (e: CustomEvent<RCChipGroupToggleDetail>) => void;
|
|
1110
|
+
};
|
|
1111
|
+
|
|
659
1112
|
'rc-snackbar': JSX.HTMLAttributes<RCSnackbarRef> & {
|
|
660
1113
|
open?: boolean | string;
|
|
661
1114
|
message?: string;
|
|
@@ -670,7 +1123,23 @@ declare module 'solid-js' {
|
|
|
670
1123
|
'on:rc-snackbar-close'?: (e: CustomEvent<RCSnackbarCloseDetail>) => void;
|
|
671
1124
|
};
|
|
672
1125
|
|
|
1126
|
+
'rc-popover': JSX.HTMLAttributes<RCPopoverRef> & {
|
|
1127
|
+
open?: boolean | string;
|
|
1128
|
+
'default-open'?: boolean | string;
|
|
1129
|
+
placement?: RCPopoverPlacement;
|
|
1130
|
+
'trigger-action'?: RCPopoverTriggerAction;
|
|
1131
|
+
'open-on-hover'?: boolean | string;
|
|
1132
|
+
'open-on-focus'?: boolean | string;
|
|
1133
|
+
'prop:open'?: boolean | undefined;
|
|
1134
|
+
'on:rc-popover-toggle'?: (e: CustomEvent<RCPopoverToggleDetail>) => void;
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
'rc-tooltip': JSX.HTMLAttributes<RCTooltipRef> & {
|
|
1138
|
+
placement?: RCTooltipPlacement;
|
|
1139
|
+
};
|
|
1140
|
+
|
|
673
1141
|
'rc-listbox': JSX.HTMLAttributes<RCListboxRef> & {
|
|
1142
|
+
'prop:messages'?: RCListboxMessages | undefined;
|
|
674
1143
|
multiple?: boolean | string;
|
|
675
1144
|
checkmark?: boolean | string;
|
|
676
1145
|
'filter-strategy'?: 'prefix' | 'contains';
|
|
@@ -684,37 +1153,49 @@ declare module 'solid-js' {
|
|
|
684
1153
|
};
|
|
685
1154
|
|
|
686
1155
|
'rc-select': JSX.HTMLAttributes<RCSelectRef> & {
|
|
1156
|
+
'prop:messages'?: RCSelectMessages | undefined;
|
|
687
1157
|
open?: boolean | string;
|
|
688
1158
|
multiple?: boolean | string;
|
|
689
1159
|
disabled?: boolean | string;
|
|
1160
|
+
required?: boolean | string;
|
|
690
1161
|
placeholder?: string;
|
|
691
1162
|
display?: 'auto' | 'chips' | 'compact';
|
|
1163
|
+
'popup-mode'?: 'popover' | 'dialog';
|
|
1164
|
+
'dialog-cancel-button'?: 'visible' | 'hidden';
|
|
692
1165
|
value?: RCSelectValue;
|
|
693
1166
|
defaultValue?: RCSelectValue;
|
|
694
|
-
options?:
|
|
1167
|
+
options?: RCListboxOption[];
|
|
1168
|
+
'data-rc-field-control'?: boolean | string;
|
|
695
1169
|
'prop:value'?: RCSelectValue | undefined;
|
|
696
1170
|
'prop:defaultValue'?: RCSelectValue | undefined;
|
|
697
|
-
'prop:options'?:
|
|
1171
|
+
'prop:options'?: RCListboxOption[] | undefined;
|
|
1172
|
+
'prop:popupMode'?: 'popover' | 'dialog' | undefined;
|
|
698
1173
|
'on:rc-select-change'?: (e: CustomEvent<RCSelectChangeDetail>) => void;
|
|
699
1174
|
'on:rc-select-open'?: (e: CustomEvent) => void;
|
|
700
1175
|
'on:rc-select-close'?: (e: CustomEvent) => void;
|
|
701
1176
|
};
|
|
702
1177
|
|
|
703
1178
|
'rc-combobox': JSX.HTMLAttributes<RCComboboxRef> & {
|
|
1179
|
+
'prop:messages'?: RCComboboxMessages | undefined;
|
|
704
1180
|
open?: boolean | string;
|
|
705
1181
|
multiple?: boolean | string;
|
|
706
1182
|
disabled?: boolean | string;
|
|
1183
|
+
required?: boolean | string;
|
|
707
1184
|
placeholder?: string;
|
|
708
1185
|
display?: 'auto' | 'chips' | 'compact';
|
|
709
1186
|
'allow-create'?: boolean | string;
|
|
710
1187
|
'filter-strategy'?: 'prefix' | 'contains';
|
|
1188
|
+
'popup-mode'?: 'popover' | 'dialog';
|
|
1189
|
+
'dialog-cancel-button'?: 'visible' | 'hidden';
|
|
711
1190
|
value?: RCSelectValue;
|
|
712
1191
|
defaultValue?: RCSelectValue;
|
|
713
|
-
options?:
|
|
1192
|
+
options?: RCListboxOption[];
|
|
1193
|
+
'data-rc-field-control'?: boolean | string;
|
|
714
1194
|
'prop:value'?: RCSelectValue | undefined;
|
|
715
1195
|
'prop:defaultValue'?: RCSelectValue | undefined;
|
|
716
|
-
'prop:options'?:
|
|
1196
|
+
'prop:options'?: RCListboxOption[] | undefined;
|
|
717
1197
|
'prop:allowCreate'?: boolean | undefined;
|
|
1198
|
+
'prop:popupMode'?: 'popover' | 'dialog' | undefined;
|
|
718
1199
|
'on:rc-select-change'?: (e: CustomEvent<RCSelectChangeDetail>) => void;
|
|
719
1200
|
'on:rc-select-open'?: (e: CustomEvent) => void;
|
|
720
1201
|
'on:rc-select-close'?: (e: CustomEvent) => void;
|
|
@@ -724,10 +1205,10 @@ declare module 'solid-js' {
|
|
|
724
1205
|
'rc-dialog': JSX.HTMLAttributes<RCDialogRef> & {
|
|
725
1206
|
open?: boolean | string;
|
|
726
1207
|
defaultOpen?: boolean | string;
|
|
1208
|
+
variant?: 'standard' | 'fullscreen' | 'side';
|
|
727
1209
|
'prop:open'?: boolean | undefined;
|
|
728
1210
|
'prop:defaultOpen'?: boolean | undefined;
|
|
729
1211
|
'prop:modal'?: boolean | undefined;
|
|
730
|
-
'prop:lightDismiss'?: boolean | undefined;
|
|
731
1212
|
movable?: boolean | string;
|
|
732
1213
|
'move-handle'?: string;
|
|
733
1214
|
'move-bounds'?: 'viewport' | 'parent';
|
|
@@ -738,7 +1219,6 @@ declare module 'solid-js' {
|
|
|
738
1219
|
'resize-threshold'?: number | string;
|
|
739
1220
|
'resize-step'?: number | string;
|
|
740
1221
|
'closed-by'?: 'any' | 'closerequest' | 'none';
|
|
741
|
-
'light-dismiss'?: boolean | string;
|
|
742
1222
|
'on:rc-dialog-open'?: (e: CustomEvent) => void;
|
|
743
1223
|
'on:rc-dialog-toggle'?: (e: CustomEvent<RCDialogToggleDetail>) => void;
|
|
744
1224
|
'on:rc-dialog-close'?: (e: CustomEvent<RCDialogCloseDetail>) => void;
|
|
@@ -752,9 +1232,8 @@ declare module 'solid-js' {
|
|
|
752
1232
|
'prop:open'?: boolean | undefined;
|
|
753
1233
|
'prop:defaultOpen'?: boolean | undefined;
|
|
754
1234
|
'prop:modal'?: boolean | undefined;
|
|
755
|
-
'prop:lightDismiss'?: boolean | undefined;
|
|
756
1235
|
'prop:swipeDismiss'?: boolean | undefined;
|
|
757
|
-
'
|
|
1236
|
+
'closed-by'?: 'any' | 'closerequest' | 'none';
|
|
758
1237
|
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
759
1238
|
'resize-origin'?: RCDialogResizeOrigin;
|
|
760
1239
|
'resize-handle'?: string;
|
|
@@ -768,6 +1247,9 @@ declare module 'solid-js' {
|
|
|
768
1247
|
'on:rc-dialog-close'?: (e: CustomEvent<RCDialogCloseDetail>) => void;
|
|
769
1248
|
'on:rc-dialog-request-close'?: (e: CustomEvent<RCDialogCloseDetail>) => void;
|
|
770
1249
|
'on:rc-dialog-cancel'?: (e: CustomEvent) => void;
|
|
1250
|
+
'on:rc-bottom-sheet-resize-start'?: (
|
|
1251
|
+
e: CustomEvent<RCBottomSheetResizeStartDetail>,
|
|
1252
|
+
) => void;
|
|
771
1253
|
'on:rc-bottom-sheet-snap'?: (e: CustomEvent<RCBottomSheetSnapDetail>) => void;
|
|
772
1254
|
};
|
|
773
1255
|
|
|
@@ -777,6 +1259,18 @@ declare module 'solid-js' {
|
|
|
777
1259
|
'on:rc-menu-close'?: (e: CustomEvent<RCMenuCloseDetail>) => void;
|
|
778
1260
|
};
|
|
779
1261
|
|
|
1262
|
+
'rc-adaptive-menu': JSX.HTMLAttributes<RCAdaptiveMenuRef> & {
|
|
1263
|
+
'prop:messages'?: RCAdaptiveMenuMessages | undefined;
|
|
1264
|
+
label?: string;
|
|
1265
|
+
'max-shown'?: number | string;
|
|
1266
|
+
open?: boolean | string;
|
|
1267
|
+
defaultOpen?: boolean | string;
|
|
1268
|
+
'prop:open'?: boolean | undefined;
|
|
1269
|
+
'prop:defaultOpen'?: boolean | undefined;
|
|
1270
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1271
|
+
'on:rc-adaptive-menu-toggle'?: (e: CustomEvent<RCAdaptiveMenuToggleDetail>) => void;
|
|
1272
|
+
};
|
|
1273
|
+
|
|
780
1274
|
'rc-menu-button': JSX.HTMLAttributes<RCMenuButtonRef> & {
|
|
781
1275
|
open?: boolean | string;
|
|
782
1276
|
defaultOpen?: boolean | string;
|
|
@@ -784,6 +1278,7 @@ declare module 'solid-js' {
|
|
|
784
1278
|
'prop:defaultOpen'?: boolean | undefined;
|
|
785
1279
|
orientation?: 'horizontal' | 'vertical';
|
|
786
1280
|
placement?: RCMenuButtonPlacement;
|
|
1281
|
+
'icon-only'?: boolean | string;
|
|
787
1282
|
'on:rc-menu-button-toggle'?: (e: CustomEvent<RCMenuButtonToggleDetail>) => void;
|
|
788
1283
|
};
|
|
789
1284
|
|
|
@@ -793,7 +1288,12 @@ declare module 'solid-js' {
|
|
|
793
1288
|
'prop:open'?: boolean | undefined;
|
|
794
1289
|
'prop:defaultOpen'?: boolean | undefined;
|
|
795
1290
|
placement?: RCMenuButtonPlacement;
|
|
796
|
-
position?:
|
|
1291
|
+
position?:
|
|
1292
|
+
| 'block-end-inline-end'
|
|
1293
|
+
| 'block-end-inline-start'
|
|
1294
|
+
| 'block-start-inline-end'
|
|
1295
|
+
| 'block-start-inline-start'
|
|
1296
|
+
| string;
|
|
797
1297
|
'on:rc-fab-menu-toggle'?: (e: CustomEvent<RCFabMenuToggleDetail>) => void;
|
|
798
1298
|
};
|
|
799
1299
|
|
|
@@ -813,13 +1313,14 @@ declare module 'solid-js' {
|
|
|
813
1313
|
};
|
|
814
1314
|
|
|
815
1315
|
'rc-menubar': JSX.HTMLAttributes<RCMenubarRef> & {
|
|
1316
|
+
'prop:messages'?: RCMenubarMessages | undefined;
|
|
816
1317
|
label?: string;
|
|
817
1318
|
orientation?: 'horizontal' | 'vertical';
|
|
818
1319
|
};
|
|
819
1320
|
|
|
820
1321
|
'rc-toolbar': JSX.HTMLAttributes<RCToolbarRef> & {
|
|
821
1322
|
label?: string;
|
|
822
|
-
orientation?:
|
|
1323
|
+
orientation?: 'horizontal' | 'vertical';
|
|
823
1324
|
};
|
|
824
1325
|
|
|
825
1326
|
'rc-slider': JSX.HTMLAttributes<RCSliderRef> & {
|
|
@@ -840,13 +1341,29 @@ declare module 'solid-js' {
|
|
|
840
1341
|
'on:rc-slider-change'?: (e: CustomEvent<RCSliderChangeDetail>) => void;
|
|
841
1342
|
};
|
|
842
1343
|
|
|
1344
|
+
'rc-progress': JSX.HTMLAttributes<RCProgressRef> & {
|
|
1345
|
+
value?: number | string;
|
|
1346
|
+
defaultValue?: number | string;
|
|
1347
|
+
'default-value'?: number | string;
|
|
1348
|
+
'prop:value'?: number | undefined;
|
|
1349
|
+
'prop:defaultValue'?: number | undefined;
|
|
1350
|
+
indeterminate?: boolean | string;
|
|
1351
|
+
disabled?: boolean | string;
|
|
1352
|
+
display?: 'inline-start' | 'inline-end' | 'overlay';
|
|
1353
|
+
'value-text'?: string;
|
|
1354
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1355
|
+
'on:rc-progress-complete'?: (e: CustomEvent<Record<string, never>>) => void;
|
|
1356
|
+
};
|
|
1357
|
+
|
|
843
1358
|
'rc-range-slider': JSX.HTMLAttributes<RCRangeSliderRef> & {
|
|
1359
|
+
'prop:messages'?: RCRangeSliderMessages | undefined;
|
|
844
1360
|
min?: number | string;
|
|
845
1361
|
max?: number | string;
|
|
846
1362
|
step?: number | string;
|
|
847
1363
|
'prop:value'?: [number, number] | undefined;
|
|
848
1364
|
'prop:defaultValue'?: [number, number] | undefined;
|
|
849
1365
|
disabled?: boolean | string;
|
|
1366
|
+
readonly?: boolean | string;
|
|
850
1367
|
'low-label'?: string;
|
|
851
1368
|
'high-label'?: string;
|
|
852
1369
|
'low-value-text'?: string;
|
|
@@ -858,6 +1375,7 @@ declare module 'solid-js' {
|
|
|
858
1375
|
};
|
|
859
1376
|
|
|
860
1377
|
'rc-transfer-list': JSX.HTMLAttributes<RCTransferListRef> & {
|
|
1378
|
+
'prop:messages'?: RCTransferListMessages | undefined;
|
|
861
1379
|
multiple?: boolean | string;
|
|
862
1380
|
compact?: boolean | string;
|
|
863
1381
|
'available-label'?: string;
|
|
@@ -870,6 +1388,7 @@ declare module 'solid-js' {
|
|
|
870
1388
|
};
|
|
871
1389
|
|
|
872
1390
|
'rc-splitter': JSX.HTMLAttributes<RCSplitterRef> & {
|
|
1391
|
+
'prop:messages'?: RCSplitterMessages | undefined;
|
|
873
1392
|
label?: string;
|
|
874
1393
|
orientation?: 'horizontal' | 'vertical';
|
|
875
1394
|
mode?: 'length' | 'percent' | 'fixed';
|
|
@@ -889,11 +1408,12 @@ declare module 'solid-js' {
|
|
|
889
1408
|
};
|
|
890
1409
|
|
|
891
1410
|
'rc-editor-toolbar': JSX.HTMLAttributes<HTMLElement> & {
|
|
892
|
-
|
|
1411
|
+
'prop:messages'?: RCEditorToolbarMessages | undefined;
|
|
893
1412
|
'on:rc-toolbar-action'?: (e: CustomEvent<{ action: string }>) => void;
|
|
894
1413
|
};
|
|
895
1414
|
|
|
896
1415
|
'rc-markdown-editor': JSX.HTMLAttributes<RCMarkdownEditorRef> & {
|
|
1416
|
+
'prop:messages'?: RCMarkdownEditorMessages | undefined;
|
|
897
1417
|
value?: string;
|
|
898
1418
|
defaultValue?: string;
|
|
899
1419
|
'default-value'?: string;
|
|
@@ -911,7 +1431,12 @@ declare module 'solid-js' {
|
|
|
911
1431
|
};
|
|
912
1432
|
|
|
913
1433
|
'rc-fab': JSX.HTMLAttributes<HTMLElement> & {
|
|
914
|
-
position?:
|
|
1434
|
+
position?:
|
|
1435
|
+
| 'block-end-inline-end'
|
|
1436
|
+
| 'block-end-inline-start'
|
|
1437
|
+
| 'block-start-inline-end'
|
|
1438
|
+
| 'block-start-inline-start'
|
|
1439
|
+
| string;
|
|
915
1440
|
'scroll-reveal'?: boolean | string;
|
|
916
1441
|
};
|
|
917
1442
|
|
|
@@ -920,19 +1445,23 @@ declare module 'solid-js' {
|
|
|
920
1445
|
'scroll-behavior'?: 'pinned' | 'collapse' | 'hide';
|
|
921
1446
|
'scroll-target'?: string;
|
|
922
1447
|
'scroll-threshold'?: number | string;
|
|
1448
|
+
'hide-distance'?: number | string;
|
|
923
1449
|
'prop:scrolled'?: boolean | undefined;
|
|
924
1450
|
'prop:scrollTarget'?: Element | Document | Window | string | null;
|
|
925
1451
|
'on:rc-app-bar-scroll'?: (e: CustomEvent<RCAppBarScrollDetail>) => void;
|
|
926
1452
|
};
|
|
927
1453
|
|
|
928
1454
|
'rc-search-bar': JSX.HTMLAttributes<RCSearchBarRef> & {
|
|
1455
|
+
'prop:messages'?: RCSearchBarMessages | undefined;
|
|
929
1456
|
variant?: 'bar' | 'view';
|
|
930
1457
|
open?: boolean | string;
|
|
931
1458
|
defaultOpen?: boolean | string;
|
|
932
1459
|
'prop:open'?: boolean | undefined;
|
|
933
1460
|
'prop:defaultOpen'?: boolean | undefined;
|
|
934
1461
|
debounce?: number | string;
|
|
935
|
-
'clear
|
|
1462
|
+
'allow-native-clear'?: boolean | string;
|
|
1463
|
+
'show-clear-on-focus'?: boolean | string;
|
|
1464
|
+
disabled?: boolean | string;
|
|
936
1465
|
placeholder?: string;
|
|
937
1466
|
'default-value'?: string;
|
|
938
1467
|
'prop:value'?: string | undefined;
|
|
@@ -945,6 +1474,11 @@ declare module 'solid-js' {
|
|
|
945
1474
|
) => void;
|
|
946
1475
|
};
|
|
947
1476
|
|
|
1477
|
+
'rc-field': JSX.HTMLAttributes<RCFieldRef> & {
|
|
1478
|
+
counter?: boolean | string;
|
|
1479
|
+
invalid?: boolean | string;
|
|
1480
|
+
};
|
|
1481
|
+
|
|
948
1482
|
'rc-virtual-canvas': JSX.HTMLAttributes<RCVirtualCanvasRef> & {
|
|
949
1483
|
contentWidth?: number | string;
|
|
950
1484
|
contentHeight?: number | string;
|
|
@@ -966,7 +1500,7 @@ declare module 'solid-js' {
|
|
|
966
1500
|
gutter?: boolean | string;
|
|
967
1501
|
'word-wrap'?: boolean | string;
|
|
968
1502
|
'auto-grow'?: boolean | string;
|
|
969
|
-
'
|
|
1503
|
+
'line-direction'?: 'auto' | 'base';
|
|
970
1504
|
'on:rc-textarea-change'?: (e: CustomEvent<RCTextareaChangeDetail>) => void;
|
|
971
1505
|
'on:rc-textarea-focus'?: (e: CustomEvent) => void;
|
|
972
1506
|
'on:rc-textarea-blur'?: (e: CustomEvent) => void;
|