@eqtylab/equality 4.13.1 → 4.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/code-block.module.module.css.module.css +2 -0
- package/dist/index.d.cts +1849 -0
- package/dist/index.d.ts +1849 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -27,23 +27,112 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
|
27
27
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
28
28
|
import { Theme as Theme$1 } from './theme/lib/utils.js';
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* **Props**
|
|
32
|
+
* - `children?: ReactNode`
|
|
33
|
+
* - `open?: boolean`
|
|
34
|
+
* - `defaultOpen?: boolean`
|
|
35
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
36
|
+
*
|
|
37
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
38
|
+
*/
|
|
30
39
|
declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
40
|
+
/**
|
|
41
|
+
* **Props**
|
|
42
|
+
* - `asChild?: boolean`
|
|
43
|
+
*
|
|
44
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
45
|
+
*
|
|
46
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
47
|
+
*/
|
|
31
48
|
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
49
|
+
/**
|
|
50
|
+
* **Props**
|
|
51
|
+
* - `children: React.ReactNode`
|
|
52
|
+
*
|
|
53
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
54
|
+
*/
|
|
32
55
|
declare const AlertDialogPortal: ({ children }: {
|
|
33
56
|
children: React$1.ReactNode;
|
|
34
57
|
}) => react_jsx_runtime.JSX.Element;
|
|
58
|
+
/**
|
|
59
|
+
* **Props**
|
|
60
|
+
* - `asChild?: boolean`
|
|
61
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
62
|
+
* controlling animation with React animation libraries.
|
|
63
|
+
*
|
|
64
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
65
|
+
*
|
|
66
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
67
|
+
*/
|
|
35
68
|
declare const AlertDialogOverlay: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
/**
|
|
70
|
+
* **Props**
|
|
71
|
+
* - `asChild?: boolean`
|
|
72
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
73
|
+
* Can be prevented.
|
|
74
|
+
* - `onFocusOutside?: (event: FocusOutsideEvent) => void` — Event handler called when the focus moves outside of the `DismissableLayer`.
|
|
75
|
+
* Can be prevented.
|
|
76
|
+
* - `onOpenAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on open.
|
|
77
|
+
* Can be prevented.
|
|
78
|
+
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
79
|
+
* Can be prevented.
|
|
80
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
81
|
+
* controlling animation with React animation libraries.
|
|
82
|
+
*
|
|
83
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
84
|
+
*
|
|
85
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
86
|
+
*/
|
|
36
87
|
declare const AlertDialogContent: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
88
|
+
/**
|
|
89
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
90
|
+
*
|
|
91
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
92
|
+
*/
|
|
37
93
|
declare const AlertDialogHeader: {
|
|
38
94
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
39
95
|
displayName: string;
|
|
40
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
99
|
+
*
|
|
100
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
101
|
+
*/
|
|
41
102
|
declare const AlertDialogFooter: {
|
|
42
103
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
43
104
|
displayName: string;
|
|
44
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* **Props**
|
|
108
|
+
* - `asChild?: boolean`
|
|
109
|
+
*
|
|
110
|
+
* Also accepts the standard `HTMLHeadingElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
111
|
+
*
|
|
112
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
113
|
+
*/
|
|
45
114
|
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
115
|
+
/**
|
|
116
|
+
* **Props**
|
|
117
|
+
* - `asChild?: boolean`
|
|
118
|
+
*
|
|
119
|
+
* Also accepts the standard `HTMLParagraphElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
120
|
+
*
|
|
121
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
122
|
+
*/
|
|
46
123
|
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
124
|
+
/**
|
|
125
|
+
* **Props**
|
|
126
|
+
* - `variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"primary"`)
|
|
127
|
+
* - `size?: "sm" | "md" | "lg"` (default `"sm"`)
|
|
128
|
+
* - `prefix?: React.ReactNode`
|
|
129
|
+
* - `suffix?: React.ReactNode`
|
|
130
|
+
* - `asChild?: boolean`
|
|
131
|
+
*
|
|
132
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
133
|
+
*
|
|
134
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
135
|
+
*/
|
|
47
136
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
48
137
|
variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
|
|
49
138
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -51,6 +140,18 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
|
|
|
51
140
|
prefix?: React$1.ReactNode;
|
|
52
141
|
suffix?: React$1.ReactNode;
|
|
53
142
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
143
|
+
/**
|
|
144
|
+
* **Props**
|
|
145
|
+
* - `variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"tertiary"`)
|
|
146
|
+
* - `size?: "sm" | "md" | "lg"` (default `"sm"`)
|
|
147
|
+
* - `prefix?: React.ReactNode`
|
|
148
|
+
* - `suffix?: React.ReactNode`
|
|
149
|
+
* - `asChild?: boolean`
|
|
150
|
+
*
|
|
151
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
152
|
+
*
|
|
153
|
+
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
154
|
+
*/
|
|
54
155
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
55
156
|
variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
|
|
56
157
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -80,14 +181,60 @@ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
80
181
|
*/
|
|
81
182
|
as?: 'div' | 'aside' | 'section';
|
|
82
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* **Props**
|
|
186
|
+
* - `variant?: "primary" | "neutral" | "success" | "warning" | "danger"` (default `"primary"`)
|
|
187
|
+
* - `title: string`
|
|
188
|
+
* - `description?: string | React.ReactNode`
|
|
189
|
+
* - `icon?: React.ReactElement | string | null`
|
|
190
|
+
* - `children?: React.ReactNode` — Body content, as an alternative to `description`. Rendered in a `div` rather
|
|
191
|
+
* than a `p`, so block-level content (paragraphs, lists, code blocks) is valid.
|
|
192
|
+
* Use this instead of `description` when the body is more than a sentence.
|
|
193
|
+
* - `as?: "div" | "aside" | "section"` (default `"div"`) — Element to render. Defaults to `div` with `role="alert"`, which is an
|
|
194
|
+
* assertive live region -- correct for a message that appears in response to
|
|
195
|
+
* something the user did, wrong for static page content. Use `aside` for a
|
|
196
|
+
* standing callout; it drops the live region unless you set `role` yourself.
|
|
197
|
+
*
|
|
198
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
199
|
+
*
|
|
200
|
+
* [Alert documentation](https://equality.eqtylab.io/components/alert)
|
|
201
|
+
*/
|
|
83
202
|
declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
84
203
|
|
|
85
204
|
interface AvatarProps extends React$1.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> {
|
|
86
205
|
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
87
206
|
shape?: 'circle' | 'square';
|
|
88
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* **Props**
|
|
210
|
+
* - `size?: "sm" | "md" | "lg" | "xl"` (default `"md"`)
|
|
211
|
+
* - `shape?: "circle" | "square"` (default `"circle"`)
|
|
212
|
+
* - `asChild?: boolean`
|
|
213
|
+
*
|
|
214
|
+
* Also accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
215
|
+
*
|
|
216
|
+
* [Avatar documentation](https://equality.eqtylab.io/components/avatar)
|
|
217
|
+
*/
|
|
89
218
|
declare const Avatar: React$1.ForwardRefExoticComponent<AvatarProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
219
|
+
/**
|
|
220
|
+
* **Props**
|
|
221
|
+
* - `asChild?: boolean`
|
|
222
|
+
* - `onLoadingStatusChange?: (status: ImageLoadingStatus) => void`
|
|
223
|
+
*
|
|
224
|
+
* Also accepts the standard `HTMLImageElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
225
|
+
*
|
|
226
|
+
* [Avatar documentation](https://equality.eqtylab.io/components/avatar)
|
|
227
|
+
*/
|
|
90
228
|
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
229
|
+
/**
|
|
230
|
+
* **Props**
|
|
231
|
+
* - `asChild?: boolean`
|
|
232
|
+
* - `delayMs?: number`
|
|
233
|
+
*
|
|
234
|
+
* Also accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
235
|
+
*
|
|
236
|
+
* [Avatar documentation](https://equality.eqtylab.io/components/avatar)
|
|
237
|
+
*/
|
|
91
238
|
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
92
239
|
|
|
93
240
|
declare const badgeVariants: (props?: ({
|
|
@@ -106,6 +253,24 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
106
253
|
monospace?: boolean;
|
|
107
254
|
pill?: boolean;
|
|
108
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* **Props**
|
|
258
|
+
* - `variant?: "primary" | "secondary" | "danger" | "neutral" | "warning" | "success"` (default `"primary"`)
|
|
259
|
+
* - `size?: "sm" | "md"` (default `"md"`)
|
|
260
|
+
* - `closeable?: boolean`
|
|
261
|
+
* - `handleClosable?: () => void`
|
|
262
|
+
* - `closeLabel?: string` (default `"Remove"`)
|
|
263
|
+
* - `truncate?: boolean` (default `false`)
|
|
264
|
+
* - `truncateLength?: number` (default `50`)
|
|
265
|
+
* - `icon?: React.ReactElement | string`
|
|
266
|
+
* - `display?: "both" | "text-only" | "icon-only"` (default `"both"`)
|
|
267
|
+
* - `monospace?: boolean` (default `false`)
|
|
268
|
+
* - `pill?: boolean` (default `true`)
|
|
269
|
+
*
|
|
270
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
271
|
+
*
|
|
272
|
+
* [Badge documentation](https://equality.eqtylab.io/components/badge)
|
|
273
|
+
*/
|
|
109
274
|
declare function Badge({ className, variant, size, closeable, handleClosable, closeLabel, truncate, truncateLength, icon, display, monospace, pill, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
110
275
|
|
|
111
276
|
interface BarGraphSegmentProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
@@ -124,6 +289,19 @@ interface BarGraphSegmentProps extends Omit<React$1.HTMLAttributes<HTMLDivElemen
|
|
|
124
289
|
*/
|
|
125
290
|
tooltip: React$1.ReactNode;
|
|
126
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* **Props**
|
|
294
|
+
* - `value: number` — Proportional value used to compute the segment's width (`value / sum of all values`).
|
|
295
|
+
* - `color: string` — Any valid CSS color, applied as the segment's background.
|
|
296
|
+
* - `label: string` — Visible legend label, shown when `showLabels` is set on the parent `BarGraph`.
|
|
297
|
+
* Not announced to screen readers — the segment's accessible name is its `tooltip`.
|
|
298
|
+
* - `tooltip: React.ReactNode` — Tooltip content shown on hover and keyboard focus. Also the segment's accessible
|
|
299
|
+
* name, so it must describe the segment on its own. Required.
|
|
300
|
+
*
|
|
301
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
302
|
+
*
|
|
303
|
+
* [Bar Graph documentation](https://equality.eqtylab.io/components/bar-graph)
|
|
304
|
+
*/
|
|
127
305
|
declare const BarGraphSegment: React$1.ForwardRefExoticComponent<BarGraphSegmentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
128
306
|
declare const barVariants: (props?: ({
|
|
129
307
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -142,6 +320,16 @@ interface BarGraphProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'ch
|
|
|
142
320
|
/** One or more `BarGraphSegment` elements. */
|
|
143
321
|
children: BarGraphChild | BarGraphChild[];
|
|
144
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* **Props**
|
|
325
|
+
* - `showLabels?: boolean` (default `false`) — Render a visible legend (color swatch + label) beneath the bar. Defaults to `false`.
|
|
326
|
+
* - `size?: "sm" | "md" | "lg"` — Bar height. `md` and `lg` use rounded rectangles instead of a full pill. Defaults to `md`.
|
|
327
|
+
* - `children: BarGraphChild | BarGraphChild[]` — One or more `BarGraphSegment` elements.
|
|
328
|
+
*
|
|
329
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
330
|
+
*
|
|
331
|
+
* [Bar Graph documentation](https://equality.eqtylab.io/components/bar-graph)
|
|
332
|
+
*/
|
|
145
333
|
declare const BarGraph: React$1.ForwardRefExoticComponent<BarGraphProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
146
334
|
|
|
147
335
|
var Light = {
|
|
@@ -219,6 +407,13 @@ var tokens = {
|
|
|
219
407
|
};
|
|
220
408
|
|
|
221
409
|
type Theme = keyof typeof tokens.Light.color.brand;
|
|
410
|
+
/**
|
|
411
|
+
* **Props**
|
|
412
|
+
* - `theme: "primary" | "secondary" | "green" | "red" | "yellow"`
|
|
413
|
+
* - `placement?: "full" | "top"` (default `"full"`)
|
|
414
|
+
*
|
|
415
|
+
* [Background Gradient documentation](https://equality.eqtylab.io/components/bg-gradient)
|
|
416
|
+
*/
|
|
222
417
|
declare const BgGradient: ({ theme, placement, }: {
|
|
223
418
|
theme: Theme;
|
|
224
419
|
placement?: "full" | "top";
|
|
@@ -244,6 +439,22 @@ type ButtonProps = VariantProps<typeof buttonVariants> & ((ButtonBaseProps & {
|
|
|
244
439
|
rel?: string;
|
|
245
440
|
download?: string | boolean;
|
|
246
441
|
}));
|
|
442
|
+
/**
|
|
443
|
+
* **Props**
|
|
444
|
+
* - `variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"primary"`)
|
|
445
|
+
* - `size?: "sm" | "md" | "lg"` (default `"md"`)
|
|
446
|
+
* - `asChild?: boolean` (default `false`)
|
|
447
|
+
* - `href?: string`
|
|
448
|
+
* - `prefix?: React.ReactNode`
|
|
449
|
+
* - `suffix?: React.ReactNode`
|
|
450
|
+
* - `target?: string`
|
|
451
|
+
* - `rel?: string`
|
|
452
|
+
* - `download?: string | boolean`
|
|
453
|
+
*
|
|
454
|
+
* Also accepts the standard `HTMLButtonElement` or `HTMLAnchorElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
455
|
+
*
|
|
456
|
+
* [Button documentation](https://equality.eqtylab.io/components/button)
|
|
457
|
+
*/
|
|
247
458
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
248
459
|
|
|
249
460
|
interface CardContentHeaderProps {
|
|
@@ -252,23 +463,80 @@ interface CardContentHeaderProps {
|
|
|
252
463
|
heading?: string;
|
|
253
464
|
onButtonClick?: () => void;
|
|
254
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* **Props**
|
|
468
|
+
* - `className?: string`
|
|
469
|
+
* - `icon: React.ReactElement | string`
|
|
470
|
+
* - `heading?: string`
|
|
471
|
+
* - `onButtonClick?: () => void`
|
|
472
|
+
*
|
|
473
|
+
* [Card Content Header documentation](https://equality.eqtylab.io/components/card-content-header)
|
|
474
|
+
*/
|
|
255
475
|
declare const CardContentHeader: React$1.ForwardRefExoticComponent<CardContentHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
256
476
|
|
|
477
|
+
/**
|
|
478
|
+
* **Props**
|
|
479
|
+
* - `elevation?: string | number` (default `"raised"`)
|
|
480
|
+
* - `hoverGradientClassName?: string`
|
|
481
|
+
*
|
|
482
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
483
|
+
*
|
|
484
|
+
* [Card documentation](https://equality.eqtylab.io/components/card)
|
|
485
|
+
*/
|
|
257
486
|
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
258
487
|
hoverGradientClassName?: string;
|
|
259
488
|
} & VariantProps<(props?: ({
|
|
260
489
|
elevation?: string | number | null | undefined;
|
|
261
490
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
491
|
+
/**
|
|
492
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
493
|
+
*
|
|
494
|
+
* [Card documentation](https://equality.eqtylab.io/components/card)
|
|
495
|
+
*/
|
|
262
496
|
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
497
|
+
/**
|
|
498
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
499
|
+
*
|
|
500
|
+
* [Card documentation](https://equality.eqtylab.io/components/card)
|
|
501
|
+
*/
|
|
263
502
|
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
503
|
+
/**
|
|
504
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
505
|
+
*
|
|
506
|
+
* [Card documentation](https://equality.eqtylab.io/components/card)
|
|
507
|
+
*/
|
|
264
508
|
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
509
|
+
/**
|
|
510
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
511
|
+
*
|
|
512
|
+
* [Card documentation](https://equality.eqtylab.io/components/card)
|
|
513
|
+
*/
|
|
265
514
|
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
515
|
+
/**
|
|
516
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
517
|
+
*
|
|
518
|
+
* [Card documentation](https://equality.eqtylab.io/components/card)
|
|
519
|
+
*/
|
|
266
520
|
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
267
521
|
|
|
268
522
|
interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
269
523
|
icon?: React$1.ElementType;
|
|
270
524
|
size?: 'sm' | 'md';
|
|
271
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* **Props**
|
|
528
|
+
* - `icon?: React.ElementType`
|
|
529
|
+
* - `size?: "sm" | "md"` (default `"md"`)
|
|
530
|
+
* - `defaultChecked?: boolean | "indeterminate"`
|
|
531
|
+
* - `asChild?: boolean`
|
|
532
|
+
* - `checked?: boolean | "indeterminate"`
|
|
533
|
+
* - `required?: boolean`
|
|
534
|
+
* - `onCheckedChange?: (checked: CheckedState) => void`
|
|
535
|
+
*
|
|
536
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
537
|
+
*
|
|
538
|
+
* [Checkbox documentation](https://equality.eqtylab.io/components/checkbox)
|
|
539
|
+
*/
|
|
272
540
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
273
541
|
|
|
274
542
|
interface CodeBlockProps {
|
|
@@ -281,48 +549,266 @@ interface CodeBlockProps {
|
|
|
281
549
|
copy?: string;
|
|
282
550
|
lineNumbers?: boolean;
|
|
283
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* **Props**
|
|
554
|
+
* - `className?: string`
|
|
555
|
+
* - `title?: string`
|
|
556
|
+
* - `code: string`
|
|
557
|
+
* - `language?: string` (default `"text"`)
|
|
558
|
+
* - `variant?: "neutral" | "primary" | "success" | "danger" | "warning"` (default `"neutral"`)
|
|
559
|
+
* - `codeLabel?: string`
|
|
560
|
+
* - `copy?: string`
|
|
561
|
+
* - `lineNumbers?: boolean` (default `false`)
|
|
562
|
+
*
|
|
563
|
+
* [Code Block documentation](https://equality.eqtylab.io/components/code-block)
|
|
564
|
+
*/
|
|
284
565
|
declare const CodeBlock: ({ className, title, code, language, variant, codeLabel, copy, lineNumbers, }: CodeBlockProps) => react_jsx_runtime.JSX.Element;
|
|
285
566
|
|
|
567
|
+
/**
|
|
568
|
+
* **Props**
|
|
569
|
+
* - `children?: ReactNode`
|
|
570
|
+
* - `open?: boolean`
|
|
571
|
+
* - `defaultOpen?: boolean`
|
|
572
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
573
|
+
* - `modal?: boolean`
|
|
574
|
+
*
|
|
575
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
576
|
+
*/
|
|
286
577
|
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
578
|
+
/**
|
|
579
|
+
* **Props**
|
|
580
|
+
* - `asChild?: boolean`
|
|
581
|
+
*
|
|
582
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
583
|
+
*
|
|
584
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
585
|
+
*/
|
|
287
586
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
587
|
+
/**
|
|
588
|
+
* **Props**
|
|
589
|
+
* - `children: React.ReactNode`
|
|
590
|
+
*
|
|
591
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
592
|
+
*/
|
|
288
593
|
declare const DialogPortal: ({ children }: {
|
|
289
594
|
children: React$1.ReactNode;
|
|
290
595
|
}) => react_jsx_runtime.JSX.Element;
|
|
596
|
+
/**
|
|
597
|
+
* **Props**
|
|
598
|
+
* - `asChild?: boolean`
|
|
599
|
+
*
|
|
600
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
601
|
+
*
|
|
602
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
603
|
+
*/
|
|
291
604
|
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
605
|
+
/**
|
|
606
|
+
* **Props**
|
|
607
|
+
* - `asChild?: boolean`
|
|
608
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
609
|
+
* controlling animation with React animation libraries.
|
|
610
|
+
*
|
|
611
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
612
|
+
*
|
|
613
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
614
|
+
*/
|
|
292
615
|
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
616
|
+
/**
|
|
617
|
+
* **Props**
|
|
618
|
+
* - `size?: "sm" | "md" | "lg"` (default `"md"`)
|
|
619
|
+
* - `asChild?: boolean`
|
|
620
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
621
|
+
* Can be prevented.
|
|
622
|
+
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void` — Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
623
|
+
* Can be prevented.
|
|
624
|
+
* - `onFocusOutside?: (event: FocusOutsideEvent) => void` — Event handler called when the focus moves outside of the `DismissableLayer`.
|
|
625
|
+
* Can be prevented.
|
|
626
|
+
* - `onInteractOutside?: (event: FocusOutsideEvent | PointerDownOutsideEvent) => void` — Event handler called when an interaction happens outside the `DismissableLayer`.
|
|
627
|
+
* Specifically, when a `pointerdown` event happens outside or focus moves outside of it.
|
|
628
|
+
* Can be prevented.
|
|
629
|
+
* - `onOpenAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on open.
|
|
630
|
+
* Can be prevented.
|
|
631
|
+
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
632
|
+
* Can be prevented.
|
|
633
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
634
|
+
* controlling animation with React animation libraries.
|
|
635
|
+
*
|
|
636
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
637
|
+
*
|
|
638
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
639
|
+
*/
|
|
293
640
|
declare const DialogContainer: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
294
641
|
size?: "sm" | "md" | "lg";
|
|
295
642
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
643
|
+
/**
|
|
644
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
645
|
+
*
|
|
646
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
647
|
+
*/
|
|
296
648
|
declare const DialogHeaderIcon: {
|
|
297
649
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
298
650
|
displayName: string;
|
|
299
651
|
};
|
|
652
|
+
/**
|
|
653
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
654
|
+
*
|
|
655
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
656
|
+
*/
|
|
300
657
|
declare const DialogHeader: {
|
|
301
658
|
({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
302
659
|
displayName: string;
|
|
303
660
|
};
|
|
661
|
+
/**
|
|
662
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
663
|
+
*
|
|
664
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
665
|
+
*/
|
|
304
666
|
declare const DialogFooter: {
|
|
305
667
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
306
668
|
displayName: string;
|
|
307
669
|
};
|
|
670
|
+
/**
|
|
671
|
+
* **Props**
|
|
672
|
+
* - `asChild?: boolean`
|
|
673
|
+
*
|
|
674
|
+
* Also accepts the standard `HTMLHeadingElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
675
|
+
*
|
|
676
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
677
|
+
*/
|
|
308
678
|
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
679
|
+
/**
|
|
680
|
+
* **Props**
|
|
681
|
+
* - `asChild?: boolean`
|
|
682
|
+
*
|
|
683
|
+
* Also accepts the standard `HTMLParagraphElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
684
|
+
*
|
|
685
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
686
|
+
*/
|
|
309
687
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
688
|
+
/**
|
|
689
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
690
|
+
*
|
|
691
|
+
* [Dialog documentation](https://equality.eqtylab.io/components/dialog)
|
|
692
|
+
*/
|
|
310
693
|
declare const DialogContent: {
|
|
311
694
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
312
695
|
displayName: string;
|
|
313
696
|
};
|
|
314
697
|
|
|
698
|
+
/**
|
|
699
|
+
* **Props**
|
|
700
|
+
* - `children?: ReactNode`
|
|
701
|
+
* - `defaultValue?: string | (readonly string[] & string)` — Optional default item value when it is initially rendered.
|
|
702
|
+
* - `asChild?: boolean`
|
|
703
|
+
* - `label?: string` — Accessible label for this command menu. Not shown visibly.
|
|
704
|
+
* - `shouldFilter?: boolean` — Optionally set to `false` to turn off the automatic filtering and sorting.
|
|
705
|
+
* If `false`, you must conditionally render valid items based on the search query yourself.
|
|
706
|
+
* - `filter?: CommandFilter` — Custom filter function for whether each command menu item should matches the given search query.
|
|
707
|
+
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
|
708
|
+
* By default, uses the `command-score` library.
|
|
709
|
+
* - `value?: string` — Optional controlled state of the selected command menu item.
|
|
710
|
+
* - `onValueChange?: (value: string) => void` — Event handler called when the selected item of the menu changes.
|
|
711
|
+
* - `loop?: boolean` — Optionally set to `true` to turn on looping around when using the arrow keys.
|
|
712
|
+
* - `disablePointerSelection?: boolean` — Optionally set to `true` to disable selection via pointer events.
|
|
713
|
+
* - `vimBindings?: boolean` — Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
|
714
|
+
*
|
|
715
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
716
|
+
*
|
|
717
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
718
|
+
*/
|
|
315
719
|
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
720
|
+
/**
|
|
721
|
+
* **Props**
|
|
722
|
+
* - `title?: string` (default `"Command Palette"`)
|
|
723
|
+
* - `description?: string` (default `"Search for a command to run..."`)
|
|
724
|
+
* - `children?: ReactNode`
|
|
725
|
+
* - `open?: boolean`
|
|
726
|
+
* - `defaultOpen?: boolean`
|
|
727
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
728
|
+
* - `modal?: boolean`
|
|
729
|
+
*
|
|
730
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
731
|
+
*/
|
|
316
732
|
declare function CommandDialog({ title, description, children, ...props }: React$1.ComponentProps<typeof Dialog> & {
|
|
317
733
|
title?: string;
|
|
318
734
|
description?: string;
|
|
319
735
|
}): react_jsx_runtime.JSX.Element;
|
|
736
|
+
/**
|
|
737
|
+
* **Props**
|
|
738
|
+
* - `asChild?: boolean`
|
|
739
|
+
* - `value?: string` — Optional controlled state for the value of the search input.
|
|
740
|
+
* - `onValueChange?: (search: string) => void` — Event handler called when the search value changes.
|
|
741
|
+
*
|
|
742
|
+
* Also accepts the standard `HTMLInputElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
743
|
+
*
|
|
744
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
745
|
+
*/
|
|
320
746
|
declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
747
|
+
/**
|
|
748
|
+
* **Props**
|
|
749
|
+
* - `children?: ReactNode`
|
|
750
|
+
* - `asChild?: boolean`
|
|
751
|
+
* - `label?: string` — Accessible label for this List of suggestions. Not shown visibly.
|
|
752
|
+
*
|
|
753
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
754
|
+
*
|
|
755
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
756
|
+
*/
|
|
321
757
|
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
758
|
+
/**
|
|
759
|
+
* **Props**
|
|
760
|
+
* - `children?: ReactNode`
|
|
761
|
+
* - `asChild?: boolean`
|
|
762
|
+
*
|
|
763
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
764
|
+
*
|
|
765
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
766
|
+
*/
|
|
322
767
|
declare function CommandEmpty({ ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
768
|
+
/**
|
|
769
|
+
* **Props**
|
|
770
|
+
* - `children?: ReactNode`
|
|
771
|
+
* - `asChild?: boolean`
|
|
772
|
+
* - `heading?: ReactNode` — Optional heading to render for this group.
|
|
773
|
+
* - `value?: string` — If no heading is provided, you must provide a value that is unique for this group.
|
|
774
|
+
* - `forceMount?: boolean` — Whether this group is forcibly rendered regardless of filtering.
|
|
775
|
+
*
|
|
776
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
777
|
+
*
|
|
778
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
779
|
+
*/
|
|
323
780
|
declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
781
|
+
/**
|
|
782
|
+
* **Props**
|
|
783
|
+
* - `asChild?: boolean`
|
|
784
|
+
* - `alwaysRender?: boolean` — Whether this separator should always be rendered. Useful if you disable automatic filtering.
|
|
785
|
+
*
|
|
786
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
787
|
+
*
|
|
788
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
789
|
+
*/
|
|
324
790
|
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
791
|
+
/**
|
|
792
|
+
* **Props**
|
|
793
|
+
* - `children?: ReactNode`
|
|
794
|
+
* - `asChild?: boolean`
|
|
795
|
+
* - `disabled?: boolean` — Whether this item is currently disabled.
|
|
796
|
+
* - `onSelect?: (value: string) => void` — Event handler for when this item is selected, either via click or keyboard selection.
|
|
797
|
+
* - `value?: string` — A unique value for this item.
|
|
798
|
+
* If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you _must_ provide a stable, unique `value`.
|
|
799
|
+
* - `keywords?: string[]` — Optional keywords to match against when filtering.
|
|
800
|
+
* - `forceMount?: boolean` — Whether this item is forcibly rendered regardless of filtering.
|
|
801
|
+
*
|
|
802
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
803
|
+
*
|
|
804
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
805
|
+
*/
|
|
325
806
|
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
807
|
+
/**
|
|
808
|
+
* Accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
809
|
+
*
|
|
810
|
+
* [Command documentation](https://equality.eqtylab.io/components/command)
|
|
811
|
+
*/
|
|
326
812
|
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
327
813
|
|
|
328
814
|
type ControlStatusBadgeDisplayMode = BadgeDisplayMode;
|
|
@@ -330,6 +816,13 @@ interface ControlStatusBadgeProps {
|
|
|
330
816
|
status: string;
|
|
331
817
|
display?: ControlStatusBadgeDisplayMode;
|
|
332
818
|
}
|
|
819
|
+
/**
|
|
820
|
+
* **Props**
|
|
821
|
+
* - `status: string`
|
|
822
|
+
* - `display?: "both" | "text-only" | "icon-only"` (default `"both"`)
|
|
823
|
+
*
|
|
824
|
+
* [Control Status Badge documentation](https://equality.eqtylab.io/components/control-status-badge)
|
|
825
|
+
*/
|
|
333
826
|
declare const ControlStatusBadge: ({ status, display }: ControlStatusBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
334
827
|
|
|
335
828
|
interface CopyButtonProps {
|
|
@@ -339,6 +832,16 @@ interface CopyButtonProps {
|
|
|
339
832
|
className?: string;
|
|
340
833
|
onClick?: () => void;
|
|
341
834
|
}
|
|
835
|
+
/**
|
|
836
|
+
* **Props**
|
|
837
|
+
* - `value: string`
|
|
838
|
+
* - `label?: string` (default `"Copy to clipboard"`)
|
|
839
|
+
* - `size?: "sm" | "md" | "lg"` (default `"sm"`)
|
|
840
|
+
* - `className?: string`
|
|
841
|
+
* - `onClick?: () => void`
|
|
842
|
+
*
|
|
843
|
+
* [Copy Button documentation](https://equality.eqtylab.io/components/copy-button)
|
|
844
|
+
*/
|
|
342
845
|
declare function CopyButton({ value, label, size, className, onClick, }: CopyButtonProps): react_jsx_runtime.JSX.Element;
|
|
343
846
|
|
|
344
847
|
interface DateRange {
|
|
@@ -350,6 +853,14 @@ interface DateRangePickerProps {
|
|
|
350
853
|
onSelect: (range: DateRange) => void;
|
|
351
854
|
className?: string;
|
|
352
855
|
}
|
|
856
|
+
/**
|
|
857
|
+
* **Props**
|
|
858
|
+
* - `dateRange: DateRange`
|
|
859
|
+
* - `onSelect: (range: DateRange) => void`
|
|
860
|
+
* - `className?: string`
|
|
861
|
+
*
|
|
862
|
+
* [Date Range Picker documentation](https://equality.eqtylab.io/components/date-range-picker)
|
|
863
|
+
*/
|
|
353
864
|
declare const DateRangePicker: ({ dateRange, onSelect, className }: DateRangePickerProps) => react_jsx_runtime.JSX.Element;
|
|
354
865
|
|
|
355
866
|
declare const displayFieldVariants: (props?: ({
|
|
@@ -364,32 +875,158 @@ interface DisplayFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
364
875
|
slot?: React.ReactNode;
|
|
365
876
|
elevation?: string;
|
|
366
877
|
}
|
|
878
|
+
/**
|
|
879
|
+
* **Props**
|
|
880
|
+
* - `variant?: "neutral" | "success" | "neutralCheck" | "failure"`
|
|
881
|
+
* - `prefix?: string`
|
|
882
|
+
* - `truncate?: boolean | "middle"` (default `false`)
|
|
883
|
+
* - `copy?: boolean` (default `true`)
|
|
884
|
+
* - `actions?: React.ReactNode`
|
|
885
|
+
* - `slot?: React.ReactNode`
|
|
886
|
+
* - `elevation?: string` (default `"base"`)
|
|
887
|
+
*
|
|
888
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
889
|
+
*
|
|
890
|
+
* [Display Field documentation](https://equality.eqtylab.io/components/display-field)
|
|
891
|
+
*/
|
|
367
892
|
declare function DisplayField({ className, variant, elevation, children, prefix, truncate, copy, actions, slot, ...props }: DisplayFieldProps): react_jsx_runtime.JSX.Element;
|
|
368
893
|
|
|
894
|
+
/**
|
|
895
|
+
* **Props**
|
|
896
|
+
* - `activeSnapPoint?: string | number | null`
|
|
897
|
+
* - `setActiveSnapPoint?: (snapPoint: string | number | null) => void`
|
|
898
|
+
* - `children?: ReactNode`
|
|
899
|
+
* - `open?: boolean`
|
|
900
|
+
* - `closeThreshold?: number` (default `0.25`) — Number between 0 and 1 that determines when the drawer should be closed.
|
|
901
|
+
* Example: threshold of 0.5 would close the drawer if the user swiped for 50% of the height of the drawer or more.
|
|
902
|
+
* - `noBodyStyles?: boolean` — When `true` the `body` doesn't get any styles assigned from Vaul
|
|
903
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
904
|
+
* - `shouldScaleBackground?: boolean` (default `true`)
|
|
905
|
+
* - `setBackgroundColorOnScale?: boolean` (default `true`) — When `false` we don't change body's background color when the drawer is open.
|
|
906
|
+
* - `scrollLockTimeout?: number` (default `500ms`) — Duration for which the drawer is not draggable after scrolling content inside of the drawer.
|
|
907
|
+
* - `fixed?: boolean` — When `true`, don't move the drawer upwards if there's space, but rather only change it's height so it's fully scrollable when the keyboard is open
|
|
908
|
+
* - `handleOnly?: boolean` (default `false`) — When `true` only allows the drawer to be dragged by the `<Drawer.Handle />` component.
|
|
909
|
+
* - `dismissible?: boolean` (default `true`) — When `false` dragging, clicking outside, pressing esc, etc. will not close the drawer.
|
|
910
|
+
* Use this in comination with the `open` prop, otherwise you won't be able to open/close the drawer.
|
|
911
|
+
* - `onDrag?: (event: PointerEvent<HTMLDivElement>, percentageDragged: number) => void`
|
|
912
|
+
* - `onRelease?: (event: PointerEvent<HTMLDivElement>, open: boolean) => void`
|
|
913
|
+
* - `modal?: boolean` (default `true`) — When `false` it allows to interact with elements outside of the drawer without closing it.
|
|
914
|
+
* - `nested?: boolean`
|
|
915
|
+
* - `onClose?: () => void`
|
|
916
|
+
* - `direction?: "top" | "bottom" | "left" | "right"` (default `'bottom'`) — Direction of the drawer. Can be `top` or `bottom`, `left`, `right`.
|
|
917
|
+
* - `defaultOpen?: boolean` (default `false`) — Opened by default, skips initial enter animation. Still reacts to `open` state changes
|
|
918
|
+
* - `disablePreventScroll?: boolean` (default `false`) — When set to `true` prevents scrolling on the document body on mount, and restores it on unmount.
|
|
919
|
+
* - `repositionInputs?: boolean` (default `true when {@link snapPoints } is defined`) — When `true` Vaul will reposition inputs rather than scroll then into view if the keyboard is in the way.
|
|
920
|
+
* Setting it to `false` will fall back to the default browser behavior.
|
|
921
|
+
* - `snapToSequentialPoint?: boolean` (default `false`) — Disabled velocity based swiping for snap points.
|
|
922
|
+
* This means that a snap point won't be skipped even if the velocity is high enough.
|
|
923
|
+
* Useful if each snap point in a drawer is equally important.
|
|
924
|
+
* - `container?: HTMLElement | null`
|
|
925
|
+
* - `onAnimationEnd?: (open: boolean) => void` — Gets triggered after the open or close animation ends, it receives an `open` argument with the `open` state of the drawer by the time the function was triggered.
|
|
926
|
+
* Useful to revert any state changes for example.
|
|
927
|
+
* - `preventScrollRestoration?: boolean`
|
|
928
|
+
* - `autoFocus?: boolean`
|
|
929
|
+
* - `snapPoints?: (string | number)[]` — Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up.
|
|
930
|
+
* Should go from least visible. Example `[0.2, 0.5, 0.8]`.
|
|
931
|
+
* You can also use px values, which doesn't take screen height into account.
|
|
932
|
+
* - `fadeFromIndex?: number` — Index of a `snapPoint` from which the overlay fade should be applied. Defaults to the last snap point.
|
|
933
|
+
*/
|
|
369
934
|
declare const Drawer: {
|
|
370
935
|
({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
371
936
|
displayName: string;
|
|
372
937
|
};
|
|
938
|
+
/**
|
|
939
|
+
* **Props**
|
|
940
|
+
* - `asChild?: boolean`
|
|
941
|
+
*
|
|
942
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
943
|
+
*/
|
|
373
944
|
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
945
|
+
/**
|
|
946
|
+
* **Props**
|
|
947
|
+
* - `children: React.ReactNode`
|
|
948
|
+
*/
|
|
374
949
|
declare const DrawerPortal: ({ children }: {
|
|
375
950
|
children: React$1.ReactNode;
|
|
376
951
|
}) => react_jsx_runtime.JSX.Element;
|
|
952
|
+
/**
|
|
953
|
+
* **Props**
|
|
954
|
+
* - `asChild?: boolean`
|
|
955
|
+
*
|
|
956
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
957
|
+
*/
|
|
377
958
|
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
959
|
+
/**
|
|
960
|
+
* **Props**
|
|
961
|
+
* - `asChild?: boolean`
|
|
962
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
963
|
+
* controlling animation with React animation libraries.
|
|
964
|
+
*
|
|
965
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
966
|
+
*/
|
|
378
967
|
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
968
|
+
/**
|
|
969
|
+
* **Props**
|
|
970
|
+
* - `asChild?: boolean`
|
|
971
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
972
|
+
* Can be prevented.
|
|
973
|
+
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void` — Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
974
|
+
* Can be prevented.
|
|
975
|
+
* - `onFocusOutside?: (event: FocusOutsideEvent) => void` — Event handler called when the focus moves outside of the `DismissableLayer`.
|
|
976
|
+
* Can be prevented.
|
|
977
|
+
* - `onInteractOutside?: (event: FocusOutsideEvent | PointerDownOutsideEvent) => void` — Event handler called when an interaction happens outside the `DismissableLayer`.
|
|
978
|
+
* Specifically, when a `pointerdown` event happens outside or focus moves outside of it.
|
|
979
|
+
* Can be prevented.
|
|
980
|
+
* - `onOpenAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on open.
|
|
981
|
+
* Can be prevented.
|
|
982
|
+
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
983
|
+
* Can be prevented.
|
|
984
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
985
|
+
* controlling animation with React animation libraries.
|
|
986
|
+
*
|
|
987
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
988
|
+
*/
|
|
379
989
|
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
990
|
+
/**
|
|
991
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
992
|
+
*/
|
|
380
993
|
declare const DrawerHeader: {
|
|
381
994
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
382
995
|
displayName: string;
|
|
383
996
|
};
|
|
997
|
+
/**
|
|
998
|
+
* **Props**
|
|
999
|
+
* - `rowSpan: number`
|
|
1000
|
+
*
|
|
1001
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1002
|
+
*/
|
|
384
1003
|
declare const DrawerHeaderActions: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
385
1004
|
rowSpan: number;
|
|
386
1005
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1008
|
+
*/
|
|
387
1009
|
declare const DrawerFooter: {
|
|
388
1010
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
389
1011
|
displayName: string;
|
|
390
1012
|
};
|
|
1013
|
+
/**
|
|
1014
|
+
* **Props**
|
|
1015
|
+
* - `asChild?: boolean`
|
|
1016
|
+
*
|
|
1017
|
+
* Also accepts the standard `HTMLHeadingElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1018
|
+
*/
|
|
391
1019
|
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1020
|
+
/**
|
|
1021
|
+
* **Props**
|
|
1022
|
+
* - `asChild?: boolean`
|
|
1023
|
+
*
|
|
1024
|
+
* Also accepts the standard `HTMLParagraphElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1025
|
+
*/
|
|
392
1026
|
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1029
|
+
*/
|
|
393
1030
|
declare const DrawerInnerContent: {
|
|
394
1031
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
395
1032
|
displayName: string;
|
|
@@ -400,47 +1037,240 @@ declare const useDropdownMenuSearchQuery: () => {
|
|
|
400
1037
|
isSearching: boolean;
|
|
401
1038
|
matches: (textValue: string) => boolean;
|
|
402
1039
|
};
|
|
1040
|
+
/**
|
|
1041
|
+
* **Props**
|
|
1042
|
+
* - `children?: ReactNode`
|
|
1043
|
+
* - `dir?: "ltr" | "rtl"`
|
|
1044
|
+
* - `open?: boolean`
|
|
1045
|
+
* - `defaultOpen?: boolean`
|
|
1046
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
1047
|
+
* - `modal?: boolean`
|
|
1048
|
+
*
|
|
1049
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1050
|
+
*/
|
|
403
1051
|
declare const DropdownMenu: {
|
|
404
1052
|
({ children, open, onOpenChange, ...props }: React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
405
1053
|
displayName: string;
|
|
406
1054
|
};
|
|
1055
|
+
/**
|
|
1056
|
+
* **Props**
|
|
1057
|
+
* - `asChild?: boolean`
|
|
1058
|
+
*
|
|
1059
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1060
|
+
*
|
|
1061
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1062
|
+
*/
|
|
407
1063
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1064
|
+
/**
|
|
1065
|
+
* **Props**
|
|
1066
|
+
* - `asChild?: boolean`
|
|
1067
|
+
*
|
|
1068
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1069
|
+
*
|
|
1070
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1071
|
+
*/
|
|
408
1072
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1073
|
+
/**
|
|
1074
|
+
* **Props**
|
|
1075
|
+
* - `children: React.ReactNode`
|
|
1076
|
+
*
|
|
1077
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1078
|
+
*/
|
|
409
1079
|
declare const DropdownMenuPortal: ({ children }: {
|
|
410
1080
|
children: React$1.ReactNode;
|
|
411
1081
|
}) => react_jsx_runtime.JSX.Element;
|
|
1082
|
+
/**
|
|
1083
|
+
* **Props**
|
|
1084
|
+
* - `value?: string`
|
|
1085
|
+
* - `asChild?: boolean`
|
|
1086
|
+
* - `onValueChange?: (value: string) => void`
|
|
1087
|
+
*
|
|
1088
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1089
|
+
*
|
|
1090
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1091
|
+
*/
|
|
412
1092
|
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1093
|
+
/**
|
|
1094
|
+
* **Props**
|
|
1095
|
+
* - `inset?: boolean`
|
|
1096
|
+
* - `disabled?: boolean`
|
|
1097
|
+
* - `asChild?: boolean`
|
|
1098
|
+
* - `textValue?: string`
|
|
1099
|
+
*
|
|
1100
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1101
|
+
*
|
|
1102
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1103
|
+
*/
|
|
413
1104
|
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
414
1105
|
inset?: boolean;
|
|
415
1106
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1107
|
+
/**
|
|
1108
|
+
* **Props**
|
|
1109
|
+
* - `asChild?: boolean`
|
|
1110
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void`
|
|
1111
|
+
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void`
|
|
1112
|
+
* - `onFocusOutside?: (event: FocusOutsideEvent) => void`
|
|
1113
|
+
* - `onInteractOutside?: (event: FocusOutsideEvent | PointerDownOutsideEvent) => void`
|
|
1114
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
1115
|
+
* controlling animation with React animation libraries.
|
|
1116
|
+
* - `loop?: boolean` — Whether keyboard navigation should loop around
|
|
1117
|
+
* - `sideOffset?: number`
|
|
1118
|
+
* - `alignOffset?: number`
|
|
1119
|
+
* - `arrowPadding?: number`
|
|
1120
|
+
* - `avoidCollisions?: boolean`
|
|
1121
|
+
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
1122
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "bottom" | "left" | "right", number>>`
|
|
1123
|
+
* - `sticky?: "partial" | "always"`
|
|
1124
|
+
* - `hideWhenDetached?: boolean`
|
|
1125
|
+
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
1126
|
+
*
|
|
1127
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1128
|
+
*
|
|
1129
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1130
|
+
*/
|
|
416
1131
|
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1132
|
+
/**
|
|
1133
|
+
* **Props**
|
|
1134
|
+
* - `children?: ReactNode`
|
|
1135
|
+
* - `open?: boolean`
|
|
1136
|
+
* - `defaultOpen?: boolean`
|
|
1137
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
1138
|
+
*
|
|
1139
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1140
|
+
*/
|
|
417
1141
|
declare const DropdownMenuSub: ({ children, ...props }: React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Sub>) => react_jsx_runtime.JSX.Element;
|
|
1142
|
+
/**
|
|
1143
|
+
* **Props**
|
|
1144
|
+
* - `asChild?: boolean`
|
|
1145
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void`
|
|
1146
|
+
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void`
|
|
1147
|
+
* - `onFocusOutside?: (event: FocusOutsideEvent) => void`
|
|
1148
|
+
* - `onInteractOutside?: (event: FocusOutsideEvent | PointerDownOutsideEvent) => void`
|
|
1149
|
+
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
1150
|
+
* Can be prevented.
|
|
1151
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
1152
|
+
* controlling animation with React animation libraries.
|
|
1153
|
+
* - `loop?: boolean` — Whether keyboard navigation should loop around
|
|
1154
|
+
* - `side?: "top" | "bottom" | "left" | "right"`
|
|
1155
|
+
* - `sideOffset?: number` (default `4`)
|
|
1156
|
+
* - `align?: "center" | "start" | "end"`
|
|
1157
|
+
* - `alignOffset?: number`
|
|
1158
|
+
* - `arrowPadding?: number`
|
|
1159
|
+
* - `avoidCollisions?: boolean`
|
|
1160
|
+
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
1161
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "bottom" | "left" | "right", number>>`
|
|
1162
|
+
* - `sticky?: "partial" | "always"`
|
|
1163
|
+
* - `hideWhenDetached?: boolean`
|
|
1164
|
+
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
1165
|
+
*
|
|
1166
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1167
|
+
*
|
|
1168
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1169
|
+
*/
|
|
418
1170
|
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1171
|
+
/**
|
|
1172
|
+
* **Props**
|
|
1173
|
+
* - `icon?: React.ReactNode`
|
|
1174
|
+
* - `alwaysVisible?: boolean` (default `true`)
|
|
1175
|
+
*
|
|
1176
|
+
* Also accepts the standard `HTMLInputElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1177
|
+
*
|
|
1178
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1179
|
+
*/
|
|
419
1180
|
declare const DropdownMenuSearch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange"> & {
|
|
420
1181
|
icon?: React$1.ReactNode;
|
|
421
1182
|
alwaysVisible?: boolean;
|
|
422
1183
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1186
|
+
*
|
|
1187
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1188
|
+
*/
|
|
423
1189
|
declare const DropdownMenuEmpty: {
|
|
424
1190
|
({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element | null;
|
|
425
1191
|
displayName: string;
|
|
426
1192
|
};
|
|
1193
|
+
/**
|
|
1194
|
+
* **Props**
|
|
1195
|
+
* - `inset?: boolean`
|
|
1196
|
+
* - `variant?: "neutral" | "warning" | "danger"` (default `"neutral"`)
|
|
1197
|
+
* - `persistent?: boolean`
|
|
1198
|
+
* - `disabled?: boolean`
|
|
1199
|
+
* - `onSelect?: (event: Event) => void`
|
|
1200
|
+
* - `asChild?: boolean`
|
|
1201
|
+
* - `textValue?: string`
|
|
1202
|
+
*
|
|
1203
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1204
|
+
*
|
|
1205
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1206
|
+
*/
|
|
427
1207
|
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
428
1208
|
inset?: boolean;
|
|
429
1209
|
variant?: "neutral" | "warning" | "danger";
|
|
430
1210
|
persistent?: boolean;
|
|
431
1211
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1212
|
+
/**
|
|
1213
|
+
* **Props**
|
|
1214
|
+
* - `persistent?: boolean`
|
|
1215
|
+
* - `disabled?: boolean`
|
|
1216
|
+
* - `onSelect?: (event: Event) => void`
|
|
1217
|
+
* - `asChild?: boolean`
|
|
1218
|
+
* - `checked?: boolean | "indeterminate"`
|
|
1219
|
+
* - `onCheckedChange?: (checked: boolean) => void`
|
|
1220
|
+
* - `textValue?: string`
|
|
1221
|
+
*
|
|
1222
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1223
|
+
*
|
|
1224
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1225
|
+
*/
|
|
432
1226
|
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
433
1227
|
persistent?: boolean;
|
|
434
1228
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1229
|
+
/**
|
|
1230
|
+
* **Props**
|
|
1231
|
+
* - `persistent?: boolean`
|
|
1232
|
+
* - `disabled?: boolean`
|
|
1233
|
+
* - `value: string`
|
|
1234
|
+
* - `onSelect?: (event: Event) => void`
|
|
1235
|
+
* - `asChild?: boolean`
|
|
1236
|
+
* - `textValue?: string`
|
|
1237
|
+
*
|
|
1238
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1239
|
+
*
|
|
1240
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1241
|
+
*/
|
|
435
1242
|
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
436
1243
|
persistent?: boolean;
|
|
437
1244
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1245
|
+
/**
|
|
1246
|
+
* **Props**
|
|
1247
|
+
* - `inset?: boolean`
|
|
1248
|
+
* - `asChild?: boolean`
|
|
1249
|
+
*
|
|
1250
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1251
|
+
*
|
|
1252
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1253
|
+
*/
|
|
438
1254
|
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
439
1255
|
inset?: boolean;
|
|
440
1256
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1257
|
+
/**
|
|
1258
|
+
* **Props**
|
|
1259
|
+
* - `persistent?: boolean`
|
|
1260
|
+
* - `asChild?: boolean`
|
|
1261
|
+
*
|
|
1262
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1263
|
+
*
|
|
1264
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1265
|
+
*/
|
|
441
1266
|
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
442
1267
|
persistent?: boolean;
|
|
443
1268
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1269
|
+
/**
|
|
1270
|
+
* Accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1271
|
+
*
|
|
1272
|
+
* [Dropdown Menu documentation](https://equality.eqtylab.io/components/dropdown-menu)
|
|
1273
|
+
*/
|
|
444
1274
|
declare const DropdownMenuShortcut: {
|
|
445
1275
|
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
446
1276
|
displayName: string;
|
|
@@ -463,6 +1293,18 @@ interface EmptyTableStateProps {
|
|
|
463
1293
|
onClear?: () => void;
|
|
464
1294
|
className?: string;
|
|
465
1295
|
}
|
|
1296
|
+
/**
|
|
1297
|
+
* **Props**
|
|
1298
|
+
* - `icon: React.ReactElement | string`
|
|
1299
|
+
* - `title: string`
|
|
1300
|
+
* - `description?: string`
|
|
1301
|
+
* - `elevation?: Elevation` (default `"overlay"`)
|
|
1302
|
+
* - `showClearButton?: boolean` (default `false`)
|
|
1303
|
+
* - `onClear?: () => void`
|
|
1304
|
+
* - `className?: string`
|
|
1305
|
+
*
|
|
1306
|
+
* [Empty Table State documentation](https://equality.eqtylab.io/components/empty-table-state)
|
|
1307
|
+
*/
|
|
466
1308
|
declare const EmptyTableState: ({ icon, title, description, elevation, showClearButton, onClear, className, }: EmptyTableStateProps) => react_jsx_runtime.JSX.Element;
|
|
467
1309
|
|
|
468
1310
|
interface FilterOption$1 {
|
|
@@ -482,9 +1324,59 @@ interface FilterDropdownProps {
|
|
|
482
1324
|
searchPlaceholder?: string;
|
|
483
1325
|
emptyPlaceholder?: string;
|
|
484
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* **Props**
|
|
1329
|
+
* - `label: string`
|
|
1330
|
+
* - `options: FilterOption[]`
|
|
1331
|
+
* - `selectedFilters: string[]`
|
|
1332
|
+
* - `onToggleFilter: (value: string) => void`
|
|
1333
|
+
* - `onClearAll: () => void`
|
|
1334
|
+
* - `buttonClassName?: string`
|
|
1335
|
+
* - `contentClassName?: string`
|
|
1336
|
+
* - `disabled?: boolean` (default `false`)
|
|
1337
|
+
* - `searchable?: boolean` (default `false`)
|
|
1338
|
+
* - `searchPlaceholder?: string` (default `"Search filters..."`)
|
|
1339
|
+
* - `emptyPlaceholder?: string` (default `"No filters found"`)
|
|
1340
|
+
*
|
|
1341
|
+
* [Filter Dropdown documentation](https://equality.eqtylab.io/components/filter-dropdown)
|
|
1342
|
+
*/
|
|
485
1343
|
declare const FilterDropdown: ({ label, options, selectedFilters, onToggleFilter, onClearAll, buttonClassName, contentClassName, disabled, searchable, searchPlaceholder, emptyPlaceholder, }: FilterDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
486
1344
|
|
|
1345
|
+
/**
|
|
1346
|
+
* **Props**
|
|
1347
|
+
* - `children: ReactNode | ReactNode[]`
|
|
1348
|
+
* - `watch: UseFormWatch<TFieldValues>`
|
|
1349
|
+
* - `getValues: UseFormGetValues<TFieldValues>`
|
|
1350
|
+
* - `getFieldState: UseFormGetFieldState<TFieldValues>`
|
|
1351
|
+
* - `setError: UseFormSetError<TFieldValues>`
|
|
1352
|
+
* - `clearErrors: UseFormClearErrors<TFieldValues>`
|
|
1353
|
+
* - `setValue: UseFormSetValue<TFieldValues>`
|
|
1354
|
+
* - `trigger: UseFormTrigger<TFieldValues>`
|
|
1355
|
+
* - `formState: FormState<TFieldValues>`
|
|
1356
|
+
* - `resetField: UseFormResetField<TFieldValues>`
|
|
1357
|
+
* - `reset: UseFormReset<TFieldValues>`
|
|
1358
|
+
* - `handleSubmit: UseFormHandleSubmit<TFieldValues, TTransformedValues>`
|
|
1359
|
+
* - `unregister: UseFormUnregister<TFieldValues>`
|
|
1360
|
+
* - `control: Control<TFieldValues, TContext, TTransformedValues>`
|
|
1361
|
+
* - `register: UseFormRegister<TFieldValues>`
|
|
1362
|
+
* - `setFocus: UseFormSetFocus<TFieldValues>`
|
|
1363
|
+
* - `subscribe: UseFormSubscribe<TFieldValues>`
|
|
1364
|
+
*
|
|
1365
|
+
* [Form documentation](https://equality.eqtylab.io/components/form)
|
|
1366
|
+
*/
|
|
487
1367
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
1368
|
+
/**
|
|
1369
|
+
* **Props**
|
|
1370
|
+
* - `render: ({ field, fieldState, formState, }: { field: ControllerRenderProps<TFieldValues, TName>; fieldState: ControllerFieldSta…`
|
|
1371
|
+
* - `name: TName`
|
|
1372
|
+
* - `rules?: Omit<RegisterOptions<TFieldValues, TName>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs">`
|
|
1373
|
+
* - `shouldUnregister?: boolean`
|
|
1374
|
+
* - `defaultValue?: PathValueImpl<TFieldValues, TName>`
|
|
1375
|
+
* - `control?: Control<TFieldValues, any, TFieldValues>`
|
|
1376
|
+
* - `disabled?: boolean`
|
|
1377
|
+
*
|
|
1378
|
+
* [Form documentation](https://equality.eqtylab.io/components/form)
|
|
1379
|
+
*/
|
|
488
1380
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
489
1381
|
declare const useFormField: () => {
|
|
490
1382
|
invalid: boolean;
|
|
@@ -498,10 +1390,41 @@ declare const useFormField: () => {
|
|
|
498
1390
|
formDescriptionId: string;
|
|
499
1391
|
formMessageId: string;
|
|
500
1392
|
};
|
|
1393
|
+
/**
|
|
1394
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1395
|
+
*
|
|
1396
|
+
* [Form documentation](https://equality.eqtylab.io/components/form)
|
|
1397
|
+
*/
|
|
501
1398
|
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1399
|
+
/**
|
|
1400
|
+
* **Props**
|
|
1401
|
+
* - `asChild?: boolean`
|
|
1402
|
+
*
|
|
1403
|
+
* Also accepts the standard `HTMLLabelElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1404
|
+
*
|
|
1405
|
+
* [Form documentation](https://equality.eqtylab.io/components/form)
|
|
1406
|
+
*/
|
|
502
1407
|
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1408
|
+
/**
|
|
1409
|
+
* **Props**
|
|
1410
|
+
* - `children?: ReactNode`
|
|
1411
|
+
*
|
|
1412
|
+
* Also accepts the standard `HTMLElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1413
|
+
*
|
|
1414
|
+
* [Form documentation](https://equality.eqtylab.io/components/form)
|
|
1415
|
+
*/
|
|
503
1416
|
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
1417
|
+
/**
|
|
1418
|
+
* Accepts the standard `HTMLParagraphElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1419
|
+
*
|
|
1420
|
+
* [Form documentation](https://equality.eqtylab.io/components/form)
|
|
1421
|
+
*/
|
|
504
1422
|
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1423
|
+
/**
|
|
1424
|
+
* Accepts the standard `HTMLParagraphElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1425
|
+
*
|
|
1426
|
+
* [Form documentation](https://equality.eqtylab.io/components/form)
|
|
1427
|
+
*/
|
|
505
1428
|
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
506
1429
|
|
|
507
1430
|
type FormatDateDisplayMode = 'relative' | 'absolute' | 'countdown';
|
|
@@ -526,6 +1449,23 @@ interface FormatDateProps extends Omit<React$1.TimeHTMLAttributes<HTMLTimeElemen
|
|
|
526
1449
|
/** Override the Intl options used for absolute formatting. */
|
|
527
1450
|
absoluteOptions?: Intl.DateTimeFormatOptions;
|
|
528
1451
|
}
|
|
1452
|
+
/**
|
|
1453
|
+
* **Props**
|
|
1454
|
+
* - `date: string | number | Date | null | undefined` — The date to display. Accepts an ISO 8601 string, epoch milliseconds, or a Date. A missing value (null, undefined, or empty string) renders a placeholder.
|
|
1455
|
+
* - `displayAs?: "relative" | "absolute" | "countdown"` (default `"absolute"`) — How to render the date:
|
|
1456
|
+
* - `absolute` — the full date and time ("Jun 09 2026, 18:42:03 UTC")
|
|
1457
|
+
* - `relative` — idiomatic distance from now, in either direction ("2 weeks ago", "next week")
|
|
1458
|
+
* - `countdown` — exact time left until a future date ("10 days"), a placeholder once it passes
|
|
1459
|
+
* - `timeZone?: string` (default `"UTC"`) — Time zone used for absolute formatting. Defaults to "UTC".
|
|
1460
|
+
* - `locale?: string` (default `"en-US"`) — BCP 47 locale used for formatting. Defaults to "en-US".
|
|
1461
|
+
* - `tooltip?: boolean` (default `true`) — Unless absolute, show a tooltip with the absolute time on hover/focus. Defaults to true.
|
|
1462
|
+
* - `live?: boolean` (default `true`) — Unless absolute, re-render on an interval so the value stays current. Defaults to true.
|
|
1463
|
+
* - `absoluteOptions?: Intl.DateTimeFormatOptions` — Override the Intl options used for absolute formatting.
|
|
1464
|
+
*
|
|
1465
|
+
* Also accepts the standard `HTMLTimeElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1466
|
+
*
|
|
1467
|
+
* [Format Date documentation](https://equality.eqtylab.io/components/format-date)
|
|
1468
|
+
*/
|
|
529
1469
|
declare function FormatDate({ date, displayAs, timeZone, locale, tooltip, live, absoluteOptions, className, ...props }: FormatDateProps): react_jsx_runtime.JSX.Element;
|
|
530
1470
|
|
|
531
1471
|
type HeadingTagType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
@@ -535,6 +1475,17 @@ interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
|
535
1475
|
displayAs?: HeadingTagType;
|
|
536
1476
|
children: string | React.ReactNode;
|
|
537
1477
|
}
|
|
1478
|
+
/**
|
|
1479
|
+
* **Props**
|
|
1480
|
+
* - `className?: string`
|
|
1481
|
+
* - `as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"`
|
|
1482
|
+
* - `displayAs?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"`
|
|
1483
|
+
* - `children: string | React.ReactNode`
|
|
1484
|
+
*
|
|
1485
|
+
* Also accepts the standard `HTMLHeadingElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1486
|
+
*
|
|
1487
|
+
* [Heading documentation](https://equality.eqtylab.io/components/heading)
|
|
1488
|
+
*/
|
|
538
1489
|
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
539
1490
|
|
|
540
1491
|
declare const iconButtonVariants: (props?: ({
|
|
@@ -548,6 +1499,20 @@ interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonEl
|
|
|
548
1499
|
target?: string;
|
|
549
1500
|
download?: string | boolean;
|
|
550
1501
|
}
|
|
1502
|
+
/**
|
|
1503
|
+
* **Props**
|
|
1504
|
+
* - `variant?: "primary" | "danger"` (default `"primary"`)
|
|
1505
|
+
* - `size?: "sm" | "md" | "lg"` (default `"sm"`)
|
|
1506
|
+
* - `name: keyof typeof LucideIcons`
|
|
1507
|
+
* - `label?: string`
|
|
1508
|
+
* - `href?: string`
|
|
1509
|
+
* - `target?: string`
|
|
1510
|
+
* - `download?: string | boolean`
|
|
1511
|
+
*
|
|
1512
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1513
|
+
*
|
|
1514
|
+
* [Icon Button documentation](https://equality.eqtylab.io/components/icon-button)
|
|
1515
|
+
*/
|
|
551
1516
|
declare function IconButton({ className, size, variant, name, label, href, target, download, disabled, ...props }: IconButtonProps): react_jsx_runtime.JSX.Element;
|
|
552
1517
|
|
|
553
1518
|
declare const iconVariants: (props?: ({
|
|
@@ -562,6 +1527,17 @@ interface IconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps
|
|
|
562
1527
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
563
1528
|
background?: 'square' | 'circle' | 'transparent';
|
|
564
1529
|
}
|
|
1530
|
+
/**
|
|
1531
|
+
* **Props**
|
|
1532
|
+
* - `elevation?: string | number` (default `"raised"`)
|
|
1533
|
+
* - `icon: React.ReactElement | string`
|
|
1534
|
+
* - `size?: "xs" | "sm" | "md" | "lg"`
|
|
1535
|
+
* - `background?: "square" | "circle" | "transparent"`
|
|
1536
|
+
*
|
|
1537
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1538
|
+
*
|
|
1539
|
+
* [Icon documentation](https://equality.eqtylab.io/components/icon)
|
|
1540
|
+
*/
|
|
565
1541
|
declare const Icon: React$1.ForwardRefExoticComponent<IconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
566
1542
|
|
|
567
1543
|
interface InfoCardProps {
|
|
@@ -572,6 +1548,17 @@ interface InfoCardProps {
|
|
|
572
1548
|
onClick?: () => void;
|
|
573
1549
|
elevation?: Elevation;
|
|
574
1550
|
}
|
|
1551
|
+
/**
|
|
1552
|
+
* **Props**
|
|
1553
|
+
* - `label: string`
|
|
1554
|
+
* - `description: string | number | React.ReactNode`
|
|
1555
|
+
* - `icon: React.ReactElement | string`
|
|
1556
|
+
* - `className?: string`
|
|
1557
|
+
* - `onClick?: () => void`
|
|
1558
|
+
* - `elevation?: Elevation` (default `"raised"`)
|
|
1559
|
+
*
|
|
1560
|
+
* [Info Card documentation](https://equality.eqtylab.io/components/info-card)
|
|
1561
|
+
*/
|
|
575
1562
|
declare const InfoCard: ({ label, description, icon, elevation, className, onClick, ...props }: InfoCardProps) => react_jsx_runtime.JSX.Element;
|
|
576
1563
|
|
|
577
1564
|
type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'suffix'> & {
|
|
@@ -581,6 +1568,18 @@ type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'prefix' |
|
|
|
581
1568
|
errorText?: React$1.ReactNode | string[];
|
|
582
1569
|
containerClassName?: string;
|
|
583
1570
|
};
|
|
1571
|
+
/**
|
|
1572
|
+
* **Props**
|
|
1573
|
+
* - `prefix?: React.ReactNode`
|
|
1574
|
+
* - `suffix?: React.ReactNode`
|
|
1575
|
+
* - `helpText?: React.ReactNode`
|
|
1576
|
+
* - `errorText?: React.ReactNode | string[]`
|
|
1577
|
+
* - `containerClassName?: string`
|
|
1578
|
+
*
|
|
1579
|
+
* Also accepts the standard `HTMLInputElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1580
|
+
*
|
|
1581
|
+
* [Input documentation](https://equality.eqtylab.io/components/input)
|
|
1582
|
+
*/
|
|
584
1583
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "prefix" | "suffix"> & {
|
|
585
1584
|
prefix?: React$1.ReactNode;
|
|
586
1585
|
suffix?: React$1.ReactNode;
|
|
@@ -589,6 +1588,14 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
|
|
|
589
1588
|
containerClassName?: string;
|
|
590
1589
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
591
1590
|
|
|
1591
|
+
/**
|
|
1592
|
+
* **Props**
|
|
1593
|
+
* - `asChild?: boolean`
|
|
1594
|
+
*
|
|
1595
|
+
* Also accepts the standard `HTMLLabelElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1596
|
+
*
|
|
1597
|
+
* [Label documentation](https://equality.eqtylab.io/components/label)
|
|
1598
|
+
*/
|
|
592
1599
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
593
1600
|
|
|
594
1601
|
type ViewMode = 'grid' | 'list';
|
|
@@ -600,6 +1607,14 @@ interface ListOrGridViewToggleProps {
|
|
|
600
1607
|
className?: string;
|
|
601
1608
|
}
|
|
602
1609
|
/**
|
|
1610
|
+
* **Props**
|
|
1611
|
+
* - `viewMode: "grid" | "list"`
|
|
1612
|
+
* - `onViewModeChange: (mode: ViewMode) => void`
|
|
1613
|
+
* - `order?: ViewOrder` (default `['grid', 'list']`)
|
|
1614
|
+
* - `className?: string`
|
|
1615
|
+
*
|
|
1616
|
+
* [List or Grid View Toggle documentation](https://equality.eqtylab.io/components/list-or-grid-view-toggle)
|
|
1617
|
+
*
|
|
603
1618
|
* @deprecated Use `SegmentedControls` instead.
|
|
604
1619
|
*/
|
|
605
1620
|
declare const ListOrGridViewToggle: ({ viewMode, onViewModeChange, order, className, }: ListOrGridViewToggleProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -608,6 +1623,13 @@ interface LoadingOverlayProps {
|
|
|
608
1623
|
isVisible: boolean;
|
|
609
1624
|
message?: string;
|
|
610
1625
|
}
|
|
1626
|
+
/**
|
|
1627
|
+
* **Props**
|
|
1628
|
+
* - `isVisible: boolean`
|
|
1629
|
+
* - `message?: string` (default `"Loading..."`)
|
|
1630
|
+
*
|
|
1631
|
+
* [Loading Overlay documentation](https://equality.eqtylab.io/components/loading-overlay)
|
|
1632
|
+
*/
|
|
611
1633
|
declare function LoadingOverlay({ isVisible, message }: LoadingOverlayProps): react_jsx_runtime.JSX.Element | null;
|
|
612
1634
|
|
|
613
1635
|
declare const metricCardElevationVariants: (props?: ({
|
|
@@ -621,6 +1643,17 @@ interface MetricCardProps extends VariantProps<typeof metricCardElevationVariant
|
|
|
621
1643
|
variant?: Variant;
|
|
622
1644
|
className?: string;
|
|
623
1645
|
}
|
|
1646
|
+
/**
|
|
1647
|
+
* **Props**
|
|
1648
|
+
* - `elevation?: string | number` (default `"raised"`)
|
|
1649
|
+
* - `value: string | number`
|
|
1650
|
+
* - `label: string`
|
|
1651
|
+
* - `icon?: React.ReactElement | string`
|
|
1652
|
+
* - `variant?: "default" | "primary" | "danger" | "success" | "warning"` (default `"default"`)
|
|
1653
|
+
* - `className?: string`
|
|
1654
|
+
*
|
|
1655
|
+
* [Metric Card documentation](https://equality.eqtylab.io/components/metric-card)
|
|
1656
|
+
*/
|
|
624
1657
|
declare const MetricCard: ({ value, label, icon, variant, elevation, className, }: MetricCardProps) => react_jsx_runtime.JSX.Element;
|
|
625
1658
|
|
|
626
1659
|
interface MotionCollapsibleContentProps {
|
|
@@ -628,6 +1661,14 @@ interface MotionCollapsibleContentProps {
|
|
|
628
1661
|
children: ReactNode;
|
|
629
1662
|
className?: string;
|
|
630
1663
|
}
|
|
1664
|
+
/**
|
|
1665
|
+
* **Props**
|
|
1666
|
+
* - `isOpen: boolean`
|
|
1667
|
+
* - `children: ReactNode`
|
|
1668
|
+
* - `className?: string`
|
|
1669
|
+
*
|
|
1670
|
+
* [Motion Collapsible Content documentation](https://equality.eqtylab.io/components/motion-collapsible-content)
|
|
1671
|
+
*/
|
|
631
1672
|
declare const MotionCollapsibleContent: ({ isOpen, children, className, }: MotionCollapsibleContentProps) => react_jsx_runtime.JSX.Element;
|
|
632
1673
|
|
|
633
1674
|
interface NotFoundProps {
|
|
@@ -637,6 +1678,16 @@ interface NotFoundProps {
|
|
|
637
1678
|
showHomeButton?: boolean;
|
|
638
1679
|
onHomeClick?: () => void;
|
|
639
1680
|
}
|
|
1681
|
+
/**
|
|
1682
|
+
* **Props**
|
|
1683
|
+
* - `className?: string`
|
|
1684
|
+
* - `title?: string` (default `"Oops! Page Not Found"`)
|
|
1685
|
+
* - `description?: string` (default `"The page or resource you're looking for doesn't exist or has been moved."`)
|
|
1686
|
+
* - `showHomeButton?: boolean` (default `true`)
|
|
1687
|
+
* - `onHomeClick?: () => void` (default `() => (window.location.href = '/')`)
|
|
1688
|
+
*
|
|
1689
|
+
* [Page Not Found documentation](https://equality.eqtylab.io/components/page-not-found)
|
|
1690
|
+
*/
|
|
640
1691
|
declare const NotFound: ({ className, title, description, showHomeButton, onHomeClick, }: NotFoundProps) => react_jsx_runtime.JSX.Element;
|
|
641
1692
|
|
|
642
1693
|
interface PaginationProps {
|
|
@@ -654,16 +1705,94 @@ interface PaginationProps {
|
|
|
654
1705
|
type?: string;
|
|
655
1706
|
scrollTargetRef?: React$1.RefObject<HTMLElement | null> | string;
|
|
656
1707
|
}
|
|
1708
|
+
/**
|
|
1709
|
+
* **Props**
|
|
1710
|
+
* - `currentPage: number`
|
|
1711
|
+
* - `totalItems: number`
|
|
1712
|
+
* - `filteredItems: number`
|
|
1713
|
+
* - `itemsPerPage: number`
|
|
1714
|
+
* - `onPageChange: (page: number) => void`
|
|
1715
|
+
* - `onItemsPerPageChange?: (itemsPerPage: number) => void`
|
|
1716
|
+
* - `itemsPerPageOptions?: number[]` (default `[10, 25, 50, 100]`)
|
|
1717
|
+
* - `showInfo?: boolean` (default `true`)
|
|
1718
|
+
* - `showFirstLast?: boolean` (default `true`)
|
|
1719
|
+
* - `maxVisiblePages?: number` (default `5`)
|
|
1720
|
+
* - `className?: string` (default `""`)
|
|
1721
|
+
* - `type?: string` (default `""`)
|
|
1722
|
+
* - `scrollTargetRef?: React.RefObject<HTMLElement | null> | string`
|
|
1723
|
+
*
|
|
1724
|
+
* [Pagination documentation](https://equality.eqtylab.io/components/pagination)
|
|
1725
|
+
*/
|
|
657
1726
|
declare const Pagination: ({ currentPage, totalItems, filteredItems, itemsPerPage, onPageChange, onItemsPerPageChange, itemsPerPageOptions, showInfo, showFirstLast, maxVisiblePages, className, type, scrollTargetRef, }: PaginationProps) => react_jsx_runtime.JSX.Element | null;
|
|
658
1727
|
|
|
659
1728
|
interface PanelLabelProps {
|
|
660
1729
|
className?: string;
|
|
661
1730
|
label: string;
|
|
662
1731
|
}
|
|
1732
|
+
/**
|
|
1733
|
+
* **Props**
|
|
1734
|
+
* - `className?: string`
|
|
1735
|
+
* - `label: string`
|
|
1736
|
+
*
|
|
1737
|
+
* [Panel Label documentation](https://equality.eqtylab.io/components/panel-label)
|
|
1738
|
+
*/
|
|
663
1739
|
declare const PanelLabel: ({ className, label }: PanelLabelProps) => react_jsx_runtime.JSX.Element;
|
|
664
1740
|
|
|
1741
|
+
/**
|
|
1742
|
+
* **Props**
|
|
1743
|
+
* - `children?: ReactNode`
|
|
1744
|
+
* - `open?: boolean`
|
|
1745
|
+
* - `defaultOpen?: boolean`
|
|
1746
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
1747
|
+
* - `modal?: boolean`
|
|
1748
|
+
*
|
|
1749
|
+
* [Popover documentation](https://equality.eqtylab.io/components/popover)
|
|
1750
|
+
*/
|
|
665
1751
|
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
1752
|
+
/**
|
|
1753
|
+
* **Props**
|
|
1754
|
+
* - `asChild?: boolean`
|
|
1755
|
+
*
|
|
1756
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1757
|
+
*
|
|
1758
|
+
* [Popover documentation](https://equality.eqtylab.io/components/popover)
|
|
1759
|
+
*/
|
|
666
1760
|
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1761
|
+
/**
|
|
1762
|
+
* **Props**
|
|
1763
|
+
* - `arrow?: boolean` (default `false`)
|
|
1764
|
+
* - `asChild?: boolean`
|
|
1765
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
1766
|
+
* Can be prevented.
|
|
1767
|
+
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void` — Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
1768
|
+
* Can be prevented.
|
|
1769
|
+
* - `onFocusOutside?: (event: FocusOutsideEvent) => void` — Event handler called when the focus moves outside of the `DismissableLayer`.
|
|
1770
|
+
* Can be prevented.
|
|
1771
|
+
* - `onInteractOutside?: (event: FocusOutsideEvent | PointerDownOutsideEvent) => void` — Event handler called when an interaction happens outside the `DismissableLayer`.
|
|
1772
|
+
* Specifically, when a `pointerdown` event happens outside or focus moves outside of it.
|
|
1773
|
+
* Can be prevented.
|
|
1774
|
+
* - `onOpenAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on open.
|
|
1775
|
+
* Can be prevented.
|
|
1776
|
+
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
1777
|
+
* Can be prevented.
|
|
1778
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
1779
|
+
* controlling animation with React animation libraries.
|
|
1780
|
+
* - `side?: "top" | "bottom" | "left" | "right"`
|
|
1781
|
+
* - `sideOffset?: number` (default `4`)
|
|
1782
|
+
* - `align?: "center" | "start" | "end"` (default `"center"`)
|
|
1783
|
+
* - `alignOffset?: number`
|
|
1784
|
+
* - `arrowPadding?: number`
|
|
1785
|
+
* - `avoidCollisions?: boolean`
|
|
1786
|
+
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
1787
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "bottom" | "left" | "right", number>>`
|
|
1788
|
+
* - `sticky?: "partial" | "always"`
|
|
1789
|
+
* - `hideWhenDetached?: boolean`
|
|
1790
|
+
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
1791
|
+
*
|
|
1792
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1793
|
+
*
|
|
1794
|
+
* [Popover documentation](https://equality.eqtylab.io/components/popover)
|
|
1795
|
+
*/
|
|
667
1796
|
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
668
1797
|
arrow?: boolean;
|
|
669
1798
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -681,6 +1810,17 @@ interface ProgressIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
681
1810
|
elevation?: Elevation;
|
|
682
1811
|
children: React$1.ReactNode;
|
|
683
1812
|
}
|
|
1813
|
+
/**
|
|
1814
|
+
* **Props**
|
|
1815
|
+
* - `layout?: "horizontal" | "vertical"` (default `"horizontal"`)
|
|
1816
|
+
* - `currentIndex: number` (default `0`) — Index of the current step. Each step compares its own index to this.
|
|
1817
|
+
* - `elevation?: Elevation` (default `"raised"`) — Elevation passed down to each step's marker Icon.
|
|
1818
|
+
* - `children: React.ReactNode`
|
|
1819
|
+
*
|
|
1820
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1821
|
+
*
|
|
1822
|
+
* [Progress Indicator documentation](https://equality.eqtylab.io/components/progress-indicator)
|
|
1823
|
+
*/
|
|
684
1824
|
declare function ProgressIndicator({ layout, currentIndex, elevation, className, children, 'aria-label': ariaLabel, ...props }: ProgressIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
685
1825
|
interface ProgressIndicatorStepProps extends Omit<React$1.LiHTMLAttributes<HTMLLIElement>, 'onClick'> {
|
|
686
1826
|
name: string;
|
|
@@ -695,11 +1835,38 @@ interface ProgressIndicatorStepProps extends Omit<React$1.LiHTMLAttributes<HTMLL
|
|
|
695
1835
|
/** @internal Injected by ProgressIndicator — elevation for the marker Icon. */
|
|
696
1836
|
elevation?: Elevation;
|
|
697
1837
|
}
|
|
1838
|
+
/**
|
|
1839
|
+
* **Props**
|
|
1840
|
+
* - `name: string`
|
|
1841
|
+
* - `description?: string`
|
|
1842
|
+
* - `status?: "editing" | "empty" | "neutral" | "success" | "info" | "danger"` (default `"neutral"`)
|
|
1843
|
+
* - `href?: string`
|
|
1844
|
+
* - `onClick?: (e: React.MouseEvent) => void`
|
|
1845
|
+
* - `index?: number`
|
|
1846
|
+
* - `currentIndex?: number`
|
|
1847
|
+
* - `elevation?: Elevation`
|
|
1848
|
+
*
|
|
1849
|
+
* Also accepts the standard HTML attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1850
|
+
*
|
|
1851
|
+
* [Progress Indicator documentation](https://equality.eqtylab.io/components/progress-indicator)
|
|
1852
|
+
*/
|
|
698
1853
|
declare function ProgressIndicatorStep({ name, description, status, href, onClick, className, index, currentIndex, elevation, ...props }: ProgressIndicatorStepProps): react_jsx_runtime.JSX.Element;
|
|
699
1854
|
|
|
700
1855
|
interface ProgressProps extends React$1.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> {
|
|
701
1856
|
color?: 'primary' | 'secondary' | 'green' | 'red' | 'yellow';
|
|
702
1857
|
}
|
|
1858
|
+
/**
|
|
1859
|
+
* **Props**
|
|
1860
|
+
* - `color?: "primary" | "secondary" | "green" | "red" | "yellow"` (default `"primary"`)
|
|
1861
|
+
* - `value?: number | null`
|
|
1862
|
+
* - `asChild?: boolean`
|
|
1863
|
+
* - `max?: number`
|
|
1864
|
+
* - `getValueLabel?: (value: number, max: number) => string`
|
|
1865
|
+
*
|
|
1866
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1867
|
+
*
|
|
1868
|
+
* [Progress documentation](https://equality.eqtylab.io/components/progress)
|
|
1869
|
+
*/
|
|
703
1870
|
declare const Progress: React$1.ForwardRefExoticComponent<ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
704
1871
|
|
|
705
1872
|
interface RadialGraphProps {
|
|
@@ -710,6 +1877,17 @@ interface RadialGraphProps {
|
|
|
710
1877
|
graphSize?: 'sm' | 'md' | 'lg';
|
|
711
1878
|
variant?: 'primary' | 'success' | 'danger' | 'warning';
|
|
712
1879
|
}
|
|
1880
|
+
/**
|
|
1881
|
+
* **Props**
|
|
1882
|
+
* - `percentage: number`
|
|
1883
|
+
* - `displayLabel?: string`
|
|
1884
|
+
* - `className?: string`
|
|
1885
|
+
* - `subLabel?: string`
|
|
1886
|
+
* - `graphSize?: "sm" | "md" | "lg"` (default `"md"`)
|
|
1887
|
+
* - `variant?: "primary" | "success" | "danger" | "warning"` (default `"primary"`)
|
|
1888
|
+
*
|
|
1889
|
+
* [Radial Graph documentation](https://equality.eqtylab.io/components/radial-graph)
|
|
1890
|
+
*/
|
|
713
1891
|
declare const RadialGraph: React$1.ForwardRefExoticComponent<RadialGraphProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
714
1892
|
|
|
715
1893
|
interface FilterOption {
|
|
@@ -727,9 +1905,50 @@ interface RadioDropdownProps {
|
|
|
727
1905
|
searchPlaceholder?: string;
|
|
728
1906
|
emptyPlaceholder?: string;
|
|
729
1907
|
}
|
|
1908
|
+
/**
|
|
1909
|
+
* **Props**
|
|
1910
|
+
* - `label: string`
|
|
1911
|
+
* - `options: FilterOption[]`
|
|
1912
|
+
* - `selectedValue: string`
|
|
1913
|
+
* - `onSelect: (value: string) => void`
|
|
1914
|
+
* - `className?: string`
|
|
1915
|
+
* - `searchable?: boolean` (default `false`)
|
|
1916
|
+
* - `searchPlaceholder?: string` (default `"Search options..."`)
|
|
1917
|
+
* - `emptyPlaceholder?: string` (default `"No options found"`)
|
|
1918
|
+
*
|
|
1919
|
+
* [Radio Dropdown documentation](https://equality.eqtylab.io/components/radio-dropdown)
|
|
1920
|
+
*/
|
|
730
1921
|
declare const RadioDropdown: ({ label, options, selectedValue, onSelect, className, searchable, searchPlaceholder, emptyPlaceholder, }: RadioDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
731
1922
|
|
|
1923
|
+
/**
|
|
1924
|
+
* **Props**
|
|
1925
|
+
* - `disabled?: boolean`
|
|
1926
|
+
* - `name?: string`
|
|
1927
|
+
* - `value?: string | null`
|
|
1928
|
+
* - `defaultValue?: string`
|
|
1929
|
+
* - `dir?: "ltr" | "rtl"`
|
|
1930
|
+
* - `asChild?: boolean`
|
|
1931
|
+
* - `loop?: boolean`
|
|
1932
|
+
* - `required?: boolean`
|
|
1933
|
+
* - `orientation?: "horizontal" | "vertical"`
|
|
1934
|
+
* - `onValueChange?: (value: string) => void`
|
|
1935
|
+
*
|
|
1936
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1937
|
+
*
|
|
1938
|
+
* [Radio Group documentation](https://equality.eqtylab.io/components/radio-group)
|
|
1939
|
+
*/
|
|
732
1940
|
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1941
|
+
/**
|
|
1942
|
+
* **Props**
|
|
1943
|
+
* - `value: string`
|
|
1944
|
+
* - `asChild?: boolean`
|
|
1945
|
+
* - `checked?: boolean`
|
|
1946
|
+
* - `required?: boolean`
|
|
1947
|
+
*
|
|
1948
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1949
|
+
*
|
|
1950
|
+
* [Radio Group documentation](https://equality.eqtylab.io/components/radio-group)
|
|
1951
|
+
*/
|
|
733
1952
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
734
1953
|
|
|
735
1954
|
type ResourceType = 'agent' | 'benchmark' | 'benchmark-result' | 'binary' | 'certificate' | 'code' | 'compute' | 'credential' | 'database' | 'dataset' | 'document' | 'media' | 'skill' | 'guardrail' | 'model' | 'prompt' | 'system-prompt' | 'reasoning' | 'config' | 'token' | 'tool' | 'unknown';
|
|
@@ -742,14 +1961,44 @@ interface ResourceBadgeProps {
|
|
|
742
1961
|
closeLabel?: string;
|
|
743
1962
|
children?: React$1.ReactNode;
|
|
744
1963
|
}
|
|
1964
|
+
/**
|
|
1965
|
+
* **Props**
|
|
1966
|
+
* - `type: ResourceType`
|
|
1967
|
+
* - `display?: "both" | "text-only" | "icon-only"` (default `"both"`)
|
|
1968
|
+
* - `closeable?: boolean`
|
|
1969
|
+
* - `handleClosable?: () => void`
|
|
1970
|
+
* - `closeLabel?: string`
|
|
1971
|
+
* - `children?: React.ReactNode`
|
|
1972
|
+
*
|
|
1973
|
+
* [Resource Badge documentation](https://equality.eqtylab.io/components/resource-badge)
|
|
1974
|
+
*/
|
|
745
1975
|
declare const ResourceBadge: ({ type, display, closeable, handleClosable, closeLabel, children, }: ResourceBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
746
1976
|
|
|
747
1977
|
/**
|
|
1978
|
+
* **Props**
|
|
1979
|
+
* - `type?: "auto" | "always" | "scroll" | "hover"`
|
|
1980
|
+
* - `dir?: "ltr" | "rtl"`
|
|
1981
|
+
* - `asChild?: boolean`
|
|
1982
|
+
* - `scrollHideDelay?: number`
|
|
1983
|
+
*
|
|
1984
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1985
|
+
*
|
|
1986
|
+
* [Scroll Area documentation](https://equality.eqtylab.io/components/scroll-area)
|
|
1987
|
+
*
|
|
748
1988
|
* @deprecated Use a native scrollable element instead — set an overflow and a height on your own
|
|
749
1989
|
* container and leave the browser's scrollbar unstyled.
|
|
750
1990
|
*/
|
|
751
1991
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
752
1992
|
/**
|
|
1993
|
+
* **Props**
|
|
1994
|
+
* - `asChild?: boolean`
|
|
1995
|
+
* - `forceMount?: true`
|
|
1996
|
+
* - `orientation?: "horizontal" | "vertical"` (default `"vertical"`)
|
|
1997
|
+
*
|
|
1998
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1999
|
+
*
|
|
2000
|
+
* [Scroll Area documentation](https://equality.eqtylab.io/components/scroll-area)
|
|
2001
|
+
*
|
|
753
2002
|
* @deprecated Part of the deprecated `ScrollArea`. Use a native scrollable element instead.
|
|
754
2003
|
*/
|
|
755
2004
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -760,6 +2009,15 @@ interface SearchBarProps {
|
|
|
760
2009
|
searchQuery: string;
|
|
761
2010
|
setSearchQuery: (query: string) => void;
|
|
762
2011
|
}
|
|
2012
|
+
/**
|
|
2013
|
+
* **Props**
|
|
2014
|
+
* - `className?: string`
|
|
2015
|
+
* - `placeholder?: string` (default `"Search..."`)
|
|
2016
|
+
* - `searchQuery: string`
|
|
2017
|
+
* - `setSearchQuery: (query: string) => void`
|
|
2018
|
+
*
|
|
2019
|
+
* [Search Bar documentation](https://equality.eqtylab.io/components/search-bar)
|
|
2020
|
+
*/
|
|
763
2021
|
declare const SearchBar: ({ searchQuery, setSearchQuery, placeholder, className, }: SearchBarProps) => react_jsx_runtime.JSX.Element;
|
|
764
2022
|
|
|
765
2023
|
interface SectionHeadingProps {
|
|
@@ -768,6 +2026,15 @@ interface SectionHeadingProps {
|
|
|
768
2026
|
description?: string;
|
|
769
2027
|
renderRightContent?: () => React.ReactNode;
|
|
770
2028
|
}
|
|
2029
|
+
/**
|
|
2030
|
+
* **Props**
|
|
2031
|
+
* - `className?: string`
|
|
2032
|
+
* - `heading: React.ReactNode`
|
|
2033
|
+
* - `description?: string`
|
|
2034
|
+
* - `renderRightContent?: () => React.ReactNode`
|
|
2035
|
+
*
|
|
2036
|
+
* [Section Heading documentation](https://equality.eqtylab.io/components/section-heading)
|
|
2037
|
+
*/
|
|
771
2038
|
declare const SectionHeading: ({ heading, description, renderRightContent, className, }: SectionHeadingProps) => react_jsx_runtime.JSX.Element;
|
|
772
2039
|
|
|
773
2040
|
type SegmentedControlsDisplay = 'both' | 'text-only' | 'icon-only';
|
|
@@ -802,6 +2069,20 @@ interface SegmentedControlsProps {
|
|
|
802
2069
|
'aria-labelledby'?: string;
|
|
803
2070
|
className?: string;
|
|
804
2071
|
}
|
|
2072
|
+
/**
|
|
2073
|
+
* **Props**
|
|
2074
|
+
* - `options: SegmentedControlOption[]`
|
|
2075
|
+
* - `value: string`
|
|
2076
|
+
* - `onValueChange: (value: string) => void`
|
|
2077
|
+
* - `display?: "both" | "text-only" | "icon-only"` (default `"both"`) — Controls what is rendered inside each segment.
|
|
2078
|
+
* `icon-only` requires every option to define an `icon` and falls back to `both` otherwise.
|
|
2079
|
+
* - `size?: "sm" | "md" | "lg"` (default `"md"`) — Matches the height of a `Button` of the same size.
|
|
2080
|
+
* - `"aria-label"?: string` — Accessible name for the group. Provide this or `aria-labelledby`.
|
|
2081
|
+
* - `"aria-labelledby"?: string` — Id of a visible element that names the group.
|
|
2082
|
+
* - `className?: string`
|
|
2083
|
+
*
|
|
2084
|
+
* [Segmented Controls documentation](https://equality.eqtylab.io/components/segmented-controls)
|
|
2085
|
+
*/
|
|
805
2086
|
declare const SegmentedControls: ({ options, value, onValueChange, display, size, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
|
|
806
2087
|
|
|
807
2088
|
declare const useSelectSearchQuery: () => {
|
|
@@ -809,66 +2090,297 @@ declare const useSelectSearchQuery: () => {
|
|
|
809
2090
|
isSearching: boolean;
|
|
810
2091
|
matches: (textValue: string) => boolean;
|
|
811
2092
|
};
|
|
2093
|
+
/**
|
|
2094
|
+
* **Props**
|
|
2095
|
+
* - `children?: ReactNode`
|
|
2096
|
+
* - `open?: boolean`
|
|
2097
|
+
* - `defaultOpen?: boolean`
|
|
2098
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
2099
|
+
* - `dir?: "ltr" | "rtl"`
|
|
2100
|
+
* - `name?: string`
|
|
2101
|
+
* - `autoComplete?: string`
|
|
2102
|
+
* - `disabled?: boolean`
|
|
2103
|
+
* - `required?: boolean`
|
|
2104
|
+
* - `form?: string`
|
|
2105
|
+
* - `value?: string`
|
|
2106
|
+
* - `defaultValue?: string`
|
|
2107
|
+
* - `onValueChange?: (value: string) => void`
|
|
2108
|
+
*
|
|
2109
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2110
|
+
*/
|
|
812
2111
|
declare const Select: {
|
|
813
2112
|
({ open, onOpenChange, ...props }: React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
814
2113
|
displayName: string;
|
|
815
2114
|
};
|
|
2115
|
+
/**
|
|
2116
|
+
* **Props**
|
|
2117
|
+
* - `asChild?: boolean`
|
|
2118
|
+
*
|
|
2119
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2120
|
+
*
|
|
2121
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2122
|
+
*/
|
|
816
2123
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2124
|
+
/**
|
|
2125
|
+
* **Props**
|
|
2126
|
+
* - `placeholder?: ReactNode`
|
|
2127
|
+
* - `asChild?: boolean`
|
|
2128
|
+
*
|
|
2129
|
+
* Also accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2130
|
+
*
|
|
2131
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2132
|
+
*/
|
|
817
2133
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2134
|
+
/**
|
|
2135
|
+
* **Props**
|
|
2136
|
+
* - `asChild?: boolean`
|
|
2137
|
+
*
|
|
2138
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2139
|
+
*
|
|
2140
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2141
|
+
*/
|
|
818
2142
|
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2143
|
+
/**
|
|
2144
|
+
* **Props**
|
|
2145
|
+
* - `elevation?: string | number` (default `"overlay"`)
|
|
2146
|
+
* - `asChild?: boolean`
|
|
2147
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
2148
|
+
* Can be prevented.
|
|
2149
|
+
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void` — Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
2150
|
+
* Can be prevented.
|
|
2151
|
+
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
2152
|
+
* Can be prevented.
|
|
2153
|
+
* - `side?: "top" | "bottom" | "left" | "right"`
|
|
2154
|
+
* - `sideOffset?: number`
|
|
2155
|
+
* - `align?: "center" | "start" | "end"`
|
|
2156
|
+
* - `alignOffset?: number`
|
|
2157
|
+
* - `arrowPadding?: number`
|
|
2158
|
+
* - `avoidCollisions?: boolean`
|
|
2159
|
+
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
2160
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "bottom" | "left" | "right", number>>`
|
|
2161
|
+
* - `sticky?: "partial" | "always"`
|
|
2162
|
+
* - `hideWhenDetached?: boolean`
|
|
2163
|
+
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
2164
|
+
* - `position?: "item-aligned" | "popper"` (default `"popper"`)
|
|
2165
|
+
*
|
|
2166
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2167
|
+
*
|
|
2168
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2169
|
+
*/
|
|
819
2170
|
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
820
2171
|
elevation?: string | number | null | undefined;
|
|
821
2172
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2173
|
+
/**
|
|
2174
|
+
* **Props**
|
|
2175
|
+
* - `icon?: React.ReactNode`
|
|
2176
|
+
* - `alwaysVisible?: boolean` (default `true`)
|
|
2177
|
+
*
|
|
2178
|
+
* Also accepts the standard `HTMLInputElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2179
|
+
*
|
|
2180
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2181
|
+
*/
|
|
822
2182
|
declare const SelectSearch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange"> & {
|
|
823
2183
|
icon?: React$1.ReactNode;
|
|
824
2184
|
alwaysVisible?: boolean;
|
|
825
2185
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
2186
|
+
/**
|
|
2187
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2188
|
+
*
|
|
2189
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2190
|
+
*/
|
|
826
2191
|
declare const SelectEmpty: {
|
|
827
2192
|
({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element | null;
|
|
828
2193
|
displayName: string;
|
|
829
2194
|
};
|
|
2195
|
+
/**
|
|
2196
|
+
* **Props**
|
|
2197
|
+
* - `asChild?: boolean`
|
|
2198
|
+
*
|
|
2199
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2200
|
+
*
|
|
2201
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2202
|
+
*/
|
|
830
2203
|
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2204
|
+
/**
|
|
2205
|
+
* **Props**
|
|
2206
|
+
* - `persistent?: boolean`
|
|
2207
|
+
* - `disabled?: boolean`
|
|
2208
|
+
* - `value: string`
|
|
2209
|
+
* - `asChild?: boolean`
|
|
2210
|
+
* - `textValue?: string`
|
|
2211
|
+
*
|
|
2212
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2213
|
+
*
|
|
2214
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2215
|
+
*/
|
|
831
2216
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
832
2217
|
persistent?: boolean;
|
|
833
2218
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
2219
|
+
/**
|
|
2220
|
+
* **Props**
|
|
2221
|
+
* - `persistent?: boolean`
|
|
2222
|
+
* - `asChild?: boolean`
|
|
2223
|
+
*
|
|
2224
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2225
|
+
*
|
|
2226
|
+
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2227
|
+
*/
|
|
834
2228
|
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
835
2229
|
persistent?: boolean;
|
|
836
2230
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
837
2231
|
|
|
2232
|
+
/**
|
|
2233
|
+
* **Props**
|
|
2234
|
+
* - `asChild?: boolean`
|
|
2235
|
+
* - `orientation?: "horizontal" | "vertical"` (default `"horizontal"`) — Either `vertical` or `horizontal`. Defaults to `horizontal`.
|
|
2236
|
+
* - `decorative?: boolean` (default `true`) — Whether or not the component is purely decorative. When true, accessibility-related attributes
|
|
2237
|
+
* are updated so that that the rendered element is removed from the accessibility tree.
|
|
2238
|
+
*
|
|
2239
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2240
|
+
*
|
|
2241
|
+
* [Separator documentation](https://equality.eqtylab.io/components/separator)
|
|
2242
|
+
*/
|
|
838
2243
|
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
839
2244
|
|
|
2245
|
+
/**
|
|
2246
|
+
* **Props**
|
|
2247
|
+
* - `children?: ReactNode`
|
|
2248
|
+
* - `open?: boolean`
|
|
2249
|
+
* - `defaultOpen?: boolean`
|
|
2250
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
2251
|
+
* - `modal?: boolean`
|
|
2252
|
+
*
|
|
2253
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2254
|
+
*/
|
|
840
2255
|
declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
|
|
2256
|
+
/**
|
|
2257
|
+
* **Props**
|
|
2258
|
+
* - `asChild?: boolean`
|
|
2259
|
+
*
|
|
2260
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2261
|
+
*
|
|
2262
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2263
|
+
*/
|
|
841
2264
|
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2265
|
+
/**
|
|
2266
|
+
* **Props**
|
|
2267
|
+
* - `asChild?: boolean`
|
|
2268
|
+
*
|
|
2269
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2270
|
+
*
|
|
2271
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2272
|
+
*/
|
|
842
2273
|
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2274
|
+
/**
|
|
2275
|
+
* **Props**
|
|
2276
|
+
* - `children: React.ReactNode`
|
|
2277
|
+
*
|
|
2278
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2279
|
+
*/
|
|
843
2280
|
declare const SheetPortal: ({ children }: {
|
|
844
2281
|
children: React$1.ReactNode;
|
|
845
2282
|
}) => react_jsx_runtime.JSX.Element;
|
|
2283
|
+
/**
|
|
2284
|
+
* **Props**
|
|
2285
|
+
* - `asChild?: boolean`
|
|
2286
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
2287
|
+
* controlling animation with React animation libraries.
|
|
2288
|
+
*
|
|
2289
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2290
|
+
*
|
|
2291
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2292
|
+
*/
|
|
846
2293
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
847
2294
|
declare const sheetVariants: (props?: ({
|
|
848
2295
|
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
849
2296
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
850
2297
|
interface SheetContainerProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
851
2298
|
}
|
|
2299
|
+
/**
|
|
2300
|
+
* **Props**
|
|
2301
|
+
* - `side?: "top" | "bottom" | "left" | "right"` (default `"right"`)
|
|
2302
|
+
* - `asChild?: boolean`
|
|
2303
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
2304
|
+
* Can be prevented.
|
|
2305
|
+
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void` — Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
|
|
2306
|
+
* Can be prevented.
|
|
2307
|
+
* - `onFocusOutside?: (event: FocusOutsideEvent) => void` — Event handler called when the focus moves outside of the `DismissableLayer`.
|
|
2308
|
+
* Can be prevented.
|
|
2309
|
+
* - `onInteractOutside?: (event: FocusOutsideEvent | PointerDownOutsideEvent) => void` — Event handler called when an interaction happens outside the `DismissableLayer`.
|
|
2310
|
+
* Specifically, when a `pointerdown` event happens outside or focus moves outside of it.
|
|
2311
|
+
* Can be prevented.
|
|
2312
|
+
* - `onOpenAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on open.
|
|
2313
|
+
* Can be prevented.
|
|
2314
|
+
* - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
|
|
2315
|
+
* Can be prevented.
|
|
2316
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
2317
|
+
* controlling animation with React animation libraries.
|
|
2318
|
+
*
|
|
2319
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2320
|
+
*
|
|
2321
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2322
|
+
*/
|
|
852
2323
|
declare const SheetContainer: React$1.ForwardRefExoticComponent<SheetContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2324
|
+
/**
|
|
2325
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2326
|
+
*
|
|
2327
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2328
|
+
*/
|
|
853
2329
|
declare const SheetHeaderIcon: {
|
|
854
2330
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
855
2331
|
displayName: string;
|
|
856
2332
|
};
|
|
2333
|
+
/**
|
|
2334
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2335
|
+
*
|
|
2336
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2337
|
+
*/
|
|
857
2338
|
declare const SheetHeader: {
|
|
858
2339
|
({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
859
2340
|
displayName: string;
|
|
860
2341
|
};
|
|
2342
|
+
/**
|
|
2343
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2344
|
+
*
|
|
2345
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2346
|
+
*/
|
|
861
2347
|
declare const SheetFooter: {
|
|
862
2348
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
863
2349
|
displayName: string;
|
|
864
2350
|
};
|
|
2351
|
+
/**
|
|
2352
|
+
* **Props**
|
|
2353
|
+
* - `asChild?: boolean`
|
|
2354
|
+
*
|
|
2355
|
+
* Also accepts the standard `HTMLHeadingElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2356
|
+
*
|
|
2357
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2358
|
+
*/
|
|
865
2359
|
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
2360
|
+
/**
|
|
2361
|
+
* **Props**
|
|
2362
|
+
* - `asChild?: boolean`
|
|
2363
|
+
*
|
|
2364
|
+
* Also accepts the standard `HTMLParagraphElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2365
|
+
*
|
|
2366
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2367
|
+
*/
|
|
866
2368
|
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
2369
|
+
/**
|
|
2370
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2371
|
+
*
|
|
2372
|
+
* [Sheet documentation](https://equality.eqtylab.io/components/sheet)
|
|
2373
|
+
*/
|
|
867
2374
|
declare const SheetContent: {
|
|
868
2375
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
869
2376
|
displayName: string;
|
|
870
2377
|
};
|
|
871
2378
|
|
|
2379
|
+
/**
|
|
2380
|
+
* Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2381
|
+
*
|
|
2382
|
+
* [Skeleton documentation](https://equality.eqtylab.io/components/skeleton)
|
|
2383
|
+
*/
|
|
872
2384
|
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
873
2385
|
|
|
874
2386
|
interface SortButtonProps<T extends string> {
|
|
@@ -879,6 +2391,17 @@ interface SortButtonProps<T extends string> {
|
|
|
879
2391
|
sortDirection: 'asc' | 'desc';
|
|
880
2392
|
onSort: (field: T) => void;
|
|
881
2393
|
}
|
|
2394
|
+
/**
|
|
2395
|
+
* **Props**
|
|
2396
|
+
* - `field: T`
|
|
2397
|
+
* - `children: React.ReactNode`
|
|
2398
|
+
* - `icon?: React.ReactNode`
|
|
2399
|
+
* - `sortField: T | null`
|
|
2400
|
+
* - `sortDirection: "asc" | "desc"`
|
|
2401
|
+
* - `onSort: (field: T) => void`
|
|
2402
|
+
*
|
|
2403
|
+
* [Sort Button documentation](https://equality.eqtylab.io/components/sort-button)
|
|
2404
|
+
*/
|
|
882
2405
|
declare function SortButton<T extends string>({ field, children, icon, sortField, sortDirection, onSort, }: SortButtonProps<T>): react_jsx_runtime.JSX.Element;
|
|
883
2406
|
|
|
884
2407
|
type SortField = 'name' | 'type' | 'createdAt' | 'updatedAt';
|
|
@@ -896,12 +2419,34 @@ interface SortSelectorProps {
|
|
|
896
2419
|
showDateOptions?: boolean;
|
|
897
2420
|
className?: string;
|
|
898
2421
|
}
|
|
2422
|
+
/**
|
|
2423
|
+
* **Props**
|
|
2424
|
+
* - `sortField: "name" | "type" | "createdAt" | "updatedAt"`
|
|
2425
|
+
* - `defaultSortField?: "name" | "type" | "createdAt" | "updatedAt"` (default `"name"`)
|
|
2426
|
+
* - `sortOrder: "asc" | "desc"`
|
|
2427
|
+
* - `defaultSortOrder?: "asc" | "desc"` (default `"asc"`)
|
|
2428
|
+
* - `sortMode?: "created" | "updated"` (default `"created"`)
|
|
2429
|
+
* - `setSortField: (field: SortField) => void`
|
|
2430
|
+
* - `setSortOrder: (order: SortOrder) => void`
|
|
2431
|
+
* - `setCurrentPage?: (page: number) => void`
|
|
2432
|
+
* - `showDateOptions?: boolean` (default `true`)
|
|
2433
|
+
* - `className?: string`
|
|
2434
|
+
*
|
|
2435
|
+
* [Sort Selector documentation](https://equality.eqtylab.io/components/sort-selector)
|
|
2436
|
+
*/
|
|
899
2437
|
declare function SortSelector({ sortField, defaultSortField, sortOrder, defaultSortOrder, sortMode, setSortField, setSortOrder, setCurrentPage, showDateOptions, className, }: SortSelectorProps): react_jsx_runtime.JSX.Element;
|
|
900
2438
|
|
|
901
2439
|
interface SpinnerProps {
|
|
902
2440
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
903
2441
|
variant?: 'neutral' | 'primary' | 'success' | 'danger' | 'warning';
|
|
904
2442
|
}
|
|
2443
|
+
/**
|
|
2444
|
+
* **Props**
|
|
2445
|
+
* - `size?: "xs" | "sm" | "md" | "lg" | "xl"` (default `"md"`)
|
|
2446
|
+
* - `variant?: "neutral" | "primary" | "success" | "danger" | "warning"` (default `"primary"`)
|
|
2447
|
+
*
|
|
2448
|
+
* [Spinner documentation](https://equality.eqtylab.io/components/spinner)
|
|
2449
|
+
*/
|
|
905
2450
|
declare const Spinner: ({ size, variant }: SpinnerProps) => react_jsx_runtime.JSX.Element;
|
|
906
2451
|
|
|
907
2452
|
interface SwitchProps extends React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
|
|
@@ -909,31 +2454,143 @@ interface SwitchProps extends React$1.ComponentPropsWithoutRef<typeof SwitchPrim
|
|
|
909
2454
|
variant?: 'default' | 'danger';
|
|
910
2455
|
thumbIcon?: React$1.ReactElement | string;
|
|
911
2456
|
}
|
|
2457
|
+
/**
|
|
2458
|
+
* **Props**
|
|
2459
|
+
* - `size?: "sm" | "md" | "lg"` (default `"md"`)
|
|
2460
|
+
* - `variant?: "default" | "danger"` (default `"default"`)
|
|
2461
|
+
* - `thumbIcon?: React.ReactElement | string`
|
|
2462
|
+
* - `defaultChecked?: boolean`
|
|
2463
|
+
* - `asChild?: boolean`
|
|
2464
|
+
* - `checked?: boolean`
|
|
2465
|
+
* - `required?: boolean`
|
|
2466
|
+
* - `onCheckedChange?: (checked: boolean) => void`
|
|
2467
|
+
*
|
|
2468
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2469
|
+
*
|
|
2470
|
+
* [Switch documentation](https://equality.eqtylab.io/components/switch)
|
|
2471
|
+
*/
|
|
912
2472
|
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
913
2473
|
|
|
2474
|
+
/**
|
|
2475
|
+
* **Props**
|
|
2476
|
+
* - `elevation?: string | number` (default `"raised"`)
|
|
2477
|
+
* - `border?: boolean`
|
|
2478
|
+
* - `columns?: string`
|
|
2479
|
+
*
|
|
2480
|
+
* Also accepts the standard `HTMLTableElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2481
|
+
*
|
|
2482
|
+
* [Table documentation](https://equality.eqtylab.io/components/table)
|
|
2483
|
+
*/
|
|
914
2484
|
declare const TableContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & VariantProps<(props?: ({
|
|
915
2485
|
elevation?: string | number | null | undefined;
|
|
916
2486
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
917
2487
|
border?: boolean;
|
|
918
2488
|
columns?: string;
|
|
919
2489
|
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
2490
|
+
/**
|
|
2491
|
+
* **Props**
|
|
2492
|
+
* - `sticky?: false | "container" | "page"` (default `false`)
|
|
2493
|
+
*
|
|
2494
|
+
* Also accepts the standard `HTMLTableSectionElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2495
|
+
*
|
|
2496
|
+
* [Table documentation](https://equality.eqtylab.io/components/table)
|
|
2497
|
+
*/
|
|
920
2498
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & {
|
|
921
2499
|
sticky?: false | "container" | "page";
|
|
922
2500
|
} & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
2501
|
+
/**
|
|
2502
|
+
* Accepts the standard `HTMLTableSectionElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2503
|
+
*
|
|
2504
|
+
* [Table documentation](https://equality.eqtylab.io/components/table)
|
|
2505
|
+
*/
|
|
923
2506
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
2507
|
+
/**
|
|
2508
|
+
* Accepts the standard `HTMLTableSectionElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2509
|
+
*
|
|
2510
|
+
* [Table documentation](https://equality.eqtylab.io/components/table)
|
|
2511
|
+
*/
|
|
924
2512
|
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
2513
|
+
/**
|
|
2514
|
+
* **Props**
|
|
2515
|
+
* - `clickable?: boolean`
|
|
2516
|
+
* - `href?: string`
|
|
2517
|
+
* - `hrefLabel?: string` (default `"View details"`)
|
|
2518
|
+
*
|
|
2519
|
+
* Also accepts the standard `HTMLTableRowElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2520
|
+
*
|
|
2521
|
+
* [Table documentation](https://equality.eqtylab.io/components/table)
|
|
2522
|
+
*/
|
|
925
2523
|
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & {
|
|
926
2524
|
clickable?: boolean;
|
|
927
2525
|
href?: string;
|
|
928
2526
|
hrefLabel?: string;
|
|
929
2527
|
} & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
2528
|
+
/**
|
|
2529
|
+
* Accepts the standard `HTMLTableCellElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2530
|
+
*
|
|
2531
|
+
* [Table documentation](https://equality.eqtylab.io/components/table)
|
|
2532
|
+
*/
|
|
930
2533
|
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
2534
|
+
/**
|
|
2535
|
+
* Accepts the standard `HTMLTableCellElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2536
|
+
*
|
|
2537
|
+
* [Table documentation](https://equality.eqtylab.io/components/table)
|
|
2538
|
+
*/
|
|
931
2539
|
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
2540
|
+
/**
|
|
2541
|
+
* Accepts the standard `HTMLTableCaptionElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2542
|
+
*
|
|
2543
|
+
* [Table documentation](https://equality.eqtylab.io/components/table)
|
|
2544
|
+
*/
|
|
932
2545
|
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
933
2546
|
|
|
2547
|
+
/**
|
|
2548
|
+
* **Props**
|
|
2549
|
+
* - `value?: string` — The value for the selected tab, if controlled
|
|
2550
|
+
* - `defaultValue?: string` — The value of the tab to select by default, if uncontrolled
|
|
2551
|
+
* - `onValueChange?: (value: string) => void` — A function called when a new tab is selected
|
|
2552
|
+
* - `orientation?: "horizontal" | "vertical"` — The orientation the tabs are layed out.
|
|
2553
|
+
* Mainly so arrow navigation is done accordingly (left & right vs. up & down)
|
|
2554
|
+
* - `dir?: "ltr" | "rtl"` — The direction of navigation between toolbar items.
|
|
2555
|
+
* - `activationMode?: "automatic" | "manual"` — Whether a tab is activated automatically or manually.
|
|
2556
|
+
* - `asChild?: boolean`
|
|
2557
|
+
*
|
|
2558
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2559
|
+
*
|
|
2560
|
+
* [Tabs documentation](https://equality.eqtylab.io/components/tabs)
|
|
2561
|
+
*/
|
|
934
2562
|
declare const TabsContainer: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2563
|
+
/**
|
|
2564
|
+
* **Props**
|
|
2565
|
+
* - `asChild?: boolean`
|
|
2566
|
+
* - `loop?: boolean`
|
|
2567
|
+
*
|
|
2568
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2569
|
+
*
|
|
2570
|
+
* [Tabs documentation](https://equality.eqtylab.io/components/tabs)
|
|
2571
|
+
*/
|
|
935
2572
|
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2573
|
+
/**
|
|
2574
|
+
* **Props**
|
|
2575
|
+
* - `value: string`
|
|
2576
|
+
* - `asChild?: boolean`
|
|
2577
|
+
*
|
|
2578
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2579
|
+
*
|
|
2580
|
+
* [Tabs documentation](https://equality.eqtylab.io/components/tabs)
|
|
2581
|
+
*/
|
|
936
2582
|
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2583
|
+
/**
|
|
2584
|
+
* **Props**
|
|
2585
|
+
* - `value: string`
|
|
2586
|
+
* - `asChild?: boolean`
|
|
2587
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
2588
|
+
* controlling animation with React animation libraries.
|
|
2589
|
+
*
|
|
2590
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2591
|
+
*
|
|
2592
|
+
* [Tabs documentation](https://equality.eqtylab.io/components/tabs)
|
|
2593
|
+
*/
|
|
937
2594
|
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
938
2595
|
|
|
939
2596
|
interface TabsProps {
|
|
@@ -956,18 +2613,116 @@ interface TabsProps {
|
|
|
956
2613
|
onValueChange?: (value: string) => void;
|
|
957
2614
|
staticRender?: boolean;
|
|
958
2615
|
}
|
|
2616
|
+
/**
|
|
2617
|
+
* **Props**
|
|
2618
|
+
* - `id?: string` **Deprecated.** No longer used. The active indicator is positioned without it.
|
|
2619
|
+
* - `items: { label: string; value: string; icon?: React.ReactElement | string; suffix?: React.ReactNode; content: React.ReactNode;…`
|
|
2620
|
+
* - `className?: string`
|
|
2621
|
+
* - `tabsListBackground?: "transparent" | "filled"` (default `"transparent"`)
|
|
2622
|
+
* - `value?: string`
|
|
2623
|
+
* - `defaultValue?: string`
|
|
2624
|
+
* - `onValueChange?: (value: string) => void`
|
|
2625
|
+
* - `staticRender?: boolean` (default `false`)
|
|
2626
|
+
*
|
|
2627
|
+
* [Tabs documentation](https://equality.eqtylab.io/components/tabs)
|
|
2628
|
+
*/
|
|
959
2629
|
declare const Tabs: ({ items, className, tabsListBackground, value, defaultValue, onValueChange, staticRender, }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
960
2630
|
|
|
2631
|
+
/**
|
|
2632
|
+
* Accepts the standard `HTMLTextAreaElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2633
|
+
*
|
|
2634
|
+
* [Textarea documentation](https://equality.eqtylab.io/components/textarea)
|
|
2635
|
+
*/
|
|
961
2636
|
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
962
2637
|
|
|
2638
|
+
/**
|
|
2639
|
+
* **Props**
|
|
2640
|
+
* - `children?: ReactNode`
|
|
2641
|
+
* - `label?: string` — An author-localized label for each toast. Used to help screen reader users
|
|
2642
|
+
* associate the interruption with a toast.
|
|
2643
|
+
* - `duration?: number` — Time in milliseconds that each toast should remain visible for.
|
|
2644
|
+
* - `swipeDirection?: "up" | "down" | "left" | "right"` — Direction of pointer swipe that should close the toast.
|
|
2645
|
+
* - `swipeThreshold?: number` — Distance in pixels that the swipe must pass before a close is triggered.
|
|
2646
|
+
*
|
|
2647
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2648
|
+
*/
|
|
963
2649
|
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
2650
|
+
/**
|
|
2651
|
+
* **Props**
|
|
2652
|
+
* - `label?: string` — An author-localized label for the toast viewport to provide context for screen reader users
|
|
2653
|
+
* when navigating page landmarks. The available `{hotkey}` placeholder will be replaced for you.
|
|
2654
|
+
* - `asChild?: boolean`
|
|
2655
|
+
* - `hotkey?: string[]` — The keys to use as the keyboard shortcut that will move focus to the toast viewport.
|
|
2656
|
+
*
|
|
2657
|
+
* Also accepts the standard `HTMLOListElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2658
|
+
*
|
|
2659
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2660
|
+
*/
|
|
964
2661
|
declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
2662
|
+
/**
|
|
2663
|
+
* **Props**
|
|
2664
|
+
* - `variant?: "default" | "danger" | "warning" | "success"` (default `"default"`)
|
|
2665
|
+
* - `open?: boolean`
|
|
2666
|
+
* - `defaultOpen?: boolean`
|
|
2667
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
2668
|
+
* - `type?: "foreground" | "background"`
|
|
2669
|
+
* - `onPause?: () => void`
|
|
2670
|
+
* - `asChild?: boolean`
|
|
2671
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void`
|
|
2672
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
2673
|
+
* controlling animation with React animation libraries.
|
|
2674
|
+
* - `duration?: number` — Time in milliseconds that toast should remain visible for. Overrides value
|
|
2675
|
+
* given to `ToastProvider`.
|
|
2676
|
+
* - `onResume?: () => void`
|
|
2677
|
+
* - `onSwipeStart?: (event: SwipeEvent) => void`
|
|
2678
|
+
* - `onSwipeMove?: (event: SwipeEvent) => void`
|
|
2679
|
+
* - `onSwipeCancel?: (event: SwipeEvent) => void`
|
|
2680
|
+
* - `onSwipeEnd?: (event: SwipeEvent) => void`
|
|
2681
|
+
*
|
|
2682
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2683
|
+
*
|
|
2684
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2685
|
+
*/
|
|
965
2686
|
declare const ToastContainer: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
966
2687
|
variant?: "danger" | "warning" | "default" | "success" | null | undefined;
|
|
967
2688
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
2689
|
+
/**
|
|
2690
|
+
* **Props**
|
|
2691
|
+
* - `asChild?: boolean`
|
|
2692
|
+
* - `altText: string` — A short description for an alternate way to carry out the action. For screen reader users
|
|
2693
|
+
* who will not be able to navigate to the button easily/quickly.
|
|
2694
|
+
*
|
|
2695
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2696
|
+
*
|
|
2697
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2698
|
+
*/
|
|
968
2699
|
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2700
|
+
/**
|
|
2701
|
+
* **Props**
|
|
2702
|
+
* - `asChild?: boolean`
|
|
2703
|
+
*
|
|
2704
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2705
|
+
*
|
|
2706
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2707
|
+
*/
|
|
969
2708
|
declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2709
|
+
/**
|
|
2710
|
+
* **Props**
|
|
2711
|
+
* - `asChild?: boolean`
|
|
2712
|
+
*
|
|
2713
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2714
|
+
*
|
|
2715
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2716
|
+
*/
|
|
970
2717
|
declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2718
|
+
/**
|
|
2719
|
+
* **Props**
|
|
2720
|
+
* - `asChild?: boolean`
|
|
2721
|
+
*
|
|
2722
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2723
|
+
*
|
|
2724
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2725
|
+
*/
|
|
971
2726
|
declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
972
2727
|
type ToastProps$1 = React$1.ComponentPropsWithoutRef<typeof ToastContainer>;
|
|
973
2728
|
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
@@ -1018,13 +2773,84 @@ declare function useToast(): {
|
|
|
1018
2773
|
interface ToastProps {
|
|
1019
2774
|
toast: ToasterToast;
|
|
1020
2775
|
}
|
|
2776
|
+
/**
|
|
2777
|
+
* **Props**
|
|
2778
|
+
* - `toast: ToasterToast`
|
|
2779
|
+
*
|
|
2780
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2781
|
+
*/
|
|
1021
2782
|
declare const Toast: ({ toast }: ToastProps) => react_jsx_runtime.JSX.Element;
|
|
2783
|
+
/**
|
|
2784
|
+
* Takes no props.
|
|
2785
|
+
*
|
|
2786
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2787
|
+
*/
|
|
1022
2788
|
declare const Toaster: () => react_jsx_runtime.JSX.Element[];
|
|
2789
|
+
/**
|
|
2790
|
+
* Takes no props.
|
|
2791
|
+
*
|
|
2792
|
+
* [Toast documentation](https://equality.eqtylab.io/components/toast)
|
|
2793
|
+
*/
|
|
1023
2794
|
declare const ToastRoot: () => react_jsx_runtime.JSX.Element;
|
|
1024
2795
|
|
|
2796
|
+
/**
|
|
2797
|
+
* **Props**
|
|
2798
|
+
* - `children: ReactNode`
|
|
2799
|
+
* - `delayDuration?: number` — The duration from when the pointer enters the trigger until the tooltip gets opened.
|
|
2800
|
+
* - `skipDelayDuration?: number` — How much time a user has to enter another trigger without incurring a delay again.
|
|
2801
|
+
* - `disableHoverableContent?: boolean` — When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
2802
|
+
*
|
|
2803
|
+
* [Tooltip documentation](https://equality.eqtylab.io/components/tooltip)
|
|
2804
|
+
*/
|
|
1025
2805
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
2806
|
+
/**
|
|
2807
|
+
* **Props**
|
|
2808
|
+
* - `children?: ReactNode`
|
|
2809
|
+
* - `open?: boolean`
|
|
2810
|
+
* - `defaultOpen?: boolean`
|
|
2811
|
+
* - `onOpenChange?: (open: boolean) => void`
|
|
2812
|
+
* - `delayDuration?: number` — The duration from when the pointer enters the trigger until the tooltip gets opened. This will
|
|
2813
|
+
* override the prop with the same name passed to Provider.
|
|
2814
|
+
* - `disableHoverableContent?: boolean` — When `true`, trying to hover the content will result in the tooltip closing as the pointer leaves the trigger.
|
|
2815
|
+
*
|
|
2816
|
+
* [Tooltip documentation](https://equality.eqtylab.io/components/tooltip)
|
|
2817
|
+
*/
|
|
1026
2818
|
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
2819
|
+
/**
|
|
2820
|
+
* **Props**
|
|
2821
|
+
* - `asChild?: boolean`
|
|
2822
|
+
*
|
|
2823
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2824
|
+
*
|
|
2825
|
+
* [Tooltip documentation](https://equality.eqtylab.io/components/tooltip)
|
|
2826
|
+
*/
|
|
1027
2827
|
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2828
|
+
/**
|
|
2829
|
+
* **Props**
|
|
2830
|
+
* - `"aria-label"?: string` — A more descriptive label for accessibility purpose
|
|
2831
|
+
* - `asChild?: boolean`
|
|
2832
|
+
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
2833
|
+
* Can be prevented.
|
|
2834
|
+
* - `onPointerDownOutside?: (event: PointerDownOutsideEvent) => void` — Event handler called when the a `pointerdown` event happens outside of the `Tooltip`.
|
|
2835
|
+
* Can be prevented.
|
|
2836
|
+
* - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
|
|
2837
|
+
* controlling animation with React animation libraries.
|
|
2838
|
+
* - `side?: "top" | "bottom" | "left" | "right"`
|
|
2839
|
+
* - `sideOffset?: number` (default `4`)
|
|
2840
|
+
* - `align?: "center" | "start" | "end"`
|
|
2841
|
+
* - `alignOffset?: number`
|
|
2842
|
+
* - `arrowPadding?: number`
|
|
2843
|
+
* - `avoidCollisions?: boolean`
|
|
2844
|
+
* - `collisionBoundary?: Boundary | Boundary[]`
|
|
2845
|
+
* - `collisionPadding?: number | Partial<Record<"top" | "bottom" | "left" | "right", number>>`
|
|
2846
|
+
* - `sticky?: "partial" | "always"`
|
|
2847
|
+
* - `hideWhenDetached?: boolean`
|
|
2848
|
+
* - `updatePositionStrategy?: "optimized" | "always"`
|
|
2849
|
+
*
|
|
2850
|
+
* Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2851
|
+
*
|
|
2852
|
+
* [Tooltip documentation](https://equality.eqtylab.io/components/tooltip)
|
|
2853
|
+
*/
|
|
1028
2854
|
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1029
2855
|
|
|
1030
2856
|
interface TruncatedDescriptionProps {
|
|
@@ -1032,6 +2858,14 @@ interface TruncatedDescriptionProps {
|
|
|
1032
2858
|
description: string;
|
|
1033
2859
|
maxLength?: number;
|
|
1034
2860
|
}
|
|
2861
|
+
/**
|
|
2862
|
+
* **Props**
|
|
2863
|
+
* - `className?: string`
|
|
2864
|
+
* - `description: string`
|
|
2865
|
+
* - `maxLength?: number` (default `120`)
|
|
2866
|
+
*
|
|
2867
|
+
* [Truncated Description documentation](https://equality.eqtylab.io/components/truncated-description)
|
|
2868
|
+
*/
|
|
1035
2869
|
declare const TruncatedDescription: ({ className, description, maxLength, }: TruncatedDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
1036
2870
|
|
|
1037
2871
|
interface ThemeProviderProps {
|
|
@@ -1049,6 +2883,17 @@ interface ThemeProviderProps {
|
|
|
1049
2883
|
portalContainer?: HTMLElement | null;
|
|
1050
2884
|
children: React$1.ReactNode;
|
|
1051
2885
|
}
|
|
2886
|
+
/**
|
|
2887
|
+
* **Props**
|
|
2888
|
+
* - `` customVars?: React.CSSProperties & { [key: `--${string}`]: string | number | undefined; } ``
|
|
2889
|
+
* - `portalContainer?: HTMLElement | null` — Element that portalled surfaces render into, instead of the one this component
|
|
2890
|
+
* renders for itself.
|
|
2891
|
+
*
|
|
2892
|
+
* Needed wherever the default document-wide lookup can't find that element: inside a
|
|
2893
|
+
* shadow root, or with more than one theme root on a page. Pass `null` to portal to
|
|
2894
|
+
* the document body.
|
|
2895
|
+
* - `children: React.ReactNode`
|
|
2896
|
+
*/
|
|
1052
2897
|
declare const ThemeProvider: ({ customVars, portalContainer, children }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1053
2898
|
|
|
1054
2899
|
declare const PORTAL_ROOT_ID = "equality-theme-provider-root-portal";
|
|
@@ -1079,6 +2924,10 @@ interface PortalContainerProviderProps {
|
|
|
1079
2924
|
* — outside the shadow boundary, where the design system's styles don't reach.
|
|
1080
2925
|
* - **More than one root on a page.** The default lookup resolves by a document-unique
|
|
1081
2926
|
* id, so a second root's portals land inside the first one's container.
|
|
2927
|
+
*
|
|
2928
|
+
* **Props**
|
|
2929
|
+
* - `container: HTMLElement | null` — Element every portalled surface below this point renders into.
|
|
2930
|
+
* - `children: React.ReactNode`
|
|
1082
2931
|
*/
|
|
1083
2932
|
declare const PortalContainerProvider: ({ container, children }: PortalContainerProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1084
2933
|
|