@mesh.ai/rabbit 0.0.49 → 0.0.50
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/@mesh.ai/rabbit.es.js +7986 -11658
- package/dist/@mesh.ai/rabbit.umd.js +34 -34
- package/dist/index.d.ts +776 -151
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,46 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
-
import { CreateScope } from '@radix-ui/react-context';
|
|
4
|
-
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
|
5
3
|
import { FC } from 'react';
|
|
6
|
-
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
7
4
|
import { ForwardRefExoticComponent } from 'react';
|
|
8
5
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
9
|
-
import
|
|
10
|
-
import * as PopperPrimitive from '@radix-ui/react-popper';
|
|
11
|
-
import { Portal as Portal_2 } from '@radix-ui/react-portal';
|
|
12
|
-
import { Primitive } from '@radix-ui/react-primitive';
|
|
13
|
-
import * as Radix from '@radix-ui/react-primitive';
|
|
6
|
+
import { Measurable } from '@radix-ui/rect';
|
|
14
7
|
import * as React_2 from 'react';
|
|
15
8
|
import { ReactElement } from 'react';
|
|
16
9
|
import { RefAttributes } from 'react';
|
|
17
|
-
import * as RovingFocusGroup from '@radix-ui/react-roving-focus';
|
|
18
10
|
|
|
19
|
-
declare
|
|
11
|
+
declare type Align = typeof ALIGN_OPTIONS[number];
|
|
20
12
|
|
|
21
|
-
declare const
|
|
13
|
+
declare const ALIGN_OPTIONS: readonly ["start", "center", "end"];
|
|
22
14
|
|
|
23
|
-
declare const
|
|
15
|
+
declare const Anchor: React_2.ForwardRefExoticComponent<PopperAnchorProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
|
|
17
|
+
declare const Anchor_2: React_2.ForwardRefExoticComponent<MenuAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
|
|
19
|
+
declare const Arrow: React_2.ForwardRefExoticComponent<ArrowProps_2 & React_2.RefAttributes<SVGSVGElement>>;
|
|
20
|
+
|
|
21
|
+
declare const Arrow_2: React_2.ForwardRefExoticComponent<PopperArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
22
|
+
|
|
23
|
+
declare const Arrow_3: React_2.ForwardRefExoticComponent<MenuArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
24
|
+
|
|
25
|
+
declare const Arrow_4: React_2.ForwardRefExoticComponent<DropdownMenuArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
26
|
+
|
|
27
|
+
declare const Arrow_5: React_2.ForwardRefExoticComponent<SelectArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
28
|
+
|
|
29
|
+
declare const Arrow_6: React_2.ForwardRefExoticComponent<TooltipArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
30
|
+
|
|
31
|
+
declare namespace ArrowPrimitive {
|
|
32
|
+
export {
|
|
33
|
+
PrimitiveSvgProps,
|
|
34
|
+
ArrowProps_2 as ArrowProps,
|
|
35
|
+
Arrow,
|
|
36
|
+
Root_3 as Root
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare type ArrowProps = Radix.ComponentPropsWithoutRef<typeof ArrowPrimitive.Root>;
|
|
41
|
+
|
|
42
|
+
declare interface ArrowProps_2 extends PrimitiveSvgProps {
|
|
43
|
+
}
|
|
24
44
|
|
|
25
45
|
declare interface AxisSymbolType {
|
|
26
46
|
symbol: string;
|
|
@@ -32,6 +52,8 @@ declare interface AxisSymbolType_2 {
|
|
|
32
52
|
position: 'pre' | 'post';
|
|
33
53
|
}
|
|
34
54
|
|
|
55
|
+
declare type Boundary = Element | null;
|
|
56
|
+
|
|
35
57
|
export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
36
58
|
|
|
37
59
|
export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -92,7 +114,9 @@ declare interface CheckboxIndicatorProps extends PrimitiveSpanProps {
|
|
|
92
114
|
forceMount?: true;
|
|
93
115
|
}
|
|
94
116
|
|
|
95
|
-
declare const CheckboxItem: React_2.ForwardRefExoticComponent<
|
|
117
|
+
declare const CheckboxItem: React_2.ForwardRefExoticComponent<MenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
118
|
+
|
|
119
|
+
declare const CheckboxItem_2: React_2.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
96
120
|
|
|
97
121
|
declare namespace CheckboxPrimitive {
|
|
98
122
|
export {
|
|
@@ -104,7 +128,7 @@ declare namespace CheckboxPrimitive {
|
|
|
104
128
|
PrimitiveSpanProps,
|
|
105
129
|
CheckboxIndicatorProps,
|
|
106
130
|
CheckboxIndicator,
|
|
107
|
-
Root,
|
|
131
|
+
Root_2 as Root,
|
|
108
132
|
Indicator
|
|
109
133
|
}
|
|
110
134
|
}
|
|
@@ -118,6 +142,8 @@ declare interface CheckboxProps extends Omit<PrimitiveButtonProps, 'checked' | '
|
|
|
118
142
|
|
|
119
143
|
declare type CheckedState = boolean | 'indeterminate';
|
|
120
144
|
|
|
145
|
+
declare type CheckedState_2 = boolean | 'indeterminate';
|
|
146
|
+
|
|
121
147
|
export declare function Chip({ icon, count, label, selected, onSelectedChange }: ChipProps): JSX_2.Element;
|
|
122
148
|
|
|
123
149
|
export declare function ChipGroup({ children, ...props }: (ToggleGroupSingleProps | ToggleGroupMultipleProps) & {
|
|
@@ -153,16 +179,33 @@ declare namespace CLSX {
|
|
|
153
179
|
}
|
|
154
180
|
}
|
|
155
181
|
|
|
156
|
-
declare
|
|
182
|
+
declare type ComponentPropsWithoutRef<T extends React_2.ElementType> = PropsWithoutRef<React_2.ComponentProps<T>>;
|
|
183
|
+
|
|
184
|
+
declare const Content: React_2.ForwardRefExoticComponent<PopperContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
185
|
+
|
|
186
|
+
declare const Content_2: React_2.ForwardRefExoticComponent<MenuContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
157
187
|
|
|
158
|
-
declare const
|
|
188
|
+
declare const Content_3: React_2.ForwardRefExoticComponent<DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
159
189
|
|
|
160
|
-
declare const
|
|
190
|
+
declare const Content_4: React_2.ForwardRefExoticComponent<SelectContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
191
|
+
|
|
192
|
+
declare const Content_5: React_2.ForwardRefExoticComponent<TooltipContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
161
193
|
|
|
162
194
|
declare const createCheckboxScope: CreateScope;
|
|
163
195
|
|
|
164
196
|
declare const createDropdownMenuScope: CreateScope;
|
|
165
197
|
|
|
198
|
+
declare const createMenuScope: CreateScope;
|
|
199
|
+
|
|
200
|
+
declare const createPopperScope: CreateScope;
|
|
201
|
+
|
|
202
|
+
declare const createRovingFocusGroupScope: CreateScope;
|
|
203
|
+
|
|
204
|
+
declare interface CreateScope {
|
|
205
|
+
scopeName: string;
|
|
206
|
+
(): ScopeHook;
|
|
207
|
+
}
|
|
208
|
+
|
|
166
209
|
declare const createSelectScope: CreateScope;
|
|
167
210
|
|
|
168
211
|
declare const createTooltipScope: CreateScope;
|
|
@@ -171,9 +214,89 @@ declare type Direction = 'ltr' | 'rtl';
|
|
|
171
214
|
|
|
172
215
|
declare type Direction_2 = 'ltr' | 'rtl';
|
|
173
216
|
|
|
174
|
-
declare type
|
|
217
|
+
declare type Direction_3 = 'ltr' | 'rtl';
|
|
218
|
+
|
|
219
|
+
declare type Direction_4 = 'ltr' | 'rtl';
|
|
220
|
+
|
|
221
|
+
declare const DismissableLayer: React_2.ForwardRefExoticComponent<DismissableLayerProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
175
222
|
|
|
176
|
-
declare type
|
|
223
|
+
declare type DismissableLayerProps = Radix.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
224
|
+
|
|
225
|
+
declare interface DismissableLayerProps_2 extends PrimitiveDivProps_4 {
|
|
226
|
+
/**
|
|
227
|
+
* When `true`, hover/focus/click interactions will be disabled on elements outside
|
|
228
|
+
* the `DismissableLayer`. Users will need to click twice on outside elements to
|
|
229
|
+
* interact with them: once to close the `DismissableLayer`, and again to trigger the element.
|
|
230
|
+
*/
|
|
231
|
+
disableOutsidePointerEvents?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Event handler called when the escape key is down.
|
|
234
|
+
* Can be prevented.
|
|
235
|
+
*/
|
|
236
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
237
|
+
/**
|
|
238
|
+
* Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
239
|
+
* Can be prevented.
|
|
240
|
+
*/
|
|
241
|
+
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
242
|
+
/**
|
|
243
|
+
* Event handler called when the focus moves outside of the `DismissableLayer`.
|
|
244
|
+
* Can be prevented.
|
|
245
|
+
*/
|
|
246
|
+
onFocusOutside?: (event: FocusOutsideEvent) => void;
|
|
247
|
+
/**
|
|
248
|
+
* Event handler called when an interaction happens outside the `DismissableLayer`.
|
|
249
|
+
* Specifically, when a `pointerdown` event happens outside or focus moves outside of it.
|
|
250
|
+
* Can be prevented.
|
|
251
|
+
*/
|
|
252
|
+
onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;
|
|
253
|
+
/**
|
|
254
|
+
* Handler called when the `DismissableLayer` should be dismissed
|
|
255
|
+
*/
|
|
256
|
+
onDismiss?: () => void;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
declare type DismissableLayerProps_3 = React_2.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
260
|
+
|
|
261
|
+
declare type DismissableLayerProps_4 = Radix.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Flush custom event dispatch
|
|
265
|
+
* https://github.com/radix-ui/primitives/pull/1378
|
|
266
|
+
*
|
|
267
|
+
* React batches *all* event handlers since version 18, this introduces certain considerations when using custom event types.
|
|
268
|
+
*
|
|
269
|
+
* Internally, React prioritises events in the following order:
|
|
270
|
+
* - discrete
|
|
271
|
+
* - continuous
|
|
272
|
+
* - default
|
|
273
|
+
*
|
|
274
|
+
* https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350
|
|
275
|
+
*
|
|
276
|
+
* `discrete` is an important distinction as updates within these events are applied immediately.
|
|
277
|
+
* React however, is not able to infer the priority of custom event types due to how they are detected internally.
|
|
278
|
+
* Because of this, it's possible for updates from custom events to be unexpectedly batched when
|
|
279
|
+
* dispatched by another `discrete` event.
|
|
280
|
+
*
|
|
281
|
+
* In order to ensure that updates from custom events are applied predictably, we need to manually flush the batch.
|
|
282
|
+
* This utility should be used when dispatching a custom event from within another `discrete` event, this utility
|
|
283
|
+
* is not nessesary when dispatching known event types, or if dispatching a custom type inside a non-discrete event.
|
|
284
|
+
* For example:
|
|
285
|
+
*
|
|
286
|
+
* dispatching a known click 👎
|
|
287
|
+
* target.dispatchEvent(new Event(‘click’))
|
|
288
|
+
*
|
|
289
|
+
* dispatching a custom type within a non-discrete event 👎
|
|
290
|
+
* onScroll={(event) => event.target.dispatchEvent(new CustomEvent(‘customType’))}
|
|
291
|
+
*
|
|
292
|
+
* dispatching a custom type within a `discrete` event 👍
|
|
293
|
+
* onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))}
|
|
294
|
+
*
|
|
295
|
+
* Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use
|
|
296
|
+
* this utility with them. This is because it's possible for those handlers to be called implicitly during render
|
|
297
|
+
* e.g. when focus is within a component as it is unmounted, or when managing focus on mount.
|
|
298
|
+
*/
|
|
299
|
+
declare function dispatchDiscreteCustomEvent<E extends CustomEvent>(target: E['target'], event: E): void;
|
|
177
300
|
|
|
178
301
|
declare type DownloadRef = {
|
|
179
302
|
download(): void;
|
|
@@ -195,37 +318,37 @@ declare const DropdownMenu: React_2.FC<DropdownMenuProps>;
|
|
|
195
318
|
|
|
196
319
|
declare const DropdownMenuArrow: React_2.ForwardRefExoticComponent<DropdownMenuArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
197
320
|
|
|
198
|
-
declare interface DropdownMenuArrowProps extends
|
|
321
|
+
declare interface DropdownMenuArrowProps extends MenuArrowProps_2 {
|
|
199
322
|
}
|
|
200
323
|
|
|
201
324
|
declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
202
325
|
|
|
203
|
-
declare interface DropdownMenuCheckboxItemProps extends
|
|
326
|
+
declare interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps_2 {
|
|
204
327
|
}
|
|
205
328
|
|
|
206
329
|
declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
207
330
|
|
|
208
|
-
declare interface DropdownMenuContentProps extends Omit<
|
|
331
|
+
declare interface DropdownMenuContentProps extends Omit<MenuContentProps_2, 'onEntryFocus'> {
|
|
209
332
|
}
|
|
210
333
|
|
|
211
334
|
declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
212
335
|
|
|
213
|
-
declare interface DropdownMenuGroupProps extends
|
|
336
|
+
declare interface DropdownMenuGroupProps extends MenuGroupProps_2 {
|
|
214
337
|
}
|
|
215
338
|
|
|
216
339
|
declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
217
340
|
|
|
218
341
|
declare const DropdownMenuItemIndicator: React_2.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
219
342
|
|
|
220
|
-
declare interface DropdownMenuItemIndicatorProps extends
|
|
343
|
+
declare interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps_2 {
|
|
221
344
|
}
|
|
222
345
|
|
|
223
|
-
declare interface DropdownMenuItemProps extends
|
|
346
|
+
declare interface DropdownMenuItemProps extends MenuItemProps_2 {
|
|
224
347
|
}
|
|
225
348
|
|
|
226
349
|
declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
227
350
|
|
|
228
|
-
declare interface DropdownMenuLabelProps extends
|
|
351
|
+
declare interface DropdownMenuLabelProps extends MenuLabelProps_2 {
|
|
229
352
|
}
|
|
230
353
|
|
|
231
354
|
declare const DropdownMenuPortal: React_2.FC<DropdownMenuPortalProps>;
|
|
@@ -244,24 +367,24 @@ declare interface DropdownMenuProps {
|
|
|
244
367
|
|
|
245
368
|
declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
246
369
|
|
|
247
|
-
declare interface DropdownMenuRadioGroupProps extends
|
|
370
|
+
declare interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps_2 {
|
|
248
371
|
}
|
|
249
372
|
|
|
250
373
|
declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
251
374
|
|
|
252
|
-
declare interface DropdownMenuRadioItemProps extends
|
|
375
|
+
declare interface DropdownMenuRadioItemProps extends MenuRadioItemProps_2 {
|
|
253
376
|
}
|
|
254
377
|
|
|
255
378
|
declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
256
379
|
|
|
257
|
-
declare interface DropdownMenuSeparatorProps extends
|
|
380
|
+
declare interface DropdownMenuSeparatorProps extends MenuSeparatorProps_2 {
|
|
258
381
|
}
|
|
259
382
|
|
|
260
383
|
declare const DropdownMenuSub: React_2.FC<DropdownMenuSubProps>;
|
|
261
384
|
|
|
262
385
|
declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
263
386
|
|
|
264
|
-
declare interface DropdownMenuSubContentProps extends
|
|
387
|
+
declare interface DropdownMenuSubContentProps extends MenuSubContentProps_2 {
|
|
265
388
|
}
|
|
266
389
|
|
|
267
390
|
declare interface DropdownMenuSubProps {
|
|
@@ -273,7 +396,7 @@ declare interface DropdownMenuSubProps {
|
|
|
273
396
|
|
|
274
397
|
declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
275
398
|
|
|
276
|
-
declare interface DropdownMenuSubTriggerProps extends
|
|
399
|
+
declare interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps_2 {
|
|
277
400
|
}
|
|
278
401
|
|
|
279
402
|
declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -295,60 +418,60 @@ declare namespace DropdownPrimitive {
|
|
|
295
418
|
MenuPortalProps,
|
|
296
419
|
DropdownMenuPortalProps,
|
|
297
420
|
DropdownMenuPortal,
|
|
298
|
-
MenuContentProps,
|
|
421
|
+
MenuContentProps_2 as MenuContentProps,
|
|
299
422
|
DropdownMenuContentProps,
|
|
300
423
|
DropdownMenuContent,
|
|
301
|
-
MenuGroupProps,
|
|
424
|
+
MenuGroupProps_2 as MenuGroupProps,
|
|
302
425
|
DropdownMenuGroupProps,
|
|
303
426
|
DropdownMenuGroup,
|
|
304
|
-
MenuLabelProps,
|
|
427
|
+
MenuLabelProps_2 as MenuLabelProps,
|
|
305
428
|
DropdownMenuLabelProps,
|
|
306
429
|
DropdownMenuLabel,
|
|
307
|
-
MenuItemProps,
|
|
430
|
+
MenuItemProps_2 as MenuItemProps,
|
|
308
431
|
DropdownMenuItemProps,
|
|
309
432
|
DropdownMenuItem,
|
|
310
|
-
MenuCheckboxItemProps,
|
|
433
|
+
MenuCheckboxItemProps_2 as MenuCheckboxItemProps,
|
|
311
434
|
DropdownMenuCheckboxItemProps,
|
|
312
435
|
DropdownMenuCheckboxItem,
|
|
313
|
-
MenuRadioGroupProps,
|
|
436
|
+
MenuRadioGroupProps_2 as MenuRadioGroupProps,
|
|
314
437
|
DropdownMenuRadioGroupProps,
|
|
315
438
|
DropdownMenuRadioGroup,
|
|
316
|
-
MenuRadioItemProps,
|
|
439
|
+
MenuRadioItemProps_2 as MenuRadioItemProps,
|
|
317
440
|
DropdownMenuRadioItemProps,
|
|
318
441
|
DropdownMenuRadioItem,
|
|
319
|
-
MenuItemIndicatorProps,
|
|
442
|
+
MenuItemIndicatorProps_2 as MenuItemIndicatorProps,
|
|
320
443
|
DropdownMenuItemIndicatorProps,
|
|
321
444
|
DropdownMenuItemIndicator,
|
|
322
|
-
MenuSeparatorProps,
|
|
445
|
+
MenuSeparatorProps_2 as MenuSeparatorProps,
|
|
323
446
|
DropdownMenuSeparatorProps,
|
|
324
447
|
DropdownMenuSeparator,
|
|
325
|
-
MenuArrowProps,
|
|
448
|
+
MenuArrowProps_2 as MenuArrowProps,
|
|
326
449
|
DropdownMenuArrowProps,
|
|
327
450
|
DropdownMenuArrow,
|
|
328
451
|
DropdownMenuSubProps,
|
|
329
452
|
DropdownMenuSub,
|
|
330
|
-
MenuSubTriggerProps,
|
|
453
|
+
MenuSubTriggerProps_2 as MenuSubTriggerProps,
|
|
331
454
|
DropdownMenuSubTriggerProps,
|
|
332
455
|
DropdownMenuSubTrigger,
|
|
333
|
-
MenuSubContentProps,
|
|
456
|
+
MenuSubContentProps_2 as MenuSubContentProps,
|
|
334
457
|
DropdownMenuSubContentProps,
|
|
335
458
|
DropdownMenuSubContent,
|
|
336
|
-
|
|
459
|
+
Root_7 as Root,
|
|
337
460
|
Trigger,
|
|
338
|
-
Portal,
|
|
339
|
-
Content,
|
|
340
|
-
Group,
|
|
341
|
-
Label,
|
|
342
|
-
Item,
|
|
343
|
-
CheckboxItem,
|
|
344
|
-
RadioGroup,
|
|
345
|
-
RadioItem,
|
|
346
|
-
ItemIndicator,
|
|
347
|
-
Separator,
|
|
348
|
-
Arrow,
|
|
349
|
-
Sub,
|
|
350
|
-
SubTrigger,
|
|
351
|
-
SubContent
|
|
461
|
+
Portal_3 as Portal,
|
|
462
|
+
Content_3 as Content,
|
|
463
|
+
Group_2 as Group,
|
|
464
|
+
Label_2 as Label,
|
|
465
|
+
Item_3 as Item,
|
|
466
|
+
CheckboxItem_2 as CheckboxItem,
|
|
467
|
+
RadioGroup_2 as RadioGroup,
|
|
468
|
+
RadioItem_2 as RadioItem,
|
|
469
|
+
ItemIndicator_2 as ItemIndicator,
|
|
470
|
+
Separator_2 as Separator,
|
|
471
|
+
Arrow_4 as Arrow,
|
|
472
|
+
Sub_2 as Sub,
|
|
473
|
+
SubTrigger_2 as SubTrigger,
|
|
474
|
+
SubContent_2 as SubContent
|
|
352
475
|
}
|
|
353
476
|
}
|
|
354
477
|
|
|
@@ -366,13 +489,48 @@ export declare const DropdownSubTrigger: ForwardRefExoticComponent<Omit<Dropdown
|
|
|
366
489
|
|
|
367
490
|
export declare const DropdownTrigger: ForwardRefExoticComponent<DropdownPrimitive.DropdownMenuTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
368
491
|
|
|
492
|
+
declare type FocusOutsideEvent = CustomEvent<{
|
|
493
|
+
originalEvent: FocusEvent;
|
|
494
|
+
}>;
|
|
495
|
+
|
|
496
|
+
declare const FocusScope: React_2.ForwardRefExoticComponent<FocusScopeProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
497
|
+
|
|
369
498
|
declare type FocusScopeProps = Radix.ComponentPropsWithoutRef<typeof FocusScope>;
|
|
370
499
|
|
|
371
|
-
declare
|
|
500
|
+
declare interface FocusScopeProps_2 extends PrimitiveDivProps_3 {
|
|
501
|
+
/**
|
|
502
|
+
* When `true`, tabbing from last item will focus first tabbable
|
|
503
|
+
* and shift+tab from first item will focus last tababble.
|
|
504
|
+
* @defaultValue false
|
|
505
|
+
*/
|
|
506
|
+
loop?: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* When `true`, focus cannot escape the focus scope via keyboard,
|
|
509
|
+
* pointer, or a programmatic focus.
|
|
510
|
+
* @defaultValue false
|
|
511
|
+
*/
|
|
512
|
+
trapped?: boolean;
|
|
513
|
+
/**
|
|
514
|
+
* Event handler called when auto-focusing on mount.
|
|
515
|
+
* Can be prevented.
|
|
516
|
+
*/
|
|
517
|
+
onMountAutoFocus?: (event: Event) => void;
|
|
518
|
+
/**
|
|
519
|
+
* Event handler called when auto-focusing on unmount.
|
|
520
|
+
* Can be prevented.
|
|
521
|
+
*/
|
|
522
|
+
onUnmountAutoFocus?: (event: Event) => void;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare type FocusScopeProps_3 = Radix.ComponentPropsWithoutRef<typeof FocusScope>;
|
|
372
526
|
|
|
373
|
-
declare const
|
|
527
|
+
declare const Group: React_2.ForwardRefExoticComponent<MenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
374
528
|
|
|
375
|
-
declare
|
|
529
|
+
declare const Group_2: React_2.ForwardRefExoticComponent<DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
530
|
+
|
|
531
|
+
declare const Group_3: React_2.ForwardRefExoticComponent<SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
532
|
+
|
|
533
|
+
declare interface Group_4 {
|
|
376
534
|
/** Group ID */
|
|
377
535
|
id: number;
|
|
378
536
|
/** Name of the Group */
|
|
@@ -422,19 +580,27 @@ declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
422
580
|
className?: string;
|
|
423
581
|
}
|
|
424
582
|
|
|
425
|
-
declare const Item: React_2.ForwardRefExoticComponent<
|
|
583
|
+
declare const Item: React_2.ForwardRefExoticComponent<RovingFocusItemProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
584
|
+
|
|
585
|
+
declare const Item_2: React_2.ForwardRefExoticComponent<MenuItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
426
586
|
|
|
427
|
-
declare const
|
|
587
|
+
declare const Item_3: React_2.ForwardRefExoticComponent<DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
428
588
|
|
|
429
|
-
declare const
|
|
589
|
+
declare const Item_4: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
430
590
|
|
|
431
|
-
declare const
|
|
591
|
+
declare const ItemIndicator: React_2.ForwardRefExoticComponent<MenuItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
592
|
+
|
|
593
|
+
declare const ItemIndicator_2: React_2.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
594
|
+
|
|
595
|
+
declare const ItemIndicator_3: React_2.ForwardRefExoticComponent<SelectItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
432
596
|
|
|
433
597
|
declare const ItemText: React_2.ForwardRefExoticComponent<SelectItemTextProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
434
598
|
|
|
435
|
-
declare const Label: React_2.ForwardRefExoticComponent<
|
|
599
|
+
declare const Label: React_2.ForwardRefExoticComponent<MenuLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
600
|
+
|
|
601
|
+
declare const Label_2: React_2.ForwardRefExoticComponent<DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
436
602
|
|
|
437
|
-
declare const
|
|
603
|
+
declare const Label_3: React_2.ForwardRefExoticComponent<SelectLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
438
604
|
|
|
439
605
|
export declare const LineChart: ForwardRefExoticComponent<Omit<LineChartProps, "height" | "width"> & RefAttributes<DownloadRef>>;
|
|
440
606
|
|
|
@@ -489,31 +655,266 @@ declare interface Link {
|
|
|
489
655
|
weight: number;
|
|
490
656
|
}
|
|
491
657
|
|
|
492
|
-
declare
|
|
658
|
+
declare const Menu: React_2.FC<MenuProps>;
|
|
659
|
+
|
|
660
|
+
declare const MenuAnchor: React_2.ForwardRefExoticComponent<MenuAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
661
|
+
|
|
662
|
+
declare interface MenuAnchorProps extends PopperAnchorProps {
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
declare const MenuArrow: React_2.ForwardRefExoticComponent<MenuArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
666
|
+
|
|
667
|
+
declare interface MenuArrowProps extends PopperArrowProps_2 {
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
declare type MenuArrowProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
671
|
+
|
|
672
|
+
declare const MenuCheckboxItem: React_2.ForwardRefExoticComponent<MenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
673
|
+
|
|
674
|
+
declare interface MenuCheckboxItemProps extends MenuItemProps {
|
|
675
|
+
checked?: CheckedState_2;
|
|
676
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
declare type MenuCheckboxItemProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
680
|
+
|
|
681
|
+
declare const MenuContent: React_2.ForwardRefExoticComponent<MenuContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
682
|
+
|
|
683
|
+
declare type MenuContentImplPrivateProps = {
|
|
684
|
+
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
|
|
685
|
+
onDismiss?: DismissableLayerProps['onDismiss'];
|
|
686
|
+
disableOutsidePointerEvents?: DismissableLayerProps['disableOutsidePointerEvents'];
|
|
687
|
+
/**
|
|
688
|
+
* Whether scrolling outside the `MenuContent` should be prevented
|
|
689
|
+
* (default: `false`)
|
|
690
|
+
*/
|
|
691
|
+
disableOutsideScroll?: boolean;
|
|
692
|
+
/**
|
|
693
|
+
* Whether focus should be trapped within the `MenuContent`
|
|
694
|
+
* (default: false)
|
|
695
|
+
*/
|
|
696
|
+
trapFocus?: FocusScopeProps['trapped'];
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
declare interface MenuContentImplProps extends MenuContentImplPrivateProps, Omit<PopperContentProps_2, 'dir' | 'onPlaced'> {
|
|
700
|
+
/**
|
|
701
|
+
* Event handler called when auto-focusing on close.
|
|
702
|
+
* Can be prevented.
|
|
703
|
+
*/
|
|
704
|
+
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
|
705
|
+
/**
|
|
706
|
+
* Whether keyboard navigation should loop around
|
|
707
|
+
* @defaultValue false
|
|
708
|
+
*/
|
|
709
|
+
loop?: RovingFocusGroupProps['loop'];
|
|
710
|
+
onEntryFocus?: RovingFocusGroupProps['onEntryFocus'];
|
|
711
|
+
onEscapeKeyDown?: DismissableLayerProps['onEscapeKeyDown'];
|
|
712
|
+
onPointerDownOutside?: DismissableLayerProps['onPointerDownOutside'];
|
|
713
|
+
onFocusOutside?: DismissableLayerProps['onFocusOutside'];
|
|
714
|
+
onInteractOutside?: DismissableLayerProps['onInteractOutside'];
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* We purposefully don't union MenuRootContent and MenuSubContent props here because
|
|
719
|
+
* they have conflicting prop types. We agreed that we would allow MenuSubContent to
|
|
720
|
+
* accept props that it would just ignore.
|
|
721
|
+
*/
|
|
722
|
+
declare interface MenuContentProps extends MenuRootContentTypeProps {
|
|
723
|
+
/**
|
|
724
|
+
* Used to force mounting when more control is needed. Useful when
|
|
725
|
+
* controlling animation with React animation libraries.
|
|
726
|
+
*/
|
|
727
|
+
forceMount?: true;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
declare type MenuContentProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
493
731
|
|
|
494
|
-
declare
|
|
732
|
+
declare const MenuGroup: React_2.ForwardRefExoticComponent<MenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
495
733
|
|
|
496
|
-
declare
|
|
734
|
+
declare interface MenuGroupProps extends PrimitiveDivProps_6 {
|
|
735
|
+
}
|
|
497
736
|
|
|
498
|
-
declare type
|
|
737
|
+
declare type MenuGroupProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
499
738
|
|
|
500
|
-
declare
|
|
739
|
+
declare const MenuItem: React_2.ForwardRefExoticComponent<MenuItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
501
740
|
|
|
502
|
-
declare
|
|
741
|
+
declare interface MenuItemImplProps extends PrimitiveDivProps_6 {
|
|
742
|
+
disabled?: boolean;
|
|
743
|
+
textValue?: string;
|
|
744
|
+
}
|
|
503
745
|
|
|
504
|
-
declare
|
|
746
|
+
declare const MenuItemIndicator: React_2.ForwardRefExoticComponent<MenuItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
747
|
+
|
|
748
|
+
declare interface MenuItemIndicatorProps extends PrimitiveSpanProps_3 {
|
|
749
|
+
/**
|
|
750
|
+
* Used to force mounting when more control is needed. Useful when
|
|
751
|
+
* controlling animation with React animation libraries.
|
|
752
|
+
*/
|
|
753
|
+
forceMount?: true;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
declare type MenuItemIndicatorProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
757
|
+
|
|
758
|
+
declare interface MenuItemProps extends Omit<MenuItemImplProps, 'onSelect'> {
|
|
759
|
+
onSelect?: (event: Event) => void;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
declare type MenuItemProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
763
|
+
|
|
764
|
+
declare const MenuLabel: React_2.ForwardRefExoticComponent<MenuLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
765
|
+
|
|
766
|
+
declare interface MenuLabelProps extends PrimitiveDivProps_6 {
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
declare type MenuLabelProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
770
|
+
|
|
771
|
+
declare const MenuPortal: React_2.FC<MenuPortalProps_2>;
|
|
505
772
|
|
|
506
773
|
declare type MenuPortalProps = React_2.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
507
774
|
|
|
508
|
-
declare
|
|
775
|
+
declare interface MenuPortalProps_2 {
|
|
776
|
+
children?: React_2.ReactNode;
|
|
777
|
+
/**
|
|
778
|
+
* Specify a container element to portal the content into.
|
|
779
|
+
*/
|
|
780
|
+
container?: PortalProps['container'];
|
|
781
|
+
/**
|
|
782
|
+
* Used to force mounting when more control is needed. Useful when
|
|
783
|
+
* controlling animation with React animation libraries.
|
|
784
|
+
*/
|
|
785
|
+
forceMount?: true;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
declare namespace MenuPrimitive {
|
|
789
|
+
export {
|
|
790
|
+
Direction_2 as Direction,
|
|
791
|
+
createMenuScope,
|
|
792
|
+
MenuProps,
|
|
793
|
+
Menu,
|
|
794
|
+
PopperAnchorProps,
|
|
795
|
+
MenuAnchorProps,
|
|
796
|
+
MenuAnchor,
|
|
797
|
+
PortalProps,
|
|
798
|
+
MenuPortalProps_2 as MenuPortalProps,
|
|
799
|
+
MenuPortal,
|
|
800
|
+
MenuContentProps,
|
|
801
|
+
MenuContent,
|
|
802
|
+
MenuRootContentTypeProps,
|
|
803
|
+
FocusScopeProps,
|
|
804
|
+
DismissableLayerProps,
|
|
805
|
+
RovingFocusGroupProps,
|
|
806
|
+
PopperContentProps_2 as PopperContentProps,
|
|
807
|
+
MenuContentImplPrivateProps,
|
|
808
|
+
MenuContentImplProps,
|
|
809
|
+
PrimitiveDivProps_6 as PrimitiveDivProps,
|
|
810
|
+
MenuGroupProps,
|
|
811
|
+
MenuGroup,
|
|
812
|
+
MenuLabelProps,
|
|
813
|
+
MenuLabel,
|
|
814
|
+
MenuItemProps,
|
|
815
|
+
MenuItem,
|
|
816
|
+
MenuItemImplProps,
|
|
817
|
+
CheckedState_2 as CheckedState,
|
|
818
|
+
MenuCheckboxItemProps,
|
|
819
|
+
MenuCheckboxItem,
|
|
820
|
+
MenuRadioGroupProps,
|
|
821
|
+
MenuRadioGroup,
|
|
822
|
+
MenuRadioItemProps,
|
|
823
|
+
MenuRadioItem,
|
|
824
|
+
PrimitiveSpanProps_3 as PrimitiveSpanProps,
|
|
825
|
+
MenuItemIndicatorProps,
|
|
826
|
+
MenuItemIndicator,
|
|
827
|
+
MenuSeparatorProps,
|
|
828
|
+
MenuSeparator,
|
|
829
|
+
PopperArrowProps_2 as PopperArrowProps,
|
|
830
|
+
MenuArrowProps,
|
|
831
|
+
MenuArrow,
|
|
832
|
+
MenuSubProps,
|
|
833
|
+
MenuSub,
|
|
834
|
+
MenuSubTriggerProps,
|
|
835
|
+
MenuSubTrigger,
|
|
836
|
+
MenuSubContentProps,
|
|
837
|
+
MenuSubContent,
|
|
838
|
+
Root_6 as Root,
|
|
839
|
+
Anchor_2 as Anchor,
|
|
840
|
+
Portal_2 as Portal,
|
|
841
|
+
Content_2 as Content,
|
|
842
|
+
Group,
|
|
843
|
+
Label,
|
|
844
|
+
Item_2 as Item,
|
|
845
|
+
CheckboxItem,
|
|
846
|
+
RadioGroup,
|
|
847
|
+
RadioItem,
|
|
848
|
+
ItemIndicator,
|
|
849
|
+
Separator,
|
|
850
|
+
Arrow_3 as Arrow,
|
|
851
|
+
Sub,
|
|
852
|
+
SubTrigger,
|
|
853
|
+
SubContent
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
declare interface MenuProps {
|
|
858
|
+
children?: React_2.ReactNode;
|
|
859
|
+
open?: boolean;
|
|
860
|
+
onOpenChange?(open: boolean): void;
|
|
861
|
+
dir?: Direction_2;
|
|
862
|
+
modal?: boolean;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
declare const MenuRadioGroup: React_2.ForwardRefExoticComponent<MenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
866
|
+
|
|
867
|
+
declare interface MenuRadioGroupProps extends MenuGroupProps {
|
|
868
|
+
value?: string;
|
|
869
|
+
onValueChange?: (value: string) => void;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
declare type MenuRadioGroupProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
873
|
+
|
|
874
|
+
declare const MenuRadioItem: React_2.ForwardRefExoticComponent<MenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
875
|
+
|
|
876
|
+
declare interface MenuRadioItemProps extends MenuItemProps {
|
|
877
|
+
value: string;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
declare type MenuRadioItemProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
881
|
+
|
|
882
|
+
declare interface MenuRootContentTypeProps extends Omit<MenuContentImplProps, keyof MenuContentImplPrivateProps> {
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
declare const MenuSeparator: React_2.ForwardRefExoticComponent<MenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
886
|
+
|
|
887
|
+
declare interface MenuSeparatorProps extends PrimitiveDivProps_6 {
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
declare type MenuSeparatorProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
891
|
+
|
|
892
|
+
declare const MenuSub: React_2.FC<MenuSubProps>;
|
|
893
|
+
|
|
894
|
+
declare const MenuSubContent: React_2.ForwardRefExoticComponent<MenuSubContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
509
895
|
|
|
510
|
-
declare
|
|
896
|
+
declare interface MenuSubContentProps extends Omit<MenuContentImplProps, keyof MenuContentImplPrivateProps | 'onCloseAutoFocus' | 'onEntryFocus' | 'side' | 'align'> {
|
|
897
|
+
/**
|
|
898
|
+
* Used to force mounting when more control is needed. Useful when
|
|
899
|
+
* controlling animation with React animation libraries.
|
|
900
|
+
*/
|
|
901
|
+
forceMount?: true;
|
|
902
|
+
}
|
|
511
903
|
|
|
512
|
-
declare type
|
|
904
|
+
declare type MenuSubContentProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
513
905
|
|
|
514
|
-
declare
|
|
906
|
+
declare interface MenuSubProps {
|
|
907
|
+
children?: React_2.ReactNode;
|
|
908
|
+
open?: boolean;
|
|
909
|
+
onOpenChange?(open: boolean): void;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
declare const MenuSubTrigger: React_2.ForwardRefExoticComponent<MenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
515
913
|
|
|
516
|
-
declare
|
|
914
|
+
declare interface MenuSubTriggerProps extends MenuItemImplProps {
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
declare type MenuSubTriggerProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
517
918
|
|
|
518
919
|
declare interface Node_2 {
|
|
519
920
|
id: string;
|
|
@@ -529,25 +930,113 @@ declare interface Node_3 {
|
|
|
529
930
|
group: number;
|
|
530
931
|
}
|
|
531
932
|
|
|
933
|
+
declare const NODES: readonly ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul"];
|
|
934
|
+
|
|
532
935
|
declare type OmitUndefined<T> = T extends undefined ? never : T;
|
|
533
936
|
|
|
534
|
-
declare type
|
|
937
|
+
declare type Orientation = React_2.AriaAttributes['aria-orientation'];
|
|
938
|
+
|
|
939
|
+
declare type PointerDownOutsideEvent = CustomEvent<{
|
|
940
|
+
originalEvent: PointerEvent;
|
|
941
|
+
}>;
|
|
942
|
+
|
|
943
|
+
declare const Popper: React_2.FC<PopperProps>;
|
|
944
|
+
|
|
945
|
+
declare const PopperAnchor: React_2.ForwardRefExoticComponent<PopperAnchorProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
946
|
+
|
|
947
|
+
declare type PopperAnchorProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;
|
|
948
|
+
|
|
949
|
+
declare interface PopperAnchorProps_2 extends PrimitiveDivProps {
|
|
950
|
+
virtualRef?: React_2.RefObject<Measurable>;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
declare const PopperArrow: React_2.ForwardRefExoticComponent<PopperArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
954
|
+
|
|
955
|
+
declare interface PopperArrowProps extends ArrowProps {
|
|
956
|
+
}
|
|
535
957
|
|
|
536
958
|
declare type PopperArrowProps_2 = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
537
959
|
|
|
538
|
-
declare type
|
|
960
|
+
declare type PopperArrowProps_3 = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
961
|
+
|
|
962
|
+
declare type PopperArrowProps_4 = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
963
|
+
|
|
964
|
+
declare const PopperContent: React_2.ForwardRefExoticComponent<PopperContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
965
|
+
|
|
966
|
+
declare interface PopperContentProps extends PrimitiveDivProps {
|
|
967
|
+
side?: Side;
|
|
968
|
+
sideOffset?: number;
|
|
969
|
+
align?: Align;
|
|
970
|
+
alignOffset?: number;
|
|
971
|
+
arrowPadding?: number;
|
|
972
|
+
avoidCollisions?: boolean;
|
|
973
|
+
collisionBoundary?: Boundary | Boundary[];
|
|
974
|
+
collisionPadding?: number | Partial<Record<Side, number>>;
|
|
975
|
+
sticky?: 'partial' | 'always';
|
|
976
|
+
hideWhenDetached?: boolean;
|
|
977
|
+
updatePositionStrategy?: 'optimized' | 'always';
|
|
978
|
+
onPlaced?: () => void;
|
|
979
|
+
}
|
|
539
980
|
|
|
540
981
|
declare type PopperContentProps_2 = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
|
541
982
|
|
|
542
|
-
declare
|
|
983
|
+
declare type PopperContentProps_3 = React_2.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
|
984
|
+
|
|
985
|
+
declare type PopperContentProps_4 = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
|
986
|
+
|
|
987
|
+
declare namespace PopperPrimitive {
|
|
988
|
+
export {
|
|
989
|
+
SIDE_OPTIONS,
|
|
990
|
+
ALIGN_OPTIONS,
|
|
991
|
+
Side,
|
|
992
|
+
Align,
|
|
993
|
+
createPopperScope,
|
|
994
|
+
PopperProps,
|
|
995
|
+
Popper,
|
|
996
|
+
PrimitiveDivProps,
|
|
997
|
+
PopperAnchorProps_2 as PopperAnchorProps,
|
|
998
|
+
PopperAnchor,
|
|
999
|
+
Boundary,
|
|
1000
|
+
PopperContentProps,
|
|
1001
|
+
PopperContent,
|
|
1002
|
+
ArrowProps,
|
|
1003
|
+
PopperArrowProps,
|
|
1004
|
+
PopperArrow,
|
|
1005
|
+
Root_4 as Root,
|
|
1006
|
+
Anchor,
|
|
1007
|
+
Content,
|
|
1008
|
+
Arrow_2 as Arrow
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
declare interface PopperProps {
|
|
1013
|
+
children?: React_2.ReactNode;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
declare const Portal: React_2.ForwardRefExoticComponent<PortalProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
1017
|
+
|
|
1018
|
+
declare const Portal_2: React_2.FC<MenuPortalProps_2>;
|
|
1019
|
+
|
|
1020
|
+
declare const Portal_3: React_2.FC<DropdownMenuPortalProps>;
|
|
1021
|
+
|
|
1022
|
+
declare const Portal_4: React_2.FC<SelectPortalProps>;
|
|
1023
|
+
|
|
1024
|
+
declare const Portal_5: React_2.FC<TooltipPortalProps>;
|
|
543
1025
|
|
|
544
|
-
declare
|
|
1026
|
+
declare type PortalProps = React_2.ComponentPropsWithoutRef<typeof Portal>;
|
|
545
1027
|
|
|
546
|
-
declare
|
|
1028
|
+
declare interface PortalProps_2 extends PrimitiveDivProps_2 {
|
|
1029
|
+
/**
|
|
1030
|
+
* An optional container where the portaled content should be appended.
|
|
1031
|
+
*/
|
|
1032
|
+
container?: HTMLElement | null;
|
|
1033
|
+
}
|
|
547
1034
|
|
|
548
|
-
declare type
|
|
1035
|
+
declare type PortalProps_3 = React_2.ComponentPropsWithoutRef<typeof Portal>;
|
|
549
1036
|
|
|
550
|
-
declare type
|
|
1037
|
+
declare type PortalProps_4 = React_2.ComponentPropsWithoutRef<typeof Portal>;
|
|
1038
|
+
|
|
1039
|
+
declare const Primitive: Primitives;
|
|
551
1040
|
|
|
552
1041
|
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
553
1042
|
|
|
@@ -563,26 +1052,142 @@ declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive
|
|
|
563
1052
|
|
|
564
1053
|
declare type PrimitiveDivProps_2 = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
565
1054
|
|
|
1055
|
+
declare type PrimitiveDivProps_3 = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
1056
|
+
|
|
1057
|
+
declare type PrimitiveDivProps_4 = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
1058
|
+
|
|
1059
|
+
declare type PrimitiveDivProps_5 = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
1060
|
+
|
|
1061
|
+
declare type PrimitiveDivProps_6 = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
1062
|
+
|
|
1063
|
+
declare type PrimitiveDivProps_7 = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
1064
|
+
|
|
1065
|
+
declare type PrimitiveDivProps_8 = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
1066
|
+
|
|
1067
|
+
declare interface PrimitiveForwardRefComponent<E extends React_2.ElementType> extends React_2.ForwardRefExoticComponent<PrimitivePropsWithRef<E>> {
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
declare type PrimitivePropsWithRef<E extends React_2.ElementType> = React_2.ComponentPropsWithRef<E> & {
|
|
1071
|
+
asChild?: boolean;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
declare type Primitives = {
|
|
1075
|
+
[E in typeof NODES[number]]: PrimitiveForwardRefComponent<E>;
|
|
1076
|
+
};
|
|
1077
|
+
|
|
566
1078
|
declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
567
1079
|
|
|
568
1080
|
declare type PrimitiveSpanProps_2 = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
569
1081
|
|
|
1082
|
+
declare type PrimitiveSpanProps_3 = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
1083
|
+
|
|
1084
|
+
declare type PrimitiveSpanProps_4 = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
1085
|
+
|
|
1086
|
+
declare type PrimitiveSvgProps = Radix.ComponentPropsWithoutRef<typeof Primitive.svg>;
|
|
1087
|
+
|
|
1088
|
+
declare type PropsWithoutRef<P> = P extends any ? ('ref' extends keyof P ? Pick<P, Exclude<keyof P, 'ref'>> : P) : P;
|
|
1089
|
+
|
|
570
1090
|
declare const Provider: React_2.FC<TooltipProviderProps>;
|
|
571
1091
|
|
|
572
|
-
declare const RadioGroup: React_2.ForwardRefExoticComponent<
|
|
1092
|
+
declare const RadioGroup: React_2.ForwardRefExoticComponent<MenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1093
|
+
|
|
1094
|
+
declare const RadioGroup_2: React_2.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1095
|
+
|
|
1096
|
+
declare const RadioItem: React_2.ForwardRefExoticComponent<MenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
573
1097
|
|
|
574
|
-
declare const
|
|
1098
|
+
declare const RadioItem_2: React_2.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
575
1099
|
|
|
576
|
-
declare
|
|
1100
|
+
declare namespace Radix {
|
|
1101
|
+
export {
|
|
1102
|
+
dispatchDiscreteCustomEvent,
|
|
1103
|
+
NODES,
|
|
1104
|
+
PropsWithoutRef,
|
|
1105
|
+
ComponentPropsWithoutRef,
|
|
1106
|
+
Primitives,
|
|
1107
|
+
PrimitivePropsWithRef,
|
|
1108
|
+
PrimitiveForwardRefComponent,
|
|
1109
|
+
Primitive,
|
|
1110
|
+
Root
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
declare const Root: Primitives;
|
|
1115
|
+
|
|
1116
|
+
declare const Root_2: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1117
|
+
|
|
1118
|
+
declare const Root_3: React_2.ForwardRefExoticComponent<ArrowProps_2 & React_2.RefAttributes<SVGSVGElement>>;
|
|
577
1119
|
|
|
578
|
-
declare const
|
|
1120
|
+
declare const Root_4: React_2.FC<PopperProps>;
|
|
579
1121
|
|
|
580
|
-
declare const
|
|
1122
|
+
declare const Root_5: React_2.ForwardRefExoticComponent<RovingFocusGroupProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
581
1123
|
|
|
582
|
-
declare const
|
|
1124
|
+
declare const Root_6: React_2.FC<MenuProps>;
|
|
1125
|
+
|
|
1126
|
+
declare const Root_7: React_2.FC<DropdownMenuProps>;
|
|
1127
|
+
|
|
1128
|
+
declare const Root_8: React_2.FC<SelectProps>;
|
|
1129
|
+
|
|
1130
|
+
declare const Root_9: React_2.FC<TooltipProps>;
|
|
1131
|
+
|
|
1132
|
+
declare namespace RovingFocusGroup {
|
|
1133
|
+
export {
|
|
1134
|
+
createRovingFocusGroupScope,
|
|
1135
|
+
Orientation,
|
|
1136
|
+
Direction_3 as Direction,
|
|
1137
|
+
RovingFocusGroupOptions,
|
|
1138
|
+
RovingFocusGroupProps_2 as RovingFocusGroupProps,
|
|
1139
|
+
RovingFocusGroup_2 as RovingFocusGroup,
|
|
1140
|
+
PrimitiveDivProps_5 as PrimitiveDivProps,
|
|
1141
|
+
RovingFocusGroupImplProps,
|
|
1142
|
+
PrimitiveSpanProps_2 as PrimitiveSpanProps,
|
|
1143
|
+
RovingFocusItemProps,
|
|
1144
|
+
RovingFocusGroupItem,
|
|
1145
|
+
Root_5 as Root,
|
|
1146
|
+
Item
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
declare const RovingFocusGroup_2: React_2.ForwardRefExoticComponent<RovingFocusGroupProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
1151
|
+
|
|
1152
|
+
declare interface RovingFocusGroupImplProps extends Omit<PrimitiveDivProps_5, 'dir'>, RovingFocusGroupOptions {
|
|
1153
|
+
currentTabStopId?: string | null;
|
|
1154
|
+
defaultCurrentTabStopId?: string;
|
|
1155
|
+
onCurrentTabStopIdChange?: (tabStopId: string | null) => void;
|
|
1156
|
+
onEntryFocus?: (event: Event) => void;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
declare const RovingFocusGroupItem: React_2.ForwardRefExoticComponent<RovingFocusItemProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
1160
|
+
|
|
1161
|
+
declare interface RovingFocusGroupOptions {
|
|
1162
|
+
/**
|
|
1163
|
+
* The orientation of the group.
|
|
1164
|
+
* Mainly so arrow navigation is done accordingly (left & right vs. up & down)
|
|
1165
|
+
*/
|
|
1166
|
+
orientation?: Orientation;
|
|
1167
|
+
/**
|
|
1168
|
+
* The direction of navigation between items.
|
|
1169
|
+
*/
|
|
1170
|
+
dir?: Direction_3;
|
|
1171
|
+
/**
|
|
1172
|
+
* Whether keyboard navigation should loop around
|
|
1173
|
+
* @defaultValue false
|
|
1174
|
+
*/
|
|
1175
|
+
loop?: boolean;
|
|
1176
|
+
}
|
|
583
1177
|
|
|
584
1178
|
declare type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
585
1179
|
|
|
1180
|
+
declare interface RovingFocusGroupProps_2 extends RovingFocusGroupImplProps {
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
declare type RovingFocusGroupProps_3 = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
1184
|
+
|
|
1185
|
+
declare interface RovingFocusItemProps extends PrimitiveSpanProps_2 {
|
|
1186
|
+
tabStopId?: string;
|
|
1187
|
+
focusable?: boolean;
|
|
1188
|
+
active?: boolean;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
586
1191
|
export declare const SankeyChart: ForwardRefExoticComponent<Omit<SankeyProps, "height" | "width"> & RefAttributes<DownloadRef>>;
|
|
587
1192
|
|
|
588
1193
|
declare interface SankeyProps {
|
|
@@ -597,11 +1202,19 @@ declare interface SankeyProps {
|
|
|
597
1202
|
/** Array of Links. Each node has an sourceId, targetId and weight between them */
|
|
598
1203
|
links: Link[];
|
|
599
1204
|
/** Array of Groups. Contains details about each group */
|
|
600
|
-
groups:
|
|
1205
|
+
groups: Group_4[];
|
|
601
1206
|
/** Label describining the weight between two nodes. Appears in tooltip. */
|
|
602
1207
|
weightLabel: string;
|
|
603
1208
|
}
|
|
604
1209
|
|
|
1210
|
+
declare type Scope<C = any> = {
|
|
1211
|
+
[scopeName: string]: React_2.Context<C>[];
|
|
1212
|
+
} | undefined;
|
|
1213
|
+
|
|
1214
|
+
declare type ScopeHook = (scope: Scope) => {
|
|
1215
|
+
[__scopeProp: string]: Scope;
|
|
1216
|
+
};
|
|
1217
|
+
|
|
605
1218
|
declare const ScrollDownButton: React_2.ForwardRefExoticComponent<SelectScrollDownButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
606
1219
|
|
|
607
1220
|
declare const ScrollUpButton: React_2.ForwardRefExoticComponent<SelectScrollUpButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -612,7 +1225,7 @@ declare const Select_2: React_2.FC<SelectProps>;
|
|
|
612
1225
|
|
|
613
1226
|
declare const SelectArrow: React_2.ForwardRefExoticComponent<SelectArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
614
1227
|
|
|
615
|
-
declare interface SelectArrowProps extends
|
|
1228
|
+
declare interface SelectArrowProps extends PopperArrowProps_3 {
|
|
616
1229
|
}
|
|
617
1230
|
|
|
618
1231
|
export declare const SelectContent: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -624,17 +1237,17 @@ declare interface SelectContentImplProps extends Omit<SelectPopperPositionProps,
|
|
|
624
1237
|
* Event handler called when auto-focusing on close.
|
|
625
1238
|
* Can be prevented.
|
|
626
1239
|
*/
|
|
627
|
-
onCloseAutoFocus?:
|
|
1240
|
+
onCloseAutoFocus?: FocusScopeProps_3['onUnmountAutoFocus'];
|
|
628
1241
|
/**
|
|
629
1242
|
* Event handler called when the escape key is down.
|
|
630
1243
|
* Can be prevented.
|
|
631
1244
|
*/
|
|
632
|
-
onEscapeKeyDown?:
|
|
1245
|
+
onEscapeKeyDown?: DismissableLayerProps_3['onEscapeKeyDown'];
|
|
633
1246
|
/**
|
|
634
1247
|
* Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
635
1248
|
* Can be prevented.
|
|
636
1249
|
*/
|
|
637
|
-
onPointerDownOutside?:
|
|
1250
|
+
onPointerDownOutside?: DismissableLayerProps_3['onPointerDownOutside'];
|
|
638
1251
|
position?: 'item-aligned' | 'popper';
|
|
639
1252
|
}
|
|
640
1253
|
|
|
@@ -645,27 +1258,27 @@ export declare const SelectGroup: ForwardRefExoticComponent<SelectPrimitive.Sele
|
|
|
645
1258
|
|
|
646
1259
|
declare const SelectGroup_2: React_2.ForwardRefExoticComponent<SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
647
1260
|
|
|
648
|
-
declare interface SelectGroupProps extends
|
|
1261
|
+
declare interface SelectGroupProps extends PrimitiveDivProps_7 {
|
|
649
1262
|
}
|
|
650
1263
|
|
|
651
1264
|
declare const SelectIcon: React_2.ForwardRefExoticComponent<SelectIconProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
652
1265
|
|
|
653
|
-
declare interface SelectIconProps extends
|
|
1266
|
+
declare interface SelectIconProps extends PrimitiveSpanProps_4 {
|
|
654
1267
|
}
|
|
655
1268
|
|
|
656
1269
|
export declare const SelectItem: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
657
1270
|
|
|
658
1271
|
declare const SelectItem_2: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
659
1272
|
|
|
660
|
-
declare interface SelectItemAlignedPositionProps extends
|
|
1273
|
+
declare interface SelectItemAlignedPositionProps extends PrimitiveDivProps_7, SelectPopperPrivateProps {
|
|
661
1274
|
}
|
|
662
1275
|
|
|
663
1276
|
declare const SelectItemIndicator: React_2.ForwardRefExoticComponent<SelectItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
664
1277
|
|
|
665
|
-
declare interface SelectItemIndicatorProps extends
|
|
1278
|
+
declare interface SelectItemIndicatorProps extends PrimitiveSpanProps_4 {
|
|
666
1279
|
}
|
|
667
1280
|
|
|
668
|
-
declare interface SelectItemProps extends
|
|
1281
|
+
declare interface SelectItemProps extends PrimitiveDivProps_7 {
|
|
669
1282
|
value: string;
|
|
670
1283
|
disabled?: boolean;
|
|
671
1284
|
textValue?: string;
|
|
@@ -673,21 +1286,21 @@ declare interface SelectItemProps extends PrimitiveDivProps {
|
|
|
673
1286
|
|
|
674
1287
|
declare const SelectItemText: React_2.ForwardRefExoticComponent<SelectItemTextProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
675
1288
|
|
|
676
|
-
declare interface SelectItemTextProps extends
|
|
1289
|
+
declare interface SelectItemTextProps extends PrimitiveSpanProps_4 {
|
|
677
1290
|
}
|
|
678
1291
|
|
|
679
1292
|
export declare const SelectLabel: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
680
1293
|
|
|
681
1294
|
declare const SelectLabel_2: React_2.ForwardRefExoticComponent<SelectLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
682
1295
|
|
|
683
|
-
declare interface SelectLabelProps extends
|
|
1296
|
+
declare interface SelectLabelProps extends PrimitiveDivProps_7 {
|
|
684
1297
|
}
|
|
685
1298
|
|
|
686
|
-
declare interface SelectPopperPositionProps extends
|
|
1299
|
+
declare interface SelectPopperPositionProps extends PopperContentProps_3, SelectPopperPrivateProps {
|
|
687
1300
|
}
|
|
688
1301
|
|
|
689
1302
|
declare type SelectPopperPrivateProps = {
|
|
690
|
-
onPlaced?:
|
|
1303
|
+
onPlaced?: PopperContentProps_3['onPlaced'];
|
|
691
1304
|
};
|
|
692
1305
|
|
|
693
1306
|
declare const SelectPortal: React_2.FC<SelectPortalProps>;
|
|
@@ -697,36 +1310,36 @@ declare interface SelectPortalProps {
|
|
|
697
1310
|
/**
|
|
698
1311
|
* Specify a container element to portal the content into.
|
|
699
1312
|
*/
|
|
700
|
-
container?:
|
|
1313
|
+
container?: PortalProps_3['container'];
|
|
701
1314
|
}
|
|
702
1315
|
|
|
703
1316
|
declare namespace SelectPrimitive {
|
|
704
1317
|
export {
|
|
705
|
-
|
|
1318
|
+
Direction_4 as Direction,
|
|
706
1319
|
createSelectScope,
|
|
707
1320
|
SelectProps,
|
|
708
1321
|
Select_2 as Select,
|
|
709
1322
|
PrimitiveButtonProps_4 as PrimitiveButtonProps,
|
|
710
1323
|
SelectTriggerProps,
|
|
711
1324
|
SelectTrigger_2 as SelectTrigger,
|
|
712
|
-
|
|
1325
|
+
PrimitiveSpanProps_4 as PrimitiveSpanProps,
|
|
713
1326
|
SelectValueProps,
|
|
714
1327
|
SelectValue_2 as SelectValue,
|
|
715
1328
|
SelectIconProps,
|
|
716
1329
|
SelectIcon,
|
|
717
|
-
PortalProps,
|
|
1330
|
+
PortalProps_3 as PortalProps,
|
|
718
1331
|
SelectPortalProps,
|
|
719
1332
|
SelectPortal,
|
|
720
1333
|
SelectContentProps,
|
|
721
1334
|
SelectContent_2 as SelectContent,
|
|
722
|
-
DismissableLayerProps,
|
|
723
|
-
FocusScopeProps,
|
|
1335
|
+
DismissableLayerProps_3 as DismissableLayerProps,
|
|
1336
|
+
FocusScopeProps_3 as FocusScopeProps,
|
|
724
1337
|
SelectPopperPrivateProps,
|
|
725
1338
|
SelectContentImplProps,
|
|
726
1339
|
SelectItemAlignedPositionProps,
|
|
727
|
-
PopperContentProps,
|
|
1340
|
+
PopperContentProps_3 as PopperContentProps,
|
|
728
1341
|
SelectPopperPositionProps,
|
|
729
|
-
PrimitiveDivProps,
|
|
1342
|
+
PrimitiveDivProps_7 as PrimitiveDivProps,
|
|
730
1343
|
SelectViewportProps,
|
|
731
1344
|
SelectViewport,
|
|
732
1345
|
SelectGroupProps,
|
|
@@ -746,25 +1359,25 @@ declare namespace SelectPrimitive {
|
|
|
746
1359
|
SelectScrollButtonImplProps,
|
|
747
1360
|
SelectSeparatorProps,
|
|
748
1361
|
SelectSeparator_2 as SelectSeparator,
|
|
749
|
-
PopperArrowProps,
|
|
1362
|
+
PopperArrowProps_3 as PopperArrowProps,
|
|
750
1363
|
SelectArrowProps,
|
|
751
1364
|
SelectArrow,
|
|
752
|
-
|
|
1365
|
+
Root_8 as Root,
|
|
753
1366
|
Trigger_2 as Trigger,
|
|
754
1367
|
Value,
|
|
755
1368
|
Icon,
|
|
756
|
-
|
|
757
|
-
|
|
1369
|
+
Portal_4 as Portal,
|
|
1370
|
+
Content_4 as Content,
|
|
758
1371
|
Viewport,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
1372
|
+
Group_3 as Group,
|
|
1373
|
+
Label_3 as Label,
|
|
1374
|
+
Item_4 as Item,
|
|
762
1375
|
ItemText,
|
|
763
|
-
|
|
1376
|
+
ItemIndicator_3 as ItemIndicator,
|
|
764
1377
|
ScrollUpButton,
|
|
765
1378
|
ScrollDownButton,
|
|
766
|
-
|
|
767
|
-
|
|
1379
|
+
Separator_3 as Separator,
|
|
1380
|
+
Arrow_5 as Arrow
|
|
768
1381
|
}
|
|
769
1382
|
}
|
|
770
1383
|
|
|
@@ -776,14 +1389,14 @@ declare interface SelectProps {
|
|
|
776
1389
|
open?: boolean;
|
|
777
1390
|
defaultOpen?: boolean;
|
|
778
1391
|
onOpenChange?(open: boolean): void;
|
|
779
|
-
dir?:
|
|
1392
|
+
dir?: Direction_4;
|
|
780
1393
|
name?: string;
|
|
781
1394
|
autoComplete?: string;
|
|
782
1395
|
disabled?: boolean;
|
|
783
1396
|
required?: boolean;
|
|
784
1397
|
}
|
|
785
1398
|
|
|
786
|
-
declare interface SelectScrollButtonImplProps extends
|
|
1399
|
+
declare interface SelectScrollButtonImplProps extends PrimitiveDivProps_7 {
|
|
787
1400
|
onAutoScroll(): void;
|
|
788
1401
|
}
|
|
789
1402
|
|
|
@@ -801,7 +1414,7 @@ export declare const SelectSeparator: ForwardRefExoticComponent<Omit<SelectPrimi
|
|
|
801
1414
|
|
|
802
1415
|
declare const SelectSeparator_2: React_2.ForwardRefExoticComponent<SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
803
1416
|
|
|
804
|
-
declare interface SelectSeparatorProps extends
|
|
1417
|
+
declare interface SelectSeparatorProps extends PrimitiveDivProps_7 {
|
|
805
1418
|
}
|
|
806
1419
|
|
|
807
1420
|
export declare const SelectTrigger: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
@@ -815,18 +1428,24 @@ export declare const SelectValue: ForwardRefExoticComponent<SelectPrimitive.Sele
|
|
|
815
1428
|
|
|
816
1429
|
declare const SelectValue_2: React_2.ForwardRefExoticComponent<SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
817
1430
|
|
|
818
|
-
declare interface SelectValueProps extends Omit<
|
|
1431
|
+
declare interface SelectValueProps extends Omit<PrimitiveSpanProps_4, 'placeholder'> {
|
|
819
1432
|
placeholder?: React_2.ReactNode;
|
|
820
1433
|
}
|
|
821
1434
|
|
|
822
1435
|
declare const SelectViewport: React_2.ForwardRefExoticComponent<SelectViewportProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
823
1436
|
|
|
824
|
-
declare interface SelectViewportProps extends
|
|
1437
|
+
declare interface SelectViewportProps extends PrimitiveDivProps_7 {
|
|
825
1438
|
}
|
|
826
1439
|
|
|
827
|
-
declare const Separator: React_2.ForwardRefExoticComponent<
|
|
1440
|
+
declare const Separator: React_2.ForwardRefExoticComponent<MenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1441
|
+
|
|
1442
|
+
declare const Separator_2: React_2.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
828
1443
|
|
|
829
|
-
declare const
|
|
1444
|
+
declare const Separator_3: React_2.ForwardRefExoticComponent<SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1445
|
+
|
|
1446
|
+
declare type Side = typeof SIDE_OPTIONS[number];
|
|
1447
|
+
|
|
1448
|
+
declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"];
|
|
830
1449
|
|
|
831
1450
|
export declare function SplitButton({ children, size, status, variant, ...props }: SplitButtonProps): JSX_2.Element;
|
|
832
1451
|
|
|
@@ -846,11 +1465,17 @@ export declare const SplitButtonDropdownRadioItem: ForwardRefExoticComponent<Omi
|
|
|
846
1465
|
|
|
847
1466
|
declare type SplitButtonProps = ButtonProps;
|
|
848
1467
|
|
|
849
|
-
declare const Sub: React_2.FC<
|
|
1468
|
+
declare const Sub: React_2.FC<MenuSubProps>;
|
|
1469
|
+
|
|
1470
|
+
declare const Sub_2: React_2.FC<DropdownMenuSubProps>;
|
|
850
1471
|
|
|
851
|
-
declare const SubContent: React_2.ForwardRefExoticComponent<
|
|
1472
|
+
declare const SubContent: React_2.ForwardRefExoticComponent<MenuSubContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
852
1473
|
|
|
853
|
-
declare const
|
|
1474
|
+
declare const SubContent_2: React_2.ForwardRefExoticComponent<DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1475
|
+
|
|
1476
|
+
declare const SubTrigger: React_2.ForwardRefExoticComponent<MenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1477
|
+
|
|
1478
|
+
declare const SubTrigger_2: React_2.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
854
1479
|
|
|
855
1480
|
declare const Toggle: React_2.ForwardRefExoticComponent<ToggleProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
856
1481
|
|
|
@@ -870,7 +1495,7 @@ declare interface ToggleGroupImplMultipleProps extends ToggleGroupImplProps {
|
|
|
870
1495
|
onValueChange?(value: string[]): void;
|
|
871
1496
|
}
|
|
872
1497
|
|
|
873
|
-
declare interface ToggleGroupImplProps extends
|
|
1498
|
+
declare interface ToggleGroupImplProps extends PrimitiveDivProps_8 {
|
|
874
1499
|
/**
|
|
875
1500
|
* Whether the group is disabled from user interaction.
|
|
876
1501
|
* @defaultValue false
|
|
@@ -881,9 +1506,9 @@ declare interface ToggleGroupImplProps extends PrimitiveDivProps_2 {
|
|
|
881
1506
|
* @defaultValue true
|
|
882
1507
|
*/
|
|
883
1508
|
rovingFocus?: boolean;
|
|
884
|
-
loop?:
|
|
885
|
-
orientation?:
|
|
886
|
-
dir?:
|
|
1509
|
+
loop?: RovingFocusGroupProps_3['loop'];
|
|
1510
|
+
orientation?: RovingFocusGroupProps_3['orientation'];
|
|
1511
|
+
dir?: RovingFocusGroupProps_3['dir'];
|
|
887
1512
|
}
|
|
888
1513
|
|
|
889
1514
|
declare interface ToggleGroupImplSingleProps extends ToggleGroupImplProps {
|
|
@@ -945,14 +1570,14 @@ declare const Tooltip_2: React_2.FC<TooltipProps>;
|
|
|
945
1570
|
|
|
946
1571
|
declare const TooltipArrow: React_2.ForwardRefExoticComponent<TooltipArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
947
1572
|
|
|
948
|
-
declare interface TooltipArrowProps extends
|
|
1573
|
+
declare interface TooltipArrowProps extends PopperArrowProps_4 {
|
|
949
1574
|
}
|
|
950
1575
|
|
|
951
1576
|
export declare const TooltipContent: ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
952
1577
|
|
|
953
1578
|
declare const TooltipContent_2: React_2.ForwardRefExoticComponent<TooltipContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
954
1579
|
|
|
955
|
-
declare interface TooltipContentImplProps extends Omit<
|
|
1580
|
+
declare interface TooltipContentImplProps extends Omit<PopperContentProps_4, 'onPlaced'> {
|
|
956
1581
|
/**
|
|
957
1582
|
* A more descriptive label for accessibility purpose
|
|
958
1583
|
*/
|
|
@@ -961,12 +1586,12 @@ declare interface TooltipContentImplProps extends Omit<PopperContentProps_2, 'on
|
|
|
961
1586
|
* Event handler called when the escape key is down.
|
|
962
1587
|
* Can be prevented.
|
|
963
1588
|
*/
|
|
964
|
-
onEscapeKeyDown?:
|
|
1589
|
+
onEscapeKeyDown?: DismissableLayerProps_4['onEscapeKeyDown'];
|
|
965
1590
|
/**
|
|
966
1591
|
* Event handler called when the a `pointerdown` event happens outside of the `Tooltip`.
|
|
967
1592
|
* Can be prevented.
|
|
968
1593
|
*/
|
|
969
|
-
onPointerDownOutside?:
|
|
1594
|
+
onPointerDownOutside?: DismissableLayerProps_4['onPointerDownOutside'];
|
|
970
1595
|
}
|
|
971
1596
|
|
|
972
1597
|
declare interface TooltipContentProps extends TooltipContentImplProps {
|
|
@@ -986,7 +1611,7 @@ declare interface TooltipPortalProps {
|
|
|
986
1611
|
/**
|
|
987
1612
|
* Specify a container element to portal the content into.
|
|
988
1613
|
*/
|
|
989
|
-
container?:
|
|
1614
|
+
container?: PortalProps_4['container'];
|
|
990
1615
|
/**
|
|
991
1616
|
* Used to force mounting when more control is needed. Useful when
|
|
992
1617
|
* controlling animation with React animation libraries.
|
|
@@ -1004,23 +1629,23 @@ declare namespace TooltipPrimitive {
|
|
|
1004
1629
|
PrimitiveButtonProps_5 as PrimitiveButtonProps,
|
|
1005
1630
|
TooltipTriggerProps,
|
|
1006
1631
|
TooltipTrigger_2 as TooltipTrigger,
|
|
1007
|
-
|
|
1632
|
+
PortalProps_4 as PortalProps,
|
|
1008
1633
|
TooltipPortalProps,
|
|
1009
1634
|
TooltipPortal_2 as TooltipPortal,
|
|
1010
1635
|
TooltipContentProps,
|
|
1011
1636
|
TooltipContent_2 as TooltipContent,
|
|
1012
|
-
|
|
1013
|
-
|
|
1637
|
+
DismissableLayerProps_4 as DismissableLayerProps,
|
|
1638
|
+
PopperContentProps_4 as PopperContentProps,
|
|
1014
1639
|
TooltipContentImplProps,
|
|
1015
|
-
|
|
1640
|
+
PopperArrowProps_4 as PopperArrowProps,
|
|
1016
1641
|
TooltipArrowProps,
|
|
1017
1642
|
TooltipArrow,
|
|
1018
1643
|
Provider,
|
|
1019
|
-
|
|
1644
|
+
Root_9 as Root,
|
|
1020
1645
|
Trigger_3 as Trigger,
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1646
|
+
Portal_5 as Portal,
|
|
1647
|
+
Content_5 as Content,
|
|
1648
|
+
Arrow_6 as Arrow
|
|
1024
1649
|
}
|
|
1025
1650
|
}
|
|
1026
1651
|
|