@mesh.ai/rabbit 0.0.48 → 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 +7991 -11930
- package/dist/@mesh.ai/rabbit.umd.js +34 -34
- package/dist/index.d.ts +1712 -1
- package/package.json +1 -99
- package/dist/commitlint.config.d.ts +0 -0
- package/dist/src/lib/components/atoms/Button/index.d.ts +0 -14
- package/dist/src/lib/components/atoms/Checkbox/index.d.ts +0 -4
- package/dist/src/lib/components/atoms/Chip/index.d.ts +0 -3
- package/dist/src/lib/components/atoms/Chip/types.d.ts +0 -9
- package/dist/src/lib/components/atoms/Dropdown/index.d.ts +0 -17
- package/dist/src/lib/components/atoms/Input/index.d.ts +0 -6
- package/dist/src/lib/components/atoms/Select/index.d.ts +0 -11
- package/dist/src/lib/components/atoms/Tooltip/index.d.ts +0 -8
- package/dist/src/lib/components/atoms/index.d.ts +0 -7
- package/dist/src/lib/components/index.d.ts +0 -2
- package/dist/src/lib/components/molecules/ChipGroup/index.d.ts +0 -7
- package/dist/src/lib/components/molecules/ChipGroup/types.d.ts +0 -7
- package/dist/src/lib/components/molecules/SplitButton/index.d.ts +0 -12
- package/dist/src/lib/components/molecules/agGrid/AgGridWrapper.d.ts +0 -1
- package/dist/src/lib/components/molecules/agGrid/index.d.ts +0 -0
- package/dist/src/lib/components/molecules/agGrid/utils/registerAgGrid.d.ts +0 -2
- package/dist/src/lib/components/molecules/cards/CardKPI/index.d.ts +0 -3
- package/dist/src/lib/components/molecules/cards/CardKPI/types.d.ts +0 -17
- package/dist/src/lib/components/molecules/cards/index.d.ts +0 -1
- package/dist/src/lib/components/molecules/charts/charts/HistogramChart/components/ChartCardHistogramTooltip.d.ts +0 -19
- package/dist/src/lib/components/molecules/charts/charts/HistogramChart/index.d.ts +0 -5
- package/dist/src/lib/components/molecules/charts/charts/HistogramChart/types.d.ts +0 -35
- package/dist/src/lib/components/molecules/charts/charts/LineChart/components/ChartCardLineTooltip.d.ts +0 -21
- package/dist/src/lib/components/molecules/charts/charts/LineChart/components/LineSeriesWrapper.d.ts +0 -2
- package/dist/src/lib/components/molecules/charts/charts/LineChart/index.d.ts +0 -5
- package/dist/src/lib/components/molecules/charts/charts/LineChart/types.d.ts +0 -63
- package/dist/src/lib/components/molecules/charts/charts/SankeyChart/components/ChartCardSankeyTooltip.d.ts +0 -12
- package/dist/src/lib/components/molecules/charts/charts/SankeyChart/index.d.ts +0 -5
- package/dist/src/lib/components/molecules/charts/charts/SankeyChart/types.d.ts +0 -38
- package/dist/src/lib/components/molecules/charts/common/components/ChartTextTooltip.d.ts +0 -11
- package/dist/src/lib/components/molecules/charts/common/hooks/useDownload.d.ts +0 -5
- package/dist/src/lib/components/molecules/charts/common/utils/chartColors.d.ts +0 -15
- package/dist/src/lib/components/molecules/charts/index.d.ts +0 -3
- package/dist/src/lib/components/molecules/index.d.ts +0 -4
- package/dist/src/lib/index.d.ts +0 -1
- package/dist/src/lib/storybook-utils.d.ts +0 -5
- package/dist/src/lib/utils/index.d.ts +0 -2
- package/dist/tailwind.config.d.ts +0 -94
- package/dist/vite.config.d.ts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,1712 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
5
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
6
|
+
import { Measurable } from '@radix-ui/rect';
|
|
7
|
+
import * as React_2 from 'react';
|
|
8
|
+
import { ReactElement } from 'react';
|
|
9
|
+
import { RefAttributes } from 'react';
|
|
10
|
+
|
|
11
|
+
declare type Align = typeof ALIGN_OPTIONS[number];
|
|
12
|
+
|
|
13
|
+
declare const ALIGN_OPTIONS: readonly ["start", "center", "end"];
|
|
14
|
+
|
|
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
|
+
}
|
|
44
|
+
|
|
45
|
+
declare interface AxisSymbolType {
|
|
46
|
+
symbol: string;
|
|
47
|
+
position: 'pre' | 'post';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare interface AxisSymbolType_2 {
|
|
51
|
+
symbol: string;
|
|
52
|
+
position: 'pre' | 'post';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare type Boundary = Element | null;
|
|
56
|
+
|
|
57
|
+
export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
58
|
+
|
|
59
|
+
export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
60
|
+
asChild?: boolean;
|
|
61
|
+
iconLeft?: ReactElement;
|
|
62
|
+
iconRight?: ReactElement;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare const buttonVariants: (props?: ({
|
|
66
|
+
variant?: "text" | "filled" | "outline" | null | undefined;
|
|
67
|
+
status?: "default" | "error" | null | undefined;
|
|
68
|
+
size?: "small" | "icon" | "normal" | "smallIcon" | null | undefined;
|
|
69
|
+
} & ClassProp) | undefined) => string;
|
|
70
|
+
|
|
71
|
+
export declare function CardKPI({ count, totalCount, title, subTitle, className, unstyledDimension, style }: CardKPIProps): JSX_2.Element;
|
|
72
|
+
|
|
73
|
+
declare interface CardKPIProps {
|
|
74
|
+
/** Title of the Card */
|
|
75
|
+
title: string;
|
|
76
|
+
/** Main KPI to be shown */
|
|
77
|
+
count: number;
|
|
78
|
+
/** Total KPI Count to be shown */
|
|
79
|
+
totalCount?: number;
|
|
80
|
+
/** Subtext of the card */
|
|
81
|
+
subTitle?: string;
|
|
82
|
+
/** Add a classname to the parent */
|
|
83
|
+
className?: string;
|
|
84
|
+
/** Removes default dimensions to the card. Relies on the consumer to set height and width */
|
|
85
|
+
unstyledDimension?: boolean;
|
|
86
|
+
/** Add custom styles if necessary */
|
|
87
|
+
style?: React.CSSProperties;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare type ChartColorsType = {
|
|
91
|
+
name: string;
|
|
92
|
+
dark: string;
|
|
93
|
+
light: string;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
declare interface ChartDataType {
|
|
97
|
+
x: string;
|
|
98
|
+
y: number | null;
|
|
99
|
+
nodeId: string;
|
|
100
|
+
color: ChartColorsType;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export declare const Checkbox: ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
104
|
+
|
|
105
|
+
declare const Checkbox_2: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
106
|
+
|
|
107
|
+
declare const CheckboxIndicator: React_2.ForwardRefExoticComponent<CheckboxIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
108
|
+
|
|
109
|
+
declare interface CheckboxIndicatorProps extends PrimitiveSpanProps {
|
|
110
|
+
/**
|
|
111
|
+
* Used to force mounting when more control is needed. Useful when
|
|
112
|
+
* controlling animation with React animation libraries.
|
|
113
|
+
*/
|
|
114
|
+
forceMount?: true;
|
|
115
|
+
}
|
|
116
|
+
|
|
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>>;
|
|
120
|
+
|
|
121
|
+
declare namespace CheckboxPrimitive {
|
|
122
|
+
export {
|
|
123
|
+
createCheckboxScope,
|
|
124
|
+
CheckedState,
|
|
125
|
+
PrimitiveButtonProps,
|
|
126
|
+
CheckboxProps,
|
|
127
|
+
Checkbox_2 as Checkbox,
|
|
128
|
+
PrimitiveSpanProps,
|
|
129
|
+
CheckboxIndicatorProps,
|
|
130
|
+
CheckboxIndicator,
|
|
131
|
+
Root_2 as Root,
|
|
132
|
+
Indicator
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare interface CheckboxProps extends Omit<PrimitiveButtonProps, 'checked' | 'defaultChecked'> {
|
|
137
|
+
checked?: CheckedState;
|
|
138
|
+
defaultChecked?: CheckedState;
|
|
139
|
+
required?: boolean;
|
|
140
|
+
onCheckedChange?(checked: CheckedState): void;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
declare type CheckedState = boolean | 'indeterminate';
|
|
144
|
+
|
|
145
|
+
declare type CheckedState_2 = boolean | 'indeterminate';
|
|
146
|
+
|
|
147
|
+
export declare function Chip({ icon, count, label, selected, onSelectedChange }: ChipProps): JSX_2.Element;
|
|
148
|
+
|
|
149
|
+
export declare function ChipGroup({ children, ...props }: (ToggleGroupSingleProps | ToggleGroupMultipleProps) & {
|
|
150
|
+
children: React.ReactNode;
|
|
151
|
+
}): JSX_2.Element;
|
|
152
|
+
|
|
153
|
+
export declare function ChipGroupItem({ value, disabled, selected, icon, label, count, ...props }: Omit<ToggleGroupItemProps, 'asChild'> & ChipProps): JSX_2.Element;
|
|
154
|
+
|
|
155
|
+
declare interface ChipProps {
|
|
156
|
+
icon?: ReactElement;
|
|
157
|
+
count?: number;
|
|
158
|
+
label?: string;
|
|
159
|
+
selected?: boolean;
|
|
160
|
+
onSelectedChange?: ToggleProps['onPressedChange'];
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
declare type ClassProp = {
|
|
164
|
+
class: ClassValue;
|
|
165
|
+
className?: never;
|
|
166
|
+
} | {
|
|
167
|
+
class?: never;
|
|
168
|
+
className: ClassValue;
|
|
169
|
+
} | {
|
|
170
|
+
class?: never;
|
|
171
|
+
className?: never;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
declare type ClassValue = CLSX.ClassValue;
|
|
175
|
+
|
|
176
|
+
declare namespace CLSX {
|
|
177
|
+
export {
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
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>>;
|
|
187
|
+
|
|
188
|
+
declare const Content_3: React_2.ForwardRefExoticComponent<DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
189
|
+
|
|
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>>;
|
|
193
|
+
|
|
194
|
+
declare const createCheckboxScope: CreateScope;
|
|
195
|
+
|
|
196
|
+
declare const createDropdownMenuScope: CreateScope;
|
|
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
|
+
|
|
209
|
+
declare const createSelectScope: CreateScope;
|
|
210
|
+
|
|
211
|
+
declare const createTooltipScope: CreateScope;
|
|
212
|
+
|
|
213
|
+
declare type Direction = 'ltr' | 'rtl';
|
|
214
|
+
|
|
215
|
+
declare type Direction_2 = 'ltr' | 'rtl';
|
|
216
|
+
|
|
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>>;
|
|
222
|
+
|
|
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;
|
|
300
|
+
|
|
301
|
+
declare type DownloadRef = {
|
|
302
|
+
download(): void;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export declare const Dropdown: FC<DropdownPrimitive.DropdownMenuProps>;
|
|
306
|
+
|
|
307
|
+
export declare const DropdownCheckboxItem: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuCheckboxItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
308
|
+
|
|
309
|
+
export declare const DropdownContent: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
310
|
+
|
|
311
|
+
export declare const DropdownGroup: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuGroupProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
312
|
+
|
|
313
|
+
export declare const DropdownItem: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
314
|
+
|
|
315
|
+
export declare const DropdownLabel: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuLabelProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
316
|
+
|
|
317
|
+
declare const DropdownMenu: React_2.FC<DropdownMenuProps>;
|
|
318
|
+
|
|
319
|
+
declare const DropdownMenuArrow: React_2.ForwardRefExoticComponent<DropdownMenuArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
320
|
+
|
|
321
|
+
declare interface DropdownMenuArrowProps extends MenuArrowProps_2 {
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
325
|
+
|
|
326
|
+
declare interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps_2 {
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
330
|
+
|
|
331
|
+
declare interface DropdownMenuContentProps extends Omit<MenuContentProps_2, 'onEntryFocus'> {
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
335
|
+
|
|
336
|
+
declare interface DropdownMenuGroupProps extends MenuGroupProps_2 {
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
340
|
+
|
|
341
|
+
declare const DropdownMenuItemIndicator: React_2.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
342
|
+
|
|
343
|
+
declare interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps_2 {
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
declare interface DropdownMenuItemProps extends MenuItemProps_2 {
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
350
|
+
|
|
351
|
+
declare interface DropdownMenuLabelProps extends MenuLabelProps_2 {
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
declare const DropdownMenuPortal: React_2.FC<DropdownMenuPortalProps>;
|
|
355
|
+
|
|
356
|
+
declare interface DropdownMenuPortalProps extends MenuPortalProps {
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
declare interface DropdownMenuProps {
|
|
360
|
+
children?: React_2.ReactNode;
|
|
361
|
+
dir?: Direction;
|
|
362
|
+
open?: boolean;
|
|
363
|
+
defaultOpen?: boolean;
|
|
364
|
+
onOpenChange?(open: boolean): void;
|
|
365
|
+
modal?: boolean;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
369
|
+
|
|
370
|
+
declare interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps_2 {
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
374
|
+
|
|
375
|
+
declare interface DropdownMenuRadioItemProps extends MenuRadioItemProps_2 {
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
379
|
+
|
|
380
|
+
declare interface DropdownMenuSeparatorProps extends MenuSeparatorProps_2 {
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
declare const DropdownMenuSub: React_2.FC<DropdownMenuSubProps>;
|
|
384
|
+
|
|
385
|
+
declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
386
|
+
|
|
387
|
+
declare interface DropdownMenuSubContentProps extends MenuSubContentProps_2 {
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
declare interface DropdownMenuSubProps {
|
|
391
|
+
children?: React_2.ReactNode;
|
|
392
|
+
open?: boolean;
|
|
393
|
+
defaultOpen?: boolean;
|
|
394
|
+
onOpenChange?(open: boolean): void;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
398
|
+
|
|
399
|
+
declare interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps_2 {
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
403
|
+
|
|
404
|
+
declare interface DropdownMenuTriggerProps extends PrimitiveButtonProps_3 {
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export declare const DropdownPortal: FC<DropdownPrimitive.DropdownMenuPortalProps>;
|
|
408
|
+
|
|
409
|
+
declare namespace DropdownPrimitive {
|
|
410
|
+
export {
|
|
411
|
+
Direction,
|
|
412
|
+
createDropdownMenuScope,
|
|
413
|
+
DropdownMenuProps,
|
|
414
|
+
DropdownMenu,
|
|
415
|
+
PrimitiveButtonProps_3 as PrimitiveButtonProps,
|
|
416
|
+
DropdownMenuTriggerProps,
|
|
417
|
+
DropdownMenuTrigger,
|
|
418
|
+
MenuPortalProps,
|
|
419
|
+
DropdownMenuPortalProps,
|
|
420
|
+
DropdownMenuPortal,
|
|
421
|
+
MenuContentProps_2 as MenuContentProps,
|
|
422
|
+
DropdownMenuContentProps,
|
|
423
|
+
DropdownMenuContent,
|
|
424
|
+
MenuGroupProps_2 as MenuGroupProps,
|
|
425
|
+
DropdownMenuGroupProps,
|
|
426
|
+
DropdownMenuGroup,
|
|
427
|
+
MenuLabelProps_2 as MenuLabelProps,
|
|
428
|
+
DropdownMenuLabelProps,
|
|
429
|
+
DropdownMenuLabel,
|
|
430
|
+
MenuItemProps_2 as MenuItemProps,
|
|
431
|
+
DropdownMenuItemProps,
|
|
432
|
+
DropdownMenuItem,
|
|
433
|
+
MenuCheckboxItemProps_2 as MenuCheckboxItemProps,
|
|
434
|
+
DropdownMenuCheckboxItemProps,
|
|
435
|
+
DropdownMenuCheckboxItem,
|
|
436
|
+
MenuRadioGroupProps_2 as MenuRadioGroupProps,
|
|
437
|
+
DropdownMenuRadioGroupProps,
|
|
438
|
+
DropdownMenuRadioGroup,
|
|
439
|
+
MenuRadioItemProps_2 as MenuRadioItemProps,
|
|
440
|
+
DropdownMenuRadioItemProps,
|
|
441
|
+
DropdownMenuRadioItem,
|
|
442
|
+
MenuItemIndicatorProps_2 as MenuItemIndicatorProps,
|
|
443
|
+
DropdownMenuItemIndicatorProps,
|
|
444
|
+
DropdownMenuItemIndicator,
|
|
445
|
+
MenuSeparatorProps_2 as MenuSeparatorProps,
|
|
446
|
+
DropdownMenuSeparatorProps,
|
|
447
|
+
DropdownMenuSeparator,
|
|
448
|
+
MenuArrowProps_2 as MenuArrowProps,
|
|
449
|
+
DropdownMenuArrowProps,
|
|
450
|
+
DropdownMenuArrow,
|
|
451
|
+
DropdownMenuSubProps,
|
|
452
|
+
DropdownMenuSub,
|
|
453
|
+
MenuSubTriggerProps_2 as MenuSubTriggerProps,
|
|
454
|
+
DropdownMenuSubTriggerProps,
|
|
455
|
+
DropdownMenuSubTrigger,
|
|
456
|
+
MenuSubContentProps_2 as MenuSubContentProps,
|
|
457
|
+
DropdownMenuSubContentProps,
|
|
458
|
+
DropdownMenuSubContent,
|
|
459
|
+
Root_7 as Root,
|
|
460
|
+
Trigger,
|
|
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
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export declare const DropdownRadioGroup: ForwardRefExoticComponent<DropdownPrimitive.DropdownMenuRadioGroupProps & RefAttributes<HTMLDivElement>>;
|
|
479
|
+
|
|
480
|
+
export declare const DropdownRadioItem: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuRadioItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
481
|
+
|
|
482
|
+
export declare const DropdownSeparator: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuSeparatorProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
483
|
+
|
|
484
|
+
export declare const DropdownSub: FC<DropdownPrimitive.DropdownMenuSubProps>;
|
|
485
|
+
|
|
486
|
+
export declare const DropdownSubContent: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuSubContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
487
|
+
|
|
488
|
+
export declare const DropdownSubTrigger: ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuSubTriggerProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
489
|
+
|
|
490
|
+
export declare const DropdownTrigger: ForwardRefExoticComponent<DropdownPrimitive.DropdownMenuTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
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
|
+
|
|
498
|
+
declare type FocusScopeProps = Radix.ComponentPropsWithoutRef<typeof FocusScope>;
|
|
499
|
+
|
|
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>;
|
|
526
|
+
|
|
527
|
+
declare const Group: React_2.ForwardRefExoticComponent<MenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
528
|
+
|
|
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 {
|
|
534
|
+
/** Group ID */
|
|
535
|
+
id: number;
|
|
536
|
+
/** Name of the Group */
|
|
537
|
+
name: string;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export declare const HistogramChart: ForwardRefExoticComponent<Omit<HistogramChartProps, "height" | "width"> & RefAttributes<DownloadRef>>;
|
|
541
|
+
|
|
542
|
+
declare interface HistogramChartProps {
|
|
543
|
+
/** Title name for the tooltip of the chart */
|
|
544
|
+
tooltipTitle: string;
|
|
545
|
+
/** Name of the label to be displayed on Y-Axis of the line chart */
|
|
546
|
+
xAxisLabel: string;
|
|
547
|
+
/** Name of the label to be displayed on Y-Axis of the line chart */
|
|
548
|
+
yAxisLabel: string;
|
|
549
|
+
/** Width of the chart in pixels */
|
|
550
|
+
width: number;
|
|
551
|
+
/** Height of the chart in pixels */
|
|
552
|
+
height: number;
|
|
553
|
+
/** The domain of the histogram. [fromNumber, toNumber] */
|
|
554
|
+
domain?: [number, number];
|
|
555
|
+
/** The number of bins the data would be grouped to. Note: this is an indicating number only. Might differ in actual value. */
|
|
556
|
+
binCount?: number;
|
|
557
|
+
/** The Maximum number of bins the data would be grouped to. */
|
|
558
|
+
maxBinCount?: number;
|
|
559
|
+
/** The Minimum number of bins the data would be grouped to. */
|
|
560
|
+
minBinCount?: number;
|
|
561
|
+
/** Frequency series for the histogram */
|
|
562
|
+
data: number[];
|
|
563
|
+
/** Whether the domain be made into nearest integers. This makes the xAxis adhere to integers. */
|
|
564
|
+
integerBins?: boolean;
|
|
565
|
+
/** Whether the yAxis be made into nearest integers. This makes the yAxis adhere to integers. */
|
|
566
|
+
integerYAxis?: boolean;
|
|
567
|
+
/** Symbol to appended before or after the ticks in xAxis */
|
|
568
|
+
xAxisUnitSymbol?: AxisSymbolType_2;
|
|
569
|
+
/** Symbol to appended before or after the ticks in yAxis */
|
|
570
|
+
yAxisUnitSymbol?: AxisSymbolType_2;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
declare const Icon: React_2.ForwardRefExoticComponent<SelectIconProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
574
|
+
|
|
575
|
+
declare const Indicator: React_2.ForwardRefExoticComponent<CheckboxIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
576
|
+
|
|
577
|
+
export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
|
|
578
|
+
|
|
579
|
+
declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
580
|
+
className?: string;
|
|
581
|
+
}
|
|
582
|
+
|
|
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>>;
|
|
586
|
+
|
|
587
|
+
declare const Item_3: React_2.ForwardRefExoticComponent<DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
588
|
+
|
|
589
|
+
declare const Item_4: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
590
|
+
|
|
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>>;
|
|
596
|
+
|
|
597
|
+
declare const ItemText: React_2.ForwardRefExoticComponent<SelectItemTextProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
598
|
+
|
|
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>>;
|
|
602
|
+
|
|
603
|
+
declare const Label_3: React_2.ForwardRefExoticComponent<SelectLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
604
|
+
|
|
605
|
+
export declare const LineChart: ForwardRefExoticComponent<Omit<LineChartProps, "height" | "width"> & RefAttributes<DownloadRef>>;
|
|
606
|
+
|
|
607
|
+
declare interface LineChartProps {
|
|
608
|
+
/** the maximum number of characters to show in a x-axis label */
|
|
609
|
+
xAxisCharLimit?: number;
|
|
610
|
+
/** Show the chart in either 'mini' or 'full' mode to show limited or full data. Full mode as ability to select nodes to display */
|
|
611
|
+
mode?: 'mini' | 'full';
|
|
612
|
+
/** Height of the chart in pixels */
|
|
613
|
+
height: number;
|
|
614
|
+
/** Width of the chart in pixels */
|
|
615
|
+
width: number;
|
|
616
|
+
/** Symbol to appended before or after the ticks in xAxis */
|
|
617
|
+
xAxisUnitSymbol?: AxisSymbolType;
|
|
618
|
+
/** Symbol to appended before or after the ticks in yAxis */
|
|
619
|
+
yAxisUnitSymbol?: AxisSymbolType;
|
|
620
|
+
/** Name of the label to be displayed on X-Axis of the line chart */
|
|
621
|
+
xAxisLabel: string;
|
|
622
|
+
/** Name of the label to be displayed on Y-Axis of the line chart */
|
|
623
|
+
yAxisLabel: string;
|
|
624
|
+
/** Values for the x-Axis of the line chart */
|
|
625
|
+
xAxisValues: string[];
|
|
626
|
+
/** Data that corresponds to each node in the chart. These will generally contain info to be shown on the tooltip. */
|
|
627
|
+
nodes: Node_2[];
|
|
628
|
+
/** Data that corresponds to each line in the chart. Each item in the array corresponds to a line on the chart */
|
|
629
|
+
series: {
|
|
630
|
+
/** Id of the matching node. This will be used to fetch tooltip details for the line */
|
|
631
|
+
id: string;
|
|
632
|
+
/** Data with respect to y-Axis. This should be in the same order as xAxis values giving rise to [x,y] pairs. */
|
|
633
|
+
data: ChartDataType['y'][];
|
|
634
|
+
}[];
|
|
635
|
+
/** Title name for the tooltip of the chart */
|
|
636
|
+
tooltipTitle: string;
|
|
637
|
+
/** Number of characters post which the data in tooltip will be stacked instead of side-by-side */
|
|
638
|
+
tooltipStackCharLimit?: number;
|
|
639
|
+
/** Domain of x-Axis - string values of the band */
|
|
640
|
+
xAxisDomain?: string[];
|
|
641
|
+
/** Domain of y-Axis - The start and end of values for yAxis */
|
|
642
|
+
yAxisDomain?: [number, number];
|
|
643
|
+
/** Should a Line connect if there are missing values */
|
|
644
|
+
connectNulls?: boolean;
|
|
645
|
+
/** Maxiumum number of nodes to be shown in `mini` mode */
|
|
646
|
+
maxNodesInMiniMode: number;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
declare interface Link {
|
|
650
|
+
/** Source node ID. Value should be present in nodes[]. */
|
|
651
|
+
source: string;
|
|
652
|
+
/** Target node ID. Value should be present in nodes[]. */
|
|
653
|
+
target: string;
|
|
654
|
+
/** Weight between each node. */
|
|
655
|
+
weight: number;
|
|
656
|
+
}
|
|
657
|
+
|
|
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>;
|
|
731
|
+
|
|
732
|
+
declare const MenuGroup: React_2.ForwardRefExoticComponent<MenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
733
|
+
|
|
734
|
+
declare interface MenuGroupProps extends PrimitiveDivProps_6 {
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
declare type MenuGroupProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
738
|
+
|
|
739
|
+
declare const MenuItem: React_2.ForwardRefExoticComponent<MenuItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
740
|
+
|
|
741
|
+
declare interface MenuItemImplProps extends PrimitiveDivProps_6 {
|
|
742
|
+
disabled?: boolean;
|
|
743
|
+
textValue?: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
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>;
|
|
772
|
+
|
|
773
|
+
declare type MenuPortalProps = React_2.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
774
|
+
|
|
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>>;
|
|
895
|
+
|
|
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
|
+
}
|
|
903
|
+
|
|
904
|
+
declare type MenuSubContentProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
905
|
+
|
|
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>>;
|
|
913
|
+
|
|
914
|
+
declare interface MenuSubTriggerProps extends MenuItemImplProps {
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
declare type MenuSubTriggerProps_2 = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
918
|
+
|
|
919
|
+
declare interface Node_2 {
|
|
920
|
+
id: string;
|
|
921
|
+
name: string;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
declare interface Node_3 {
|
|
925
|
+
/** Source node ID. */
|
|
926
|
+
id: string;
|
|
927
|
+
/** Name of the Node. This will be displayed on the chart */
|
|
928
|
+
name: string;
|
|
929
|
+
/** Group ID. This helps the nodes to be aligned. */
|
|
930
|
+
group: number;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
declare const NODES: readonly ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul"];
|
|
934
|
+
|
|
935
|
+
declare type OmitUndefined<T> = T extends undefined ? never : T;
|
|
936
|
+
|
|
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
|
+
}
|
|
957
|
+
|
|
958
|
+
declare type PopperArrowProps_2 = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
959
|
+
|
|
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
|
+
}
|
|
980
|
+
|
|
981
|
+
declare type PopperContentProps_2 = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
|
982
|
+
|
|
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>;
|
|
1025
|
+
|
|
1026
|
+
declare type PortalProps = React_2.ComponentPropsWithoutRef<typeof Portal>;
|
|
1027
|
+
|
|
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
|
+
}
|
|
1034
|
+
|
|
1035
|
+
declare type PortalProps_3 = React_2.ComponentPropsWithoutRef<typeof Portal>;
|
|
1036
|
+
|
|
1037
|
+
declare type PortalProps_4 = React_2.ComponentPropsWithoutRef<typeof Portal>;
|
|
1038
|
+
|
|
1039
|
+
declare const Primitive: Primitives;
|
|
1040
|
+
|
|
1041
|
+
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
1042
|
+
|
|
1043
|
+
declare type PrimitiveButtonProps_2 = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
1044
|
+
|
|
1045
|
+
declare type PrimitiveButtonProps_3 = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
1046
|
+
|
|
1047
|
+
declare type PrimitiveButtonProps_4 = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
1048
|
+
|
|
1049
|
+
declare type PrimitiveButtonProps_5 = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
1050
|
+
|
|
1051
|
+
declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
1052
|
+
|
|
1053
|
+
declare type PrimitiveDivProps_2 = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
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
|
+
|
|
1078
|
+
declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
1079
|
+
|
|
1080
|
+
declare type PrimitiveSpanProps_2 = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
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
|
+
|
|
1090
|
+
declare const Provider: React_2.FC<TooltipProviderProps>;
|
|
1091
|
+
|
|
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>>;
|
|
1097
|
+
|
|
1098
|
+
declare const RadioItem_2: React_2.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1099
|
+
|
|
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>>;
|
|
1119
|
+
|
|
1120
|
+
declare const Root_4: React_2.FC<PopperProps>;
|
|
1121
|
+
|
|
1122
|
+
declare const Root_5: React_2.ForwardRefExoticComponent<RovingFocusGroupProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
1123
|
+
|
|
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
|
+
}
|
|
1177
|
+
|
|
1178
|
+
declare type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
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
|
+
|
|
1191
|
+
export declare const SankeyChart: ForwardRefExoticComponent<Omit<SankeyProps, "height" | "width"> & RefAttributes<DownloadRef>>;
|
|
1192
|
+
|
|
1193
|
+
declare interface SankeyProps {
|
|
1194
|
+
/** Height of the chart in pixels */
|
|
1195
|
+
height: number;
|
|
1196
|
+
/** width of the chart in pixels */
|
|
1197
|
+
width: number;
|
|
1198
|
+
/** Header text for the tooltip */
|
|
1199
|
+
tooltipTitle: string;
|
|
1200
|
+
/** Array of nodes. Each node has an id, name and a groupId it belongs to */
|
|
1201
|
+
nodes: Node_3[];
|
|
1202
|
+
/** Array of Links. Each node has an sourceId, targetId and weight between them */
|
|
1203
|
+
links: Link[];
|
|
1204
|
+
/** Array of Groups. Contains details about each group */
|
|
1205
|
+
groups: Group_4[];
|
|
1206
|
+
/** Label describining the weight between two nodes. Appears in tooltip. */
|
|
1207
|
+
weightLabel: string;
|
|
1208
|
+
}
|
|
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
|
+
|
|
1218
|
+
declare const ScrollDownButton: React_2.ForwardRefExoticComponent<SelectScrollDownButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1219
|
+
|
|
1220
|
+
declare const ScrollUpButton: React_2.ForwardRefExoticComponent<SelectScrollUpButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1221
|
+
|
|
1222
|
+
export declare const Select: FC<SelectPrimitive.SelectProps>;
|
|
1223
|
+
|
|
1224
|
+
declare const Select_2: React_2.FC<SelectProps>;
|
|
1225
|
+
|
|
1226
|
+
declare const SelectArrow: React_2.ForwardRefExoticComponent<SelectArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
1227
|
+
|
|
1228
|
+
declare interface SelectArrowProps extends PopperArrowProps_3 {
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
export declare const SelectContent: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1232
|
+
|
|
1233
|
+
declare const SelectContent_2: React_2.ForwardRefExoticComponent<SelectContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1234
|
+
|
|
1235
|
+
declare interface SelectContentImplProps extends Omit<SelectPopperPositionProps, keyof SelectPopperPrivateProps>, Omit<SelectItemAlignedPositionProps, keyof SelectPopperPrivateProps> {
|
|
1236
|
+
/**
|
|
1237
|
+
* Event handler called when auto-focusing on close.
|
|
1238
|
+
* Can be prevented.
|
|
1239
|
+
*/
|
|
1240
|
+
onCloseAutoFocus?: FocusScopeProps_3['onUnmountAutoFocus'];
|
|
1241
|
+
/**
|
|
1242
|
+
* Event handler called when the escape key is down.
|
|
1243
|
+
* Can be prevented.
|
|
1244
|
+
*/
|
|
1245
|
+
onEscapeKeyDown?: DismissableLayerProps_3['onEscapeKeyDown'];
|
|
1246
|
+
/**
|
|
1247
|
+
* Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
1248
|
+
* Can be prevented.
|
|
1249
|
+
*/
|
|
1250
|
+
onPointerDownOutside?: DismissableLayerProps_3['onPointerDownOutside'];
|
|
1251
|
+
position?: 'item-aligned' | 'popper';
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
declare interface SelectContentProps extends SelectContentImplProps {
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
export declare const SelectGroup: ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & RefAttributes<HTMLDivElement>>;
|
|
1258
|
+
|
|
1259
|
+
declare const SelectGroup_2: React_2.ForwardRefExoticComponent<SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1260
|
+
|
|
1261
|
+
declare interface SelectGroupProps extends PrimitiveDivProps_7 {
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
declare const SelectIcon: React_2.ForwardRefExoticComponent<SelectIconProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
1265
|
+
|
|
1266
|
+
declare interface SelectIconProps extends PrimitiveSpanProps_4 {
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
export declare const SelectItem: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1270
|
+
|
|
1271
|
+
declare const SelectItem_2: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1272
|
+
|
|
1273
|
+
declare interface SelectItemAlignedPositionProps extends PrimitiveDivProps_7, SelectPopperPrivateProps {
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
declare const SelectItemIndicator: React_2.ForwardRefExoticComponent<SelectItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
1277
|
+
|
|
1278
|
+
declare interface SelectItemIndicatorProps extends PrimitiveSpanProps_4 {
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
declare interface SelectItemProps extends PrimitiveDivProps_7 {
|
|
1282
|
+
value: string;
|
|
1283
|
+
disabled?: boolean;
|
|
1284
|
+
textValue?: string;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
declare const SelectItemText: React_2.ForwardRefExoticComponent<SelectItemTextProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
1288
|
+
|
|
1289
|
+
declare interface SelectItemTextProps extends PrimitiveSpanProps_4 {
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
export declare const SelectLabel: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1293
|
+
|
|
1294
|
+
declare const SelectLabel_2: React_2.ForwardRefExoticComponent<SelectLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1295
|
+
|
|
1296
|
+
declare interface SelectLabelProps extends PrimitiveDivProps_7 {
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
declare interface SelectPopperPositionProps extends PopperContentProps_3, SelectPopperPrivateProps {
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
declare type SelectPopperPrivateProps = {
|
|
1303
|
+
onPlaced?: PopperContentProps_3['onPlaced'];
|
|
1304
|
+
};
|
|
1305
|
+
|
|
1306
|
+
declare const SelectPortal: React_2.FC<SelectPortalProps>;
|
|
1307
|
+
|
|
1308
|
+
declare interface SelectPortalProps {
|
|
1309
|
+
children?: React_2.ReactNode;
|
|
1310
|
+
/**
|
|
1311
|
+
* Specify a container element to portal the content into.
|
|
1312
|
+
*/
|
|
1313
|
+
container?: PortalProps_3['container'];
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
declare namespace SelectPrimitive {
|
|
1317
|
+
export {
|
|
1318
|
+
Direction_4 as Direction,
|
|
1319
|
+
createSelectScope,
|
|
1320
|
+
SelectProps,
|
|
1321
|
+
Select_2 as Select,
|
|
1322
|
+
PrimitiveButtonProps_4 as PrimitiveButtonProps,
|
|
1323
|
+
SelectTriggerProps,
|
|
1324
|
+
SelectTrigger_2 as SelectTrigger,
|
|
1325
|
+
PrimitiveSpanProps_4 as PrimitiveSpanProps,
|
|
1326
|
+
SelectValueProps,
|
|
1327
|
+
SelectValue_2 as SelectValue,
|
|
1328
|
+
SelectIconProps,
|
|
1329
|
+
SelectIcon,
|
|
1330
|
+
PortalProps_3 as PortalProps,
|
|
1331
|
+
SelectPortalProps,
|
|
1332
|
+
SelectPortal,
|
|
1333
|
+
SelectContentProps,
|
|
1334
|
+
SelectContent_2 as SelectContent,
|
|
1335
|
+
DismissableLayerProps_3 as DismissableLayerProps,
|
|
1336
|
+
FocusScopeProps_3 as FocusScopeProps,
|
|
1337
|
+
SelectPopperPrivateProps,
|
|
1338
|
+
SelectContentImplProps,
|
|
1339
|
+
SelectItemAlignedPositionProps,
|
|
1340
|
+
PopperContentProps_3 as PopperContentProps,
|
|
1341
|
+
SelectPopperPositionProps,
|
|
1342
|
+
PrimitiveDivProps_7 as PrimitiveDivProps,
|
|
1343
|
+
SelectViewportProps,
|
|
1344
|
+
SelectViewport,
|
|
1345
|
+
SelectGroupProps,
|
|
1346
|
+
SelectGroup_2 as SelectGroup,
|
|
1347
|
+
SelectLabelProps,
|
|
1348
|
+
SelectLabel_2 as SelectLabel,
|
|
1349
|
+
SelectItemProps,
|
|
1350
|
+
SelectItem_2 as SelectItem,
|
|
1351
|
+
SelectItemTextProps,
|
|
1352
|
+
SelectItemText,
|
|
1353
|
+
SelectItemIndicatorProps,
|
|
1354
|
+
SelectItemIndicator,
|
|
1355
|
+
SelectScrollUpButtonProps,
|
|
1356
|
+
SelectScrollUpButton,
|
|
1357
|
+
SelectScrollDownButtonProps,
|
|
1358
|
+
SelectScrollDownButton,
|
|
1359
|
+
SelectScrollButtonImplProps,
|
|
1360
|
+
SelectSeparatorProps,
|
|
1361
|
+
SelectSeparator_2 as SelectSeparator,
|
|
1362
|
+
PopperArrowProps_3 as PopperArrowProps,
|
|
1363
|
+
SelectArrowProps,
|
|
1364
|
+
SelectArrow,
|
|
1365
|
+
Root_8 as Root,
|
|
1366
|
+
Trigger_2 as Trigger,
|
|
1367
|
+
Value,
|
|
1368
|
+
Icon,
|
|
1369
|
+
Portal_4 as Portal,
|
|
1370
|
+
Content_4 as Content,
|
|
1371
|
+
Viewport,
|
|
1372
|
+
Group_3 as Group,
|
|
1373
|
+
Label_3 as Label,
|
|
1374
|
+
Item_4 as Item,
|
|
1375
|
+
ItemText,
|
|
1376
|
+
ItemIndicator_3 as ItemIndicator,
|
|
1377
|
+
ScrollUpButton,
|
|
1378
|
+
ScrollDownButton,
|
|
1379
|
+
Separator_3 as Separator,
|
|
1380
|
+
Arrow_5 as Arrow
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
declare interface SelectProps {
|
|
1385
|
+
children?: React_2.ReactNode;
|
|
1386
|
+
value?: string;
|
|
1387
|
+
defaultValue?: string;
|
|
1388
|
+
onValueChange?(value: string): void;
|
|
1389
|
+
open?: boolean;
|
|
1390
|
+
defaultOpen?: boolean;
|
|
1391
|
+
onOpenChange?(open: boolean): void;
|
|
1392
|
+
dir?: Direction_4;
|
|
1393
|
+
name?: string;
|
|
1394
|
+
autoComplete?: string;
|
|
1395
|
+
disabled?: boolean;
|
|
1396
|
+
required?: boolean;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
declare interface SelectScrollButtonImplProps extends PrimitiveDivProps_7 {
|
|
1400
|
+
onAutoScroll(): void;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
declare const SelectScrollDownButton: React_2.ForwardRefExoticComponent<SelectScrollDownButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1404
|
+
|
|
1405
|
+
declare interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
declare const SelectScrollUpButton: React_2.ForwardRefExoticComponent<SelectScrollUpButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1409
|
+
|
|
1410
|
+
declare interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
export declare const SelectSeparator: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1414
|
+
|
|
1415
|
+
declare const SelectSeparator_2: React_2.ForwardRefExoticComponent<SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1416
|
+
|
|
1417
|
+
declare interface SelectSeparatorProps extends PrimitiveDivProps_7 {
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
export declare const SelectTrigger: ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
1421
|
+
|
|
1422
|
+
declare const SelectTrigger_2: React_2.ForwardRefExoticComponent<SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1423
|
+
|
|
1424
|
+
declare interface SelectTriggerProps extends PrimitiveButtonProps_4 {
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
export declare const SelectValue: ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & RefAttributes<HTMLSpanElement>>;
|
|
1428
|
+
|
|
1429
|
+
declare const SelectValue_2: React_2.ForwardRefExoticComponent<SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
1430
|
+
|
|
1431
|
+
declare interface SelectValueProps extends Omit<PrimitiveSpanProps_4, 'placeholder'> {
|
|
1432
|
+
placeholder?: React_2.ReactNode;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
declare const SelectViewport: React_2.ForwardRefExoticComponent<SelectViewportProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1436
|
+
|
|
1437
|
+
declare interface SelectViewportProps extends PrimitiveDivProps_7 {
|
|
1438
|
+
}
|
|
1439
|
+
|
|
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>>;
|
|
1443
|
+
|
|
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"];
|
|
1449
|
+
|
|
1450
|
+
export declare function SplitButton({ children, size, status, variant, ...props }: SplitButtonProps): JSX_2.Element;
|
|
1451
|
+
|
|
1452
|
+
export declare const SplitButtonDropdownCheckboxItem: ForwardRefExoticComponent<Omit<DropdownMenuCheckboxItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1453
|
+
|
|
1454
|
+
export declare const SplitButtonDropdownContent: ForwardRefExoticComponent<Omit<Omit<DropdownMenuContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1455
|
+
|
|
1456
|
+
export declare const SplitButtonDropdownGroup: ForwardRefExoticComponent<Omit<DropdownMenuGroupProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1457
|
+
|
|
1458
|
+
export declare const SplitButtonDropdownItem: ForwardRefExoticComponent<Omit<DropdownMenuItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1459
|
+
|
|
1460
|
+
export declare const SplitButtonDropdownLabel: ForwardRefExoticComponent<Omit<DropdownMenuLabelProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1461
|
+
|
|
1462
|
+
export declare const SplitButtonDropdownRadioGroup: ForwardRefExoticComponent<DropdownMenuRadioGroupProps & RefAttributes<HTMLDivElement>>;
|
|
1463
|
+
|
|
1464
|
+
export declare const SplitButtonDropdownRadioItem: ForwardRefExoticComponent<Omit<DropdownMenuRadioItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1465
|
+
|
|
1466
|
+
declare type SplitButtonProps = ButtonProps;
|
|
1467
|
+
|
|
1468
|
+
declare const Sub: React_2.FC<MenuSubProps>;
|
|
1469
|
+
|
|
1470
|
+
declare const Sub_2: React_2.FC<DropdownMenuSubProps>;
|
|
1471
|
+
|
|
1472
|
+
declare const SubContent: React_2.ForwardRefExoticComponent<MenuSubContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1473
|
+
|
|
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>>;
|
|
1479
|
+
|
|
1480
|
+
declare const Toggle: React_2.ForwardRefExoticComponent<ToggleProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1481
|
+
|
|
1482
|
+
declare interface ToggleGroupImplMultipleProps extends ToggleGroupImplProps {
|
|
1483
|
+
/**
|
|
1484
|
+
* The controlled stateful value of the items that are pressed.
|
|
1485
|
+
*/
|
|
1486
|
+
value?: string[];
|
|
1487
|
+
/**
|
|
1488
|
+
* The value of the items that are pressed when initially rendered. Use
|
|
1489
|
+
* `defaultValue` if you do not need to control the state of a toggle group.
|
|
1490
|
+
*/
|
|
1491
|
+
defaultValue?: string[];
|
|
1492
|
+
/**
|
|
1493
|
+
* The callback that fires when the state of the toggle group changes.
|
|
1494
|
+
*/
|
|
1495
|
+
onValueChange?(value: string[]): void;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
declare interface ToggleGroupImplProps extends PrimitiveDivProps_8 {
|
|
1499
|
+
/**
|
|
1500
|
+
* Whether the group is disabled from user interaction.
|
|
1501
|
+
* @defaultValue false
|
|
1502
|
+
*/
|
|
1503
|
+
disabled?: boolean;
|
|
1504
|
+
/**
|
|
1505
|
+
* Whether the group should maintain roving focus of its buttons.
|
|
1506
|
+
* @defaultValue true
|
|
1507
|
+
*/
|
|
1508
|
+
rovingFocus?: boolean;
|
|
1509
|
+
loop?: RovingFocusGroupProps_3['loop'];
|
|
1510
|
+
orientation?: RovingFocusGroupProps_3['orientation'];
|
|
1511
|
+
dir?: RovingFocusGroupProps_3['dir'];
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
declare interface ToggleGroupImplSingleProps extends ToggleGroupImplProps {
|
|
1515
|
+
/**
|
|
1516
|
+
* The controlled stateful value of the item that is pressed.
|
|
1517
|
+
*/
|
|
1518
|
+
value?: string;
|
|
1519
|
+
/**
|
|
1520
|
+
* The value of the item that is pressed when initially rendered. Use
|
|
1521
|
+
* `defaultValue` if you do not need to control the state of a toggle group.
|
|
1522
|
+
*/
|
|
1523
|
+
defaultValue?: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* The callback that fires when the value of the toggle group changes.
|
|
1526
|
+
*/
|
|
1527
|
+
onValueChange?(value: string): void;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
declare interface ToggleGroupItemImplProps extends Omit<ToggleProps_2, 'defaultPressed' | 'onPressedChange'> {
|
|
1531
|
+
/**
|
|
1532
|
+
* A string value for the toggle group item. All items within a toggle group should use a unique value.
|
|
1533
|
+
*/
|
|
1534
|
+
value: string;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
declare interface ToggleGroupItemProps extends Omit<ToggleGroupItemImplProps, 'pressed'> {
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
declare interface ToggleGroupMultipleProps extends ToggleGroupImplMultipleProps {
|
|
1541
|
+
type: 'multiple';
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
declare interface ToggleGroupSingleProps extends ToggleGroupImplSingleProps {
|
|
1545
|
+
type: 'single';
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
declare interface ToggleProps extends PrimitiveButtonProps_2 {
|
|
1549
|
+
/**
|
|
1550
|
+
* The controlled state of the toggle.
|
|
1551
|
+
*/
|
|
1552
|
+
pressed?: boolean;
|
|
1553
|
+
/**
|
|
1554
|
+
* The state of the toggle when initially rendered. Use `defaultPressed`
|
|
1555
|
+
* if you do not need to control the state of the toggle.
|
|
1556
|
+
* @defaultValue false
|
|
1557
|
+
*/
|
|
1558
|
+
defaultPressed?: boolean;
|
|
1559
|
+
/**
|
|
1560
|
+
* The callback that fires when the state of the toggle changes.
|
|
1561
|
+
*/
|
|
1562
|
+
onPressedChange?(pressed: boolean): void;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
declare type ToggleProps_2 = Radix.ComponentPropsWithoutRef<typeof Toggle>;
|
|
1566
|
+
|
|
1567
|
+
export declare const Tooltip: FC<TooltipPrimitive.TooltipProps>;
|
|
1568
|
+
|
|
1569
|
+
declare const Tooltip_2: React_2.FC<TooltipProps>;
|
|
1570
|
+
|
|
1571
|
+
declare const TooltipArrow: React_2.ForwardRefExoticComponent<TooltipArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
1572
|
+
|
|
1573
|
+
declare interface TooltipArrowProps extends PopperArrowProps_4 {
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
export declare const TooltipContent: ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1577
|
+
|
|
1578
|
+
declare const TooltipContent_2: React_2.ForwardRefExoticComponent<TooltipContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1579
|
+
|
|
1580
|
+
declare interface TooltipContentImplProps extends Omit<PopperContentProps_4, 'onPlaced'> {
|
|
1581
|
+
/**
|
|
1582
|
+
* A more descriptive label for accessibility purpose
|
|
1583
|
+
*/
|
|
1584
|
+
'aria-label'?: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* Event handler called when the escape key is down.
|
|
1587
|
+
* Can be prevented.
|
|
1588
|
+
*/
|
|
1589
|
+
onEscapeKeyDown?: DismissableLayerProps_4['onEscapeKeyDown'];
|
|
1590
|
+
/**
|
|
1591
|
+
* Event handler called when the a `pointerdown` event happens outside of the `Tooltip`.
|
|
1592
|
+
* Can be prevented.
|
|
1593
|
+
*/
|
|
1594
|
+
onPointerDownOutside?: DismissableLayerProps_4['onPointerDownOutside'];
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
declare interface TooltipContentProps extends TooltipContentImplProps {
|
|
1598
|
+
/**
|
|
1599
|
+
* Used to force mounting when more control is needed. Useful when
|
|
1600
|
+
* controlling animation with React animation libraries.
|
|
1601
|
+
*/
|
|
1602
|
+
forceMount?: true;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
export declare const TooltipPortal: FC<TooltipPrimitive.TooltipPortalProps>;
|
|
1606
|
+
|
|
1607
|
+
declare const TooltipPortal_2: React_2.FC<TooltipPortalProps>;
|
|
1608
|
+
|
|
1609
|
+
declare interface TooltipPortalProps {
|
|
1610
|
+
children?: React_2.ReactNode;
|
|
1611
|
+
/**
|
|
1612
|
+
* Specify a container element to portal the content into.
|
|
1613
|
+
*/
|
|
1614
|
+
container?: PortalProps_4['container'];
|
|
1615
|
+
/**
|
|
1616
|
+
* Used to force mounting when more control is needed. Useful when
|
|
1617
|
+
* controlling animation with React animation libraries.
|
|
1618
|
+
*/
|
|
1619
|
+
forceMount?: true;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
declare namespace TooltipPrimitive {
|
|
1623
|
+
export {
|
|
1624
|
+
createTooltipScope,
|
|
1625
|
+
TooltipProviderProps,
|
|
1626
|
+
TooltipProvider_2 as TooltipProvider,
|
|
1627
|
+
TooltipProps,
|
|
1628
|
+
Tooltip_2 as Tooltip,
|
|
1629
|
+
PrimitiveButtonProps_5 as PrimitiveButtonProps,
|
|
1630
|
+
TooltipTriggerProps,
|
|
1631
|
+
TooltipTrigger_2 as TooltipTrigger,
|
|
1632
|
+
PortalProps_4 as PortalProps,
|
|
1633
|
+
TooltipPortalProps,
|
|
1634
|
+
TooltipPortal_2 as TooltipPortal,
|
|
1635
|
+
TooltipContentProps,
|
|
1636
|
+
TooltipContent_2 as TooltipContent,
|
|
1637
|
+
DismissableLayerProps_4 as DismissableLayerProps,
|
|
1638
|
+
PopperContentProps_4 as PopperContentProps,
|
|
1639
|
+
TooltipContentImplProps,
|
|
1640
|
+
PopperArrowProps_4 as PopperArrowProps,
|
|
1641
|
+
TooltipArrowProps,
|
|
1642
|
+
TooltipArrow,
|
|
1643
|
+
Provider,
|
|
1644
|
+
Root_9 as Root,
|
|
1645
|
+
Trigger_3 as Trigger,
|
|
1646
|
+
Portal_5 as Portal,
|
|
1647
|
+
Content_5 as Content,
|
|
1648
|
+
Arrow_6 as Arrow
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
declare interface TooltipProps {
|
|
1653
|
+
children?: React_2.ReactNode;
|
|
1654
|
+
open?: boolean;
|
|
1655
|
+
defaultOpen?: boolean;
|
|
1656
|
+
onOpenChange?: (open: boolean) => void;
|
|
1657
|
+
/**
|
|
1658
|
+
* The duration from when the pointer enters the trigger until the tooltip gets opened. This will
|
|
1659
|
+
* override the prop with the same name passed to Provider.
|
|
1660
|
+
* @defaultValue 700
|
|
1661
|
+
*/
|
|
1662
|
+
delayDuration?: number;
|
|
1663
|
+
/**
|
|
1664
|
+
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
1665
|
+
* @defaultValue false
|
|
1666
|
+
*/
|
|
1667
|
+
disableHoverableContent?: boolean;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
export declare const TooltipProvider: FC<TooltipPrimitive.TooltipProviderProps>;
|
|
1671
|
+
|
|
1672
|
+
declare const TooltipProvider_2: React_2.FC<TooltipProviderProps>;
|
|
1673
|
+
|
|
1674
|
+
declare interface TooltipProviderProps {
|
|
1675
|
+
children: React_2.ReactNode;
|
|
1676
|
+
/**
|
|
1677
|
+
* The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
1678
|
+
* @defaultValue 700
|
|
1679
|
+
*/
|
|
1680
|
+
delayDuration?: number;
|
|
1681
|
+
/**
|
|
1682
|
+
* How much time a user has to enter another trigger without incurring a delay again.
|
|
1683
|
+
* @defaultValue 300
|
|
1684
|
+
*/
|
|
1685
|
+
skipDelayDuration?: number;
|
|
1686
|
+
/**
|
|
1687
|
+
* When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
1688
|
+
* @defaultValue false
|
|
1689
|
+
*/
|
|
1690
|
+
disableHoverableContent?: boolean;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
export declare const TooltipTrigger: ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
1694
|
+
|
|
1695
|
+
declare const TooltipTrigger_2: React_2.ForwardRefExoticComponent<TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1696
|
+
|
|
1697
|
+
declare interface TooltipTriggerProps extends PrimitiveButtonProps_5 {
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
declare const Trigger: React_2.ForwardRefExoticComponent<DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1701
|
+
|
|
1702
|
+
declare const Trigger_2: React_2.ForwardRefExoticComponent<SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1703
|
+
|
|
1704
|
+
declare const Trigger_3: React_2.ForwardRefExoticComponent<TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1705
|
+
|
|
1706
|
+
declare const Value: React_2.ForwardRefExoticComponent<SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
1707
|
+
|
|
1708
|
+
declare type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
|
|
1709
|
+
|
|
1710
|
+
declare const Viewport: React_2.ForwardRefExoticComponent<SelectViewportProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1711
|
+
|
|
1712
|
+
export { }
|