@marigold/components 6.1.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.
Files changed (4) hide show
  1. package/dist/index.d.ts +75 -81
  2. package/dist/index.js +1821 -1663
  3. package/dist/index.mjs +1743 -1577
  4. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export { useAsyncList, useListData } from '@react-stately/data';
2
- import React, { ReactElement, ReactNode, Key, HTMLAttributes, LabelHTMLAttributes, ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import * as react from 'react';
4
+ import { ReactElement, ReactNode, Key, HTMLAttributes, LabelHTMLAttributes, ComponentPropsWithRef, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
3
5
  import { AriaAccordionProps } from '@react-aria/accordion';
4
6
  import * as _react_types_shared from '@react-types/shared';
5
7
  import { ItemElement, ItemProps, Node, PressEvents, FocusableDOMProps, CollectionElement, StyleProps, LabelableProps, HelpTextProps } from '@react-types/shared';
@@ -13,8 +15,8 @@ import { AriaCheckboxProps, AriaCheckboxGroupProps } from '@react-types/checkbox
13
15
  import { CheckboxGroupState } from '@react-stately/checkbox';
14
16
  import { AriaDialogProps } from '@react-types/dialog';
15
17
  import { SeparatorProps } from '@react-aria/separator';
16
- import { AriaDateFieldProps, AriaDatePickerProps } from '@react-aria/datepicker';
17
18
  import { DateValue, CalendarDate } from '@internationalized/date';
19
+ import { AriaDateFieldProps, AriaDatePickerProps } from '@react-aria/datepicker';
18
20
  import { AriaCalendarProps, DateValue as DateValue$1, AriaCalendarCellProps, AriaCalendarGridProps } from '@react-aria/calendar';
19
21
  import { CalendarState } from '@react-stately/calendar';
20
22
  import { AriaNumberFieldProps } from '@react-types/numberfield';
@@ -39,7 +41,7 @@ interface AccordionProps extends Omit<AriaAccordionProps<object>, 'children' | '
39
41
  selectionMode?: string;
40
42
  }
41
43
  declare const Accordion: {
42
- ({ children, ...props }: AccordionProps): React.JSX.Element;
44
+ ({ children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
43
45
  Item: <T>(props: AccordionOwnItemProps<T>) => JSX.Element;
44
46
  };
45
47
  interface AccordionOwnItemProps<T> extends ItemProps<T> {
@@ -55,7 +57,7 @@ interface AccordionItemProps {
55
57
  variant?: string;
56
58
  size?: string;
57
59
  }
58
- declare const AccordionItem: ({ item, state, title, variant, size, ...props }: AccordionItemProps) => React.JSX.Element;
60
+ declare const AccordionItem: ({ item, state, title, variant, size, ...props }: AccordionItemProps) => react_jsx_runtime.JSX.Element;
59
61
 
60
62
  interface AsideProps extends GapSpaceProp {
61
63
  children: [ReactElement, ReactElement];
@@ -64,17 +66,13 @@ interface AsideProps extends GapSpaceProp {
64
66
  stretch?: boolean;
65
67
  wrap?: NonZeroPercentage;
66
68
  }
67
- declare const Aside: ({ children, sideWidth, space, side, stretch, wrap, }: AsideProps) => React.JSX.Element;
68
-
69
- /**
70
- * Based on https://theme-ui.com/components/aspect-ratio
71
- */
69
+ declare const Aside: ({ children, sideWidth, space, side, stretch, wrap, }: AsideProps) => react_jsx_runtime.JSX.Element;
72
70
 
73
71
  interface AspectProps extends HtmlProps<'div'>, AspectProp {
74
72
  children?: ReactNode;
75
73
  maxWidth?: string;
76
74
  }
77
- declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => React.JSX.Element;
75
+ declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => react_jsx_runtime.JSX.Element;
78
76
 
79
77
  interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDisabled' | 'isRequired' | 'isReadonly' | 'validationState' | 'icon' | 'onInputChange' | 'inputValue' | 'defaultInputValue'> {
80
78
  disabled?: boolean;
@@ -102,7 +100,7 @@ interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDis
102
100
  width?: WidthProp['width'];
103
101
  }
104
102
  declare const Autocomplete: {
105
- ({ disabled, required, readOnly, error, onChange, value, defaultValue, variant, size, width, ...rest }: AutocompleteProps): React.JSX.Element;
103
+ ({ disabled, required, readOnly, error, onChange, value, defaultValue, variant, size, width, ...rest }: AutocompleteProps): react_jsx_runtime.JSX.Element;
106
104
  Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
107
105
  };
108
106
 
@@ -119,7 +117,7 @@ interface ComboBoxProps extends Omit<ComboBoxProps$1<object>, 'isDisabled' | 'is
119
117
  onChange?: ComboBoxProps$1<object>['onInputChange'];
120
118
  }
121
119
  declare const ComboBox: {
122
- ({ error, width, disabled, required, readOnly, defaultValue, value, onChange, variant, size, ...rest }: ComboBoxProps): React.JSX.Element;
120
+ ({ error, width, disabled, required, readOnly, defaultValue, value, onChange, variant, size, ...rest }: ComboBoxProps): react_jsx_runtime.JSX.Element;
123
121
  Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
124
122
  };
125
123
 
@@ -128,7 +126,7 @@ interface BadgeProps extends HtmlProps<'div'> {
128
126
  variant?: string;
129
127
  size?: string;
130
128
  }
131
- declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => React.JSX.Element;
129
+ declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
132
130
 
133
131
  interface BreakoutProps extends HtmlProps<'div'>, AlignmentProp {
134
132
  children?: ReactNode;
@@ -136,14 +134,14 @@ interface BreakoutProps extends HtmlProps<'div'>, AlignmentProp {
136
134
  alignX?: keyof typeof alignment.horizontal.alignmentX;
137
135
  alignY?: keyof typeof alignment.horizontal.alignmentY;
138
136
  }
139
- declare const Breakout: ({ height, children, orientation, alignX, alignY, ...props }: BreakoutProps) => React.JSX.Element;
137
+ declare const Breakout: ({ height, children, orientation, alignX, alignY, ...props }: BreakoutProps) => react_jsx_runtime.JSX.Element;
140
138
 
141
139
  interface BodyProps extends HtmlProps<'section'> {
142
140
  children?: ReactNode;
143
141
  variant?: string;
144
142
  size?: string;
145
143
  }
146
- declare const Body: ({ children, variant, size, ...props }: BodyProps) => React.JSX.Element;
144
+ declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
147
145
 
148
146
  interface ButtonOwnProps extends PressEvents, FocusableDOMProps, HtmlProps<'button'> {
149
147
  children?: ReactNode;
@@ -163,13 +161,13 @@ interface CardProps extends HtmlProps<'div'>, GapSpaceProp, PaddingSpaceProp, Pa
163
161
  px?: PaddingSpacePropX['spaceX'];
164
162
  py?: PaddingSpacePropY['spaceY'];
165
163
  }
166
- declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => React.JSX.Element;
164
+ declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
167
165
 
168
166
  interface CenterProps extends HtmlProps<'div'>, GapSpaceProp {
169
167
  children?: ReactNode;
170
168
  maxWidth?: string;
171
169
  }
172
- declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => React.JSX.Element;
170
+ declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
173
171
 
174
172
  /**
175
173
  * `react-aria` has a slightly different API for the above events.
@@ -183,7 +181,7 @@ interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defa
183
181
  variant?: string;
184
182
  size?: string;
185
183
  }
186
- declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
184
+ declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
187
185
 
188
186
  interface CheckboxGroupContextProps extends CheckboxGroupState {
189
187
  error?: boolean;
@@ -192,7 +190,7 @@ interface CheckboxGroupContextProps extends CheckboxGroupState {
192
190
  * Needs to be falsy so we can check if a checkbox is used as standalone
193
191
  * or in a group.
194
192
  */
195
- declare const CheckboxGroupContext: React.Context<CheckboxGroupContextProps>;
193
+ declare const CheckboxGroupContext: react.Context<CheckboxGroupContextProps>;
196
194
  declare const useCheckboxGroupContext: () => CheckboxGroupContextProps;
197
195
  interface CheckboxGroupProps extends Omit<HtmlProps<'div'>, 'onChange'>, AriaCheckboxGroupProps {
198
196
  children: ReactNode;
@@ -208,7 +206,7 @@ interface CheckboxGroupProps extends Omit<HtmlProps<'div'>, 'onChange'>, AriaChe
208
206
  onChange?: (value: string[]) => void;
209
207
  width?: WidthProp['width'];
210
208
  }
211
- declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => React.JSX.Element;
209
+ declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
212
210
 
213
211
  interface ColumnsProps extends GapSpaceProp {
214
212
  children?: ReactNode;
@@ -216,7 +214,7 @@ interface ColumnsProps extends GapSpaceProp {
216
214
  collapseAt?: string | 0;
217
215
  stretch?: boolean;
218
216
  }
219
- declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => React.JSX.Element;
217
+ declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => react_jsx_runtime.JSX.Element;
220
218
 
221
219
  interface ContainerProps extends HtmlProps<'div'>, PlaceItemsProp, GridColumn, GridColsAlignProp {
222
220
  children?: ReactNode;
@@ -235,7 +233,7 @@ declare const header: {
235
233
  medium: string;
236
234
  large: string;
237
235
  };
238
- declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) => React.JSX.Element;
236
+ declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
239
237
 
240
238
  interface DialogControllerProps {
241
239
  children: ReactNode;
@@ -267,15 +265,15 @@ interface DialogProps extends AriaDialogProps {
267
265
  closeButton?: boolean;
268
266
  }
269
267
  declare const Dialog: {
270
- ({ children, variant, size, closeButton, ...props }: DialogProps): React.JSX.Element;
271
- Trigger: ({ children, dismissable, keyboardDismissable, }: DialogTriggerProps) => React.JSX.Element;
272
- Controller: ({ children, dismissable, keyboardDismissable, open, onOpenChange, }: DialogControllerProps) => React.JSX.Element;
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;
273
271
  };
274
272
 
275
273
  interface DividerProps extends SeparatorProps {
276
274
  variant?: string;
277
275
  }
278
- declare const Divider: ({ variant, ...props }: DividerProps) => React.JSX.Element;
276
+ declare const Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
279
277
 
280
278
  interface LabelProps extends HtmlProps<'label'> {
281
279
  as?: 'label' | 'span';
@@ -283,7 +281,7 @@ interface LabelProps extends HtmlProps<'label'> {
283
281
  size?: string;
284
282
  labelWidth?: string;
285
283
  }
286
- declare const Label: ({ as, children, variant, size, labelWidth, ...props }: LabelProps) => React.JSX.Element;
284
+ declare const Label: ({ as, children, variant, size, labelWidth, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
287
285
 
288
286
  interface FieldBaseProps extends WidthProp {
289
287
  children?: ReactNode;
@@ -299,32 +297,32 @@ interface FieldBaseProps extends WidthProp {
299
297
  errorMessageProps?: HTMLAttributes<HTMLElement>;
300
298
  stateProps?: StateAttrProps;
301
299
  }
302
- declare const FieldBase: ({ children, variant, size, width, disabled, label, labelProps, description, descriptionProps, error, errorMessage, errorMessageProps, stateProps, ...props }: FieldBaseProps) => React.JSX.Element;
300
+ declare const FieldBase: ({ children, variant, size, width, disabled, label, labelProps, description, descriptionProps, error, errorMessage, errorMessageProps, stateProps, ...props }: FieldBaseProps) => react_jsx_runtime.JSX.Element;
303
301
 
304
302
  interface FieldGroupContextProps {
305
303
  labelWidth?: string;
306
304
  }
307
- declare const FieldGroupContext: React.Context<FieldGroupContextProps>;
305
+ declare const FieldGroupContext: react.Context<FieldGroupContextProps>;
308
306
  declare const useFieldGroupContext: () => FieldGroupContextProps;
309
307
  interface FieldGroupProps {
310
308
  labelWidth?: string;
311
309
  children: ReactNode;
312
310
  }
313
- declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) => React.JSX.Element;
311
+ declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) => react_jsx_runtime.JSX.Element;
314
312
 
315
313
  interface FooterProps extends HtmlProps<'footer'> {
316
314
  children?: ReactNode;
317
315
  variant?: string;
318
316
  size?: string;
319
317
  }
320
- declare const Footer: ({ children, variant, size, ...props }: FooterProps) => React.JSX.Element;
318
+ declare const Footer: ({ children, variant, size, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
321
319
 
322
320
  interface HeaderProps extends HtmlProps<'header'> {
323
321
  children?: ReactNode;
324
322
  variant?: string;
325
323
  size?: string;
326
324
  }
327
- declare const Header: ({ children, variant, size, className, ...props }: HeaderProps) => React.JSX.Element;
325
+ declare const Header: ({ children, variant, size, className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
328
326
 
329
327
  interface HeadlineProps extends HtmlProps<'h1'>, TextAlignProp {
330
328
  children?: ReactNode;
@@ -334,7 +332,7 @@ interface HeadlineProps extends HtmlProps<'h1'>, TextAlignProp {
334
332
  size?: string;
335
333
  as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
336
334
  }
337
- declare const Headline: ({ children, variant, size, align, color, level, as, ...props }: HeadlineProps) => React.JSX.Element;
335
+ declare const Headline: ({ children, variant, size, align, color, level, as, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
338
336
 
339
337
  interface ImageProps extends HtmlProps<'img'>, ObjectFitProp, ObjectPositionProp {
340
338
  variant?: string;
@@ -342,14 +340,14 @@ interface ImageProps extends HtmlProps<'img'>, ObjectFitProp, ObjectPositionProp
342
340
  children?: never;
343
341
  alt: string;
344
342
  }
345
- declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => React.JSX.Element;
343
+ declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
346
344
 
347
345
  interface InlineProps extends AlignmentProp, GapSpaceProp {
348
346
  children?: ReactNode;
349
347
  alignX?: keyof typeof alignment.horizontal.alignmentX;
350
348
  alignY?: keyof typeof alignment.horizontal.alignmentY;
351
349
  }
352
- declare const Inline: ({ space, orientation, alignX, alignY, children, ...props }: InlineProps) => React.JSX.Element;
350
+ declare const Inline: ({ space, orientation, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
353
351
 
354
352
  interface InputOwnProps extends Omit<HtmlProps<'input'>, 'size' | 'className'> {
355
353
  icon?: ReactElement;
@@ -362,16 +360,16 @@ interface InputOwnProps extends Omit<HtmlProps<'input'>, 'size' | 'className'> {
362
360
  icon?: string;
363
361
  };
364
362
  }
365
- interface InputProps extends Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'className'>, InputOwnProps {
363
+ interface InputProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'className'>, InputOwnProps {
366
364
  }
367
- declare const Input: React.ForwardRefExoticComponent<InputOwnProps & React.RefAttributes<HTMLInputElement>>;
365
+ declare const Input: react.ForwardRefExoticComponent<InputOwnProps & react.RefAttributes<HTMLInputElement>>;
368
366
 
369
367
  interface DateFieldProps extends Omit<AriaDateFieldProps<DateValue>, 'isDisabled' | 'isReadOnly' | 'isRequired'> {
370
368
  onChange?: (value: DateValue) => void;
371
369
  value?: DateValue | null;
372
370
  defaultValue?: DateValue | null;
373
- ref?: React.RefObject<unknown> | undefined;
374
- triggerRef?: React.RefObject<HTMLDivElement> | undefined;
371
+ ref?: RefObject<unknown> | undefined;
372
+ triggerRef?: RefObject<HTMLDivElement> | undefined;
375
373
  action?: ReactElement;
376
374
  isPressed?: boolean;
377
375
  error?: boolean;
@@ -383,7 +381,7 @@ interface DateFieldProps extends Omit<AriaDateFieldProps<DateValue>, 'isDisabled
383
381
  size?: string;
384
382
  width?: WidthProp['width'];
385
383
  }
386
- declare const DateField: ({ disabled, readOnly, required, error, errorMessage, errorMessageProps, variant, size, action, isPressed, triggerRef, width, ...res }: DateFieldProps) => React.JSX.Element;
384
+ declare const DateField: ({ disabled, readOnly, required, error, errorMessage, errorMessageProps, variant, size, action, isPressed, triggerRef, width, ...res }: DateFieldProps) => react_jsx_runtime.JSX.Element;
387
385
 
388
386
  interface CalendarProps extends Omit<AriaCalendarProps<DateValue$1>, 'isDisabled' | 'isReadOnly'> {
389
387
  disabled?: boolean;
@@ -391,17 +389,17 @@ interface CalendarProps extends Omit<AriaCalendarProps<DateValue$1>, 'isDisabled
391
389
  variant?: string;
392
390
  size?: string;
393
391
  }
394
- declare const Calendar: ({ disabled, readOnly, size, variant, ...rest }: CalendarProps) => React.JSX.Element;
392
+ declare const Calendar: ({ disabled, readOnly, size, variant, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
395
393
 
396
394
  interface CalendarCellProps extends AriaCalendarCellProps {
397
395
  state: CalendarState;
398
396
  }
399
- declare const CalendarCell: (props: CalendarCellProps) => React.JSX.Element;
397
+ declare const CalendarCell: (props: CalendarCellProps) => react_jsx_runtime.JSX.Element;
400
398
 
401
399
  interface CalendarGridProps extends AriaCalendarGridProps {
402
400
  state: CalendarState;
403
401
  }
404
- declare const CalendarGrid: ({ state, ...props }: CalendarGridProps) => React.JSX.Element;
402
+ declare const CalendarGrid: ({ state, ...props }: CalendarGridProps) => react_jsx_runtime.JSX.Element;
405
403
 
406
404
  interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDisabled' | 'isRequired' | 'isReadOnly' | 'isOpen'> {
407
405
  disabled?: boolean;
@@ -413,7 +411,7 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDis
413
411
  variant?: string;
414
412
  size?: string;
415
413
  }
416
- declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) => React.JSX.Element;
414
+ declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
417
415
 
418
416
  type InsetProps = {
419
417
  children: ReactNode;
@@ -426,7 +424,7 @@ type InsetProps = {
426
424
  spaceX?: never;
427
425
  spaceY?: never;
428
426
  };
429
- declare const Inset: ({ space, spaceX, spaceY, children, }: InsetProps) => React.JSX.Element;
427
+ declare const Inset: ({ space, spaceX, spaceY, children, }: InsetProps) => react_jsx_runtime.JSX.Element;
430
428
 
431
429
  interface LinkOwnProps extends PressEvents {
432
430
  disabled?: boolean;
@@ -449,8 +447,8 @@ interface ListProps extends HtmlProps<'ul'> {
449
447
  children?: ReactNode;
450
448
  }
451
449
  declare const List: {
452
- ({ as, children, variant, size, ...props }: ListProps): React.JSX.Element;
453
- Item: ({ children, ...props }: ListItemProps) => React.JSX.Element;
450
+ ({ as, children, variant, size, ...props }: ListProps): react_jsx_runtime.JSX.Element;
451
+ Item: ({ children, ...props }: ListItemProps) => react_jsx_runtime.JSX.Element;
454
452
  };
455
453
 
456
454
  interface MenuTriggerProps {
@@ -467,27 +465,27 @@ interface MenuProps extends Omit<HtmlProps<'ul'>, 'onSelect' | 'size'> {
467
465
  onAction?: (key: Key) => void;
468
466
  }
469
467
  declare const Menu: {
470
- ({ variant, size, ...props }: MenuProps): React.JSX.Element;
471
- Trigger: ({ disabled, open, onOpenChange, children, }: MenuTriggerProps) => React.JSX.Element;
468
+ ({ variant, size, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
469
+ Trigger: ({ disabled, open, onOpenChange, children, }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
472
470
  Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
473
471
  Section: <T_1>(props: _react_types_shared.SectionProps<T_1>) => JSX.Element;
474
472
  };
475
473
 
476
474
  interface ActionMenuProps extends MenuProps {
477
475
  }
478
- declare const ActionMenu: (props: ActionMenuProps) => React.JSX.Element;
476
+ declare const ActionMenu: (props: ActionMenuProps) => react_jsx_runtime.JSX.Element;
479
477
 
480
478
  declare const icons: {
481
- info: () => React.JSX.Element;
482
- warning: () => React.JSX.Element;
483
- error: () => React.JSX.Element;
479
+ info: () => react_jsx_runtime.JSX.Element;
480
+ warning: () => react_jsx_runtime.JSX.Element;
481
+ error: () => react_jsx_runtime.JSX.Element;
484
482
  };
485
483
  interface MessageProps extends HtmlProps<'div'> {
486
484
  messageTitle: ReactNode;
487
485
  variant?: keyof typeof icons;
488
486
  size?: string;
489
487
  }
490
- declare const Message: ({ messageTitle, variant, size, children, ...props }: MessageProps) => React.JSX.Element;
488
+ declare const Message: ({ messageTitle, variant, size, children, ...props }: MessageProps) => react_jsx_runtime.JSX.Element;
491
489
 
492
490
  /**
493
491
  * `react-aria` has a slightly different API for some DOM props.
@@ -500,7 +498,7 @@ interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<A
500
498
  width?: WidthProp['width'];
501
499
  hideStepper?: boolean;
502
500
  }
503
- declare const NumberField: React.ForwardRefExoticComponent<NumberFieldProps & React.RefAttributes<HTMLInputElement>>;
501
+ declare const NumberField: react.ForwardRefExoticComponent<NumberFieldProps & react.RefAttributes<HTMLInputElement>>;
504
502
 
505
503
  interface ModalProps extends HTMLAttributes<HTMLElement> {
506
504
  children?: ReactNode;
@@ -509,21 +507,21 @@ interface ModalProps extends HTMLAttributes<HTMLElement> {
509
507
  dismissable?: boolean;
510
508
  keyboardDismissable?: boolean;
511
509
  }
512
- declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
510
+ declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDivElement>>;
513
511
 
514
512
  interface OverlayProps {
515
513
  open: boolean;
516
514
  children: OverlayProps$1['children'];
517
515
  container?: OverlayProps$1['portalContainer'];
518
516
  }
519
- declare const Overlay: ({ children, container, open }: OverlayProps) => React.JSX.Element | null;
517
+ declare const Overlay: ({ children, container, open }: OverlayProps) => react_jsx_runtime.JSX.Element | null;
520
518
 
521
519
  interface PopoverProps extends Pick<AriaPopoverProps, 'triggerRef' | 'scrollRef' | 'isNonModal'> {
522
520
  keyboardDismissDisabled?: AriaPopoverProps['isKeyboardDismissDisabled'];
523
521
  state: OverlayTriggerState;
524
522
  children: ReactNode;
525
523
  }
526
- declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
524
+ declare const Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
527
525
 
528
526
  interface TrayProps extends AriaModalOverlayProps, StyleProps, OverlayProps$1 {
529
527
  children: ReactNode;
@@ -531,18 +529,18 @@ interface TrayProps extends AriaModalOverlayProps, StyleProps, OverlayProps$1 {
531
529
  }
532
530
  interface TrayWrapperProps extends TrayProps {
533
531
  }
534
- declare const Tray: React.ForwardRefExoticComponent<TrayProps & React.RefAttributes<HTMLDivElement>>;
535
- declare const TrayWrapper: React.ForwardRefExoticComponent<TrayWrapperProps & React.RefAttributes<HTMLDivElement>>;
532
+ declare const Tray: react.ForwardRefExoticComponent<TrayProps & react.RefAttributes<HTMLDivElement>>;
533
+ declare const TrayWrapper: react.ForwardRefExoticComponent<TrayWrapperProps & react.RefAttributes<HTMLDivElement>>;
536
534
 
537
535
  interface UnderlayProps extends HTMLAttributes<HTMLElement> {
538
536
  variant?: string;
539
537
  size?: string;
540
538
  }
541
- declare const Underlay: ({ size, variant, ...props }: UnderlayProps) => React.JSX.Element;
539
+ declare const Underlay: ({ size, variant, ...props }: UnderlayProps) => react_jsx_runtime.JSX.Element;
542
540
 
543
541
  interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
544
542
  }
545
- declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): React.JSX.Element;
543
+ declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
546
544
 
547
545
  interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRquired' | 'isReadOnly ' | 'validationState'> {
548
546
  children: ReactNode[];
@@ -552,7 +550,7 @@ interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRq
552
550
  readOnly?: boolean;
553
551
  error?: boolean;
554
552
  }
555
- declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => React.JSX.Element;
553
+ declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
556
554
 
557
555
  type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
558
556
  interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps>, AriaRadioProps {
@@ -590,10 +588,6 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps & RefAtt
590
588
  Section: typeof Section;
591
589
  }
592
590
 
593
- /**
594
- * Thanks to react-aria: https://react-spectrum.adobe.com/react-aria/useSlider.html
595
- */
596
-
597
591
  interface SliderProps extends Omit<HtmlProps<'input'>, 'step' | 'value' | 'defaultValue' | 'onChange' | 'onFocus' | 'onBlur' | 'size' | 'width'>,
598
592
  /**
599
593
  * `react-aria` has a slightly different API for some events e.g `onChange`, `onFocus`
@@ -611,11 +605,11 @@ Pick<AriaSliderProps, 'maxValue' | 'step' | 'value' | 'defaultValue' | 'onChange
611
605
  * A label + the output value and the slider functionality itself.
612
606
  * The slider itself consists of a track line and a thumb.
613
607
  */
614
- declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
608
+ declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<HTMLDivElement>>;
615
609
 
616
610
  interface SplitProps extends HtmlProps<'div'> {
617
611
  }
618
- declare const Split: (props: SplitProps) => React.JSX.Element;
612
+ declare const Split: (props: SplitProps) => react_jsx_runtime.JSX.Element;
619
613
 
620
614
  interface StackProps extends AlignmentProp, GapSpaceProp {
621
615
  children?: ReactNode;
@@ -623,7 +617,7 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
623
617
  alignX?: keyof typeof alignment.vertical.alignmentX;
624
618
  alignY?: keyof typeof alignment.vertical.alignmentY;
625
619
  }
626
- declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => React.JSX.Element;
620
+ declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
627
621
 
628
622
  type CustomSwitchProps = 'size' | 'value' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyUp';
629
623
  interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps> {
@@ -632,7 +626,7 @@ interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProp
632
626
  size?: string;
633
627
  width?: string;
634
628
  }
635
- declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
629
+ declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
636
630
 
637
631
  interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes'> {
638
632
  variant?: string;
@@ -665,7 +659,7 @@ interface TextProps extends HtmlProps<'p'>, TextAlignProp, FontSizeProp, FontWei
665
659
  color?: string;
666
660
  size?: string;
667
661
  }
668
- declare const Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, ...props }: TextProps) => React.JSX.Element;
662
+ declare const Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
669
663
 
670
664
  /**
671
665
  * `react-aria` has a slightly different API for the above events.
@@ -679,7 +673,7 @@ interface TextAreaProps extends Omit<HtmlProps<'textarea'>, 'value' | 'defaultVa
679
673
  value?: string;
680
674
  defaultValue?: string;
681
675
  }
682
- declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
676
+ declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
683
677
 
684
678
  /**
685
679
  * `react-aria` has a slightly different API for the above events.
@@ -698,7 +692,7 @@ Pick<AriaTextFieldProps, CustomTextFieldEvents>, Pick<FieldBaseProps, 'label' |
698
692
  value?: string;
699
693
  defaultValue?: string;
700
694
  }
701
- declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
695
+ declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
702
696
 
703
697
  interface TilesProps extends GapSpaceProp {
704
698
  children: ReactNode;
@@ -706,7 +700,7 @@ interface TilesProps extends GapSpaceProp {
706
700
  stretch?: boolean;
707
701
  equalHeight?: boolean;
708
702
  }
709
- declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => React.JSX.Element;
703
+ declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
710
704
 
711
705
  interface TooltipTriggerProps extends Omit<TooltipTriggerProps$1, 'isDisabled' | 'isOpen'>, Omit<PositionProps, 'isOpen'> {
712
706
  children: [trigger: ReactElement, menu: ReactElement];
@@ -720,8 +714,8 @@ interface TooltipProps extends HtmlProps<'div'> {
720
714
  size?: string;
721
715
  }
722
716
  declare const Tooltip: {
723
- ({ children, variant, size }: TooltipProps): React.JSX.Element;
724
- Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) => React.JSX.Element;
717
+ ({ children, variant, size }: TooltipProps): react_jsx_runtime.JSX.Element;
718
+ Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
725
719
  };
726
720
 
727
721
  interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | 'validationState'>, LabelableProps, HelpTextProps {
@@ -730,7 +724,7 @@ interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | '
730
724
  error?: boolean;
731
725
  allowsRemoving?: boolean;
732
726
  }
733
- declare const TagGroup: ({ width, required, error, allowsRemoving, ...rest }: TagGroupProps) => React.JSX.Element;
727
+ declare const TagGroup: ({ width, required, error, allowsRemoving, ...rest }: TagGroupProps) => react_jsx_runtime.JSX.Element;
734
728
 
735
729
  declare const Tag: TagComponent;
736
730
  /**
@@ -742,7 +736,7 @@ interface TagComponent extends ItemComponent {
742
736
  Group: typeof TagGroup;
743
737
  }
744
738
 
745
- declare const XLoader: React.ForwardRefExoticComponent<SVGProps & React.RefAttributes<SVGElement>>;
739
+ declare const XLoader: react.ForwardRefExoticComponent<SVGProps & react.RefAttributes<SVGElement>>;
746
740
 
747
741
  interface TabsProps extends Omit<AriaTabListProps<object>, 'orientation' | 'isDisabled'>, GapSpaceProp {
748
742
  size?: 'small' | 'medium' | 'large';
@@ -750,8 +744,8 @@ interface TabsProps extends Omit<AriaTabListProps<object>, 'orientation' | 'isDi
750
744
  variant?: string;
751
745
  }
752
746
  declare const Tabs: {
753
- ({ space, size, disabled, variant, ...rest }: TabsProps): React.JSX.Element;
747
+ ({ space, size, disabled, variant, ...rest }: TabsProps): react_jsx_runtime.JSX.Element;
754
748
  Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
755
749
  };
756
750
 
757
- export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, Button, ButtonOwnProps, ButtonProps, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, Card, CardProps, Center, CenterProps, Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomSwitchProps, CustomTextAreaEvents, CustomTextFieldEvents, DateField, DateFieldProps, DatePicker, DatePickerProps, Dialog, DialogChildProps, DialogProps, Divider, DividerProps, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, Footer, FooterProps, Header, HeaderProps, Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, Label, LabelProps, Link, LinkOwnProps, LinkProps, List, ListProps, MarigoldProvider, MarigoldProviderProps, Menu, MenuProps, Message, MessageProps, Modal, ModalProps, NumberField, NumberFieldProps, Overlay, OverlayProps, Popover, PopoverProps, Radio, RadioComponent, RadioGroupProps, RadioProps, RowProps, Select, SelectComponent, SelectProps, Slider, SliderProps, Split, SplitProps, Stack, StackProps, Switch, SwitchProps, Table, TableProps, Tabs, Tag, TagComponent, Text, TextArea, TextAreaProps, TextField, TextFieldProps, TextProps, Tiles, TilesProps, Tooltip, TooltipProps, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, XLoader, useCheckboxGroupContext, useFieldGroupContext };
751
+ export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, Button, ButtonOwnProps, ButtonProps, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, Card, CardProps, Center, CenterProps, Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomSwitchProps, CustomTextAreaEvents, CustomTextFieldEvents, DateField, DateFieldProps, DatePicker, DatePickerProps, Dialog, DialogChildProps, DialogProps, Divider, DividerProps, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, Footer, FooterProps, Header, HeaderProps, Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, Label, LabelProps, Link, LinkOwnProps, LinkProps, List, ListProps, MarigoldProvider, MarigoldProviderProps, Menu, MenuProps, Message, MessageProps, Modal, ModalProps, NumberField, NumberFieldProps, Overlay, OverlayProps, Popover, PopoverProps, Radio, RadioComponent, RadioGroup, RadioGroupProps, RadioProps, RowProps, Select, SelectComponent, SelectProps, Slider, SliderProps, Split, SplitProps, Stack, StackProps, Switch, SwitchProps, Table, TableProps, Tabs, Tag, TagComponent, Text, TextArea, TextAreaProps, TextField, TextFieldProps, TextProps, Tiles, TilesProps, Tooltip, TooltipProps, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, XLoader, useCheckboxGroupContext, useFieldGroupContext };