@wix/site-ui 1.30.0 → 1.31.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/dist/1268.js +99 -0
- package/dist/1279.js +7 -0
- package/dist/1457.js +10 -0
- package/dist/1477.js +106 -0
- package/dist/1500.js +111 -0
- package/dist/167.js +6 -0
- package/dist/2274.js +34 -0
- package/dist/2287.js +17 -0
- package/dist/2418.js +31 -0
- package/dist/2801.js +20 -0
- package/dist/285.js +86 -0
- package/dist/2861.js +6 -0
- package/dist/3020.js +7 -0
- package/dist/3021.js +72 -0
- package/dist/3056.js +229 -0
- package/dist/3140.js +4 -0
- package/dist/3248.js +307 -0
- package/dist/3296.js +4 -0
- package/dist/3319.js +400 -0
- package/dist/3395.js +4 -0
- package/dist/3485.js +854 -0
- package/dist/353.js +14 -0
- package/dist/3670.js +418 -0
- package/dist/3829.js +113 -0
- package/dist/4026.js +12 -0
- package/dist/4143.js +46 -0
- package/dist/42.js +32 -0
- package/dist/4281.js +30 -0
- package/dist/4346.js +2 -0
- package/dist/4388.js +418 -0
- package/dist/4490.js +32 -0
- package/dist/4495.js +9 -0
- package/dist/4549.js +24 -0
- package/dist/4586.js +41 -0
- package/dist/4586.js.LICENSE.txt +19 -0
- package/dist/4707.js +19 -0
- package/dist/4723.js +7 -0
- package/dist/4745.js +7 -0
- package/dist/4768.js +35 -0
- package/dist/4922.js +15 -0
- package/dist/5036.js +17 -0
- package/dist/5085.js +20 -0
- package/dist/5299.js +597 -0
- package/dist/5659.js +4 -0
- package/dist/5778.js +10 -0
- package/dist/5864.js +86 -0
- package/dist/5992.js +913 -0
- package/dist/5992.js.LICENSE.txt +19 -0
- package/dist/6003.js +10 -0
- package/dist/6046.js +29 -0
- package/dist/6089.js +2355 -0
- package/dist/6107.js +10 -0
- package/dist/6247.js +20 -0
- package/dist/6270.js +487 -0
- package/dist/6329.js +32 -0
- package/dist/6330.js +30 -0
- package/dist/6499.js +7 -0
- package/dist/6535.js +71 -0
- package/dist/6588.js +382 -0
- package/dist/6706.js +16 -0
- package/dist/6825.js +7 -0
- package/dist/6882.js +1562 -0
- package/dist/6914.js +30 -0
- package/dist/7021.js +13 -0
- package/dist/7366.js +83 -0
- package/dist/7373.js +25 -0
- package/dist/7541.js +25 -0
- package/dist/7564.js +10 -0
- package/dist/7642.js +20 -0
- package/dist/7725.js +10 -0
- package/dist/7871.js +38 -0
- package/dist/8052.js +352 -0
- package/dist/8106.js +238 -0
- package/dist/8171.js +346 -0
- package/dist/8225.js +21 -0
- package/dist/8272.js +333 -0
- package/dist/8527.js +58 -0
- package/dist/8724.js +10 -0
- package/dist/8750.js +1920 -0
- package/dist/8758.js +43 -0
- package/dist/880.js +149 -0
- package/dist/8935.js +8 -0
- package/dist/8960.js +22 -0
- package/dist/8971.js +40 -0
- package/dist/8979.js +10 -0
- package/dist/8996.js +71 -0
- package/dist/904.js +121 -0
- package/dist/9048.js +52 -0
- package/dist/9087.js +256 -0
- package/dist/9189.js +158 -0
- package/dist/9255.js +136 -0
- package/dist/9352.js +148 -0
- package/dist/951.js +22 -0
- package/dist/9635.js +22 -0
- package/dist/9829.js +4 -0
- package/dist/9863.js +8 -0
- package/dist/Accordion/index.d.ts +569 -12
- package/dist/Accordion/index.js +423 -8
- package/dist/AlertDialog/index.d.ts +1417 -18
- package/dist/AlertDialog/index.js +34 -14
- package/dist/Autocomplete/index.d.ts +1861 -38
- package/dist/Autocomplete/index.js +98 -24
- package/dist/Avatar/index.d.ts +129 -7
- package/dist/Avatar/index.js +149 -6
- package/dist/Breadcrumbs/index.d.ts +960 -7
- package/dist/Breadcrumbs/index.js +5 -5
- package/dist/Button/index.d.ts +88 -6
- package/dist/Button/index.js +27 -3
- package/dist/Checkbox/index.d.ts +425 -5
- package/dist/Checkbox/index.js +45 -5
- package/dist/CheckboxGroup/index.d.ts +318 -3
- package/dist/CheckboxGroup/index.js +166 -3
- package/dist/Collapsible/index.d.ts +377 -7
- package/dist/Collapsible/index.js +160 -6
- package/dist/Combobox/index.d.ts +1984 -48
- package/dist/Combobox/index.js +352 -29
- package/dist/ContextMenu/index.d.ts +2340 -36
- package/dist/ContextMenu/index.js +197 -22
- package/dist/Dialog/index.d.ts +1355 -18
- package/dist/Dialog/index.js +16 -14
- package/dist/Drawer/index.d.ts +1653 -18
- package/dist/Drawer/index.js +2797 -20
- package/dist/Field/index.d.ts +655 -15
- package/dist/Field/index.js +677 -10
- package/dist/Fieldset/index.d.ts +94 -5
- package/dist/Fieldset/index.js +68 -5
- package/dist/Form/index.d.ts +331 -2
- package/dist/Form/index.js +106 -3
- package/dist/Input/index.d.ts +692 -3
- package/dist/Input/index.js +10 -3
- package/dist/Menu/index.d.ts +2301 -36
- package/dist/Menu/index.js +365 -26
- package/dist/Menubar/index.d.ts +2301 -3
- package/dist/Menubar/index.js +105 -3
- package/dist/Meter/index.d.ts +175 -11
- package/dist/Meter/index.js +129 -9
- package/dist/NavigationMenu/index.d.ts +978 -28
- package/dist/NavigationMenu/index.js +1034 -17
- package/dist/NumberField/index.d.ts +612 -15
- package/dist/NumberField/index.js +1409 -11
- package/dist/Popover/index.d.ts +1655 -20
- package/dist/Popover/index.js +792 -17
- package/dist/PreviewCard/index.d.ts +1523 -14
- package/dist/PreviewCard/index.js +679 -14
- package/dist/Progress/index.d.ts +183 -11
- package/dist/Progress/index.js +181 -9
- package/dist/Radio/index.d.ts +185 -6
- package/dist/Radio/index.js +253 -6
- package/dist/RadioGroup/index.d.ts +341 -2
- package/dist/RadioGroup/index.js +154 -3
- package/dist/ScrollArea/index.d.ts +265 -13
- package/dist/ScrollArea/index.js +892 -10
- package/dist/Select/index.d.ts +1493 -38
- package/dist/Select/index.js +1824 -23
- package/dist/Separator/index.d.ts +80 -6
- package/dist/Separator/index.js +3 -3
- package/dist/Slider/index.d.ts +678 -16
- package/dist/Slider/index.js +1199 -11
- package/dist/Switch/index.d.ts +393 -5
- package/dist/Switch/index.js +208 -6
- package/dist/Tabs/index.d.ts +523 -12
- package/dist/Tabs/index.js +685 -9
- package/dist/Toggle/index.d.ts +305 -2
- package/dist/Toggle/index.js +76 -3
- package/dist/ToggleGroup/index.d.ts +316 -2
- package/dist/ToggleGroup/index.js +102 -3
- package/dist/Toolbar/index.d.ts +282 -13
- package/dist/Toolbar/index.js +230 -9
- package/dist/Tooltip/index.d.ts +1572 -14
- package/dist/Tooltip/index.js +965 -14
- package/dist/index.d.ts +12749 -652
- package/dist/rslib-runtime.js +18 -0
- package/package.json +3 -3
package/dist/Slider/index.d.ts
CHANGED
|
@@ -1,12 +1,294 @@
|
|
|
1
1
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
2
|
import * as React_2 from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
3
|
+
import { SliderControlProps as SliderControlProps_2 } from '@base-ui/react/slider';
|
|
4
|
+
import { SliderIndicatorProps as SliderIndicatorProps_2 } from '@base-ui/react/slider';
|
|
5
|
+
import { SliderLabelProps as SliderLabelProps_2 } from '@base-ui/react/slider';
|
|
6
|
+
import { SliderThumbProps as SliderThumbProps_2 } from '@base-ui/react/slider';
|
|
7
|
+
import { SliderTrackProps as SliderTrackProps_2 } from '@base-ui/react/slider';
|
|
8
|
+
import { SliderValueProps as SliderValueProps_2 } from '@base-ui/react/slider';
|
|
9
|
+
|
|
10
|
+
declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
|
|
11
|
+
/**
|
|
12
|
+
* The reason for the event.
|
|
13
|
+
*/
|
|
14
|
+
reason: Reason;
|
|
15
|
+
/**
|
|
16
|
+
* The native event associated with the custom event.
|
|
17
|
+
*/
|
|
18
|
+
event: ReasonToEvent<Reason>;
|
|
19
|
+
/**
|
|
20
|
+
* Cancels Base UI from handling the event.
|
|
21
|
+
*/
|
|
22
|
+
cancel: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Allows the event to propagate in cases where Base UI will stop the propagation.
|
|
25
|
+
*/
|
|
26
|
+
allowPropagation: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Indicates whether the event has been canceled.
|
|
29
|
+
*/
|
|
30
|
+
isCanceled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates whether the event is allowed to propagate.
|
|
33
|
+
*/
|
|
34
|
+
isPropagationAllowed: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The element that triggered the event, if applicable.
|
|
37
|
+
*/
|
|
38
|
+
trigger: Element | undefined;
|
|
39
|
+
} & CustomProperties;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Details of custom change events emitted by Base UI components.
|
|
43
|
+
*/
|
|
44
|
+
declare type BaseUIChangeEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIChangeEventDetail<Reason, CustomProperties> & {} : never;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Props shared by all Base UI components.
|
|
48
|
+
* Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
|
|
49
|
+
*/
|
|
50
|
+
declare type BaseUIComponentProps<ElementType extends React_2.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React_2.ComponentPropsWithRef<ElementType>>, 'className' | 'color' | 'defaultValue' | 'defaultChecked' | 'style'> & {
|
|
51
|
+
/**
|
|
52
|
+
* CSS class applied to the element, or a function that
|
|
53
|
+
* returns a class based on the component's state.
|
|
54
|
+
*/
|
|
55
|
+
className?: string | ((state: State) => string | undefined) | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Allows you to replace the component's HTML element
|
|
58
|
+
* with a different tag, or compose it with another component.
|
|
59
|
+
*
|
|
60
|
+
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
61
|
+
*/
|
|
62
|
+
render?: React_2.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Style applied to the element, or a function that
|
|
65
|
+
* returns a style object based on the component's state.
|
|
66
|
+
*/
|
|
67
|
+
style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E & {
|
|
71
|
+
preventBaseUIHandler: () => void;
|
|
72
|
+
readonly baseUIHandlerPrevented?: boolean | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Details of custom generic events emitted by Base UI components.
|
|
77
|
+
*/
|
|
78
|
+
declare type BaseUIGenericEventDetail<Reason extends string, CustomProperties extends object> = {
|
|
79
|
+
/**
|
|
80
|
+
* The reason for the event.
|
|
81
|
+
*/
|
|
82
|
+
reason: Reason;
|
|
83
|
+
/**
|
|
84
|
+
* The native event associated with the custom event.
|
|
85
|
+
*/
|
|
86
|
+
event: ReasonToEvent<Reason>;
|
|
87
|
+
} & CustomProperties;
|
|
88
|
+
|
|
89
|
+
declare type BaseUIGenericEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIGenericEventDetail<Reason, CustomProperties> & {} : never;
|
|
90
|
+
|
|
91
|
+
declare const cancelOpen: "cancel-open";
|
|
92
|
+
|
|
93
|
+
declare const chipRemovePress: "chip-remove-press";
|
|
94
|
+
|
|
95
|
+
declare const clearPress: "clear-press";
|
|
96
|
+
|
|
97
|
+
declare const closePress: "close-press";
|
|
98
|
+
|
|
99
|
+
declare const closeWatcher: "close-watcher";
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Shape of the render prop: a function that takes props to be spread on the element and component's state and returns a React element.
|
|
103
|
+
*
|
|
104
|
+
* @template Props Props to be spread on the rendered element.
|
|
105
|
+
* @template State Component's internal state.
|
|
106
|
+
*/
|
|
107
|
+
declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
|
|
108
|
+
|
|
109
|
+
declare const decrementPress: "decrement-press";
|
|
110
|
+
|
|
111
|
+
declare const disabled: "disabled";
|
|
112
|
+
|
|
113
|
+
declare const drag: "drag";
|
|
114
|
+
|
|
115
|
+
declare const escapeKey: "escape-key";
|
|
116
|
+
|
|
117
|
+
declare interface FieldRootState {
|
|
118
|
+
/**
|
|
119
|
+
* Whether the component should ignore user interaction.
|
|
120
|
+
*/
|
|
121
|
+
disabled: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the field has been touched.
|
|
124
|
+
*/
|
|
125
|
+
touched: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the field value has changed from its initial value.
|
|
128
|
+
*/
|
|
129
|
+
dirty: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the field is valid.
|
|
132
|
+
*/
|
|
133
|
+
valid: boolean | null;
|
|
134
|
+
/**
|
|
135
|
+
* Whether the field has a value.
|
|
136
|
+
*/
|
|
137
|
+
filled: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Whether the field is focused.
|
|
140
|
+
*/
|
|
141
|
+
focused: boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare const focusOut: "focus-out";
|
|
145
|
+
|
|
146
|
+
declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
|
|
147
|
+
ref?: React_2.Ref<T> | undefined;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
declare const imperativeAction: "imperative-action";
|
|
151
|
+
|
|
152
|
+
declare const incrementPress: "increment-press";
|
|
153
|
+
|
|
154
|
+
declare const initial: "initial";
|
|
155
|
+
|
|
156
|
+
declare const inputBlur: "input-blur";
|
|
157
|
+
|
|
158
|
+
declare const inputChange: "input-change";
|
|
159
|
+
|
|
160
|
+
declare const inputClear: "input-clear";
|
|
161
|
+
|
|
162
|
+
declare const inputPaste: "input-paste";
|
|
163
|
+
|
|
164
|
+
declare const inputPress: "input-press";
|
|
165
|
+
|
|
166
|
+
declare const itemPress: "item-press";
|
|
167
|
+
|
|
168
|
+
declare const keyboard: "keyboard";
|
|
169
|
+
|
|
170
|
+
declare interface LabelableContext {
|
|
171
|
+
/**
|
|
172
|
+
* The `id` of the labelable element.
|
|
173
|
+
* When `null` the association is implicit.
|
|
174
|
+
*/
|
|
175
|
+
controlId: string | null | undefined;
|
|
176
|
+
registerControlId: (source: symbol, id: string | null | undefined) => void;
|
|
177
|
+
/**
|
|
178
|
+
* The `id` of the label.
|
|
179
|
+
*/
|
|
180
|
+
labelId: string | undefined;
|
|
181
|
+
setLabelId: React_2.Dispatch<React_2.SetStateAction<string | undefined>>;
|
|
182
|
+
/**
|
|
183
|
+
* An array of `id`s of elements that provide an accessible description.
|
|
184
|
+
*/
|
|
185
|
+
messageIds: string[];
|
|
186
|
+
setMessageIds: React_2.Dispatch<React_2.SetStateAction<string[]>>;
|
|
187
|
+
getDescriptionProps: (externalProps: HTMLProps) => HTMLProps;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* A context for providing [labelable elements](https://html.spec.whatwg.org/multipage/forms.html#category-label)\
|
|
192
|
+
* with an accessible name (label) and description.
|
|
193
|
+
*/
|
|
194
|
+
declare const LabelableContext: React_2.Context<LabelableContext>;
|
|
195
|
+
|
|
196
|
+
declare const linkPress: "link-press";
|
|
197
|
+
|
|
198
|
+
declare const listNavigation: "list-navigation";
|
|
199
|
+
|
|
200
|
+
declare const missing: "missing";
|
|
201
|
+
|
|
202
|
+
declare const none: "none";
|
|
203
|
+
|
|
204
|
+
declare type Orientation = 'horizontal' | 'vertical';
|
|
205
|
+
|
|
206
|
+
declare const outsidePress: "outside-press";
|
|
207
|
+
|
|
208
|
+
declare const pointer: "pointer";
|
|
209
|
+
|
|
210
|
+
declare namespace REASONS {
|
|
211
|
+
export {
|
|
212
|
+
none,
|
|
213
|
+
triggerPress,
|
|
214
|
+
triggerHover,
|
|
215
|
+
triggerFocus,
|
|
216
|
+
outsidePress,
|
|
217
|
+
itemPress,
|
|
218
|
+
closePress,
|
|
219
|
+
linkPress,
|
|
220
|
+
clearPress,
|
|
221
|
+
chipRemovePress,
|
|
222
|
+
trackPress,
|
|
223
|
+
incrementPress,
|
|
224
|
+
decrementPress,
|
|
225
|
+
inputChange,
|
|
226
|
+
inputClear,
|
|
227
|
+
inputBlur,
|
|
228
|
+
inputPaste,
|
|
229
|
+
inputPress,
|
|
230
|
+
focusOut,
|
|
231
|
+
escapeKey,
|
|
232
|
+
closeWatcher,
|
|
233
|
+
listNavigation,
|
|
234
|
+
keyboard,
|
|
235
|
+
pointer,
|
|
236
|
+
drag,
|
|
237
|
+
wheel,
|
|
238
|
+
scrub,
|
|
239
|
+
cancelOpen,
|
|
240
|
+
siblingOpen,
|
|
241
|
+
disabled,
|
|
242
|
+
missing,
|
|
243
|
+
initial,
|
|
244
|
+
imperativeAction,
|
|
245
|
+
swipe,
|
|
246
|
+
windowResize
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Maps a change `reason` string to the corresponding native event type.
|
|
252
|
+
*/
|
|
253
|
+
declare type ReasonToEvent<Reason extends string> = Reason extends keyof ReasonToEventMap ? ReasonToEventMap[Reason] : Event;
|
|
254
|
+
|
|
255
|
+
declare interface ReasonToEventMap {
|
|
256
|
+
[REASONS.none]: Event;
|
|
257
|
+
[REASONS.triggerPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
|
|
258
|
+
[REASONS.triggerHover]: MouseEvent;
|
|
259
|
+
[REASONS.triggerFocus]: FocusEvent;
|
|
260
|
+
[REASONS.outsidePress]: MouseEvent | PointerEvent | TouchEvent;
|
|
261
|
+
[REASONS.itemPress]: MouseEvent | KeyboardEvent | PointerEvent;
|
|
262
|
+
[REASONS.closePress]: MouseEvent | KeyboardEvent | PointerEvent;
|
|
263
|
+
[REASONS.linkPress]: MouseEvent | PointerEvent;
|
|
264
|
+
[REASONS.clearPress]: PointerEvent | MouseEvent | KeyboardEvent;
|
|
265
|
+
[REASONS.chipRemovePress]: PointerEvent | MouseEvent | KeyboardEvent;
|
|
266
|
+
[REASONS.trackPress]: PointerEvent | MouseEvent | TouchEvent;
|
|
267
|
+
[REASONS.incrementPress]: PointerEvent | MouseEvent | TouchEvent;
|
|
268
|
+
[REASONS.decrementPress]: PointerEvent | MouseEvent | TouchEvent;
|
|
269
|
+
[REASONS.inputChange]: InputEvent | Event;
|
|
270
|
+
[REASONS.inputClear]: InputEvent | FocusEvent | Event;
|
|
271
|
+
[REASONS.inputBlur]: FocusEvent;
|
|
272
|
+
[REASONS.inputPaste]: ClipboardEvent;
|
|
273
|
+
[REASONS.inputPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
|
|
274
|
+
[REASONS.focusOut]: FocusEvent | KeyboardEvent;
|
|
275
|
+
[REASONS.escapeKey]: KeyboardEvent;
|
|
276
|
+
[REASONS.closeWatcher]: Event;
|
|
277
|
+
[REASONS.listNavigation]: KeyboardEvent;
|
|
278
|
+
[REASONS.keyboard]: KeyboardEvent;
|
|
279
|
+
[REASONS.pointer]: PointerEvent;
|
|
280
|
+
[REASONS.drag]: PointerEvent | TouchEvent;
|
|
281
|
+
[REASONS.swipe]: PointerEvent | TouchEvent;
|
|
282
|
+
[REASONS.wheel]: WheelEvent;
|
|
283
|
+
[REASONS.scrub]: PointerEvent;
|
|
284
|
+
[REASONS.cancelOpen]: MouseEvent;
|
|
285
|
+
[REASONS.siblingOpen]: Event;
|
|
286
|
+
[REASONS.disabled]: Event;
|
|
287
|
+
[REASONS.missing]: Event;
|
|
288
|
+
[REASONS.initial]: Event;
|
|
289
|
+
[REASONS.imperativeAction]: Event;
|
|
290
|
+
[REASONS.windowResize]: UIEvent;
|
|
291
|
+
}
|
|
10
292
|
|
|
11
293
|
declare function Root<Value extends number | readonly number[]>({ className, size, style, ...props }: RootProps<Value>): JSX_2.Element;
|
|
12
294
|
|
|
@@ -14,39 +296,419 @@ declare type RootProps<Value extends number | readonly number[]> = WithStringCla
|
|
|
14
296
|
size?: number;
|
|
15
297
|
};
|
|
16
298
|
|
|
299
|
+
declare const scrub: "scrub";
|
|
300
|
+
|
|
301
|
+
declare const siblingOpen: "sibling-open";
|
|
302
|
+
|
|
17
303
|
export declare const Slider: {
|
|
18
|
-
Label: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
304
|
+
Label: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SliderLabelProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
19
305
|
className?: string | undefined;
|
|
20
306
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
Value: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
307
|
+
Value: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SliderValueProps_2, "ref"> & React_2.RefAttributes<HTMLOutputElement>, "ref">, "className"> & {
|
|
22
308
|
className?: string | undefined;
|
|
23
309
|
} & React_2.RefAttributes<HTMLOutputElement>>;
|
|
24
|
-
Control: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
310
|
+
Control: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SliderControlProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
25
311
|
className?: string | undefined;
|
|
26
312
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
Track: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
313
|
+
Track: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SliderTrackProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
28
314
|
className?: string | undefined;
|
|
29
315
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
Thumb: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
316
|
+
Thumb: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SliderThumbProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
31
317
|
className?: string | undefined;
|
|
32
318
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
Indicator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
319
|
+
Indicator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SliderIndicatorProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
34
320
|
className?: string | undefined;
|
|
35
321
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
36
322
|
Root: typeof Root;
|
|
37
323
|
};
|
|
38
324
|
|
|
325
|
+
export declare namespace Slider_2 {
|
|
326
|
+
export {
|
|
327
|
+
SliderRoot as Root,
|
|
328
|
+
SliderLabel as Label,
|
|
329
|
+
SliderValue as Value,
|
|
330
|
+
SliderControl as Control,
|
|
331
|
+
SliderTrack as Track,
|
|
332
|
+
SliderThumb as Thumb,
|
|
333
|
+
SliderIndicator as Indicator
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* The clickable, interactive part of the slider.
|
|
339
|
+
* Renders a `<div>` element.
|
|
340
|
+
*
|
|
341
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
342
|
+
*/
|
|
343
|
+
export declare const SliderControl: React_2.ForwardRefExoticComponent<Omit<SliderControlProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
344
|
+
|
|
345
|
+
export declare namespace SliderControl {
|
|
346
|
+
export type State = SliderControlState;
|
|
347
|
+
export type Props = SliderControlProps;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export declare interface SliderControlProps extends BaseUIComponentProps<'div', SliderControlState> {}
|
|
351
|
+
|
|
352
|
+
export declare interface SliderControlState extends SliderRootState {}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Visualizes the current value of the slider.
|
|
356
|
+
* Renders a `<div>` element.
|
|
357
|
+
*
|
|
358
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
359
|
+
*/
|
|
360
|
+
export declare const SliderIndicator: React_2.ForwardRefExoticComponent<Omit<SliderIndicatorProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
361
|
+
|
|
362
|
+
export declare namespace SliderIndicator {
|
|
363
|
+
export type State = SliderIndicatorState;
|
|
364
|
+
export type Props = SliderIndicatorProps;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export declare interface SliderIndicatorProps extends BaseUIComponentProps<'div', SliderIndicatorState> {}
|
|
368
|
+
|
|
369
|
+
export declare interface SliderIndicatorState extends SliderRootState {}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* An accessible label that is automatically associated with the slider thumbs.
|
|
373
|
+
* Renders a `<div>` element.
|
|
374
|
+
*
|
|
375
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
376
|
+
*/
|
|
377
|
+
export declare const SliderLabel: React_2.ForwardRefExoticComponent<Omit<SliderLabelProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
378
|
+
|
|
379
|
+
export declare namespace SliderLabel {
|
|
380
|
+
export type State = SliderLabelState;
|
|
381
|
+
export type Props = SliderLabelProps;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export declare interface SliderLabelProps extends Omit<BaseUIComponentProps<'div', SliderLabel.State>, 'id'> {}
|
|
385
|
+
|
|
386
|
+
export declare type SliderLabelState = SliderRoot.State;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Groups all parts of the slider.
|
|
390
|
+
* Renders a `<div>` element.
|
|
391
|
+
*
|
|
392
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
393
|
+
*/
|
|
394
|
+
export declare const SliderRoot: {
|
|
395
|
+
<Value extends number | readonly number[]>(props: SliderRoot.Props<Value> & {
|
|
396
|
+
ref?: React_2.Ref<HTMLDivElement> | undefined;
|
|
397
|
+
}): React_2.JSX.Element;
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
export declare namespace SliderRoot {
|
|
401
|
+
export type State = SliderRootState;
|
|
402
|
+
export type Props<Value extends number | readonly number[] = number | readonly number[]> = SliderRootProps<Value>;
|
|
403
|
+
export type ChangeEventReason = SliderRootChangeEventReason;
|
|
404
|
+
export type ChangeEventDetails = SliderRootChangeEventDetails;
|
|
405
|
+
export type CommitEventReason = SliderRootCommitEventReason;
|
|
406
|
+
export type CommitEventDetails = SliderRootCommitEventDetails;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export declare interface SliderRootChangeEventCustomProperties {
|
|
410
|
+
/**
|
|
411
|
+
* The index of the active thumb at the time of the change.
|
|
412
|
+
*/
|
|
413
|
+
activeThumbIndex: number;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export declare type SliderRootChangeEventDetails = BaseUIChangeEventDetails<SliderRoot.ChangeEventReason, SliderRootChangeEventCustomProperties>;
|
|
417
|
+
|
|
418
|
+
export declare type SliderRootChangeEventReason = typeof REASONS.inputChange | typeof REASONS.trackPress | typeof REASONS.drag | typeof REASONS.keyboard | typeof REASONS.none;
|
|
419
|
+
|
|
420
|
+
export declare type SliderRootCommitEventDetails = BaseUIGenericEventDetails<SliderRoot.CommitEventReason>;
|
|
421
|
+
|
|
422
|
+
export declare type SliderRootCommitEventReason = typeof REASONS.inputChange | typeof REASONS.trackPress | typeof REASONS.drag | typeof REASONS.keyboard | typeof REASONS.none;
|
|
423
|
+
|
|
424
|
+
export declare interface SliderRootProps<Value extends number | readonly number[] = number | readonly number[]> extends BaseUIComponentProps<'div', SliderRootState> {
|
|
425
|
+
/**
|
|
426
|
+
* The uncontrolled value of the slider when it's initially rendered.
|
|
427
|
+
*
|
|
428
|
+
* To render a controlled slider, use the `value` prop instead.
|
|
429
|
+
*/
|
|
430
|
+
defaultValue?: Value | undefined;
|
|
431
|
+
/**
|
|
432
|
+
* Whether the slider should ignore user interaction.
|
|
433
|
+
* @default false
|
|
434
|
+
*/
|
|
435
|
+
disabled?: boolean | undefined;
|
|
436
|
+
/**
|
|
437
|
+
* Options to format the input value.
|
|
438
|
+
*/
|
|
439
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
440
|
+
/**
|
|
441
|
+
* The locale used by `Intl.NumberFormat` when formatting the value.
|
|
442
|
+
* Defaults to the user's runtime locale.
|
|
443
|
+
*/
|
|
444
|
+
locale?: Intl.LocalesArgument | undefined;
|
|
445
|
+
/**
|
|
446
|
+
* The maximum allowed value of the slider.
|
|
447
|
+
* Should not be equal to min.
|
|
448
|
+
* @default 100
|
|
449
|
+
*/
|
|
450
|
+
max?: number | undefined;
|
|
451
|
+
/**
|
|
452
|
+
* The minimum allowed value of the slider.
|
|
453
|
+
* Should not be equal to max.
|
|
454
|
+
* @default 0
|
|
455
|
+
*/
|
|
456
|
+
min?: number | undefined;
|
|
457
|
+
/**
|
|
458
|
+
* The minimum steps between values in a range slider.
|
|
459
|
+
* @default 0
|
|
460
|
+
*/
|
|
461
|
+
minStepsBetweenValues?: number | undefined;
|
|
462
|
+
/**
|
|
463
|
+
* Identifies the field when a form is submitted.
|
|
464
|
+
*/
|
|
465
|
+
name?: string | undefined;
|
|
466
|
+
/**
|
|
467
|
+
* Identifies the form that owns the slider inputs.
|
|
468
|
+
* Useful when the slider is rendered outside the form.
|
|
469
|
+
*/
|
|
470
|
+
form?: string | undefined;
|
|
471
|
+
/**
|
|
472
|
+
* The component orientation.
|
|
473
|
+
* @default 'horizontal'
|
|
474
|
+
*/
|
|
475
|
+
orientation?: Orientation | undefined;
|
|
476
|
+
/**
|
|
477
|
+
* The granularity with which the slider can step through values. (A "discrete" slider.)
|
|
478
|
+
* The `min` prop serves as the origin for the valid values.
|
|
479
|
+
* We recommend (max - min) to be evenly divisible by the step.
|
|
480
|
+
* @default 1
|
|
481
|
+
*/
|
|
482
|
+
step?: number | undefined;
|
|
483
|
+
/**
|
|
484
|
+
* The granularity with which the slider can step through values when using Page Up/Page Down or Shift + Arrow Up/Arrow Down.
|
|
485
|
+
* @default 10
|
|
486
|
+
*/
|
|
487
|
+
largeStep?: number | undefined;
|
|
488
|
+
/**
|
|
489
|
+
* How the thumb(s) are aligned relative to `Slider.Control` when the value is at `min` or `max`:
|
|
490
|
+
* - `center`: The center of the thumb is aligned with the control edge
|
|
491
|
+
* - `edge`: The thumb is inset within the control such that its edge is aligned with the control edge
|
|
492
|
+
* - `edge-client-only`: Same as `edge` but renders after React hydration on the client, reducing bundle size in return
|
|
493
|
+
* @default 'center'
|
|
494
|
+
*/
|
|
495
|
+
thumbAlignment?: 'center' | 'edge' | 'edge-client-only' | undefined;
|
|
496
|
+
/**
|
|
497
|
+
* Controls how thumbs behave when they collide during pointer interactions.
|
|
498
|
+
*
|
|
499
|
+
* - `'push'` (default): Thumbs push each other without restoring their previous positions when dragged back.
|
|
500
|
+
* - `'swap'`: Thumbs swap places when dragged past each other.
|
|
501
|
+
* - `'none'`: Thumbs cannot move past each other; excess movement is ignored.
|
|
502
|
+
*
|
|
503
|
+
* @default 'push'
|
|
504
|
+
*/
|
|
505
|
+
thumbCollisionBehavior?: 'push' | 'swap' | 'none' | undefined;
|
|
506
|
+
/**
|
|
507
|
+
* The value of the slider.
|
|
508
|
+
* For ranged sliders, provide an array with two values.
|
|
509
|
+
*/
|
|
510
|
+
value?: Value | undefined;
|
|
511
|
+
/**
|
|
512
|
+
* Callback function that is fired when the slider's value changed.
|
|
513
|
+
* You can pull out the new value by accessing `event.target.value` (any).
|
|
514
|
+
*
|
|
515
|
+
* The `eventDetails.reason` indicates what triggered the change:
|
|
516
|
+
*
|
|
517
|
+
* - `'input-change'` when the hidden range input emits a change event (for example, via form integration)
|
|
518
|
+
* - `'track-press'` when the control track is pressed
|
|
519
|
+
* - `'drag'` while dragging a thumb
|
|
520
|
+
* - `'keyboard'` for keyboard input
|
|
521
|
+
* - `'none'` when the change is triggered without a specific interaction
|
|
522
|
+
*/
|
|
523
|
+
onValueChange?: ((value: Value extends number ? number : Value, eventDetails: SliderRoot.ChangeEventDetails) => void) | undefined;
|
|
524
|
+
/**
|
|
525
|
+
* Callback function that is fired when the `pointerup` is triggered.
|
|
526
|
+
* **Warning**: This is a generic event not a change event.
|
|
527
|
+
*
|
|
528
|
+
* The `eventDetails.reason` indicates what triggered the commit:
|
|
529
|
+
*
|
|
530
|
+
* - `'drag'` while dragging a thumb
|
|
531
|
+
* - `'track-press'` when the control track is pressed
|
|
532
|
+
* - `'keyboard'` for keyboard input
|
|
533
|
+
* - `'input-change'` when the hidden range input emits a change event (for example, via form integration)
|
|
534
|
+
* - `'none'` when the commit occurs without a specific interaction
|
|
535
|
+
*/
|
|
536
|
+
onValueCommitted?: ((value: Value extends number ? number : Value, eventDetails: SliderRoot.CommitEventDetails) => void) | undefined;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export declare interface SliderRootState extends FieldRootState {
|
|
540
|
+
/**
|
|
541
|
+
* The index of the active thumb.
|
|
542
|
+
*/
|
|
543
|
+
activeThumbIndex: number;
|
|
544
|
+
/**
|
|
545
|
+
* Whether the component should ignore user interaction.
|
|
546
|
+
*/
|
|
547
|
+
disabled: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Whether the thumb is currently being dragged.
|
|
550
|
+
*/
|
|
551
|
+
dragging: boolean;
|
|
552
|
+
/**
|
|
553
|
+
* The maximum value.
|
|
554
|
+
*/
|
|
555
|
+
max: number;
|
|
556
|
+
/**
|
|
557
|
+
* The minimum value.
|
|
558
|
+
*/
|
|
559
|
+
min: number;
|
|
560
|
+
/**
|
|
561
|
+
* The minimum steps between values in a range slider.
|
|
562
|
+
* @default 0
|
|
563
|
+
*/
|
|
564
|
+
minStepsBetweenValues: number;
|
|
565
|
+
/**
|
|
566
|
+
* The component orientation.
|
|
567
|
+
*/
|
|
568
|
+
orientation: Orientation;
|
|
569
|
+
/**
|
|
570
|
+
* The step increment of the slider when incrementing or decrementing. It will snap
|
|
571
|
+
* to multiples of this value. Decimal values are supported.
|
|
572
|
+
* @default 1
|
|
573
|
+
*/
|
|
574
|
+
step: number;
|
|
575
|
+
/**
|
|
576
|
+
* The raw number value of the slider.
|
|
577
|
+
*/
|
|
578
|
+
values: readonly number[];
|
|
579
|
+
}
|
|
580
|
+
|
|
39
581
|
export declare const SliderSize: {
|
|
40
582
|
readonly small: 12;
|
|
41
583
|
readonly medium: 16;
|
|
42
584
|
readonly large: 20;
|
|
43
585
|
};
|
|
44
586
|
|
|
587
|
+
/**
|
|
588
|
+
* The draggable part of the slider at the tip of the indicator.
|
|
589
|
+
* Renders a `<div>` element and a nested `<input type="range">`.
|
|
590
|
+
*
|
|
591
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
592
|
+
*/
|
|
593
|
+
export declare const SliderThumb: React_2.ForwardRefExoticComponent<Omit<SliderThumbProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
594
|
+
|
|
595
|
+
export declare namespace SliderThumb {
|
|
596
|
+
export type State = SliderThumbState;
|
|
597
|
+
export type Props = SliderThumbProps;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export declare interface SliderThumbProps extends Omit<BaseUIComponentProps<'div', SliderThumbState>, 'onBlur' | 'onFocus'> {
|
|
601
|
+
/**
|
|
602
|
+
* Whether the thumb should ignore user interaction.
|
|
603
|
+
* @default false
|
|
604
|
+
*/
|
|
605
|
+
disabled?: boolean | undefined;
|
|
606
|
+
/**
|
|
607
|
+
* A function which returns a string value for the [`aria-label`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label) attribute of the `input`.
|
|
608
|
+
*/
|
|
609
|
+
getAriaLabel?: ((index: number) => string) | null | undefined;
|
|
610
|
+
/**
|
|
611
|
+
* A function which returns a string value for the [`aria-valuetext`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuetext) attribute of the `input`.
|
|
612
|
+
* This is important for screen reader users.
|
|
613
|
+
*/
|
|
614
|
+
getAriaValueText?: ((formattedValue: string, value: number, index: number) => string) | null | undefined;
|
|
615
|
+
/**
|
|
616
|
+
* The index of the thumb which corresponds to the index of its value in the
|
|
617
|
+
* `value` or `defaultValue` array.
|
|
618
|
+
* This prop is required to support server-side rendering for range sliders
|
|
619
|
+
* with multiple thumbs.
|
|
620
|
+
* @example
|
|
621
|
+
* ```tsx
|
|
622
|
+
* <Slider.Root value={[10, 20]}>
|
|
623
|
+
* <Slider.Thumb index={0} />
|
|
624
|
+
* <Slider.Thumb index={1} />
|
|
625
|
+
* </Slider.Root>
|
|
626
|
+
* ```
|
|
627
|
+
*/
|
|
628
|
+
index?: number | undefined;
|
|
629
|
+
/**
|
|
630
|
+
* A ref to access the nested input element.
|
|
631
|
+
*/
|
|
632
|
+
inputRef?: React_2.Ref<HTMLInputElement> | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* A blur handler forwarded to the `input`.
|
|
635
|
+
*/
|
|
636
|
+
onBlur?: React_2.FocusEventHandler<HTMLInputElement> | undefined;
|
|
637
|
+
/**
|
|
638
|
+
* A focus handler forwarded to the `input`.
|
|
639
|
+
*/
|
|
640
|
+
onFocus?: React_2.FocusEventHandler<HTMLInputElement> | undefined;
|
|
641
|
+
/**
|
|
642
|
+
* Optional tab index attribute forwarded to the `input`.
|
|
643
|
+
*/
|
|
644
|
+
tabIndex?: number | undefined;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export declare interface SliderThumbState extends SliderRootState {}
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Contains the slider indicator and represents the entire range of the slider.
|
|
651
|
+
* Renders a `<div>` element.
|
|
652
|
+
*
|
|
653
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
654
|
+
*/
|
|
655
|
+
export declare const SliderTrack: React_2.ForwardRefExoticComponent<Omit<SliderTrackProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
656
|
+
|
|
657
|
+
export declare namespace SliderTrack {
|
|
658
|
+
export type State = SliderTrackState;
|
|
659
|
+
export type Props = SliderTrackProps;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export declare interface SliderTrackProps extends BaseUIComponentProps<'div', SliderTrackState> {}
|
|
663
|
+
|
|
664
|
+
export declare interface SliderTrackState extends SliderRootState {}
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Displays the current value of the slider as text.
|
|
668
|
+
* Renders an `<output>` element.
|
|
669
|
+
*
|
|
670
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
671
|
+
*/
|
|
672
|
+
export declare const SliderValue: React_2.ForwardRefExoticComponent<Omit<SliderValueProps, "ref"> & React_2.RefAttributes<HTMLOutputElement>>;
|
|
673
|
+
|
|
674
|
+
export declare namespace SliderValue {
|
|
675
|
+
export type State = SliderValueState;
|
|
676
|
+
export type Props = SliderValueProps;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
export declare interface SliderValueProps extends Omit<BaseUIComponentProps<'output', SliderValueState>, 'children'> {
|
|
680
|
+
children?: null | ((formattedValues: readonly string[], values: readonly number[]) => React_2.ReactNode) | undefined;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export declare interface SliderValueState extends SliderRootState {}
|
|
684
|
+
|
|
685
|
+
declare const swipe: "swipe";
|
|
686
|
+
|
|
687
|
+
export declare interface ThumbMetadata {
|
|
688
|
+
inputId: LabelableContext['controlId'];
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
declare const trackPress: "track-press";
|
|
692
|
+
|
|
693
|
+
declare const triggerFocus: "trigger-focus";
|
|
694
|
+
|
|
695
|
+
declare const triggerHover: "trigger-hover";
|
|
696
|
+
|
|
697
|
+
declare const triggerPress: "trigger-press";
|
|
698
|
+
|
|
699
|
+
declare const wheel: "wheel";
|
|
700
|
+
|
|
701
|
+
declare const windowResize: "window-resize";
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Adds a `preventBaseUIHandler` method to all event handlers.
|
|
705
|
+
*/
|
|
706
|
+
declare type WithBaseUIEvent<T> = { [K in keyof T]: WithPreventBaseUIHandler<T[K]> };
|
|
707
|
+
|
|
708
|
+
declare type WithPreventBaseUIHandler<T> = T extends ((event: infer E) => any) ? E extends React_2.SyntheticEvent<Element, Event> ? (event: BaseUIEvent<E>) => ReturnType<T> : T : T extends undefined ? undefined : T;
|
|
709
|
+
|
|
45
710
|
declare type WithStringClassName<P> = Omit<P, 'className'> & {
|
|
46
711
|
className?: string;
|
|
47
712
|
};
|
|
48
713
|
|
|
49
|
-
|
|
50
|
-
export * from "@base-ui/react/slider";
|
|
51
|
-
|
|
52
714
|
export { }
|