@wix/site-ui 1.346.0 → 1.348.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/{6706.js → 1093.js} +3 -3
- package/dist/{8724.js → 1219.js} +2 -2
- package/dist/{7373.js → 1288.js} +8 -2
- package/dist/{5299.js → 1381.js} +98 -127
- package/dist/{3056.js → 1607.js} +32 -34
- package/dist/1629.js +2 -0
- package/dist/1669.js +75 -0
- package/dist/1718.js +26 -0
- package/dist/{1477.js → 201.js} +17 -26
- package/dist/2221.js +9 -0
- package/dist/{2445.js → 226.js} +12 -48
- package/dist/2387.js +7 -0
- package/dist/2580.js +6 -0
- package/dist/{1500.js → 2859.js} +10 -34
- package/dist/3014.js +178 -0
- package/dist/{6247.js → 3054.js} +3 -3
- package/dist/{7642.js → 3093.js} +1 -1
- package/dist/3189.js +5 -0
- package/dist/{7564.js → 331.js} +2 -2
- package/dist/3357.js +7 -0
- package/dist/{487.js → 3398.js} +38 -39
- package/dist/3502.js +224 -0
- package/dist/3695.js +50 -0
- package/dist/3829.js +1 -1
- package/dist/{6588.js → 3859.js} +115 -92
- package/dist/{3670.js → 3910.js} +28 -21
- package/dist/392.js +7 -0
- package/dist/{4549.js → 4155.js} +11 -3
- package/dist/4226.js +7 -0
- package/dist/{6329.js → 4229.js} +1 -1
- package/dist/4293.js +3 -0
- package/dist/4346.js +853 -2
- package/dist/{285.js → 4472.js} +3 -3
- package/dist/4605.js +207 -0
- package/dist/{7366.js → 488.js} +60 -7
- package/dist/{8750.js → 497.js} +190 -375
- package/dist/4989.js +35 -0
- package/dist/{6270.js → 510.js} +157 -196
- package/dist/5258.js +26 -0
- package/dist/{5036.js → 5275.js} +0 -3
- package/dist/{8171.js → 5298.js} +90 -102
- package/dist/5473.js +11 -0
- package/dist/{4745.js → 5490.js} +3 -1
- package/dist/{6089.js → 5561.js} +869 -786
- package/dist/{8996.js → 5595.js} +4 -3
- package/dist/5890.js +25 -0
- package/dist/{6046.js → 5969.js} +1 -1
- package/dist/5984.js +38 -0
- package/dist/{8527.js → 6006.js} +3 -3
- package/dist/6040.js +97 -0
- package/dist/{8758.js → 6137.js} +10 -8
- package/dist/{4281.js → 6140.js} +18 -10
- package/dist/{8960.js → 6191.js} +2 -2
- package/dist/6240.js +121 -0
- package/dist/{4490.js → 6373.js} +7 -5
- package/dist/{904.js → 6487.js} +19 -17
- package/dist/{9635.js → 6498.js} +1 -1
- package/dist/6499.js +4 -7
- package/dist/6508.js +7 -0
- package/dist/{8225.js → 6540.js} +1 -0
- package/dist/6551.js +46 -0
- package/dist/{9369.js → 6620.js} +35 -34
- package/dist/{4143.js → 6838.js} +19 -10
- package/dist/6902.js +48 -0
- package/dist/6904.js +51 -0
- package/dist/70.js +24 -0
- package/dist/7024.js +39 -0
- package/dist/{6882.js → 721.js} +737 -362
- package/dist/{951.js → 7270.js} +4 -4
- package/dist/{3485.js → 7323.js} +143 -111
- package/dist/{7541.js → 7488.js} +2 -2
- package/dist/{4863.js → 7542.js} +7 -6
- package/dist/7551.js +28 -0
- package/dist/{7021.js → 7640.js} +1 -1
- package/dist/{353.js → 7692.js} +3 -7
- package/dist/{4707.js → 7930.js} +2 -2
- package/dist/{8052.js → 8.js} +80 -64
- package/dist/{6914.js → 8129.js} +3 -15
- package/dist/{3319.js → 8358.js} +62 -63
- package/dist/{5864.js → 8407.js} +13 -13
- package/dist/8488.js +15 -0
- package/dist/{4768.js → 8495.js} +1 -1
- package/dist/8734.js +171 -0
- package/dist/{1763.js → 9018.js} +205 -331
- package/dist/9053.js +29 -0
- package/dist/9067.js +41 -0
- package/dist/{2861.js → 9120.js} +2 -2
- package/dist/{42.js → 9197.js} +2 -2
- package/dist/{9189.js → 9248.js} +36 -17
- package/dist/{2801.js → 9252.js} +4 -9
- package/dist/9295.js +7 -0
- package/dist/9303.js +8 -0
- package/dist/{167.js → 9374.js} +1 -1
- package/dist/{9352.js → 9540.js} +17 -47
- package/dist/9576.js +51 -0
- package/dist/{8272.js → 9591.js} +36 -46
- package/dist/{6107.js → 9770.js} +2 -2
- package/dist/{5085.js → 9880.js} +6 -3
- package/dist/Accordion/index.d.ts +207 -41
- package/dist/Accordion/index.js +75 -177
- package/dist/AlertDialog/index.d.ts +440 -140
- package/dist/AlertDialog/index.js +3 -13
- package/dist/Autocomplete/index.d.ts +722 -150
- package/dist/Autocomplete/index.js +16 -29
- package/dist/Avatar/index.d.ts +38 -3
- package/dist/Avatar/index.js +82 -28
- package/dist/Breadcrumbs/index.d.ts +63 -91
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/Button/index.d.ts +11 -0
- package/dist/Button/index.js +2 -2
- package/dist/Checkbox/index.d.ts +206 -36
- package/dist/Checkbox/index.js +293 -8
- package/dist/CheckboxField/index.css +1 -1
- package/dist/CheckboxField/index.d.ts +40 -36
- package/dist/CheckboxGroup/index.d.ts +50 -36
- package/dist/CheckboxGroup/index.js +87 -58
- package/dist/CheckboxGroupField/index.css +1 -1
- package/dist/Collapsible/index.d.ts +128 -36
- package/dist/Collapsible/index.js +21 -25
- package/dist/Combobox/index.d.ts +801 -158
- package/dist/Combobox/index.js +70 -114
- package/dist/ContextMenu/index.d.ts +1162 -195
- package/dist/ContextMenu/index.js +46 -36
- package/dist/Dialog/index.d.ts +425 -133
- package/dist/Dialog/index.js +8 -4
- package/dist/Drawer/index.d.ts +589 -144
- package/dist/Drawer/index.js +482 -562
- package/dist/Field/index.css +1 -1
- package/dist/Field/index.d.ts +341 -42
- package/dist/Field/index.js +123 -273
- package/dist/Fieldset/index.d.ts +11 -0
- package/dist/Fieldset/index.js +10 -17
- package/dist/Form/index.d.ts +43 -39
- package/dist/Form/index.js +58 -50
- package/dist/Input/index.css +1 -1
- package/dist/Input/index.d.ts +94 -42
- package/dist/Input/index.js +1 -1
- package/dist/Menu/index.d.ts +1140 -175
- package/dist/Menu/index.js +51 -67
- package/dist/Menubar/index.d.ts +651 -173
- package/dist/Menubar/index.js +12 -16
- package/dist/Meter/index.js +21 -18
- package/dist/NavigationMenu/index.d.ts +370 -86
- package/dist/NavigationMenu/index.js +144 -178
- package/dist/NumberField/index.css +1 -1
- package/dist/NumberField/index.d.ts +507 -47
- package/dist/NumberField/index.js +434 -718
- package/dist/Popover/index.d.ts +561 -142
- package/dist/Popover/index.js +181 -252
- package/dist/PreviewCard/index.d.ts +507 -143
- package/dist/PreviewCard/index.js +97 -151
- package/dist/Progress/index.d.ts +117 -3
- package/dist/Progress/index.js +37 -36
- package/dist/Radio/index.d.ts +177 -7
- package/dist/Radio/index.js +54 -70
- package/dist/RadioField/index.css +1 -1
- package/dist/RadioField/index.d.ts +23 -7
- package/dist/RadioGroup/index.d.ts +51 -37
- package/dist/RadioGroup/index.js +60 -51
- package/dist/RadioGroupField/index.css +1 -1
- package/dist/RadioGroupField/index.d.ts +40 -37
- package/dist/ScrollArea/index.d.ts +295 -1
- package/dist/ScrollArea/index.js +256 -324
- package/dist/Select/index.d.ts +516 -123
- package/dist/Select/index.js +513 -635
- package/dist/SelectField/index.css +1 -1
- package/dist/SelectField/index.d.ts +109 -134
- package/dist/SelectField/index.js +5 -1
- package/dist/Separator/index.d.ts +12 -0
- package/dist/Separator/index.js +1 -1
- package/dist/Slider/index.d.ts +383 -64
- package/dist/Slider/index.js +298 -374
- package/dist/Switch/index.d.ts +184 -37
- package/dist/Switch/index.js +44 -58
- package/dist/Tabs/index.d.ts +220 -35
- package/dist/Tabs/index.js +199 -193
- package/dist/Toast/index.d.ts +280 -64
- package/dist/Toast/index.js +299 -374
- package/dist/Toggle/index.d.ts +55 -35
- package/dist/Toggle/index.js +19 -13
- package/dist/ToggleGroup/index.d.ts +62 -35
- package/dist/ToggleGroup/index.js +13 -31
- package/dist/Toolbar/index.d.ts +117 -2
- package/dist/Toolbar/index.js +31 -43
- package/dist/Tooltip/index.d.ts +507 -150
- package/dist/Tooltip/index.js +163 -213
- package/dist/index.d.ts +12912 -5382
- package/package.json +3 -3
- package/dist/2205.js +0 -26
- package/dist/2274.js +0 -34
- package/dist/2287.js +0 -17
- package/dist/3020.js +0 -7
- package/dist/3021.js +0 -72
- package/dist/3140.js +0 -4
- package/dist/3248.js +0 -307
- package/dist/4026.js +0 -12
- package/dist/4922.js +0 -15
- package/dist/5659.js +0 -4
- package/dist/5992.js +0 -447
- package/dist/6330.js +0 -30
- package/dist/6535.js +0 -72
- package/dist/6917.js +0 -55
- package/dist/7725.js +0 -10
- package/dist/7871.js +0 -38
- package/dist/8106.js +0 -239
- package/dist/8685.js +0 -102
- package/dist/8935.js +0 -8
- package/dist/8971.js +0 -40
- package/dist/8979.js +0 -10
- package/dist/9048.js +0 -52
- package/dist/9087.js +0 -256
- package/dist/9255.js +0 -136
- /package/dist/{1457.js → 1068.js} +0 -0
- /package/dist/{6003.js → 1234.js} +0 -0
- /package/dist/{4723.js → 1282.js} +0 -0
- /package/dist/{6825.js → 1876.js} +0 -0
- /package/dist/{5778.js → 1885.js} +0 -0
- /package/dist/{2445.js.LICENSE.txt → 226.js.LICENSE.txt} +0 -0
- /package/dist/{1279.js → 3278.js} +0 -0
- /package/dist/{3296.js → 5568.js} +0 -0
- /package/dist/{8685.css → 6240.css} +0 -0
- /package/dist/{9829.js → 6488.js} +0 -0
- /package/dist/{9863.js → 6534.js} +0 -0
- /package/dist/{4495.js → 7718.js} +0 -0
- /package/dist/{3395.js → 8866.js} +0 -0
- /package/dist/{2418.js → 9837.js} +0 -0
package/dist/Slider/index.d.ts
CHANGED
|
@@ -88,15 +88,15 @@ declare type BaseUIGenericEventDetail<Reason extends string, CustomProperties ex
|
|
|
88
88
|
|
|
89
89
|
declare type BaseUIGenericEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIGenericEventDetail<Reason, CustomProperties> & {} : never;
|
|
90
90
|
|
|
91
|
-
declare const cancelOpen:
|
|
91
|
+
declare const cancelOpen: 'cancel-open';
|
|
92
92
|
|
|
93
|
-
declare const chipRemovePress:
|
|
93
|
+
declare const chipRemovePress: 'chip-remove-press';
|
|
94
94
|
|
|
95
|
-
declare const clearPress:
|
|
95
|
+
declare const clearPress: 'clear-press';
|
|
96
96
|
|
|
97
|
-
declare const closePress:
|
|
97
|
+
declare const closePress: 'close-press';
|
|
98
98
|
|
|
99
|
-
declare const closeWatcher:
|
|
99
|
+
declare const closeWatcher: 'close-watcher';
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
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.
|
|
@@ -106,13 +106,103 @@ declare const closeWatcher: "close-watcher";
|
|
|
106
106
|
*/
|
|
107
107
|
declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
|
|
108
108
|
|
|
109
|
-
declare const decrementPress:
|
|
109
|
+
declare const decrementPress: 'decrement-press';
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Present when the slider's value has changed (when wrapped in Field.Root).
|
|
113
|
+
*/
|
|
114
|
+
declare const dirty = "data-dirty";
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Present when the slider's value has changed (when wrapped in Field.Root).
|
|
118
|
+
*/
|
|
119
|
+
declare const dirty_2 = "data-dirty";
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Present when the slider's value has changed (when wrapped in Field.Root).
|
|
123
|
+
*/
|
|
124
|
+
declare const dirty_3 = "data-dirty";
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Present when the slider's value has changed (when wrapped in Field.Root).
|
|
128
|
+
*/
|
|
129
|
+
declare const dirty_4 = "data-dirty";
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Present when the slider's value has changed (when wrapped in Field.Root).
|
|
133
|
+
*/
|
|
134
|
+
declare const dirty_5 = "data-dirty";
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Present when the slider's value has changed (when wrapped in Field.Root).
|
|
138
|
+
*/
|
|
139
|
+
declare const dirty_6 = "data-dirty";
|
|
140
|
+
|
|
141
|
+
declare const disabled: 'disabled';
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Present when the slider is disabled.
|
|
145
|
+
*/
|
|
146
|
+
declare const disabled_2 = "data-disabled";
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Present when the slider is disabled.
|
|
150
|
+
*/
|
|
151
|
+
declare const disabled_3 = "data-disabled";
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Present when the slider is disabled.
|
|
155
|
+
*/
|
|
156
|
+
declare const disabled_4 = "data-disabled";
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Present when the slider is disabled.
|
|
160
|
+
*/
|
|
161
|
+
declare const disabled_5 = "data-disabled";
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Present when the slider is disabled.
|
|
165
|
+
*/
|
|
166
|
+
declare const disabled_6 = "data-disabled";
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Present when the slider is disabled.
|
|
170
|
+
*/
|
|
171
|
+
declare const disabled_7 = "data-disabled";
|
|
172
|
+
|
|
173
|
+
declare const drag: 'drag';
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Present while the user is dragging.
|
|
177
|
+
*/
|
|
178
|
+
declare const dragging = "data-dragging";
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Present while the user is dragging.
|
|
182
|
+
*/
|
|
183
|
+
declare const dragging_2 = "data-dragging";
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Present while the user is dragging.
|
|
187
|
+
*/
|
|
188
|
+
declare const dragging_3 = "data-dragging";
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Present while the user is dragging.
|
|
192
|
+
*/
|
|
193
|
+
declare const dragging_4 = "data-dragging";
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Present while the user is dragging.
|
|
197
|
+
*/
|
|
198
|
+
declare const dragging_5 = "data-dragging";
|
|
112
199
|
|
|
113
|
-
|
|
200
|
+
/**
|
|
201
|
+
* Present while the user is dragging.
|
|
202
|
+
*/
|
|
203
|
+
declare const dragging_6 = "data-dragging";
|
|
114
204
|
|
|
115
|
-
declare const escapeKey:
|
|
205
|
+
declare const escapeKey: 'escape-key';
|
|
116
206
|
|
|
117
207
|
declare interface FieldRootState {
|
|
118
208
|
/**
|
|
@@ -141,71 +231,148 @@ declare interface FieldRootState {
|
|
|
141
231
|
focused: boolean;
|
|
142
232
|
}
|
|
143
233
|
|
|
144
|
-
|
|
234
|
+
/**
|
|
235
|
+
* Present when the slider is focused (when wrapped in Field.Root).
|
|
236
|
+
*/
|
|
237
|
+
declare const focused = "data-focused";
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Present when the slider is focused (when wrapped in Field.Root).
|
|
241
|
+
*/
|
|
242
|
+
declare const focused_2 = "data-focused";
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Present when the slider is focused (when wrapped in Field.Root).
|
|
246
|
+
*/
|
|
247
|
+
declare const focused_3 = "data-focused";
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Present when the slider is focused (when wrapped in Field.Root).
|
|
251
|
+
*/
|
|
252
|
+
declare const focused_4 = "data-focused";
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Present when the slider is focused (when wrapped in Field.Root).
|
|
256
|
+
*/
|
|
257
|
+
declare const focused_5 = "data-focused";
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Present when the slider is focused (when wrapped in Field.Root).
|
|
261
|
+
*/
|
|
262
|
+
declare const focused_6 = "data-focused";
|
|
263
|
+
|
|
264
|
+
declare const focusOut: 'focus-out';
|
|
145
265
|
|
|
146
266
|
declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
|
|
147
267
|
ref?: React_2.Ref<T> | undefined;
|
|
148
268
|
};
|
|
149
269
|
|
|
150
|
-
declare const imperativeAction:
|
|
270
|
+
declare const imperativeAction: 'imperative-action';
|
|
151
271
|
|
|
152
|
-
declare const incrementPress:
|
|
272
|
+
declare const incrementPress: 'increment-press';
|
|
153
273
|
|
|
154
|
-
|
|
274
|
+
/**
|
|
275
|
+
* Indicates the index of the thumb in range sliders.
|
|
276
|
+
*/
|
|
277
|
+
declare const index = "data-index";
|
|
155
278
|
|
|
156
|
-
declare const
|
|
279
|
+
declare const initial: 'initial';
|
|
157
280
|
|
|
158
|
-
declare const
|
|
281
|
+
declare const inputBlur: 'input-blur';
|
|
159
282
|
|
|
160
|
-
declare const
|
|
283
|
+
declare const inputChange: 'input-change';
|
|
161
284
|
|
|
162
|
-
declare const
|
|
285
|
+
declare const inputClear: 'input-clear';
|
|
163
286
|
|
|
164
|
-
declare const
|
|
287
|
+
declare const inputPaste: 'input-paste';
|
|
165
288
|
|
|
166
|
-
declare const
|
|
289
|
+
declare const inputPress: 'input-press';
|
|
167
290
|
|
|
168
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Present when the slider is in an invalid state (when wrapped in Field.Root).
|
|
293
|
+
*/
|
|
294
|
+
declare const invalid = "data-invalid";
|
|
169
295
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
}
|
|
296
|
+
/**
|
|
297
|
+
* Present when the slider is in an invalid state (when wrapped in Field.Root).
|
|
298
|
+
*/
|
|
299
|
+
declare const invalid_2 = "data-invalid";
|
|
189
300
|
|
|
190
301
|
/**
|
|
191
|
-
*
|
|
192
|
-
* with an accessible name (label) and description.
|
|
302
|
+
* Present when the slider is in an invalid state (when wrapped in Field.Root).
|
|
193
303
|
*/
|
|
194
|
-
declare const
|
|
304
|
+
declare const invalid_3 = "data-invalid";
|
|
195
305
|
|
|
196
|
-
|
|
306
|
+
/**
|
|
307
|
+
* Present when the slider is in an invalid state (when wrapped in Field.Root).
|
|
308
|
+
*/
|
|
309
|
+
declare const invalid_4 = "data-invalid";
|
|
197
310
|
|
|
198
|
-
|
|
311
|
+
/**
|
|
312
|
+
* Present when the slider is in an invalid state (when wrapped in Field.Root).
|
|
313
|
+
*/
|
|
314
|
+
declare const invalid_5 = "data-invalid";
|
|
199
315
|
|
|
200
|
-
|
|
316
|
+
/**
|
|
317
|
+
* Present when the slider is in an invalid state (when wrapped in Field.Root).
|
|
318
|
+
*/
|
|
319
|
+
declare const invalid_6 = "data-invalid";
|
|
320
|
+
|
|
321
|
+
declare const itemPress: 'item-press';
|
|
322
|
+
|
|
323
|
+
declare const keyboard: 'keyboard';
|
|
324
|
+
|
|
325
|
+
declare const linkPress: 'link-press';
|
|
326
|
+
|
|
327
|
+
declare const listNavigation: 'list-navigation';
|
|
328
|
+
|
|
329
|
+
declare const missing: 'missing';
|
|
201
330
|
|
|
202
|
-
declare const none:
|
|
331
|
+
declare const none: 'none';
|
|
203
332
|
|
|
204
333
|
declare type Orientation = 'horizontal' | 'vertical';
|
|
205
334
|
|
|
206
|
-
|
|
335
|
+
/**
|
|
336
|
+
* Indicates the orientation of the slider.
|
|
337
|
+
* @type {'horizontal' | 'vertical'}
|
|
338
|
+
*/
|
|
339
|
+
declare const orientation_2 = "data-orientation";
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Indicates the orientation of the slider.
|
|
343
|
+
* @type {'horizontal' | 'vertical'}
|
|
344
|
+
*/
|
|
345
|
+
declare const orientation_3 = "data-orientation";
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Indicates the orientation of the slider.
|
|
349
|
+
* @type {'horizontal' | 'vertical'}
|
|
350
|
+
*/
|
|
351
|
+
declare const orientation_4 = "data-orientation";
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Indicates the orientation of the slider.
|
|
355
|
+
* @type {'horizontal' | 'vertical'}
|
|
356
|
+
*/
|
|
357
|
+
declare const orientation_5 = "data-orientation";
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Indicates the orientation of the slider.
|
|
361
|
+
* @type {'horizontal' | 'vertical'}
|
|
362
|
+
*/
|
|
363
|
+
declare const orientation_6 = "data-orientation";
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Indicates the orientation of the slider.
|
|
367
|
+
* @type {'horizontal' | 'vertical'}
|
|
368
|
+
*/
|
|
369
|
+
declare const orientation_7 = "data-orientation";
|
|
207
370
|
|
|
208
|
-
declare const
|
|
371
|
+
declare const outsidePress: 'outside-press';
|
|
372
|
+
|
|
373
|
+
declare const pointer: 'pointer';
|
|
374
|
+
|
|
375
|
+
declare const popupClose: 'popup-close';
|
|
209
376
|
|
|
210
377
|
declare namespace REASONS {
|
|
211
378
|
export {
|
|
@@ -236,6 +403,7 @@ declare namespace REASONS {
|
|
|
236
403
|
drag,
|
|
237
404
|
wheel,
|
|
238
405
|
scrub,
|
|
406
|
+
popupClose,
|
|
239
407
|
cancelOpen,
|
|
240
408
|
siblingOpen,
|
|
241
409
|
disabled,
|
|
@@ -296,9 +464,9 @@ declare type RootProps<Value extends number | ReadonlyArray<number>> = WithStrin
|
|
|
296
464
|
size?: number;
|
|
297
465
|
};
|
|
298
466
|
|
|
299
|
-
declare const scrub:
|
|
467
|
+
declare const scrub: 'scrub';
|
|
300
468
|
|
|
301
|
-
declare const siblingOpen:
|
|
469
|
+
declare const siblingOpen: 'sibling-open';
|
|
302
470
|
|
|
303
471
|
export declare const Slider: {
|
|
304
472
|
Label: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SliderLabelProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
@@ -347,6 +515,19 @@ export declare namespace SliderControl {
|
|
|
347
515
|
export type Props = SliderControlProps;
|
|
348
516
|
}
|
|
349
517
|
|
|
518
|
+
export declare namespace SliderControlDataAttributes {
|
|
519
|
+
export {
|
|
520
|
+
dragging_3 as dragging,
|
|
521
|
+
orientation_4 as orientation,
|
|
522
|
+
disabled_4 as disabled,
|
|
523
|
+
valid_3 as valid,
|
|
524
|
+
invalid_3 as invalid,
|
|
525
|
+
touched_3 as touched,
|
|
526
|
+
dirty_3 as dirty,
|
|
527
|
+
focused_3 as focused
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
350
531
|
export declare interface SliderControlProps extends BaseUIComponentProps<'div', SliderControlState> {}
|
|
351
532
|
|
|
352
533
|
export declare interface SliderControlState extends SliderRootState {}
|
|
@@ -364,6 +545,19 @@ export declare namespace SliderIndicator {
|
|
|
364
545
|
export type Props = SliderIndicatorProps;
|
|
365
546
|
}
|
|
366
547
|
|
|
548
|
+
export declare namespace SliderIndicatorDataAttributes {
|
|
549
|
+
export {
|
|
550
|
+
dragging_6 as dragging,
|
|
551
|
+
orientation_7 as orientation,
|
|
552
|
+
disabled_7 as disabled,
|
|
553
|
+
valid_6 as valid,
|
|
554
|
+
invalid_6 as invalid,
|
|
555
|
+
touched_6 as touched,
|
|
556
|
+
dirty_6 as dirty,
|
|
557
|
+
focused_6 as focused
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
367
561
|
export declare interface SliderIndicatorProps extends BaseUIComponentProps<'div', SliderIndicatorState> {}
|
|
368
562
|
|
|
369
563
|
export declare interface SliderIndicatorState extends SliderRootState {}
|
|
@@ -421,6 +615,19 @@ export declare type SliderRootCommitEventDetails = BaseUIGenericEventDetails<Sli
|
|
|
421
615
|
|
|
422
616
|
export declare type SliderRootCommitEventReason = typeof REASONS.inputChange | typeof REASONS.trackPress | typeof REASONS.drag | typeof REASONS.keyboard | typeof REASONS.none;
|
|
423
617
|
|
|
618
|
+
export declare namespace SliderRootDataAttributes {
|
|
619
|
+
export {
|
|
620
|
+
dragging,
|
|
621
|
+
orientation_2 as orientation,
|
|
622
|
+
disabled_2 as disabled,
|
|
623
|
+
valid,
|
|
624
|
+
invalid,
|
|
625
|
+
touched,
|
|
626
|
+
dirty,
|
|
627
|
+
focused
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
424
631
|
export declare interface SliderRootProps<Value extends number | readonly number[] = number | readonly number[]> extends BaseUIComponentProps<'div', SliderRootState> {
|
|
425
632
|
/**
|
|
426
633
|
* The uncontrolled value of the slider when it's initially rendered.
|
|
@@ -434,7 +641,7 @@ export declare interface SliderRootProps<Value extends number | readonly number[
|
|
|
434
641
|
*/
|
|
435
642
|
disabled?: boolean | undefined;
|
|
436
643
|
/**
|
|
437
|
-
* Options to format the
|
|
644
|
+
* Options to format the value.
|
|
438
645
|
*/
|
|
439
646
|
format?: Intl.NumberFormatOptions | undefined;
|
|
440
647
|
/**
|
|
@@ -505,12 +712,14 @@ export declare interface SliderRootProps<Value extends number | readonly number[
|
|
|
505
712
|
thumbCollisionBehavior?: 'push' | 'swap' | 'none' | undefined;
|
|
506
713
|
/**
|
|
507
714
|
* The value of the slider.
|
|
508
|
-
* For
|
|
715
|
+
* For range sliders, provide an array with one value per thumb.
|
|
509
716
|
*/
|
|
510
717
|
value?: Value | undefined;
|
|
511
718
|
/**
|
|
512
719
|
* Callback function that is fired when the slider's value changed.
|
|
513
|
-
*
|
|
720
|
+
* Receives the new value as the first argument; the originating event is
|
|
721
|
+
* available as `eventDetails.event`. The value is also reflected on
|
|
722
|
+
* `eventDetails.event.target.value` for form integration.
|
|
514
723
|
*
|
|
515
724
|
* The `eventDetails.reason` indicates what triggered the change:
|
|
516
725
|
*
|
|
@@ -522,8 +731,9 @@ export declare interface SliderRootProps<Value extends number | readonly number[
|
|
|
522
731
|
*/
|
|
523
732
|
onValueChange?: ((value: Value extends number ? number : Value, eventDetails: SliderRoot.ChangeEventDetails) => void) | undefined;
|
|
524
733
|
/**
|
|
525
|
-
* Callback function that is fired when
|
|
526
|
-
*
|
|
734
|
+
* Callback function that is fired when a value change is committed.
|
|
735
|
+
* Does not fire if the value did not change, or if the change was canceled.
|
|
736
|
+
* **Warning**: This is a generic event, not a change event.
|
|
527
737
|
*
|
|
528
738
|
* The `eventDetails.reason` indicates what triggered the commit:
|
|
529
739
|
*
|
|
@@ -597,12 +807,31 @@ export declare namespace SliderThumb {
|
|
|
597
807
|
export type Props = SliderThumbProps;
|
|
598
808
|
}
|
|
599
809
|
|
|
600
|
-
export declare
|
|
810
|
+
export declare namespace SliderThumbDataAttributes {
|
|
811
|
+
export {
|
|
812
|
+
index,
|
|
813
|
+
dragging_5 as dragging,
|
|
814
|
+
orientation_6 as orientation,
|
|
815
|
+
disabled_6 as disabled,
|
|
816
|
+
valid_5 as valid,
|
|
817
|
+
invalid_5 as invalid,
|
|
818
|
+
touched_5 as touched,
|
|
819
|
+
dirty_5 as dirty,
|
|
820
|
+
focused_5 as focused
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export declare interface SliderThumbProps extends Omit<BaseUIComponentProps<'div', SliderThumbState>, 'onBlur' | 'onFocus' | 'onKeyDown'> {
|
|
601
825
|
/**
|
|
602
826
|
* Whether the thumb should ignore user interaction.
|
|
603
827
|
* @default false
|
|
604
828
|
*/
|
|
605
829
|
disabled?: boolean | undefined;
|
|
830
|
+
/**
|
|
831
|
+
* A string value forwarded to the [`aria-valuetext`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuetext) attribute of the `input`.
|
|
832
|
+
* Ignored when `getAriaValueText` is provided.
|
|
833
|
+
*/
|
|
834
|
+
'aria-valuetext'?: React_2.AriaAttributes['aria-valuetext'] | undefined;
|
|
606
835
|
/**
|
|
607
836
|
* 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
837
|
*/
|
|
@@ -638,6 +867,10 @@ export declare interface SliderThumbProps extends Omit<BaseUIComponentProps<'div
|
|
|
638
867
|
* A focus handler forwarded to the `input`.
|
|
639
868
|
*/
|
|
640
869
|
onFocus?: React_2.FocusEventHandler<HTMLInputElement> | undefined;
|
|
870
|
+
/**
|
|
871
|
+
* A keydown handler forwarded to the `input`.
|
|
872
|
+
*/
|
|
873
|
+
onKeyDown?: React_2.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
641
874
|
/**
|
|
642
875
|
* Optional tab index attribute forwarded to the `input`.
|
|
643
876
|
*/
|
|
@@ -659,6 +892,19 @@ export declare namespace SliderTrack {
|
|
|
659
892
|
export type Props = SliderTrackProps;
|
|
660
893
|
}
|
|
661
894
|
|
|
895
|
+
export declare namespace SliderTrackDataAttributes {
|
|
896
|
+
export {
|
|
897
|
+
dragging_4 as dragging,
|
|
898
|
+
orientation_5 as orientation,
|
|
899
|
+
disabled_5 as disabled,
|
|
900
|
+
valid_4 as valid,
|
|
901
|
+
invalid_4 as invalid,
|
|
902
|
+
touched_4 as touched,
|
|
903
|
+
dirty_4 as dirty,
|
|
904
|
+
focused_4 as focused
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
662
908
|
export declare interface SliderTrackProps extends BaseUIComponentProps<'div', SliderTrackState> {}
|
|
663
909
|
|
|
664
910
|
export declare interface SliderTrackState extends SliderRootState {}
|
|
@@ -676,29 +922,102 @@ export declare namespace SliderValue {
|
|
|
676
922
|
export type Props = SliderValueProps;
|
|
677
923
|
}
|
|
678
924
|
|
|
925
|
+
export declare namespace SliderValueDataAttributes {
|
|
926
|
+
export {
|
|
927
|
+
dragging_2 as dragging,
|
|
928
|
+
orientation_3 as orientation,
|
|
929
|
+
disabled_3 as disabled,
|
|
930
|
+
valid_2 as valid,
|
|
931
|
+
invalid_2 as invalid,
|
|
932
|
+
touched_2 as touched,
|
|
933
|
+
dirty_2 as dirty,
|
|
934
|
+
focused_2 as focused
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
679
938
|
export declare interface SliderValueProps extends Omit<BaseUIComponentProps<'output', SliderValueState>, 'children'> {
|
|
680
939
|
children?: null | ((formattedValues: readonly string[], values: readonly number[]) => React_2.ReactNode) | undefined;
|
|
681
940
|
}
|
|
682
941
|
|
|
683
942
|
export declare interface SliderValueState extends SliderRootState {}
|
|
684
943
|
|
|
685
|
-
declare const swipe:
|
|
944
|
+
declare const swipe: 'swipe';
|
|
686
945
|
|
|
687
946
|
export declare interface ThumbMetadata {
|
|
688
|
-
inputId:
|
|
947
|
+
inputId: string | undefined;
|
|
689
948
|
}
|
|
690
949
|
|
|
691
|
-
|
|
950
|
+
/**
|
|
951
|
+
* Present when the slider has been touched (when wrapped in Field.Root).
|
|
952
|
+
*/
|
|
953
|
+
declare const touched = "data-touched";
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Present when the slider has been touched (when wrapped in Field.Root).
|
|
957
|
+
*/
|
|
958
|
+
declare const touched_2 = "data-touched";
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Present when the slider has been touched (when wrapped in Field.Root).
|
|
962
|
+
*/
|
|
963
|
+
declare const touched_3 = "data-touched";
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Present when the slider has been touched (when wrapped in Field.Root).
|
|
967
|
+
*/
|
|
968
|
+
declare const touched_4 = "data-touched";
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Present when the slider has been touched (when wrapped in Field.Root).
|
|
972
|
+
*/
|
|
973
|
+
declare const touched_5 = "data-touched";
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Present when the slider has been touched (when wrapped in Field.Root).
|
|
977
|
+
*/
|
|
978
|
+
declare const touched_6 = "data-touched";
|
|
979
|
+
|
|
980
|
+
declare const trackPress: 'track-press';
|
|
981
|
+
|
|
982
|
+
declare const triggerFocus: 'trigger-focus';
|
|
983
|
+
|
|
984
|
+
declare const triggerHover: 'trigger-hover';
|
|
985
|
+
|
|
986
|
+
declare const triggerPress: 'trigger-press';
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Present when the slider is in a valid state (when wrapped in Field.Root).
|
|
990
|
+
*/
|
|
991
|
+
declare const valid = "data-valid";
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Present when the slider is in a valid state (when wrapped in Field.Root).
|
|
995
|
+
*/
|
|
996
|
+
declare const valid_2 = "data-valid";
|
|
692
997
|
|
|
693
|
-
|
|
998
|
+
/**
|
|
999
|
+
* Present when the slider is in a valid state (when wrapped in Field.Root).
|
|
1000
|
+
*/
|
|
1001
|
+
declare const valid_3 = "data-valid";
|
|
694
1002
|
|
|
695
|
-
|
|
1003
|
+
/**
|
|
1004
|
+
* Present when the slider is in a valid state (when wrapped in Field.Root).
|
|
1005
|
+
*/
|
|
1006
|
+
declare const valid_4 = "data-valid";
|
|
696
1007
|
|
|
697
|
-
|
|
1008
|
+
/**
|
|
1009
|
+
* Present when the slider is in a valid state (when wrapped in Field.Root).
|
|
1010
|
+
*/
|
|
1011
|
+
declare const valid_5 = "data-valid";
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Present when the slider is in a valid state (when wrapped in Field.Root).
|
|
1015
|
+
*/
|
|
1016
|
+
declare const valid_6 = "data-valid";
|
|
698
1017
|
|
|
699
|
-
declare const wheel:
|
|
1018
|
+
declare const wheel: 'wheel';
|
|
700
1019
|
|
|
701
|
-
declare const windowResize:
|
|
1020
|
+
declare const windowResize: 'window-resize';
|
|
702
1021
|
|
|
703
1022
|
/**
|
|
704
1023
|
* Adds a `preventBaseUIHandler` method to all event handlers.
|