@marigold/components 6.2.0 → 6.2.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/dist/index.d.ts +55 -54
- package/dist/index.js +1481 -1273
- package/dist/index.mjs +1400 -1192
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import * as react from 'react';
|
|
3
|
-
import
|
|
4
|
+
import { ReactElement, ReactNode, Key, HTMLAttributes, LabelHTMLAttributes, ComponentPropsWithRef, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
5
|
import { AriaAccordionProps } from '@react-aria/accordion';
|
|
5
6
|
import * as _react_types_shared from '@react-types/shared';
|
|
6
7
|
import { ItemElement, ItemProps, Node, PressEvents, FocusableDOMProps, CollectionElement, StyleProps, LabelableProps, HelpTextProps } from '@react-types/shared';
|
|
@@ -40,7 +41,7 @@ interface AccordionProps extends Omit<AriaAccordionProps<object>, 'children' | '
|
|
|
40
41
|
selectionMode?: string;
|
|
41
42
|
}
|
|
42
43
|
declare const Accordion: {
|
|
43
|
-
({ children, ...props }: AccordionProps):
|
|
44
|
+
({ children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
44
45
|
Item: <T>(props: AccordionOwnItemProps<T>) => JSX.Element;
|
|
45
46
|
};
|
|
46
47
|
interface AccordionOwnItemProps<T> extends ItemProps<T> {
|
|
@@ -56,7 +57,7 @@ interface AccordionItemProps {
|
|
|
56
57
|
variant?: string;
|
|
57
58
|
size?: string;
|
|
58
59
|
}
|
|
59
|
-
declare const AccordionItem: ({ item, state, title, variant, size, ...props }: AccordionItemProps) =>
|
|
60
|
+
declare const AccordionItem: ({ item, state, title, variant, size, ...props }: AccordionItemProps) => react_jsx_runtime.JSX.Element;
|
|
60
61
|
|
|
61
62
|
interface AsideProps extends GapSpaceProp {
|
|
62
63
|
children: [ReactElement, ReactElement];
|
|
@@ -65,13 +66,13 @@ interface AsideProps extends GapSpaceProp {
|
|
|
65
66
|
stretch?: boolean;
|
|
66
67
|
wrap?: NonZeroPercentage;
|
|
67
68
|
}
|
|
68
|
-
declare const Aside: ({ children, sideWidth, space, side, stretch, wrap, }: AsideProps) =>
|
|
69
|
+
declare const Aside: ({ children, sideWidth, space, side, stretch, wrap, }: AsideProps) => react_jsx_runtime.JSX.Element;
|
|
69
70
|
|
|
70
71
|
interface AspectProps extends HtmlProps<'div'>, AspectProp {
|
|
71
72
|
children?: ReactNode;
|
|
72
73
|
maxWidth?: string;
|
|
73
74
|
}
|
|
74
|
-
declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) =>
|
|
75
|
+
declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => react_jsx_runtime.JSX.Element;
|
|
75
76
|
|
|
76
77
|
interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDisabled' | 'isRequired' | 'isReadonly' | 'validationState' | 'icon' | 'onInputChange' | 'inputValue' | 'defaultInputValue'> {
|
|
77
78
|
disabled?: boolean;
|
|
@@ -99,7 +100,7 @@ interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDis
|
|
|
99
100
|
width?: WidthProp['width'];
|
|
100
101
|
}
|
|
101
102
|
declare const Autocomplete: {
|
|
102
|
-
({ disabled, required, readOnly, error, onChange, value, defaultValue, variant, size, width, ...rest }: AutocompleteProps):
|
|
103
|
+
({ disabled, required, readOnly, error, onChange, value, defaultValue, variant, size, width, ...rest }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
103
104
|
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
104
105
|
};
|
|
105
106
|
|
|
@@ -116,7 +117,7 @@ interface ComboBoxProps extends Omit<ComboBoxProps$1<object>, 'isDisabled' | 'is
|
|
|
116
117
|
onChange?: ComboBoxProps$1<object>['onInputChange'];
|
|
117
118
|
}
|
|
118
119
|
declare const ComboBox: {
|
|
119
|
-
({ error, width, disabled, required, readOnly, defaultValue, value, onChange, variant, size, ...rest }: ComboBoxProps):
|
|
120
|
+
({ error, width, disabled, required, readOnly, defaultValue, value, onChange, variant, size, ...rest }: ComboBoxProps): react_jsx_runtime.JSX.Element;
|
|
120
121
|
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
121
122
|
};
|
|
122
123
|
|
|
@@ -125,7 +126,7 @@ interface BadgeProps extends HtmlProps<'div'> {
|
|
|
125
126
|
variant?: string;
|
|
126
127
|
size?: string;
|
|
127
128
|
}
|
|
128
|
-
declare const Badge: ({ variant, size, children, ...props }: BadgeProps) =>
|
|
129
|
+
declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
129
130
|
|
|
130
131
|
interface BreakoutProps extends HtmlProps<'div'>, AlignmentProp {
|
|
131
132
|
children?: ReactNode;
|
|
@@ -133,14 +134,14 @@ interface BreakoutProps extends HtmlProps<'div'>, AlignmentProp {
|
|
|
133
134
|
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
134
135
|
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
135
136
|
}
|
|
136
|
-
declare const Breakout: ({ height, children, orientation, alignX, alignY, ...props }: BreakoutProps) =>
|
|
137
|
+
declare const Breakout: ({ height, children, orientation, alignX, alignY, ...props }: BreakoutProps) => react_jsx_runtime.JSX.Element;
|
|
137
138
|
|
|
138
139
|
interface BodyProps extends HtmlProps<'section'> {
|
|
139
140
|
children?: ReactNode;
|
|
140
141
|
variant?: string;
|
|
141
142
|
size?: string;
|
|
142
143
|
}
|
|
143
|
-
declare const Body: ({ children, variant, size, ...props }: BodyProps) =>
|
|
144
|
+
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
144
145
|
|
|
145
146
|
interface ButtonOwnProps extends PressEvents, FocusableDOMProps, HtmlProps<'button'> {
|
|
146
147
|
children?: ReactNode;
|
|
@@ -160,13 +161,13 @@ interface CardProps extends HtmlProps<'div'>, GapSpaceProp, PaddingSpaceProp, Pa
|
|
|
160
161
|
px?: PaddingSpacePropX['spaceX'];
|
|
161
162
|
py?: PaddingSpacePropY['spaceY'];
|
|
162
163
|
}
|
|
163
|
-
declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) =>
|
|
164
|
+
declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
164
165
|
|
|
165
166
|
interface CenterProps extends HtmlProps<'div'>, GapSpaceProp {
|
|
166
167
|
children?: ReactNode;
|
|
167
168
|
maxWidth?: string;
|
|
168
169
|
}
|
|
169
|
-
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) =>
|
|
170
|
+
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
170
171
|
|
|
171
172
|
/**
|
|
172
173
|
* `react-aria` has a slightly different API for the above events.
|
|
@@ -205,7 +206,7 @@ interface CheckboxGroupProps extends Omit<HtmlProps<'div'>, 'onChange'>, AriaChe
|
|
|
205
206
|
onChange?: (value: string[]) => void;
|
|
206
207
|
width?: WidthProp['width'];
|
|
207
208
|
}
|
|
208
|
-
declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) =>
|
|
209
|
+
declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
209
210
|
|
|
210
211
|
interface ColumnsProps extends GapSpaceProp {
|
|
211
212
|
children?: ReactNode;
|
|
@@ -213,7 +214,7 @@ interface ColumnsProps extends GapSpaceProp {
|
|
|
213
214
|
collapseAt?: string | 0;
|
|
214
215
|
stretch?: boolean;
|
|
215
216
|
}
|
|
216
|
-
declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) =>
|
|
217
|
+
declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => react_jsx_runtime.JSX.Element;
|
|
217
218
|
|
|
218
219
|
interface ContainerProps extends HtmlProps<'div'>, PlaceItemsProp, GridColumn, GridColsAlignProp {
|
|
219
220
|
children?: ReactNode;
|
|
@@ -232,7 +233,7 @@ declare const header: {
|
|
|
232
233
|
medium: string;
|
|
233
234
|
large: string;
|
|
234
235
|
};
|
|
235
|
-
declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) =>
|
|
236
|
+
declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
236
237
|
|
|
237
238
|
interface DialogControllerProps {
|
|
238
239
|
children: ReactNode;
|
|
@@ -264,15 +265,15 @@ interface DialogProps extends AriaDialogProps {
|
|
|
264
265
|
closeButton?: boolean;
|
|
265
266
|
}
|
|
266
267
|
declare const Dialog: {
|
|
267
|
-
({ children, variant, size, closeButton, ...props }: DialogProps):
|
|
268
|
-
Trigger: ({ children, dismissable, keyboardDismissable, }: DialogTriggerProps) =>
|
|
269
|
-
Controller: ({ children, dismissable, keyboardDismissable, open, onOpenChange, }: DialogControllerProps) =>
|
|
268
|
+
({ children, variant, size, closeButton, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
269
|
+
Trigger: ({ children, dismissable, keyboardDismissable, }: DialogTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
270
|
+
Controller: ({ children, dismissable, keyboardDismissable, open, onOpenChange, }: DialogControllerProps) => react_jsx_runtime.JSX.Element;
|
|
270
271
|
};
|
|
271
272
|
|
|
272
273
|
interface DividerProps extends SeparatorProps {
|
|
273
274
|
variant?: string;
|
|
274
275
|
}
|
|
275
|
-
declare const Divider: ({ variant, ...props }: DividerProps) =>
|
|
276
|
+
declare const Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
276
277
|
|
|
277
278
|
interface LabelProps extends HtmlProps<'label'> {
|
|
278
279
|
as?: 'label' | 'span';
|
|
@@ -280,7 +281,7 @@ interface LabelProps extends HtmlProps<'label'> {
|
|
|
280
281
|
size?: string;
|
|
281
282
|
labelWidth?: string;
|
|
282
283
|
}
|
|
283
|
-
declare const Label: ({ as, children, variant, size, labelWidth, ...props }: LabelProps) =>
|
|
284
|
+
declare const Label: ({ as, children, variant, size, labelWidth, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
284
285
|
|
|
285
286
|
interface FieldBaseProps extends WidthProp {
|
|
286
287
|
children?: ReactNode;
|
|
@@ -296,7 +297,7 @@ interface FieldBaseProps extends WidthProp {
|
|
|
296
297
|
errorMessageProps?: HTMLAttributes<HTMLElement>;
|
|
297
298
|
stateProps?: StateAttrProps;
|
|
298
299
|
}
|
|
299
|
-
declare const FieldBase: ({ children, variant, size, width, disabled, label, labelProps, description, descriptionProps, error, errorMessage, errorMessageProps, stateProps, ...props }: FieldBaseProps) =>
|
|
300
|
+
declare const FieldBase: ({ children, variant, size, width, disabled, label, labelProps, description, descriptionProps, error, errorMessage, errorMessageProps, stateProps, ...props }: FieldBaseProps) => react_jsx_runtime.JSX.Element;
|
|
300
301
|
|
|
301
302
|
interface FieldGroupContextProps {
|
|
302
303
|
labelWidth?: string;
|
|
@@ -307,21 +308,21 @@ interface FieldGroupProps {
|
|
|
307
308
|
labelWidth?: string;
|
|
308
309
|
children: ReactNode;
|
|
309
310
|
}
|
|
310
|
-
declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) =>
|
|
311
|
+
declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) => react_jsx_runtime.JSX.Element;
|
|
311
312
|
|
|
312
313
|
interface FooterProps extends HtmlProps<'footer'> {
|
|
313
314
|
children?: ReactNode;
|
|
314
315
|
variant?: string;
|
|
315
316
|
size?: string;
|
|
316
317
|
}
|
|
317
|
-
declare const Footer: ({ children, variant, size, ...props }: FooterProps) =>
|
|
318
|
+
declare const Footer: ({ children, variant, size, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
318
319
|
|
|
319
320
|
interface HeaderProps extends HtmlProps<'header'> {
|
|
320
321
|
children?: ReactNode;
|
|
321
322
|
variant?: string;
|
|
322
323
|
size?: string;
|
|
323
324
|
}
|
|
324
|
-
declare const Header: ({ children, variant, size, className, ...props }: HeaderProps) =>
|
|
325
|
+
declare const Header: ({ children, variant, size, className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
325
326
|
|
|
326
327
|
interface HeadlineProps extends HtmlProps<'h1'>, TextAlignProp {
|
|
327
328
|
children?: ReactNode;
|
|
@@ -331,7 +332,7 @@ interface HeadlineProps extends HtmlProps<'h1'>, TextAlignProp {
|
|
|
331
332
|
size?: string;
|
|
332
333
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
333
334
|
}
|
|
334
|
-
declare const Headline: ({ children, variant, size, align, color, level, as, ...props }: HeadlineProps) =>
|
|
335
|
+
declare const Headline: ({ children, variant, size, align, color, level, as, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
335
336
|
|
|
336
337
|
interface ImageProps extends HtmlProps<'img'>, ObjectFitProp, ObjectPositionProp {
|
|
337
338
|
variant?: string;
|
|
@@ -339,14 +340,14 @@ interface ImageProps extends HtmlProps<'img'>, ObjectFitProp, ObjectPositionProp
|
|
|
339
340
|
children?: never;
|
|
340
341
|
alt: string;
|
|
341
342
|
}
|
|
342
|
-
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) =>
|
|
343
|
+
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
343
344
|
|
|
344
345
|
interface InlineProps extends AlignmentProp, GapSpaceProp {
|
|
345
346
|
children?: ReactNode;
|
|
346
347
|
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
347
348
|
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
348
349
|
}
|
|
349
|
-
declare const Inline: ({ space, orientation, alignX, alignY, children, ...props }: InlineProps) =>
|
|
350
|
+
declare const Inline: ({ space, orientation, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
350
351
|
|
|
351
352
|
interface InputOwnProps extends Omit<HtmlProps<'input'>, 'size' | 'className'> {
|
|
352
353
|
icon?: ReactElement;
|
|
@@ -380,7 +381,7 @@ interface DateFieldProps extends Omit<AriaDateFieldProps<DateValue>, 'isDisabled
|
|
|
380
381
|
size?: string;
|
|
381
382
|
width?: WidthProp['width'];
|
|
382
383
|
}
|
|
383
|
-
declare const DateField: ({ disabled, readOnly, required, error, errorMessage, errorMessageProps, variant, size, action, isPressed, triggerRef, width, ...res }: DateFieldProps) =>
|
|
384
|
+
declare const DateField: ({ disabled, readOnly, required, error, errorMessage, errorMessageProps, variant, size, action, isPressed, triggerRef, width, ...res }: DateFieldProps) => react_jsx_runtime.JSX.Element;
|
|
384
385
|
|
|
385
386
|
interface CalendarProps extends Omit<AriaCalendarProps<DateValue$1>, 'isDisabled' | 'isReadOnly'> {
|
|
386
387
|
disabled?: boolean;
|
|
@@ -388,17 +389,17 @@ interface CalendarProps extends Omit<AriaCalendarProps<DateValue$1>, 'isDisabled
|
|
|
388
389
|
variant?: string;
|
|
389
390
|
size?: string;
|
|
390
391
|
}
|
|
391
|
-
declare const Calendar: ({ disabled, readOnly, size, variant, ...rest }: CalendarProps) =>
|
|
392
|
+
declare const Calendar: ({ disabled, readOnly, size, variant, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
392
393
|
|
|
393
394
|
interface CalendarCellProps extends AriaCalendarCellProps {
|
|
394
395
|
state: CalendarState;
|
|
395
396
|
}
|
|
396
|
-
declare const CalendarCell: (props: CalendarCellProps) =>
|
|
397
|
+
declare const CalendarCell: (props: CalendarCellProps) => react_jsx_runtime.JSX.Element;
|
|
397
398
|
|
|
398
399
|
interface CalendarGridProps extends AriaCalendarGridProps {
|
|
399
400
|
state: CalendarState;
|
|
400
401
|
}
|
|
401
|
-
declare const CalendarGrid: ({ state, ...props }: CalendarGridProps) =>
|
|
402
|
+
declare const CalendarGrid: ({ state, ...props }: CalendarGridProps) => react_jsx_runtime.JSX.Element;
|
|
402
403
|
|
|
403
404
|
interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDisabled' | 'isRequired' | 'isReadOnly' | 'isOpen'> {
|
|
404
405
|
disabled?: boolean;
|
|
@@ -410,7 +411,7 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDis
|
|
|
410
411
|
variant?: string;
|
|
411
412
|
size?: string;
|
|
412
413
|
}
|
|
413
|
-
declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) =>
|
|
414
|
+
declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
414
415
|
|
|
415
416
|
type InsetProps = {
|
|
416
417
|
children: ReactNode;
|
|
@@ -423,7 +424,7 @@ type InsetProps = {
|
|
|
423
424
|
spaceX?: never;
|
|
424
425
|
spaceY?: never;
|
|
425
426
|
};
|
|
426
|
-
declare const Inset: ({ space, spaceX, spaceY, children, }: InsetProps) =>
|
|
427
|
+
declare const Inset: ({ space, spaceX, spaceY, children, }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
427
428
|
|
|
428
429
|
interface LinkOwnProps extends PressEvents {
|
|
429
430
|
disabled?: boolean;
|
|
@@ -446,8 +447,8 @@ interface ListProps extends HtmlProps<'ul'> {
|
|
|
446
447
|
children?: ReactNode;
|
|
447
448
|
}
|
|
448
449
|
declare const List: {
|
|
449
|
-
({ as, children, variant, size, ...props }: ListProps):
|
|
450
|
-
Item: ({ children, ...props }: ListItemProps) =>
|
|
450
|
+
({ as, children, variant, size, ...props }: ListProps): react_jsx_runtime.JSX.Element;
|
|
451
|
+
Item: ({ children, ...props }: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
451
452
|
};
|
|
452
453
|
|
|
453
454
|
interface MenuTriggerProps {
|
|
@@ -464,27 +465,27 @@ interface MenuProps extends Omit<HtmlProps<'ul'>, 'onSelect' | 'size'> {
|
|
|
464
465
|
onAction?: (key: Key) => void;
|
|
465
466
|
}
|
|
466
467
|
declare const Menu: {
|
|
467
|
-
({ variant, size, ...props }: MenuProps):
|
|
468
|
-
Trigger: ({ disabled, open, onOpenChange, children, }: MenuTriggerProps) =>
|
|
468
|
+
({ variant, size, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
469
|
+
Trigger: ({ disabled, open, onOpenChange, children, }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
469
470
|
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
470
471
|
Section: <T_1>(props: _react_types_shared.SectionProps<T_1>) => JSX.Element;
|
|
471
472
|
};
|
|
472
473
|
|
|
473
474
|
interface ActionMenuProps extends MenuProps {
|
|
474
475
|
}
|
|
475
|
-
declare const ActionMenu: (props: ActionMenuProps) =>
|
|
476
|
+
declare const ActionMenu: (props: ActionMenuProps) => react_jsx_runtime.JSX.Element;
|
|
476
477
|
|
|
477
478
|
declare const icons: {
|
|
478
|
-
info: () =>
|
|
479
|
-
warning: () =>
|
|
480
|
-
error: () =>
|
|
479
|
+
info: () => react_jsx_runtime.JSX.Element;
|
|
480
|
+
warning: () => react_jsx_runtime.JSX.Element;
|
|
481
|
+
error: () => react_jsx_runtime.JSX.Element;
|
|
481
482
|
};
|
|
482
483
|
interface MessageProps extends HtmlProps<'div'> {
|
|
483
484
|
messageTitle: ReactNode;
|
|
484
485
|
variant?: keyof typeof icons;
|
|
485
486
|
size?: string;
|
|
486
487
|
}
|
|
487
|
-
declare const Message: ({ messageTitle, variant, size, children, ...props }: MessageProps) =>
|
|
488
|
+
declare const Message: ({ messageTitle, variant, size, children, ...props }: MessageProps) => react_jsx_runtime.JSX.Element;
|
|
488
489
|
|
|
489
490
|
/**
|
|
490
491
|
* `react-aria` has a slightly different API for some DOM props.
|
|
@@ -513,7 +514,7 @@ interface OverlayProps {
|
|
|
513
514
|
children: OverlayProps$1['children'];
|
|
514
515
|
container?: OverlayProps$1['portalContainer'];
|
|
515
516
|
}
|
|
516
|
-
declare const Overlay: ({ children, container, open }: OverlayProps) =>
|
|
517
|
+
declare const Overlay: ({ children, container, open }: OverlayProps) => react_jsx_runtime.JSX.Element | null;
|
|
517
518
|
|
|
518
519
|
interface PopoverProps extends Pick<AriaPopoverProps, 'triggerRef' | 'scrollRef' | 'isNonModal'> {
|
|
519
520
|
keyboardDismissDisabled?: AriaPopoverProps['isKeyboardDismissDisabled'];
|
|
@@ -535,11 +536,11 @@ interface UnderlayProps extends HTMLAttributes<HTMLElement> {
|
|
|
535
536
|
variant?: string;
|
|
536
537
|
size?: string;
|
|
537
538
|
}
|
|
538
|
-
declare const Underlay: ({ size, variant, ...props }: UnderlayProps) =>
|
|
539
|
+
declare const Underlay: ({ size, variant, ...props }: UnderlayProps) => react_jsx_runtime.JSX.Element;
|
|
539
540
|
|
|
540
541
|
interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
|
|
541
542
|
}
|
|
542
|
-
declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>):
|
|
543
|
+
declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
543
544
|
|
|
544
545
|
interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRquired' | 'isReadOnly ' | 'validationState'> {
|
|
545
546
|
children: ReactNode[];
|
|
@@ -549,7 +550,7 @@ interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRq
|
|
|
549
550
|
readOnly?: boolean;
|
|
550
551
|
error?: boolean;
|
|
551
552
|
}
|
|
552
|
-
declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) =>
|
|
553
|
+
declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
553
554
|
|
|
554
555
|
type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
|
|
555
556
|
interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps>, AriaRadioProps {
|
|
@@ -608,7 +609,7 @@ declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAtt
|
|
|
608
609
|
|
|
609
610
|
interface SplitProps extends HtmlProps<'div'> {
|
|
610
611
|
}
|
|
611
|
-
declare const Split: (props: SplitProps) =>
|
|
612
|
+
declare const Split: (props: SplitProps) => react_jsx_runtime.JSX.Element;
|
|
612
613
|
|
|
613
614
|
interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
614
615
|
children?: ReactNode;
|
|
@@ -616,7 +617,7 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
|
616
617
|
alignX?: keyof typeof alignment.vertical.alignmentX;
|
|
617
618
|
alignY?: keyof typeof alignment.vertical.alignmentY;
|
|
618
619
|
}
|
|
619
|
-
declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) =>
|
|
620
|
+
declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
620
621
|
|
|
621
622
|
type CustomSwitchProps = 'size' | 'value' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyUp';
|
|
622
623
|
interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps> {
|
|
@@ -658,7 +659,7 @@ interface TextProps extends HtmlProps<'p'>, TextAlignProp, FontSizeProp, FontWei
|
|
|
658
659
|
color?: string;
|
|
659
660
|
size?: string;
|
|
660
661
|
}
|
|
661
|
-
declare const Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, ...props }: TextProps) =>
|
|
662
|
+
declare const Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
662
663
|
|
|
663
664
|
/**
|
|
664
665
|
* `react-aria` has a slightly different API for the above events.
|
|
@@ -699,7 +700,7 @@ interface TilesProps extends GapSpaceProp {
|
|
|
699
700
|
stretch?: boolean;
|
|
700
701
|
equalHeight?: boolean;
|
|
701
702
|
}
|
|
702
|
-
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) =>
|
|
703
|
+
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
703
704
|
|
|
704
705
|
interface TooltipTriggerProps extends Omit<TooltipTriggerProps$1, 'isDisabled' | 'isOpen'>, Omit<PositionProps, 'isOpen'> {
|
|
705
706
|
children: [trigger: ReactElement, menu: ReactElement];
|
|
@@ -713,8 +714,8 @@ interface TooltipProps extends HtmlProps<'div'> {
|
|
|
713
714
|
size?: string;
|
|
714
715
|
}
|
|
715
716
|
declare const Tooltip: {
|
|
716
|
-
({ children, variant, size }: TooltipProps):
|
|
717
|
-
Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) =>
|
|
717
|
+
({ children, variant, size }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
718
|
+
Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
718
719
|
};
|
|
719
720
|
|
|
720
721
|
interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | 'validationState'>, LabelableProps, HelpTextProps {
|
|
@@ -723,7 +724,7 @@ interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | '
|
|
|
723
724
|
error?: boolean;
|
|
724
725
|
allowsRemoving?: boolean;
|
|
725
726
|
}
|
|
726
|
-
declare const TagGroup: ({ width, required, error, allowsRemoving, ...rest }: TagGroupProps) =>
|
|
727
|
+
declare const TagGroup: ({ width, required, error, allowsRemoving, ...rest }: TagGroupProps) => react_jsx_runtime.JSX.Element;
|
|
727
728
|
|
|
728
729
|
declare const Tag: TagComponent;
|
|
729
730
|
/**
|
|
@@ -743,7 +744,7 @@ interface TabsProps extends Omit<AriaTabListProps<object>, 'orientation' | 'isDi
|
|
|
743
744
|
variant?: string;
|
|
744
745
|
}
|
|
745
746
|
declare const Tabs: {
|
|
746
|
-
({ space, size, disabled, variant, ...rest }: TabsProps):
|
|
747
|
+
({ space, size, disabled, variant, ...rest }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
747
748
|
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
748
749
|
};
|
|
749
750
|
|