@noxickon/onyx 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animations.css +25 -72
- package/dist/chunks/hooks-CUNBk2tZ.js +6789 -0
- package/dist/chunks/hooks-UiKjBucd.js +47 -0
- package/dist/chunks/{query-D4FW3HN6.js → query-CIsrxNi-.js} +1 -1
- package/dist/chunks/{query-v272k9Fk.js → query-D2S9cFBP.js} +1 -1
- package/dist/chunks/ui-DGkJW_Fa.js +20745 -0
- package/dist/chunks/ui-DRRDAnVI.js +20 -0
- package/dist/contexts/contexts.cjs.js +2 -2
- package/dist/contexts/contexts.es.js +167 -133
- package/dist/hooks/hooks.cjs.js +1 -1
- package/dist/hooks/hooks.es.js +2 -2
- package/dist/index.d.ts +248 -210
- package/dist/layouts/layouts.cjs.js +1 -1
- package/dist/layouts/layouts.es.js +749 -672
- package/dist/layouts.d.ts +46 -36
- package/dist/onyx.cjs.js +1 -1
- package/dist/onyx.es.js +36 -34
- package/dist/pages/pages.cjs.js +2 -2
- package/dist/pages/pages.es.js +122 -94
- package/dist/pages.d.ts +2 -2
- package/dist/routes/routes.cjs.js +1 -1
- package/dist/routes/routes.es.js +36 -27
- package/dist/shared.css +15 -10
- package/dist/ui.css +1 -1
- package/dist/utils/utils.cjs.js +1 -1
- package/dist/utils/utils.es.js +1 -1
- package/package.json +14 -7
- package/dist/chunks/hooks-BswtWYGK.js +0 -8624
- package/dist/chunks/hooks-DB942JYB.js +0 -48
- package/dist/chunks/ui-CWzo2o31.js +0 -20648
- package/dist/chunks/ui-DRaffjpU.js +0 -41
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
2
1
|
import { AnimationEventHandler } from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
4
2
|
import { ClipboardEventHandler } from 'react';
|
|
3
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
+
import { ComponentPropsWithRef } from 'react';
|
|
5
5
|
import { CompositionEventHandler } from 'react';
|
|
6
|
+
import { Context } from 'react';
|
|
6
7
|
import { CSSProperties } from 'react';
|
|
7
8
|
import { DetailedReactHTMLElement } from 'react';
|
|
8
|
-
import { DialogHTMLAttributes } from 'react';
|
|
9
9
|
import { DragEventHandler } from 'react';
|
|
10
10
|
import { FocusEventHandler } from 'react';
|
|
11
11
|
import { FormEventHandler } from 'react';
|
|
12
|
-
import { FormHTMLAttributes } from 'react';
|
|
13
12
|
import { HTMLAttributes } from 'react';
|
|
14
13
|
import { IconProps } from '@mdi/react/dist/IconProps';
|
|
15
14
|
import { InputEventHandler } from 'react';
|
|
16
|
-
import { InputHTMLAttributes } from 'react';
|
|
17
15
|
import { JSX } from 'react/jsx-runtime';
|
|
18
16
|
import { KeyboardEventHandler } from 'react';
|
|
19
|
-
import { LabelHTMLAttributes } from 'react';
|
|
20
|
-
import { LiHTMLAttributes } from 'react';
|
|
21
17
|
import { MouseEventHandler } from 'react';
|
|
22
|
-
import { OlHTMLAttributes } from 'react';
|
|
23
18
|
import { PointerEventHandler } from 'react';
|
|
24
19
|
import { ReactEventHandler } from 'react';
|
|
25
20
|
import { ReactNode } from 'react';
|
|
26
21
|
import { ReactPortal } from 'react';
|
|
27
|
-
import {
|
|
28
|
-
import { TableHTMLAttributes } from 'react';
|
|
29
|
-
import { TdHTMLAttributes } from 'react';
|
|
30
|
-
import { TextareaHTMLAttributes } from 'react';
|
|
31
|
-
import { ThHTMLAttributes } from 'react';
|
|
22
|
+
import { RefObject } from 'react';
|
|
32
23
|
import { ToggleEventHandler } from 'react';
|
|
33
24
|
import { TouchEventHandler } from 'react';
|
|
34
25
|
import { TransitionEventHandler } from 'react';
|
|
@@ -37,20 +28,18 @@ import { WheelEventHandler } from 'react';
|
|
|
37
28
|
|
|
38
29
|
export declare type AccordionType = 'single' | 'multiple';
|
|
39
30
|
|
|
40
|
-
declare interface BaseInputButtonProps extends Omit<
|
|
41
|
-
children?: React.ReactNode;
|
|
31
|
+
declare interface BaseInputButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'type'> {
|
|
42
32
|
path?: string;
|
|
43
33
|
}
|
|
44
34
|
|
|
45
|
-
declare interface BaseInputCounterProps extends Omit<
|
|
35
|
+
declare interface BaseInputCounterProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
46
36
|
currentLength?: number;
|
|
47
37
|
disabled?: boolean;
|
|
48
38
|
maxLength: number;
|
|
49
39
|
size?: 'sm' | 'md';
|
|
50
40
|
}
|
|
51
41
|
|
|
52
|
-
declare interface BaseInputIconProps extends
|
|
53
|
-
children?: React.ReactNode;
|
|
42
|
+
declare interface BaseInputIconProps extends ComponentPropsWithRef<'span'> {
|
|
54
43
|
path?: string;
|
|
55
44
|
}
|
|
56
45
|
|
|
@@ -198,24 +187,28 @@ declare type ColorStyleName = keyof typeof COLOR_STYLES;
|
|
|
198
187
|
|
|
199
188
|
export declare type DrawerSide = 'left' | 'right' | 'top' | 'bottom';
|
|
200
189
|
|
|
201
|
-
declare const
|
|
190
|
+
declare const FormDescription: (props: OxDescriptionProps) => JSX.Element;
|
|
202
191
|
|
|
203
|
-
|
|
204
|
-
children: ReactNode;
|
|
205
|
-
}
|
|
192
|
+
declare const FormError: (props: OxErrorProps) => JSX.Element;
|
|
206
193
|
|
|
207
|
-
declare const
|
|
194
|
+
declare const FormField: ({ children, className, orientation, ...domProps }: FormFieldProps) => JSX.Element;
|
|
208
195
|
|
|
209
|
-
export declare interface
|
|
196
|
+
export declare interface FormFieldProps extends ComponentPropsWithRef<'div'> {
|
|
210
197
|
children: ReactNode;
|
|
198
|
+
orientation?: 'vertical' | 'horizontal';
|
|
211
199
|
}
|
|
212
200
|
|
|
213
|
-
declare const FormGroup: ({ children, className, ...domProps }: FormGroupProps) => JSX.Element;
|
|
201
|
+
declare const FormGroup: ({ children, className, layout, ...domProps }: FormGroupProps) => JSX.Element;
|
|
214
202
|
|
|
215
|
-
export declare interface FormGroupProps extends
|
|
203
|
+
export declare interface FormGroupProps extends ComponentPropsWithRef<'div'> {
|
|
216
204
|
children: ReactNode;
|
|
205
|
+
layout?: 'grid';
|
|
217
206
|
}
|
|
218
207
|
|
|
208
|
+
declare const FormGroupTitle: (props: OxHeadingProps) => JSX.Element;
|
|
209
|
+
|
|
210
|
+
declare const FormLabel: (props: OxLabelProps) => JSX.Element;
|
|
211
|
+
|
|
219
212
|
declare type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
220
213
|
|
|
221
214
|
declare type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
@@ -230,25 +223,25 @@ declare const OxAccordion_2: ({ children, className, defaultValue, onValueChange
|
|
|
230
223
|
|
|
231
224
|
declare const OxAccordionContent: ({ children, className, ...domProps }: OxAccordionContentProps) => JSX.Element;
|
|
232
225
|
|
|
233
|
-
export declare interface OxAccordionContentProps extends
|
|
226
|
+
export declare interface OxAccordionContentProps extends ComponentPropsWithRef<'div'> {
|
|
234
227
|
children: ReactNode;
|
|
235
228
|
}
|
|
236
229
|
|
|
237
230
|
declare const OxAccordionHeader: ({ children, className, ...domProps }: OxAccordionHeaderProps) => JSX.Element;
|
|
238
231
|
|
|
239
|
-
export declare interface OxAccordionHeaderProps extends
|
|
232
|
+
export declare interface OxAccordionHeaderProps extends ComponentPropsWithRef<'button'> {
|
|
240
233
|
children: ReactNode;
|
|
241
234
|
}
|
|
242
235
|
|
|
243
236
|
declare const OxAccordionItem: ({ children, className, disabled, value, ...domProps }: OxAccordionItemProps) => JSX.Element;
|
|
244
237
|
|
|
245
|
-
export declare interface OxAccordionItemProps extends
|
|
238
|
+
export declare interface OxAccordionItemProps extends ComponentPropsWithRef<'div'> {
|
|
246
239
|
children: ReactNode;
|
|
247
240
|
disabled?: boolean;
|
|
248
241
|
value: string;
|
|
249
242
|
}
|
|
250
243
|
|
|
251
|
-
export declare interface OxAccordionProps extends
|
|
244
|
+
export declare interface OxAccordionProps extends ComponentPropsWithRef<'div'> {
|
|
252
245
|
children: ReactNode;
|
|
253
246
|
defaultValue?: string | string[];
|
|
254
247
|
onValueChange?: (value: string | string[]) => void;
|
|
@@ -270,7 +263,7 @@ export declare interface OxAlertIconProps extends Omit<OxIconProps, 'path'> {
|
|
|
270
263
|
path?: string;
|
|
271
264
|
}
|
|
272
265
|
|
|
273
|
-
export declare interface OxAlertProps extends
|
|
266
|
+
export declare interface OxAlertProps extends ComponentPropsWithRef<'div'> {
|
|
274
267
|
children: ReactNode;
|
|
275
268
|
icon?: string;
|
|
276
269
|
iconClass?: string;
|
|
@@ -288,11 +281,11 @@ declare const OxAvatar_2: ({ alt, className, fallback, isLoading: externalIsLoad
|
|
|
288
281
|
|
|
289
282
|
declare const OxAvatarField: ({ children, className, ...domProps }: OxAvatarFieldProps) => JSX.Element;
|
|
290
283
|
|
|
291
|
-
export declare interface OxAvatarFieldProps extends
|
|
284
|
+
export declare interface OxAvatarFieldProps extends ComponentPropsWithRef<'div'> {
|
|
292
285
|
children: ReactNode;
|
|
293
286
|
}
|
|
294
287
|
|
|
295
|
-
export declare interface OxAvatarProps extends Omit<
|
|
288
|
+
export declare interface OxAvatarProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
296
289
|
alt: string;
|
|
297
290
|
fallback?: string | ReactNode;
|
|
298
291
|
isLoading?: boolean;
|
|
@@ -308,7 +301,7 @@ export declare type OxAvatarSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
|
308
301
|
|
|
309
302
|
export declare const OxBadge: ({ bgColor, children, className, color, size, style: styleProp, textColor, ...domProps }: OxBadgeProps) => JSX.Element;
|
|
310
303
|
|
|
311
|
-
export declare interface OxBadgeProps extends
|
|
304
|
+
export declare interface OxBadgeProps extends ComponentPropsWithRef<'span'> {
|
|
312
305
|
bgColor?: string;
|
|
313
306
|
children: ReactNode;
|
|
314
307
|
color?: ColorStyleName;
|
|
@@ -326,25 +319,25 @@ declare const OxBreadcrumb_2: ({ children, className, ...domProps }: OxBreadcrum
|
|
|
326
319
|
|
|
327
320
|
declare const OxBreadcrumbItem: ({ children, className, current, ...domProps }: OxBreadcrumbItemProps) => JSX.Element;
|
|
328
321
|
|
|
329
|
-
export declare interface OxBreadcrumbItemProps extends
|
|
322
|
+
export declare interface OxBreadcrumbItemProps extends ComponentPropsWithRef<'li'> {
|
|
330
323
|
children: ReactNode;
|
|
331
324
|
current?: boolean;
|
|
332
325
|
}
|
|
333
326
|
|
|
334
327
|
declare const OxBreadcrumbLink: ({ children, className, href, ...domProps }: OxBreadcrumbLinkProps) => JSX.Element;
|
|
335
328
|
|
|
336
|
-
export declare interface OxBreadcrumbLinkProps extends
|
|
329
|
+
export declare interface OxBreadcrumbLinkProps extends ComponentPropsWithRef<'a'> {
|
|
337
330
|
children: ReactNode;
|
|
338
331
|
href: string;
|
|
339
332
|
}
|
|
340
333
|
|
|
341
|
-
export declare interface OxBreadcrumbProps extends
|
|
334
|
+
export declare interface OxBreadcrumbProps extends ComponentPropsWithRef<'ol'> {
|
|
342
335
|
children: ReactNode;
|
|
343
336
|
}
|
|
344
337
|
|
|
345
338
|
declare const OxBreadcrumbSeparator: ({ children, className, ...domProps }: OxBreadcrumbSeparatorProps) => JSX.Element;
|
|
346
339
|
|
|
347
|
-
export declare type OxBreadcrumbSeparatorProps =
|
|
340
|
+
export declare type OxBreadcrumbSeparatorProps = ComponentPropsWithRef<'li'>;
|
|
348
341
|
|
|
349
342
|
export declare const OxButton: typeof OxButton_2 & {
|
|
350
343
|
Icon: typeof OxButtonIcon;
|
|
@@ -356,18 +349,16 @@ declare const OxButtonIcon: ({ path, size: propSize, ...props }: OxButtonIconPro
|
|
|
356
349
|
|
|
357
350
|
export declare type OxButtonIconProps = OxIconProps;
|
|
358
351
|
|
|
359
|
-
export declare interface OxButtonProps extends
|
|
352
|
+
export declare interface OxButtonProps extends ComponentPropsWithRef<'button'> {
|
|
360
353
|
fullWidth?: boolean;
|
|
361
354
|
isLoading?: boolean;
|
|
362
|
-
ref?: Ref<HTMLButtonElement>;
|
|
363
355
|
size?: 'sm' | 'md';
|
|
364
|
-
type?: 'button' | 'submit' | 'reset';
|
|
365
356
|
variant?: 'primary' | 'secondary' | 'ghost' | 'link' | 'danger';
|
|
366
357
|
}
|
|
367
358
|
|
|
368
359
|
export declare const OxCalendar: ({ className, onChange, value, ...domProps }: OxCalendarProps) => JSX.Element;
|
|
369
360
|
|
|
370
|
-
export declare interface OxCalendarProps extends Omit<
|
|
361
|
+
export declare interface OxCalendarProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
371
362
|
onChange?: (value: string) => void;
|
|
372
363
|
value?: string;
|
|
373
364
|
}
|
|
@@ -378,24 +369,24 @@ export declare const OxCard: typeof OxCard_2 & {
|
|
|
378
369
|
Header: typeof OxCardHeader;
|
|
379
370
|
};
|
|
380
371
|
|
|
381
|
-
declare const OxCard_2: ({ children, className, color, equalHeight, hoverVariant, hoverable, padding, ...domProps }: OxCardProps) => JSX.Element;
|
|
372
|
+
declare const OxCard_2: ({ children, className, color, equalHeight, hoverVariant, hoverable, isLoading, padding, ...domProps }: OxCardProps) => JSX.Element;
|
|
382
373
|
|
|
383
374
|
declare const OxCardBody: ({ children, className, flexGrow, ...domProps }: OxCardBodyProps) => JSX.Element;
|
|
384
375
|
|
|
385
|
-
export declare interface OxCardBodyProps extends
|
|
376
|
+
export declare interface OxCardBodyProps extends ComponentPropsWithRef<'div'> {
|
|
386
377
|
children: ReactNode;
|
|
387
378
|
flexGrow?: boolean;
|
|
388
379
|
}
|
|
389
380
|
|
|
390
381
|
declare const OxCardFooter: ({ children, className, ...domProps }: OxCardFooterProps) => JSX.Element;
|
|
391
382
|
|
|
392
|
-
export declare interface OxCardFooterProps extends
|
|
383
|
+
export declare interface OxCardFooterProps extends ComponentPropsWithRef<'div'> {
|
|
393
384
|
children: ReactNode;
|
|
394
385
|
}
|
|
395
386
|
|
|
396
387
|
declare const OxCardHeader: ({ action, children, className, icon, iconColor, subtitle, title, ...domProps }: OxCardHeaderProps) => JSX.Element;
|
|
397
388
|
|
|
398
|
-
export declare interface OxCardHeaderProps extends Omit<
|
|
389
|
+
export declare interface OxCardHeaderProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
399
390
|
action?: ReactNode;
|
|
400
391
|
icon?: string;
|
|
401
392
|
iconColor?: ColorStyleName;
|
|
@@ -403,31 +394,25 @@ export declare interface OxCardHeaderProps extends Omit<HTMLAttributes<HTMLDivEl
|
|
|
403
394
|
title?: ReactNode;
|
|
404
395
|
}
|
|
405
396
|
|
|
406
|
-
export declare interface OxCardProps extends
|
|
397
|
+
export declare interface OxCardProps extends ComponentPropsWithRef<'div'> {
|
|
407
398
|
children: ReactNode;
|
|
408
399
|
color?: ColorStyleName;
|
|
409
400
|
equalHeight?: boolean;
|
|
410
401
|
hoverable?: boolean;
|
|
411
402
|
hoverVariant?: 'none' | 'lift' | 'glow' | 'border';
|
|
403
|
+
isLoading?: boolean;
|
|
412
404
|
padding?: 'none' | 'sm' | 'md';
|
|
413
405
|
}
|
|
414
406
|
|
|
415
407
|
export declare const OxCheckbox: typeof OxCheckbox_2 & {
|
|
416
|
-
Field: typeof OxCheckboxField;
|
|
417
408
|
Group: typeof OxCheckboxGroup;
|
|
418
409
|
};
|
|
419
410
|
|
|
420
411
|
declare const OxCheckbox_2: ({ checked, className, defaultChecked, disabled, error, id: propId, indeterminate, name, onChange, onCheckedChange, required, size, value, ...domProps }: OxCheckboxProps) => JSX.Element;
|
|
421
412
|
|
|
422
|
-
declare const OxCheckboxField: ({ children, className, ...domProps }: OxCheckboxFieldProps) => JSX.Element;
|
|
423
|
-
|
|
424
|
-
export declare interface OxCheckboxFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
425
|
-
children: ReactNode;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
413
|
declare const OxCheckboxGroup: ({ children, className, disabled, name, onChange, size, value, ...domProps }: OxCheckboxGroupProps) => JSX.Element;
|
|
429
414
|
|
|
430
|
-
export declare interface OxCheckboxGroupProps extends Omit<
|
|
415
|
+
export declare interface OxCheckboxGroupProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'children'> {
|
|
431
416
|
children: ReactNode;
|
|
432
417
|
disabled?: boolean;
|
|
433
418
|
name: string;
|
|
@@ -436,7 +421,7 @@ export declare interface OxCheckboxGroupProps extends Omit<HTMLAttributes<HTMLDi
|
|
|
436
421
|
value?: (string | number)[];
|
|
437
422
|
}
|
|
438
423
|
|
|
439
|
-
export declare interface OxCheckboxProps extends Omit<
|
|
424
|
+
export declare interface OxCheckboxProps extends Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'size' | 'value' | 'children'> {
|
|
440
425
|
error?: boolean;
|
|
441
426
|
indeterminate?: boolean;
|
|
442
427
|
onCheckedChange?: (checked: boolean) => void;
|
|
@@ -446,7 +431,7 @@ export declare interface OxCheckboxProps extends Omit<InputHTMLAttributes<HTMLIn
|
|
|
446
431
|
|
|
447
432
|
declare const OxDateButton: (props: BaseInputButtonProps) => JSX.Element;
|
|
448
433
|
|
|
449
|
-
declare const OxDateContainer: ({ children, className, customValidationMessage, defaultValue, disabled, error, onChange, pickOnly, readOnly, required, showValidation, showValidationTooltip, size, value, ...domProps }: OxDateInputContainerProps) => JSX.Element;
|
|
434
|
+
declare const OxDateContainer: ({ children, className, customValidationMessage, defaultOpen, defaultValue, disabled, error, onChange, onOpenChange, open, pickOnly, readOnly, required, showValidation, showValidationTooltip, size, value, ...domProps }: OxDateInputContainerProps) => JSX.Element;
|
|
450
435
|
|
|
451
436
|
declare const OxDateIcon: (props: BaseInputIconProps) => JSX.Element;
|
|
452
437
|
|
|
@@ -461,12 +446,15 @@ declare const OxDateInput_2: () => JSX.Element;
|
|
|
461
446
|
|
|
462
447
|
declare type OxDateInputButton = BaseInputButtonProps;
|
|
463
448
|
|
|
464
|
-
declare interface OxDateInputContainerProps extends Omit<
|
|
449
|
+
declare interface OxDateInputContainerProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
465
450
|
customValidationMessage?: string;
|
|
451
|
+
defaultOpen?: boolean;
|
|
466
452
|
defaultValue?: string;
|
|
467
453
|
disabled?: boolean;
|
|
468
454
|
error?: boolean;
|
|
469
455
|
onChange?: (value: string) => void;
|
|
456
|
+
onOpenChange?: (open: boolean) => void;
|
|
457
|
+
open?: boolean;
|
|
470
458
|
pickOnly?: boolean;
|
|
471
459
|
readOnly?: boolean;
|
|
472
460
|
required?: boolean;
|
|
@@ -487,23 +475,23 @@ export declare const OxDescriptionList: typeof OxDescriptionList_2 & {
|
|
|
487
475
|
|
|
488
476
|
declare const OxDescriptionList_2: ({ children, className, ...domProps }: OxDescriptionListProps) => JSX.Element;
|
|
489
477
|
|
|
490
|
-
declare interface OxDescriptionListProps extends
|
|
478
|
+
declare interface OxDescriptionListProps extends ComponentPropsWithRef<'dl'> {
|
|
491
479
|
children: ReactNode;
|
|
492
480
|
}
|
|
493
481
|
|
|
494
482
|
declare const OxDescriptionListTerm: ({ children, className, ...domProps }: OxDescriptionListTermProps) => JSX.Element;
|
|
495
483
|
|
|
496
|
-
declare interface OxDescriptionListTermProps extends
|
|
484
|
+
declare interface OxDescriptionListTermProps extends ComponentPropsWithRef<'dt'> {
|
|
497
485
|
children: ReactNode;
|
|
498
486
|
}
|
|
499
487
|
|
|
500
488
|
declare const OxDescriptionListValue: ({ children, className, ...domProps }: OxDescriptionListValueProps) => JSX.Element;
|
|
501
489
|
|
|
502
|
-
declare interface OxDescriptionListValueProps extends
|
|
490
|
+
declare interface OxDescriptionListValueProps extends ComponentPropsWithRef<'dd'> {
|
|
503
491
|
children?: ReactNode;
|
|
504
492
|
}
|
|
505
493
|
|
|
506
|
-
declare interface OxDescriptionProps extends
|
|
494
|
+
declare interface OxDescriptionProps extends ComponentPropsWithRef<'div'> {
|
|
507
495
|
children: ReactNode;
|
|
508
496
|
disabled?: boolean;
|
|
509
497
|
}
|
|
@@ -518,23 +506,23 @@ declare const OxDialog_2: ({ children, className, closeOnOutsideClick, isOpen, o
|
|
|
518
506
|
|
|
519
507
|
declare const OxDialogBody: ({ children, className, ...domProps }: OxDialogBodyProps) => JSX.Element;
|
|
520
508
|
|
|
521
|
-
export declare interface OxDialogBodyProps extends
|
|
509
|
+
export declare interface OxDialogBodyProps extends ComponentPropsWithRef<'div'> {
|
|
522
510
|
children: ReactNode;
|
|
523
511
|
}
|
|
524
512
|
|
|
525
513
|
declare const OxDialogFooter: ({ children, className, ...domProps }: OxDialogFooterProps) => JSX.Element;
|
|
526
514
|
|
|
527
|
-
export declare interface OxDialogFooterProps extends
|
|
515
|
+
export declare interface OxDialogFooterProps extends ComponentPropsWithRef<'div'> {
|
|
528
516
|
children: ReactNode;
|
|
529
517
|
}
|
|
530
518
|
|
|
531
519
|
declare const OxDialogHeader: ({ children, className, ...domProps }: OxDialogHeaderProps) => JSX.Element;
|
|
532
520
|
|
|
533
|
-
export declare interface OxDialogHeaderProps extends
|
|
521
|
+
export declare interface OxDialogHeaderProps extends ComponentPropsWithRef<'div'> {
|
|
534
522
|
children: ReactNode;
|
|
535
523
|
}
|
|
536
524
|
|
|
537
|
-
export declare interface OxDialogProps extends
|
|
525
|
+
export declare interface OxDialogProps extends ComponentPropsWithoutRef<'dialog'> {
|
|
538
526
|
children: ReactNode;
|
|
539
527
|
closeOnOutsideClick?: boolean;
|
|
540
528
|
isOpen: boolean;
|
|
@@ -558,13 +546,13 @@ declare const OxDrawer_2: ({ children, defaultOpen, onOpenChange, open: controll
|
|
|
558
546
|
|
|
559
547
|
declare const OxDrawerBody: ({ children, className, ...domProps }: OxDrawerBodyProps) => JSX.Element;
|
|
560
548
|
|
|
561
|
-
export declare interface OxDrawerBodyProps extends
|
|
549
|
+
export declare interface OxDrawerBodyProps extends ComponentPropsWithRef<'div'> {
|
|
562
550
|
children: ReactNode;
|
|
563
551
|
}
|
|
564
552
|
|
|
565
553
|
declare const OxDrawerContent: ({ children, className, closeOnOutsideClick, side, ...domProps }: OxDrawerContentProps) => ReactPortal | null;
|
|
566
554
|
|
|
567
|
-
export declare interface OxDrawerContentProps extends
|
|
555
|
+
export declare interface OxDrawerContentProps extends ComponentPropsWithRef<'div'> {
|
|
568
556
|
children: ReactNode;
|
|
569
557
|
closeOnOutsideClick?: boolean;
|
|
570
558
|
side?: DrawerSide;
|
|
@@ -572,13 +560,13 @@ export declare interface OxDrawerContentProps extends Omit<HTMLAttributes<HTMLDi
|
|
|
572
560
|
|
|
573
561
|
declare const OxDrawerFooter: ({ children, className, ...domProps }: OxDrawerFooterProps) => JSX.Element;
|
|
574
562
|
|
|
575
|
-
export declare interface OxDrawerFooterProps extends
|
|
563
|
+
export declare interface OxDrawerFooterProps extends ComponentPropsWithRef<'div'> {
|
|
576
564
|
children: ReactNode;
|
|
577
565
|
}
|
|
578
566
|
|
|
579
567
|
declare const OxDrawerHeader: ({ children, className, ...domProps }: OxDrawerHeaderProps) => JSX.Element;
|
|
580
568
|
|
|
581
|
-
export declare interface OxDrawerHeaderProps extends
|
|
569
|
+
export declare interface OxDrawerHeaderProps extends ComponentPropsWithRef<'div'> {
|
|
582
570
|
children: ReactNode;
|
|
583
571
|
}
|
|
584
572
|
|
|
@@ -591,47 +579,48 @@ export declare interface OxDrawerProps {
|
|
|
591
579
|
|
|
592
580
|
declare const OxDrawerTrigger: ({ children, className, disabled, onClick, ...domProps }: OxDrawerTriggerProps) => JSX.Element;
|
|
593
581
|
|
|
594
|
-
export declare interface OxDrawerTriggerProps extends
|
|
582
|
+
export declare interface OxDrawerTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
595
583
|
children: ReactNode;
|
|
596
584
|
disabled?: boolean;
|
|
597
585
|
}
|
|
598
586
|
|
|
599
587
|
export declare const OxDropdown: typeof OxDropdown_2 & {
|
|
600
588
|
Body: typeof OxDropdownBody;
|
|
601
|
-
|
|
589
|
+
Content: typeof OxDropdownContent;
|
|
602
590
|
Footer: typeof OxDropdownFooter;
|
|
603
591
|
Header: typeof OxDropdownHeader;
|
|
604
592
|
Icon: typeof OxDropdownIcon;
|
|
593
|
+
Item: typeof OxDropdownItem;
|
|
605
594
|
Label: typeof OxDropdownLabel;
|
|
606
|
-
Link: typeof OxDropdownLink;
|
|
607
595
|
Separator: typeof OxDropdownSeparator;
|
|
608
596
|
Shortcut: typeof OxDropdownShortcut;
|
|
609
597
|
Trigger: typeof OxDropdownTrigger;
|
|
610
598
|
};
|
|
611
599
|
|
|
612
|
-
declare const OxDropdown_2: ({ align, children,
|
|
600
|
+
declare const OxDropdown_2: ({ align, children, defaultOpen, disabled, onOpenChange, open, side, size, }: OxDropdownProps) => JSX.Element;
|
|
613
601
|
|
|
614
|
-
|
|
602
|
+
declare const OxDropdownBody: ({ children, className, ...domProps }: OxDropdownBodyProps) => JSX.Element;
|
|
603
|
+
|
|
604
|
+
export declare interface OxDropdownBodyProps extends ComponentPropsWithRef<'ul'> {
|
|
615
605
|
children: ReactNode;
|
|
616
606
|
}
|
|
617
607
|
|
|
618
|
-
declare const
|
|
608
|
+
declare const OxDropdownContent: ({ children, className, ...domProps }: OxDropdownContentProps) => JSX.Element;
|
|
619
609
|
|
|
620
|
-
export declare interface
|
|
610
|
+
export declare interface OxDropdownContentProps extends ComponentPropsWithRef<'div'> {
|
|
621
611
|
children: ReactNode;
|
|
612
|
+
className?: string;
|
|
622
613
|
}
|
|
623
614
|
|
|
624
|
-
declare const OxDropdownButton: ({ children, className, disabled, onClick, ...domProps }: OxDropdownActionProps) => JSX.Element;
|
|
625
|
-
|
|
626
615
|
declare const OxDropdownFooter: ({ children, className, ...domProps }: OxDropdownFooterProps) => JSX.Element;
|
|
627
616
|
|
|
628
|
-
export declare interface OxDropdownFooterProps extends
|
|
617
|
+
export declare interface OxDropdownFooterProps extends ComponentPropsWithRef<'div'> {
|
|
629
618
|
children: ReactNode;
|
|
630
619
|
}
|
|
631
620
|
|
|
632
621
|
declare const OxDropdownHeader: ({ children, className, ...domProps }: OxDropdownHeaderProps) => JSX.Element;
|
|
633
622
|
|
|
634
|
-
export declare interface OxDropdownHeaderProps extends
|
|
623
|
+
export declare interface OxDropdownHeaderProps extends ComponentPropsWithRef<'div'> {
|
|
635
624
|
children: ReactNode;
|
|
636
625
|
}
|
|
637
626
|
|
|
@@ -639,20 +628,26 @@ declare const OxDropdownIcon: ({ path, size: propSize, ...props }: OxDropdownIco
|
|
|
639
628
|
|
|
640
629
|
export declare type OxDropdownIconProps = OxIconProps;
|
|
641
630
|
|
|
642
|
-
declare const
|
|
631
|
+
declare const OxDropdownItem: (props: OxDropdownItemProps) => JSX.Element;
|
|
643
632
|
|
|
644
|
-
export declare
|
|
645
|
-
|
|
646
|
-
}
|
|
633
|
+
export declare type OxDropdownItemButtonProps = Omit<ComponentPropsWithRef<'button'>, 'type'> & {
|
|
634
|
+
href?: never;
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export declare type OxDropdownItemLinkProps = ComponentPropsWithRef<'a'> & {
|
|
638
|
+
disabled?: boolean;
|
|
639
|
+
href: string;
|
|
640
|
+
};
|
|
647
641
|
|
|
648
|
-
declare
|
|
642
|
+
export declare type OxDropdownItemProps = OxDropdownItemButtonProps | OxDropdownItemLinkProps;
|
|
649
643
|
|
|
650
|
-
|
|
644
|
+
declare const OxDropdownLabel: ({ children, className, ...domProps }: OxDropdownLabelProps) => JSX.Element;
|
|
645
|
+
|
|
646
|
+
export declare interface OxDropdownLabelProps extends ComponentPropsWithRef<'div'> {
|
|
651
647
|
children: ReactNode;
|
|
652
|
-
disabled?: boolean;
|
|
653
648
|
}
|
|
654
649
|
|
|
655
|
-
export declare interface OxDropdownProps
|
|
650
|
+
export declare interface OxDropdownProps {
|
|
656
651
|
align?: OxFloatingAlign;
|
|
657
652
|
children: ReactNode;
|
|
658
653
|
defaultOpen?: boolean;
|
|
@@ -669,13 +664,13 @@ export declare type OxDropdownSeparatorProps = Omit<OxSeparatorProps, 'orientati
|
|
|
669
664
|
|
|
670
665
|
declare const OxDropdownShortcut: ({ children, className, ...domProps }: OxDropdownShortcutProps) => JSX.Element;
|
|
671
666
|
|
|
672
|
-
export declare interface OxDropdownShortcutProps extends
|
|
667
|
+
export declare interface OxDropdownShortcutProps extends ComponentPropsWithRef<'span'> {
|
|
673
668
|
children: ReactNode;
|
|
674
669
|
}
|
|
675
670
|
|
|
676
671
|
declare const OxDropdownTrigger: ({ animateIcon, asChild, children, className, disabled: propsDisabled, hideIcon, icon, outline, ...domProps }: OxDropdownTriggerProps) => JSX.Element;
|
|
677
672
|
|
|
678
|
-
export declare interface OxDropdownTriggerProps extends
|
|
673
|
+
export declare interface OxDropdownTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
679
674
|
animateIcon?: boolean;
|
|
680
675
|
asChild?: boolean;
|
|
681
676
|
children: ReactNode;
|
|
@@ -686,7 +681,7 @@ export declare interface OxDropdownTriggerProps extends Omit<ButtonHTMLAttribute
|
|
|
686
681
|
|
|
687
682
|
export declare const OxError: ({ children, className, icon, ...domProps }: OxErrorProps) => JSX.Element | null;
|
|
688
683
|
|
|
689
|
-
declare interface OxErrorProps extends
|
|
684
|
+
declare interface OxErrorProps extends ComponentPropsWithRef<'div'> {
|
|
690
685
|
icon?: string;
|
|
691
686
|
}
|
|
692
687
|
|
|
@@ -700,25 +695,25 @@ declare const OxFileUpload_2: ({ accept, children, className, disabled, maxFiles
|
|
|
700
695
|
|
|
701
696
|
declare const OxFileUploadArea: ({ children, className, ...domProps }: OxFileUploadAreaProps) => JSX.Element;
|
|
702
697
|
|
|
703
|
-
export declare interface OxFileUploadAreaProps extends
|
|
704
|
-
children
|
|
698
|
+
export declare interface OxFileUploadAreaProps extends ComponentPropsWithRef<'div'> {
|
|
699
|
+
children: ReactNode;
|
|
705
700
|
}
|
|
706
701
|
|
|
707
702
|
declare const OxFileUploadButton: ({ children, className, size, variant, ...domProps }: OxFileUploadButtonProps) => JSX.Element;
|
|
708
703
|
|
|
709
|
-
export declare interface OxFileUploadButtonProps extends Omit<
|
|
710
|
-
children
|
|
704
|
+
export declare interface OxFileUploadButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'onClick'> {
|
|
705
|
+
children: ReactNode;
|
|
711
706
|
size?: 'sm' | 'md';
|
|
712
707
|
variant?: 'primary' | 'secondary' | 'ghost' | 'link' | 'danger';
|
|
713
708
|
}
|
|
714
709
|
|
|
715
710
|
declare const OxFileUploadOverlay: ({ children, className, ...domProps }: OxFileUploadOverlayProps) => JSX.Element;
|
|
716
711
|
|
|
717
|
-
export declare interface OxFileUploadOverlayProps extends
|
|
712
|
+
export declare interface OxFileUploadOverlayProps extends ComponentPropsWithRef<'div'> {
|
|
718
713
|
children: ReactNode;
|
|
719
714
|
}
|
|
720
715
|
|
|
721
|
-
export declare interface OxFileUploadProps extends Omit<
|
|
716
|
+
export declare interface OxFileUploadProps extends Omit<ComponentPropsWithRef<'div'>, 'onError'> {
|
|
722
717
|
accept?: string[];
|
|
723
718
|
children: ReactNode;
|
|
724
719
|
disabled?: boolean;
|
|
@@ -730,46 +725,82 @@ export declare interface OxFileUploadProps extends Omit<HTMLAttributes<HTMLDivEl
|
|
|
730
725
|
onFileSelect?: (files: File[]) => void;
|
|
731
726
|
}
|
|
732
727
|
|
|
733
|
-
export declare const OxFloating:
|
|
728
|
+
export declare const OxFloating: typeof OxFloating_2 & {
|
|
729
|
+
Content: typeof OxFloatingContent;
|
|
730
|
+
Trigger: typeof OxFloatingTrigger;
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
declare const OxFloating_2: ({ align, animationDuration, ariaHaspopup, children, defaultOpen, disabled, hoverDelay, id: propId, offset, onOpenChange, open: controlledOpen, position, trigger, useAriaControls, }: OxFloatingProps) => JSX.Element;
|
|
734
734
|
|
|
735
735
|
export declare type OxFloatingAlign = 'start' | 'center' | 'end';
|
|
736
736
|
|
|
737
|
+
export declare type OxFloatingAriaHaspopupTypes = 'menu' | 'dialog' | 'listbox' | 'tree' | 'grid' | true;
|
|
738
|
+
|
|
739
|
+
declare const OxFloatingContent: ({ children, className, portal, style, ...domProps }: OxFloatingContentProps) => JSX.Element | null;
|
|
740
|
+
|
|
741
|
+
export declare interface OxFloatingContentProps extends ComponentPropsWithoutRef<'div'> {
|
|
742
|
+
children: ReactNode;
|
|
743
|
+
portal?: boolean;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export declare const OxFloatingContext: Context<OxFloatingContextValue | undefined>;
|
|
747
|
+
|
|
748
|
+
export declare interface OxFloatingContextValue {
|
|
749
|
+
ariaHaspopup?: OxFloatingAriaHaspopupTypes;
|
|
750
|
+
closing: boolean;
|
|
751
|
+
contentRef: RefObject<HTMLDivElement | null>;
|
|
752
|
+
disabled: boolean;
|
|
753
|
+
hoverDelay: number;
|
|
754
|
+
hoverTimeoutRef: RefObject<number | null>;
|
|
755
|
+
id: string;
|
|
756
|
+
isPositioned: boolean;
|
|
757
|
+
open: boolean;
|
|
758
|
+
setOpen: (open: boolean) => void;
|
|
759
|
+
trigger: OxFloatingTriggerTypes;
|
|
760
|
+
triggerRef: RefObject<HTMLDivElement | null>;
|
|
761
|
+
useAriaControls: boolean;
|
|
762
|
+
}
|
|
763
|
+
|
|
737
764
|
export declare type OxFloatingPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
738
765
|
|
|
739
766
|
export declare interface OxFloatingProps {
|
|
740
767
|
align?: OxFloatingAlign;
|
|
741
768
|
animationDuration?: number;
|
|
742
|
-
ariaHaspopup?:
|
|
743
|
-
asChild?: boolean;
|
|
769
|
+
ariaHaspopup?: OxFloatingAriaHaspopupTypes;
|
|
744
770
|
children: ReactNode;
|
|
745
|
-
|
|
746
|
-
content: ReactNode;
|
|
747
|
-
contentClassName?: string;
|
|
748
|
-
contentRole?: 'tooltip' | 'menu' | 'dialog' | 'listbox' | undefined;
|
|
749
|
-
contentStyle?: CSSProperties;
|
|
771
|
+
defaultOpen?: boolean;
|
|
750
772
|
disabled?: boolean;
|
|
751
773
|
hoverDelay?: number;
|
|
752
774
|
id?: string;
|
|
753
775
|
offset?: number;
|
|
754
776
|
onOpenChange?: (open: boolean) => void;
|
|
755
777
|
open?: boolean;
|
|
756
|
-
portal?: boolean;
|
|
757
778
|
position?: OxFloatingPosition;
|
|
758
|
-
trigger?:
|
|
779
|
+
trigger?: OxFloatingTriggerTypes;
|
|
759
780
|
useAriaControls?: boolean;
|
|
760
781
|
}
|
|
761
782
|
|
|
762
|
-
|
|
783
|
+
declare const OxFloatingTrigger: ({ asChild, children, className, ...domProps }: OxFloatingTriggerProps) => JSX.Element;
|
|
784
|
+
|
|
785
|
+
export declare interface OxFloatingTriggerProps extends ComponentPropsWithRef<'div'> {
|
|
786
|
+
asChild?: boolean;
|
|
787
|
+
children: ReactNode;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export declare type OxFloatingTriggerTypes = 'hover' | 'click' | 'manual' | 'focus';
|
|
763
791
|
|
|
764
792
|
export declare const OxForm: typeof OxForm_2 & {
|
|
793
|
+
Description: typeof FormDescription;
|
|
794
|
+
Error: typeof FormError;
|
|
765
795
|
Field: typeof FormField;
|
|
766
|
-
Fields: typeof FormFields;
|
|
767
796
|
Group: typeof FormGroup;
|
|
797
|
+
GroupTitle: typeof FormGroupTitle;
|
|
798
|
+
Label: typeof FormLabel;
|
|
768
799
|
};
|
|
769
800
|
|
|
770
801
|
declare const OxForm_2: ({ children, className, fullWidth, noValidate, ...domProps }: OxFormProps) => JSX.Element;
|
|
771
802
|
|
|
772
|
-
export declare interface OxFormProps extends
|
|
803
|
+
export declare interface OxFormProps extends ComponentPropsWithRef<'form'> {
|
|
773
804
|
children: ReactNode;
|
|
774
805
|
fullWidth?: boolean;
|
|
775
806
|
}
|
|
@@ -1076,7 +1107,7 @@ export declare const OxJsonField: typeof OxJsonField_2 & {
|
|
|
1076
1107
|
|
|
1077
1108
|
declare const OxJsonField_2: ({ className, value, ...domProps }: OxJsonFieldProps) => JSX.Element;
|
|
1078
1109
|
|
|
1079
|
-
export declare interface OxJsonFieldProps extends Omit<
|
|
1110
|
+
export declare interface OxJsonFieldProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
1080
1111
|
value: string | OxJsonValue;
|
|
1081
1112
|
}
|
|
1082
1113
|
|
|
@@ -1093,7 +1124,7 @@ export declare type OxJsonValue = string | number | boolean | null | undefined |
|
|
|
1093
1124
|
|
|
1094
1125
|
export declare const OxLabel: ({ children, className, disabled, htmlFor, required, ...domProps }: OxLabelProps) => JSX.Element;
|
|
1095
1126
|
|
|
1096
|
-
declare interface OxLabelProps extends
|
|
1127
|
+
declare interface OxLabelProps extends ComponentPropsWithRef<'label'> {
|
|
1097
1128
|
children: ReactNode;
|
|
1098
1129
|
disabled?: boolean;
|
|
1099
1130
|
required?: boolean;
|
|
@@ -1101,7 +1132,7 @@ declare interface OxLabelProps extends Omit<LabelHTMLAttributes<HTMLLabelElement
|
|
|
1101
1132
|
|
|
1102
1133
|
export declare const OxLegend: ({ children, className, disabled, required, ...domProps }: OxLegendProps) => JSX.Element;
|
|
1103
1134
|
|
|
1104
|
-
declare interface OxLegendProps extends
|
|
1135
|
+
declare interface OxLegendProps extends ComponentPropsWithRef<'legend'> {
|
|
1105
1136
|
children: ReactNode;
|
|
1106
1137
|
disabled?: boolean;
|
|
1107
1138
|
required?: boolean;
|
|
@@ -1109,7 +1140,7 @@ declare interface OxLegendProps extends Omit<HTMLAttributes<HTMLLegendElement>,
|
|
|
1109
1140
|
|
|
1110
1141
|
export declare const OxLink: ({ children, className, disabled, href, size, variant, ...domProps }: OxLinkProps) => JSX.Element;
|
|
1111
1142
|
|
|
1112
|
-
export declare interface OxLinkProps extends
|
|
1143
|
+
export declare interface OxLinkProps extends ComponentPropsWithRef<'a'> {
|
|
1113
1144
|
disabled?: boolean;
|
|
1114
1145
|
size?: 'sm' | 'md';
|
|
1115
1146
|
variant?: 'primary' | 'secondary' | 'ghost' | 'link' | 'danger';
|
|
@@ -1137,24 +1168,24 @@ declare const OxNotifications_2: ({ children, disabled, emptyMessage, items, onI
|
|
|
1137
1168
|
|
|
1138
1169
|
declare const OxNotificationsBody: ({ children, className, ...domProps }: OxNotificationsBodyProps) => JSX.Element;
|
|
1139
1170
|
|
|
1140
|
-
export declare interface OxNotificationsBodyProps extends
|
|
1171
|
+
export declare interface OxNotificationsBodyProps extends ComponentPropsWithRef<'ul'> {
|
|
1141
1172
|
children?: ReactNode;
|
|
1142
1173
|
}
|
|
1143
1174
|
|
|
1144
1175
|
declare const OxNotificationsButton: ({ children, className, icon, img, message, timestamp, title, type, unread, ...domProps }: OxNotificationsButtonProps) => JSX.Element;
|
|
1145
1176
|
|
|
1146
|
-
export declare interface OxNotificationsButtonProps extends Omit<
|
|
1177
|
+
export declare interface OxNotificationsButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children' | 'type' | 'onClick'>, BaseNotificationItemProps {
|
|
1147
1178
|
}
|
|
1148
1179
|
|
|
1149
1180
|
export declare type OxNotificationsIconProps = OxIconProps;
|
|
1150
1181
|
|
|
1151
1182
|
declare const OxNotificationsLink: ({ children, className, href, icon, img, message, timestamp, title, type, unread, ...domProps }: OxNotificationsLinkProps) => JSX.Element;
|
|
1152
1183
|
|
|
1153
|
-
export declare interface OxNotificationsLinkProps extends Omit<
|
|
1184
|
+
export declare interface OxNotificationsLinkProps extends Omit<ComponentPropsWithRef<'a'>, 'children' | 'type' | 'onClick'>, BaseNotificationItemProps {
|
|
1154
1185
|
href: string;
|
|
1155
1186
|
}
|
|
1156
1187
|
|
|
1157
|
-
export declare interface OxNotificationsProps extends
|
|
1188
|
+
export declare interface OxNotificationsProps extends ComponentPropsWithRef<'div'> {
|
|
1158
1189
|
children?: ReactNode;
|
|
1159
1190
|
disabled?: boolean;
|
|
1160
1191
|
emptyMessage?: string;
|
|
@@ -1166,7 +1197,7 @@ export declare interface OxNotificationsProps extends Omit<HTMLAttributes<HTMLDi
|
|
|
1166
1197
|
|
|
1167
1198
|
declare const OxNotificationsTrigger: ({ children, className, customIcon, unreadCount: propUnreadCount, ...domProps }: OxNotificationsTriggerProps) => JSX.Element;
|
|
1168
1199
|
|
|
1169
|
-
export declare interface OxNotificationsTriggerProps extends
|
|
1200
|
+
export declare interface OxNotificationsTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
1170
1201
|
children?: ReactNode;
|
|
1171
1202
|
customIcon?: string;
|
|
1172
1203
|
unreadCount?: number;
|
|
@@ -1176,7 +1207,7 @@ declare const OxNumberButton: (props: OxNumberInputButton) => JSX.Element;
|
|
|
1176
1207
|
|
|
1177
1208
|
declare const OxNumberContainer: ({ children, defaultValue, disabled, error, locale, max, maximumFractionDigits, min, minimumFractionDigits, onChange, required, showValidationTooltip, size, steps, useGrouping, value, ...domProps }: OxNumberContainerProps) => JSX.Element;
|
|
1178
1209
|
|
|
1179
|
-
export declare interface OxNumberContainerProps extends Omit<
|
|
1210
|
+
export declare interface OxNumberContainerProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
1180
1211
|
customValidationMessage?: string;
|
|
1181
1212
|
defaultValue?: number;
|
|
1182
1213
|
disabled?: boolean;
|
|
@@ -1244,7 +1275,7 @@ export declare type OxOtpInputType = 'numeric' | 'alphanumeric' | 'text';
|
|
|
1244
1275
|
|
|
1245
1276
|
export declare const OxPagination: typeof OxPagination_2 & {
|
|
1246
1277
|
Ellipsis: typeof OxPaginationEllipsis;
|
|
1247
|
-
|
|
1278
|
+
Item: typeof OxPaginationItem;
|
|
1248
1279
|
Next: typeof OxPaginationNext;
|
|
1249
1280
|
Previous: typeof OxPaginationPrevious;
|
|
1250
1281
|
};
|
|
@@ -1253,26 +1284,28 @@ declare const OxPagination_2: ({ children, className, ...domProps }: OxPaginatio
|
|
|
1253
1284
|
|
|
1254
1285
|
declare const OxPaginationEllipsis: ({ className, size, ...domProps }: OxPaginationEllipsisProps) => JSX.Element;
|
|
1255
1286
|
|
|
1256
|
-
export declare interface OxPaginationEllipsisProps extends Omit<
|
|
1287
|
+
export declare interface OxPaginationEllipsisProps extends Omit<ComponentPropsWithRef<'span'>, 'children'> {
|
|
1257
1288
|
size?: OxPaginationSize;
|
|
1258
1289
|
}
|
|
1259
1290
|
|
|
1260
|
-
|
|
1261
|
-
children: ReactNode;
|
|
1262
|
-
}
|
|
1291
|
+
declare const OxPaginationItem: (props: OxPaginationItemProps) => JSX.Element;
|
|
1263
1292
|
|
|
1264
|
-
declare
|
|
1293
|
+
export declare type OxPaginationItemButtonProps = PaginationItemBaseProps & Omit<ComponentPropsWithRef<'button'>, keyof PaginationItemBaseProps | 'onClick' | 'type'> & {
|
|
1294
|
+
href?: never;
|
|
1295
|
+
onClick?: (page: number) => void;
|
|
1296
|
+
type?: 'button';
|
|
1297
|
+
};
|
|
1265
1298
|
|
|
1266
|
-
export declare
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1299
|
+
export declare type OxPaginationItemLinkProps = PaginationItemBaseProps & Omit<ComponentPropsWithRef<'a'>, keyof PaginationItemBaseProps | 'href'> & {
|
|
1300
|
+
disabled?: boolean;
|
|
1301
|
+
href: string;
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
export declare type OxPaginationItemProps = OxPaginationItemLinkProps | OxPaginationItemButtonProps;
|
|
1272
1305
|
|
|
1273
1306
|
declare const OxPaginationNext: ({ className, disabled, onClick, short, size, ...domProps }: OxPaginationNextProps) => JSX.Element;
|
|
1274
1307
|
|
|
1275
|
-
export declare interface OxPaginationNextProps extends Omit<
|
|
1308
|
+
export declare interface OxPaginationNextProps extends Omit<ComponentPropsWithRef<'button'>, 'onClick' | 'children'> {
|
|
1276
1309
|
onClick: () => void;
|
|
1277
1310
|
short?: boolean;
|
|
1278
1311
|
size?: OxPaginationSize;
|
|
@@ -1280,13 +1313,13 @@ export declare interface OxPaginationNextProps extends Omit<ButtonHTMLAttributes
|
|
|
1280
1313
|
|
|
1281
1314
|
declare const OxPaginationPrevious: ({ className, disabled, onClick, short, size, ...domProps }: OxPaginationPreviousProps) => JSX.Element;
|
|
1282
1315
|
|
|
1283
|
-
export declare interface OxPaginationPreviousProps extends Omit<
|
|
1316
|
+
export declare interface OxPaginationPreviousProps extends Omit<ComponentPropsWithRef<'button'>, 'onClick' | 'children'> {
|
|
1284
1317
|
onClick: () => void;
|
|
1285
1318
|
short?: boolean;
|
|
1286
1319
|
size?: OxPaginationSize;
|
|
1287
1320
|
}
|
|
1288
1321
|
|
|
1289
|
-
export declare interface OxPaginationProps extends
|
|
1322
|
+
export declare interface OxPaginationProps extends ComponentPropsWithRef<'nav'> {
|
|
1290
1323
|
children: ReactNode;
|
|
1291
1324
|
}
|
|
1292
1325
|
|
|
@@ -1297,16 +1330,16 @@ export declare const OxPopover: typeof OxPopover_2 & {
|
|
|
1297
1330
|
Trigger: typeof OxPopoverTrigger;
|
|
1298
1331
|
};
|
|
1299
1332
|
|
|
1300
|
-
declare const OxPopover_2: ({ align, children, defaultOpen, disabled, onOpenChange, open
|
|
1333
|
+
declare const OxPopover_2: ({ align, children, defaultOpen, disabled, onOpenChange, open, side, ...domProps }: OxPopoverProps) => JSX.Element;
|
|
1301
1334
|
|
|
1302
1335
|
declare const OxPopoverContent: ({ children, className, showCloseButton, ...domProps }: OxPopoverContentProps) => JSX.Element;
|
|
1303
1336
|
|
|
1304
|
-
export declare interface OxPopoverContentProps extends
|
|
1337
|
+
export declare interface OxPopoverContentProps extends ComponentPropsWithRef<'div'> {
|
|
1305
1338
|
children: React.ReactNode;
|
|
1306
1339
|
showCloseButton?: boolean;
|
|
1307
1340
|
}
|
|
1308
1341
|
|
|
1309
|
-
export declare interface OxPopoverProps extends
|
|
1342
|
+
export declare interface OxPopoverProps extends ComponentPropsWithRef<'div'> {
|
|
1310
1343
|
align?: OxFloatingAlign;
|
|
1311
1344
|
children: React.ReactNode;
|
|
1312
1345
|
defaultOpen?: boolean;
|
|
@@ -1316,9 +1349,10 @@ export declare interface OxPopoverProps extends Omit<HTMLAttributes<HTMLDivEleme
|
|
|
1316
1349
|
side?: OxFloatingPosition;
|
|
1317
1350
|
}
|
|
1318
1351
|
|
|
1319
|
-
declare const OxPopoverTrigger: ({ children, ...domProps }: OxPopoverTriggerProps) => JSX.Element;
|
|
1352
|
+
declare const OxPopoverTrigger: ({ asChild, children, className, ...domProps }: OxPopoverTriggerProps) => JSX.Element;
|
|
1320
1353
|
|
|
1321
|
-
export declare interface OxPopoverTriggerProps extends
|
|
1354
|
+
export declare interface OxPopoverTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
1355
|
+
asChild?: boolean;
|
|
1322
1356
|
children: React.ReactNode;
|
|
1323
1357
|
}
|
|
1324
1358
|
|
|
@@ -1330,7 +1364,7 @@ declare const OxProgress_2: ({ buffer, className, max, value, variant, ...domPro
|
|
|
1330
1364
|
|
|
1331
1365
|
declare const OxProgressCircular: ({ className, max, showPercentage, size, value, variant, ...domProps }: OxProgressCircularProps) => JSX.Element;
|
|
1332
1366
|
|
|
1333
|
-
export declare interface OxProgressCircularProps extends Omit<
|
|
1367
|
+
export declare interface OxProgressCircularProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
1334
1368
|
max?: number;
|
|
1335
1369
|
showPercentage?: boolean;
|
|
1336
1370
|
size?: 'sm' | 'md';
|
|
@@ -1338,7 +1372,7 @@ export declare interface OxProgressCircularProps extends Omit<HTMLAttributes<HTM
|
|
|
1338
1372
|
variant?: ColorStyleName;
|
|
1339
1373
|
}
|
|
1340
1374
|
|
|
1341
|
-
export declare interface OxProgressProps extends Omit<
|
|
1375
|
+
export declare interface OxProgressProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
1342
1376
|
buffer?: number;
|
|
1343
1377
|
max?: number;
|
|
1344
1378
|
value?: number;
|
|
@@ -1346,21 +1380,14 @@ export declare interface OxProgressProps extends Omit<HTMLAttributes<HTMLDivElem
|
|
|
1346
1380
|
}
|
|
1347
1381
|
|
|
1348
1382
|
export declare const OxRadio: typeof OxRadio_2 & {
|
|
1349
|
-
Field: typeof OxRadioField;
|
|
1350
1383
|
Group: typeof OxRadioGroup;
|
|
1351
1384
|
};
|
|
1352
1385
|
|
|
1353
1386
|
declare const OxRadio_2: ({ checked, className, defaultChecked, disabled, error, id: propId, name, onChange, onCheckedChange, required, size, value, ...domProps }: OxRadioProps) => JSX.Element;
|
|
1354
1387
|
|
|
1355
|
-
declare const OxRadioField: ({ children, className, ...domProps }: OxRadioFieldProps) => JSX.Element;
|
|
1356
|
-
|
|
1357
|
-
export declare interface OxRadioFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1358
|
-
children: ReactNode;
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
1388
|
declare const OxRadioGroup: ({ children, className, disabled, name, onChange, size, value, ...domProps }: OxRadioGroupProps) => JSX.Element;
|
|
1362
1389
|
|
|
1363
|
-
export declare interface OxRadioGroupProps extends Omit<
|
|
1390
|
+
export declare interface OxRadioGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {
|
|
1364
1391
|
children: ReactNode;
|
|
1365
1392
|
disabled?: boolean;
|
|
1366
1393
|
name: string;
|
|
@@ -1369,7 +1396,7 @@ export declare interface OxRadioGroupProps extends Omit<HTMLAttributes<HTMLDivEl
|
|
|
1369
1396
|
value?: string | number;
|
|
1370
1397
|
}
|
|
1371
1398
|
|
|
1372
|
-
export declare interface OxRadioProps extends Omit<
|
|
1399
|
+
export declare interface OxRadioProps extends Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'size'> {
|
|
1373
1400
|
error?: boolean;
|
|
1374
1401
|
onCheckedChange?: (checked: boolean) => void;
|
|
1375
1402
|
size?: 'sm' | 'md';
|
|
@@ -1385,23 +1412,21 @@ export declare const OxSelect: typeof OxSelect_2 & {
|
|
|
1385
1412
|
Trigger: typeof OxSelectTrigger;
|
|
1386
1413
|
};
|
|
1387
1414
|
|
|
1388
|
-
declare const OxSelect_2: ({ children, className, defaultValue, disabled, error, id: propId, isLoading, multiple, onChange, required, size, value,
|
|
1415
|
+
declare const OxSelect_2: ({ children, className, defaultOpen, defaultValue, disabled, error, id: propId, isLoading, multiple, onChange, onOpenChange, open, required, size, value, }: OxSelectProps) => JSX.Element;
|
|
1389
1416
|
|
|
1390
1417
|
declare const OxSelectContent: ({ children, className, ...domProps }: OxSelectContentProps) => JSX.Element;
|
|
1391
1418
|
|
|
1392
|
-
export declare interface OxSelectContentProps extends
|
|
1419
|
+
export declare interface OxSelectContentProps extends ComponentPropsWithRef<'ul'> {
|
|
1393
1420
|
children: ReactNode;
|
|
1394
1421
|
}
|
|
1395
1422
|
|
|
1396
1423
|
declare const OxSelectIcon: ({ className, path, ...domProps }: OxSelectIconProps) => JSX.Element;
|
|
1397
1424
|
|
|
1398
|
-
export declare
|
|
1399
|
-
path: string;
|
|
1400
|
-
}
|
|
1425
|
+
export declare type OxSelectIconProps = OxIconProps;
|
|
1401
1426
|
|
|
1402
1427
|
declare const OxSelectLabel: ({ children, className, ...domProps }: OxSelectLabelProps) => JSX.Element;
|
|
1403
1428
|
|
|
1404
|
-
export declare interface OxSelectLabelProps extends
|
|
1429
|
+
export declare interface OxSelectLabelProps extends ComponentPropsWithRef<'span'> {
|
|
1405
1430
|
children: ReactNode;
|
|
1406
1431
|
}
|
|
1407
1432
|
|
|
@@ -1409,33 +1434,36 @@ declare const OxSelectOption: ({ children, className, disabled, value, ...domPro
|
|
|
1409
1434
|
|
|
1410
1435
|
declare const OxSelectOptionGroup: ({ children, className, label, ...domProps }: OxSelectOptionGroupProps) => JSX.Element;
|
|
1411
1436
|
|
|
1412
|
-
export declare interface OxSelectOptionGroupProps extends
|
|
1437
|
+
export declare interface OxSelectOptionGroupProps extends ComponentPropsWithRef<'div'> {
|
|
1413
1438
|
children: ReactNode;
|
|
1414
1439
|
label: string;
|
|
1415
1440
|
}
|
|
1416
1441
|
|
|
1417
|
-
export declare interface OxSelectOptionProps extends Omit<
|
|
1442
|
+
export declare interface OxSelectOptionProps extends Omit<ComponentPropsWithRef<'button'>, 'value'> {
|
|
1418
1443
|
children: ReactNode;
|
|
1419
1444
|
value: string | number | null;
|
|
1420
1445
|
}
|
|
1421
1446
|
|
|
1422
|
-
export declare interface OxSelectProps extends Omit<
|
|
1447
|
+
export declare interface OxSelectProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue'> {
|
|
1423
1448
|
children: ReactNode;
|
|
1449
|
+
defaultOpen?: boolean;
|
|
1424
1450
|
defaultValue?: string | string[] | number | number[] | null;
|
|
1425
1451
|
disabled?: boolean;
|
|
1426
1452
|
error?: boolean;
|
|
1427
1453
|
isLoading?: boolean;
|
|
1428
1454
|
multiple?: boolean;
|
|
1429
1455
|
onChange?: (value: string | number | null | (string | number | null)[], name?: string) => void;
|
|
1456
|
+
onOpenChange?: (open: boolean) => void;
|
|
1457
|
+
open?: boolean;
|
|
1430
1458
|
required?: boolean;
|
|
1431
1459
|
size?: 'sm' | 'md';
|
|
1432
1460
|
value?: string | string[] | number | number[] | null;
|
|
1433
1461
|
wrapperClassName?: string;
|
|
1434
1462
|
}
|
|
1435
1463
|
|
|
1436
|
-
declare const OxSelectTrigger: ({ badgeColor, className, displayAsBadges, placeholder, size: propSize, ...domProps }: OxSelectTriggerProps) => JSX.Element;
|
|
1464
|
+
declare const OxSelectTrigger: ({ badgeColor, className, disabled: propDisabled, displayAsBadges, placeholder, size: propSize, ...domProps }: OxSelectTriggerProps) => JSX.Element;
|
|
1437
1465
|
|
|
1438
|
-
export declare interface OxSelectTriggerProps extends Omit<
|
|
1466
|
+
export declare interface OxSelectTriggerProps extends Omit<ComponentPropsWithRef<'button'>, 'children' | 'size' | 'required'> {
|
|
1439
1467
|
badgeColor?: ColorStyleName;
|
|
1440
1468
|
displayAsBadges?: boolean;
|
|
1441
1469
|
placeholder?: string;
|
|
@@ -1444,14 +1472,14 @@ export declare interface OxSelectTriggerProps extends Omit<ButtonHTMLAttributes<
|
|
|
1444
1472
|
|
|
1445
1473
|
export declare const OxSeparator: ({ className, decorative, orientation, ...domProps }: OxSeparatorProps) => JSX.Element;
|
|
1446
1474
|
|
|
1447
|
-
export declare interface OxSeparatorProps extends Omit<
|
|
1475
|
+
export declare interface OxSeparatorProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
1448
1476
|
decorative?: boolean;
|
|
1449
1477
|
orientation?: 'horizontal' | 'vertical';
|
|
1450
1478
|
}
|
|
1451
1479
|
|
|
1452
1480
|
export declare const OxSkeleton: ({ animate, className, color, fullWidth, height, shape, width, ...domProps }: OxSkeletonProps) => JSX.Element;
|
|
1453
1481
|
|
|
1454
|
-
export declare interface OxSkeletonProps extends Omit<
|
|
1482
|
+
export declare interface OxSkeletonProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
1455
1483
|
animate?: boolean;
|
|
1456
1484
|
color?: ColorStyleName;
|
|
1457
1485
|
fullWidth?: boolean;
|
|
@@ -1469,7 +1497,7 @@ export declare interface OxSkeletonTextProps extends Omit<OxSkeletonProps, 'shap
|
|
|
1469
1497
|
|
|
1470
1498
|
export declare const OxSlider: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className, defaultValue, disabled, max, min, onChange, onChangeCommitted, orientation, showValue, size, step, value: controlledValue, ...domProps }: OxSliderProps) => JSX.Element;
|
|
1471
1499
|
|
|
1472
|
-
export declare interface OxSliderProps extends Omit<
|
|
1500
|
+
export declare interface OxSliderProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue' | 'children'> {
|
|
1473
1501
|
defaultValue?: number | [number, number];
|
|
1474
1502
|
disabled?: boolean;
|
|
1475
1503
|
marks?: boolean | number[];
|
|
@@ -1486,7 +1514,7 @@ export declare interface OxSliderProps extends Omit<React.HTMLAttributes<HTMLDiv
|
|
|
1486
1514
|
|
|
1487
1515
|
export declare const OxSpinner: ({ className, size, variant, ...domProps }: OxSpinnerProps) => JSX.Element;
|
|
1488
1516
|
|
|
1489
|
-
export declare interface OxSpinnerProps extends Omit<
|
|
1517
|
+
export declare interface OxSpinnerProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
1490
1518
|
size?: 'sm' | 'md' | number;
|
|
1491
1519
|
variant?: ColorStyleName;
|
|
1492
1520
|
}
|
|
@@ -1500,7 +1528,7 @@ export declare type OxStatusContent = {
|
|
|
1500
1528
|
|
|
1501
1529
|
export declare const OxStatusDisplay: ({ action, children, className, inline, message, onBack, size, title, type, ...domProps }: OxStatusDisplayProps) => JSX.Element;
|
|
1502
1530
|
|
|
1503
|
-
export declare interface OxStatusDisplayProps extends
|
|
1531
|
+
export declare interface OxStatusDisplayProps extends ComponentPropsWithRef<'div'> {
|
|
1504
1532
|
action?: ReactNode;
|
|
1505
1533
|
inline?: boolean;
|
|
1506
1534
|
message?: string;
|
|
@@ -1521,18 +1549,18 @@ declare const OxStepper_2: ({ children, className, color, currentStep, onStepCha
|
|
|
1521
1549
|
|
|
1522
1550
|
declare const OxStepperActions: ({ children, className, ...domProps }: OxStepperActionsProps) => JSX.Element;
|
|
1523
1551
|
|
|
1524
|
-
export declare interface OxStepperActionsProps extends
|
|
1552
|
+
export declare interface OxStepperActionsProps extends ComponentPropsWithRef<'div'> {
|
|
1525
1553
|
children: ReactNode;
|
|
1526
1554
|
}
|
|
1527
1555
|
|
|
1528
|
-
export declare interface OxStepperConnectorProps extends
|
|
1556
|
+
export declare interface OxStepperConnectorProps extends ComponentPropsWithRef<'div'> {
|
|
1529
1557
|
state?: StepState;
|
|
1530
1558
|
stepIndex: number;
|
|
1531
1559
|
}
|
|
1532
1560
|
|
|
1533
1561
|
declare const OxStepperItem: ({ children, className, description, icon, state: propState, stepIndex, title, ...domProps }: OxStepperItemProps) => JSX.Element;
|
|
1534
1562
|
|
|
1535
|
-
export declare interface OxStepperItemProps extends
|
|
1563
|
+
export declare interface OxStepperItemProps extends ComponentPropsWithRef<'div'> {
|
|
1536
1564
|
children: ReactNode;
|
|
1537
1565
|
description?: string;
|
|
1538
1566
|
icon?: string;
|
|
@@ -1541,7 +1569,7 @@ export declare interface OxStepperItemProps extends Omit<HTMLAttributes<HTMLDivE
|
|
|
1541
1569
|
title: string;
|
|
1542
1570
|
}
|
|
1543
1571
|
|
|
1544
|
-
export declare interface OxStepperProps extends
|
|
1572
|
+
export declare interface OxStepperProps extends ComponentPropsWithRef<'div'> {
|
|
1545
1573
|
children: ReactNode;
|
|
1546
1574
|
color?: ColorStyleName;
|
|
1547
1575
|
currentStep?: number;
|
|
@@ -1550,19 +1578,9 @@ export declare interface OxStepperProps extends Omit<HTMLAttributes<HTMLDivEleme
|
|
|
1550
1578
|
type?: StepperType;
|
|
1551
1579
|
}
|
|
1552
1580
|
|
|
1553
|
-
export declare const OxSwitch:
|
|
1554
|
-
Field: typeof OxSwitchField;
|
|
1555
|
-
};
|
|
1556
|
-
|
|
1557
|
-
declare const OxSwitch_2: ({ checked, className, disabled, error, id: propId, onChange, required, size, ...domProps }: OxSwitchProps) => JSX.Element;
|
|
1558
|
-
|
|
1559
|
-
declare const OxSwitchField: ({ children, className, ...domProps }: OxSwitchFieldProps) => JSX.Element;
|
|
1560
|
-
|
|
1561
|
-
export declare interface OxSwitchFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1562
|
-
children: ReactNode;
|
|
1563
|
-
}
|
|
1581
|
+
export declare const OxSwitch: ({ checked, className, disabled, error, id: propId, onChange, required, size, ...domProps }: OxSwitchProps) => JSX.Element;
|
|
1564
1582
|
|
|
1565
|
-
export declare interface OxSwitchProps extends Omit<
|
|
1583
|
+
export declare interface OxSwitchProps extends Omit<ComponentPropsWithRef<'button'>, 'type' | 'size' | 'onChange' | 'children'> {
|
|
1566
1584
|
checked?: boolean;
|
|
1567
1585
|
error?: boolean;
|
|
1568
1586
|
onChange?: (checked: boolean) => void;
|
|
@@ -1578,31 +1596,32 @@ export declare const OxTable: typeof OxTable_2 & {
|
|
|
1578
1596
|
Head: typeof OxTableHead;
|
|
1579
1597
|
Header: typeof OxTableHeader;
|
|
1580
1598
|
Row: typeof OxTableRow;
|
|
1599
|
+
SkeletonRow: typeof OxTableSkeletonRow;
|
|
1581
1600
|
};
|
|
1582
1601
|
|
|
1583
|
-
declare const OxTable_2: ({ allRowIds, children, className, onSelectionChange, selectable, selectedRows, ...domProps }: OxTableProps) => JSX.Element;
|
|
1602
|
+
declare const OxTable_2: ({ allRowIds, children, className, hoverable, isLoading, onSelectionChange, selectable, selectedRows, skeletonColumns, skeletonRows, striped, ...domProps }: OxTableProps) => JSX.Element;
|
|
1584
1603
|
|
|
1585
1604
|
declare const OxTableBody: ({ children, className, ...domProps }: OxTableBodyProps) => JSX.Element;
|
|
1586
1605
|
|
|
1587
|
-
export declare interface OxTableBodyProps extends
|
|
1606
|
+
export declare interface OxTableBodyProps extends ComponentPropsWithRef<'tbody'> {
|
|
1588
1607
|
children: ReactNode;
|
|
1589
1608
|
}
|
|
1590
1609
|
|
|
1591
1610
|
declare const OxTableCell: ({ children, className, ...domProps }: OxTableCellProps) => JSX.Element;
|
|
1592
1611
|
|
|
1593
|
-
export declare interface OxTableCellProps extends
|
|
1612
|
+
export declare interface OxTableCellProps extends ComponentPropsWithoutRef<'td'> {
|
|
1594
1613
|
children?: ReactNode;
|
|
1595
1614
|
}
|
|
1596
1615
|
|
|
1597
1616
|
declare const OxTableControls: ({ children, className, ...domProps }: OxTableControlsProps) => JSX.Element;
|
|
1598
1617
|
|
|
1599
|
-
export declare interface OxTableControlsProps extends
|
|
1618
|
+
export declare interface OxTableControlsProps extends ComponentPropsWithRef<'div'> {
|
|
1600
1619
|
children: ReactNode;
|
|
1601
1620
|
}
|
|
1602
1621
|
|
|
1603
1622
|
declare const OxTableFooter: ({ children, className, ...domProps }: OxTableFooterProps) => JSX.Element;
|
|
1604
1623
|
|
|
1605
|
-
export declare interface OxTableFooterProps extends
|
|
1624
|
+
export declare interface OxTableFooterProps extends ComponentPropsWithRef<'tfoot'> {
|
|
1606
1625
|
children: ReactNode;
|
|
1607
1626
|
}
|
|
1608
1627
|
|
|
@@ -1610,29 +1629,36 @@ declare const OxTableHead: ({ children, className, ...domProps }: OxTableHeadPro
|
|
|
1610
1629
|
|
|
1611
1630
|
declare const OxTableHeader: ({ children, className, ...domProps }: OxTableHeaderProps) => JSX.Element;
|
|
1612
1631
|
|
|
1613
|
-
export declare interface OxTableHeaderProps extends
|
|
1632
|
+
export declare interface OxTableHeaderProps extends ComponentPropsWithRef<'thead'> {
|
|
1614
1633
|
children: ReactNode;
|
|
1615
1634
|
}
|
|
1616
1635
|
|
|
1617
|
-
export declare interface OxTableHeadProps extends
|
|
1636
|
+
export declare interface OxTableHeadProps extends ComponentPropsWithRef<'th'> {
|
|
1618
1637
|
children?: ReactNode;
|
|
1619
1638
|
}
|
|
1620
1639
|
|
|
1621
|
-
export declare interface OxTableProps extends
|
|
1640
|
+
export declare interface OxTableProps extends ComponentPropsWithRef<'table'> {
|
|
1622
1641
|
allRowIds?: string[];
|
|
1623
1642
|
children: ReactNode;
|
|
1643
|
+
hoverable?: boolean;
|
|
1644
|
+
isLoading?: boolean;
|
|
1624
1645
|
onSelectionChange?: (selectedRows: string[]) => void;
|
|
1625
1646
|
selectable?: boolean;
|
|
1626
1647
|
selectedRows?: string[];
|
|
1648
|
+
skeletonColumns?: number;
|
|
1649
|
+
skeletonRows?: number;
|
|
1650
|
+
striped?: boolean;
|
|
1627
1651
|
}
|
|
1628
1652
|
|
|
1629
1653
|
declare const OxTableRow: ({ children, className, rowId, ...domProps }: OxTableRowProps) => JSX.Element;
|
|
1630
1654
|
|
|
1631
|
-
export declare interface OxTableRowProps extends
|
|
1655
|
+
export declare interface OxTableRowProps extends ComponentPropsWithRef<'tr'> {
|
|
1632
1656
|
children: ReactNode;
|
|
1633
1657
|
rowId?: string;
|
|
1634
1658
|
}
|
|
1635
1659
|
|
|
1660
|
+
declare const OxTableSkeletonRow: ({ columns }: TableSkeletonRowProps) => JSX.Element;
|
|
1661
|
+
|
|
1636
1662
|
export declare const OxTabs: typeof OxTabs_2 & {
|
|
1637
1663
|
Content: typeof OxTabsContent;
|
|
1638
1664
|
List: typeof OxTabsList;
|
|
@@ -1643,18 +1669,18 @@ declare const OxTabs_2: ({ children, className, defaultValue, onValueChange, val
|
|
|
1643
1669
|
|
|
1644
1670
|
declare const OxTabsContent: ({ children, className, value, ...domProps }: OxTabsContentProps) => JSX.Element | null;
|
|
1645
1671
|
|
|
1646
|
-
export declare interface OxTabsContentProps extends
|
|
1672
|
+
export declare interface OxTabsContentProps extends ComponentPropsWithRef<'div'> {
|
|
1647
1673
|
children: ReactNode;
|
|
1648
1674
|
value: string;
|
|
1649
1675
|
}
|
|
1650
1676
|
|
|
1651
1677
|
declare const OxTabsList: ({ children, className, ...domProps }: OxTabsListProps) => JSX.Element;
|
|
1652
1678
|
|
|
1653
|
-
export declare interface OxTabsListProps extends
|
|
1679
|
+
export declare interface OxTabsListProps extends ComponentPropsWithRef<'div'> {
|
|
1654
1680
|
children: ReactNode;
|
|
1655
1681
|
}
|
|
1656
1682
|
|
|
1657
|
-
export declare interface OxTabsProps extends
|
|
1683
|
+
export declare interface OxTabsProps extends ComponentPropsWithRef<'div'> {
|
|
1658
1684
|
children: ReactNode;
|
|
1659
1685
|
defaultValue?: string;
|
|
1660
1686
|
onValueChange?: (value: string) => void;
|
|
@@ -1663,14 +1689,14 @@ export declare interface OxTabsProps extends Omit<HTMLAttributes<HTMLDivElement>
|
|
|
1663
1689
|
|
|
1664
1690
|
declare const OxTabsTrigger: ({ children, className, disabled, value, ...domProps }: OxTabsTriggerProps) => JSX.Element;
|
|
1665
1691
|
|
|
1666
|
-
export declare interface OxTabsTriggerProps extends
|
|
1692
|
+
export declare interface OxTabsTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
1667
1693
|
children: ReactNode;
|
|
1668
1694
|
value: string;
|
|
1669
1695
|
}
|
|
1670
1696
|
|
|
1671
1697
|
export declare const OxTextarea: ({ className, disabled, error, id: propId, name, onChange, placeholder, required, rows, showMaxLength, size, value, ...domProps }: OxTextareaProps) => JSX.Element;
|
|
1672
1698
|
|
|
1673
|
-
export declare interface OxTextareaProps extends Omit<
|
|
1699
|
+
export declare interface OxTextareaProps extends Omit<ComponentPropsWithRef<'textarea'>, 'children'> {
|
|
1674
1700
|
error?: boolean;
|
|
1675
1701
|
showMaxLength?: boolean;
|
|
1676
1702
|
size?: 'sm' | 'md';
|
|
@@ -1699,7 +1725,7 @@ declare const OxTextInput_2: ({ autoComplete, className, id, maxLength, placehol
|
|
|
1699
1725
|
|
|
1700
1726
|
declare type OxTextInputButton = BaseInputButtonProps;
|
|
1701
1727
|
|
|
1702
|
-
declare interface OxTextInputContainerProps extends Omit<
|
|
1728
|
+
declare interface OxTextInputContainerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {
|
|
1703
1729
|
customValidationMessage?: string;
|
|
1704
1730
|
defaultValue?: string;
|
|
1705
1731
|
disabled?: boolean;
|
|
@@ -1752,7 +1778,7 @@ export declare const OxTimeInput: typeof OxTimeInput_2 & {
|
|
|
1752
1778
|
|
|
1753
1779
|
declare const OxTimeInput_2: () => JSX.Element;
|
|
1754
1780
|
|
|
1755
|
-
declare interface OxTimeInputContainerProps extends Omit<
|
|
1781
|
+
declare interface OxTimeInputContainerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {
|
|
1756
1782
|
customValidationMessage?: string;
|
|
1757
1783
|
defaultValue?: string;
|
|
1758
1784
|
disabled?: boolean;
|
|
@@ -1775,7 +1801,7 @@ export declare type OxTimelineAlign = 'left' | 'right';
|
|
|
1775
1801
|
|
|
1776
1802
|
declare const OxTimelineItem: ({ align, children, className, color, description, icon, label, showSeparator, timestamp, ...domProps }: OxTimelineItemProps) => JSX.Element;
|
|
1777
1803
|
|
|
1778
|
-
export declare interface OxTimelineItemProps extends
|
|
1804
|
+
export declare interface OxTimelineItemProps extends ComponentPropsWithRef<'li'> {
|
|
1779
1805
|
align?: OxTimelineAlign;
|
|
1780
1806
|
color?: ColorStyleName;
|
|
1781
1807
|
description?: string;
|
|
@@ -1785,7 +1811,7 @@ export declare interface OxTimelineItemProps extends LiHTMLAttributes<HTMLLIElem
|
|
|
1785
1811
|
timestamp?: string;
|
|
1786
1812
|
}
|
|
1787
1813
|
|
|
1788
|
-
export declare interface OxTimelineProps extends
|
|
1814
|
+
export declare interface OxTimelineProps extends ComponentPropsWithRef<'ol'> {
|
|
1789
1815
|
children: ReactNode;
|
|
1790
1816
|
}
|
|
1791
1817
|
|
|
@@ -1859,8 +1885,8 @@ declare const OxToggle_2: ({ children, className, disabled, id: propId, onPresse
|
|
|
1859
1885
|
|
|
1860
1886
|
declare const OxToggleGroup: ({ children, className, disabled, name, onValueChange, size, type, value, ...domProps }: OxToggleGroupProps) => JSX.Element;
|
|
1861
1887
|
|
|
1862
|
-
export declare interface OxToggleGroupMultipleProps extends Omit<
|
|
1863
|
-
children:
|
|
1888
|
+
export declare interface OxToggleGroupMultipleProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
1889
|
+
children: ReactNode;
|
|
1864
1890
|
disabled?: boolean;
|
|
1865
1891
|
name?: string;
|
|
1866
1892
|
onValueChange?: (value: string[]) => void;
|
|
@@ -1871,8 +1897,8 @@ export declare interface OxToggleGroupMultipleProps extends Omit<HTMLAttributes<
|
|
|
1871
1897
|
|
|
1872
1898
|
export declare type OxToggleGroupProps = OxToggleGroupSingleProps | OxToggleGroupMultipleProps;
|
|
1873
1899
|
|
|
1874
|
-
export declare interface OxToggleGroupSingleProps extends Omit<
|
|
1875
|
-
children:
|
|
1900
|
+
export declare interface OxToggleGroupSingleProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
1901
|
+
children: ReactNode;
|
|
1876
1902
|
disabled?: boolean;
|
|
1877
1903
|
name?: string;
|
|
1878
1904
|
onValueChange?: (value: string) => void;
|
|
@@ -1881,8 +1907,8 @@ export declare interface OxToggleGroupSingleProps extends Omit<HTMLAttributes<HT
|
|
|
1881
1907
|
value?: string;
|
|
1882
1908
|
}
|
|
1883
1909
|
|
|
1884
|
-
export declare interface OxToggleProps extends Omit<
|
|
1885
|
-
children?:
|
|
1910
|
+
export declare interface OxToggleProps extends Omit<ComponentPropsWithRef<'button'>, 'onChange'> {
|
|
1911
|
+
children?: ReactNode;
|
|
1886
1912
|
onPressedChange?: (pressed: boolean) => void;
|
|
1887
1913
|
pressed?: boolean;
|
|
1888
1914
|
size?: 'sm' | 'md';
|
|
@@ -1897,17 +1923,23 @@ export declare interface OxTooltipProps {
|
|
|
1897
1923
|
align?: OxFloatingAlign;
|
|
1898
1924
|
children: ReactNode;
|
|
1899
1925
|
className?: string;
|
|
1900
|
-
content:
|
|
1926
|
+
content: ReactNode;
|
|
1901
1927
|
disabled?: boolean;
|
|
1902
1928
|
hoverDelay?: number;
|
|
1903
1929
|
id?: string;
|
|
1904
1930
|
onOpenChange?: (open: boolean) => void;
|
|
1905
1931
|
open?: boolean;
|
|
1906
1932
|
position?: OxFloatingPosition;
|
|
1907
|
-
trigger?:
|
|
1933
|
+
trigger?: OxFloatingTriggerTypes;
|
|
1908
1934
|
variant?: 'default' | 'error' | 'warning' | 'success' | 'info';
|
|
1909
1935
|
}
|
|
1910
1936
|
|
|
1937
|
+
declare type PaginationItemBaseProps = {
|
|
1938
|
+
isActive?: boolean;
|
|
1939
|
+
page: number;
|
|
1940
|
+
size?: OxPaginationSize;
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1911
1943
|
export declare type SliderValue = number | [number, number];
|
|
1912
1944
|
|
|
1913
1945
|
export declare type StepperOrientation = 'horizontal' | 'vertical';
|
|
@@ -1916,6 +1948,12 @@ export declare type StepperType = 'linear' | 'non-linear';
|
|
|
1916
1948
|
|
|
1917
1949
|
export declare type StepState = 'completed' | 'current' | 'upcoming' | 'error' | 'warning';
|
|
1918
1950
|
|
|
1951
|
+
declare interface TableSkeletonRowProps {
|
|
1952
|
+
columns: number;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
export declare function useOxFloatingContext(): OxFloatingContextValue;
|
|
1956
|
+
|
|
1919
1957
|
export declare const useOxToast: () => OxToastContextApi;
|
|
1920
1958
|
|
|
1921
1959
|
export { }
|