@marigold/components 5.6.0 → 6.0.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 +280 -418
  2. package/dist/index.js +1758 -9503
  3. package/dist/index.mjs +1583 -9356
  4. package/package.json +61 -59
package/dist/index.d.ts CHANGED
@@ -1,19 +1,25 @@
1
1
  export { useAsyncList, useListData } from '@react-stately/data';
2
- import { ThemeExtensionsWithParts, CSSObject, ThemeExtension, ThemeComponentProps, ResponsiveStyleValue, StateAttrProps, BoxOwnProps, Theme as Theme$1, ThemeProviderProps, GlobalProps, SVGProps } from '@marigold/system';
3
- export { Box, BoxOwnProps, BoxProps, ThemeProvider, useTheme } from '@marigold/system';
4
2
  import React, { ReactElement, ReactNode, Key, HTMLAttributes, LabelHTMLAttributes, ForwardRefExoticComponent, RefAttributes } from 'react';
5
- import { TreeState } from '@react-stately/tree';
3
+ import { AriaAccordionProps } from '@react-aria/accordion';
6
4
  import * as _react_types_shared from '@react-types/shared';
7
5
  import { ItemElement, ItemProps, Node, PressEvents, FocusableDOMProps, CollectionElement, StyleProps, LabelableProps, HelpTextProps } from '@react-types/shared';
6
+ import { TreeState } from '@react-stately/tree';
7
+ import { GapSpaceProp, AspectProp, WidthProp, AlignmentProp, alignment, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PlaceItemsProp, GridColumn, GridColsAlignProp, StateAttrProps, TextAlignProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
8
+ export { ThemeProvider, useTheme } from '@marigold/system';
9
+ import { NonZeroPercentage, HtmlProps, PropsOf, PolymorphicComponent } from '@marigold/types';
8
10
  import { SearchAutocompleteProps } from '@react-types/autocomplete';
9
- import { HtmlProps, PropsOf, PolymorphicComponent, NonZeroPercentage } from '@marigold/types';
11
+ import { ComboBoxProps as ComboBoxProps$1 } from '@react-types/combobox';
10
12
  import { AriaCheckboxProps, AriaCheckboxGroupProps } from '@react-types/checkbox';
13
+ import { CheckboxGroupState } from '@react-stately/checkbox';
11
14
  import { AriaDialogProps } from '@react-types/dialog';
12
15
  import { SeparatorProps } from '@react-aria/separator';
13
16
  import { AriaDateFieldProps, AriaDatePickerProps } from '@react-aria/datepicker';
14
17
  import { DateValue, CalendarDate } from '@internationalized/date';
15
- import { AriaButtonProps } from '@react-aria/button';
18
+ import { AriaCalendarProps, DateValue as DateValue$1, AriaCalendarCellProps, AriaCalendarGridProps } from '@react-aria/calendar';
19
+ import { CalendarState } from '@react-stately/calendar';
16
20
  import { AriaNumberFieldProps } from '@react-types/numberfield';
21
+ import { OverlayProps as OverlayProps$1, AriaPopoverProps, AriaModalOverlayProps } from '@react-aria/overlays';
22
+ import { OverlayTriggerState } from '@react-stately/overlays';
17
23
  import { AriaRadioGroupProps, AriaRadioProps } from '@react-types/radio';
18
24
  import { Item, Section } from '@react-stately/collections';
19
25
  import { AriaSelectProps } from '@react-types/select';
@@ -24,25 +30,16 @@ import { TableStateProps, RowProps as RowProps$1, TableBody, Cell, Column, Table
24
30
  import { AriaTextFieldProps } from '@react-types/textfield';
25
31
  import { PositionProps } from '@react-types/overlays';
26
32
  import { TooltipTriggerProps as TooltipTriggerProps$1 } from '@react-types/tooltip';
27
- import { AriaCalendarProps, DateValue as DateValue$1, AriaCalendarCellProps, AriaCalendarGridProps } from '@react-aria/calendar';
28
- import { AriaTabListProps } from '@react-types/tabs';
29
- import { AriaAccordionProps } from '@react-aria/accordion';
30
- import { aspect, size } from '@marigold/tokens';
31
- import { ComboBoxProps as ComboBoxProps$1 } from '@react-types/combobox';
32
- import { CheckboxGroupState } from '@react-stately/checkbox';
33
- import { CalendarState } from '@react-stately/calendar';
34
- import { OverlayProps as OverlayProps$1, AriaPopoverProps, AriaModalOverlayProps } from '@react-aria/overlays';
35
- import { OverlayTriggerState } from '@react-stately/overlays';
36
- export { SSRProvider } from '@react-aria/ssr';
37
33
  import { AriaTagGroupProps } from '@react-aria/tag';
38
34
  export { VisuallyHidden } from '@react-aria/visually-hidden';
35
+ import { AriaTabListProps } from '@react-types/tabs';
39
36
 
40
37
  interface AccordionProps extends Omit<AriaAccordionProps<object>, 'children' | 'expandedKeys' | 'disabledKeys' | 'onExpandedChange'> {
41
38
  children: ItemElement<object>[] | ItemElement<object>;
42
39
  selectionMode?: string;
43
40
  }
44
41
  declare const Accordion: {
45
- ({ children, ...props }: AccordionProps): JSX.Element;
42
+ ({ children, ...props }: AccordionProps): React.JSX.Element;
46
43
  Item: <T>(props: AccordionOwnItemProps<T>) => JSX.Element;
47
44
  };
48
45
  interface AccordionOwnItemProps<T> extends ItemProps<T> {
@@ -51,20 +48,34 @@ interface AccordionOwnItemProps<T> extends ItemProps<T> {
51
48
  title: string | ReactElement;
52
49
  }
53
50
 
54
- interface AccordionThemeExtension extends ThemeExtensionsWithParts<'Accordion', ['button', 'item']> {
55
- }
56
51
  interface AccordionItemProps {
57
52
  item: Node<object>;
58
53
  state: TreeState<object>;
59
- css?: CSSObject;
60
54
  title: string | ReactNode;
61
55
  variant?: string;
62
56
  size?: string;
63
57
  }
64
- declare const AccordionItem: ({ item, state, css, title, variant, size, ...props }: AccordionItemProps) => JSX.Element;
58
+ declare const AccordionItem: ({ item, state, title, variant, size, ...props }: AccordionItemProps) => React.JSX.Element;
59
+
60
+ interface AsideProps extends GapSpaceProp {
61
+ children: [ReactElement, ReactElement];
62
+ side?: 'left' | 'right';
63
+ sideWidth?: string;
64
+ stretch?: boolean;
65
+ wrap?: NonZeroPercentage;
66
+ }
67
+ declare const Aside: ({ children, sideWidth, space, side, stretch, wrap, }: AsideProps) => React.JSX.Element;
65
68
 
66
- interface AutocompleteThemeExtension extends ThemeExtensionsWithParts<'Autocomplete', ['icon', 'clear']> {
69
+ /**
70
+ * Based on https://theme-ui.com/components/aspect-ratio
71
+ */
72
+
73
+ interface AspectProps extends HtmlProps<'div'>, AspectProp {
74
+ children?: ReactNode;
75
+ maxWidth?: string;
67
76
  }
77
+ declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => React.JSX.Element;
78
+
68
79
  interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDisabled' | 'isRequired' | 'isReadonly' | 'validationState' | 'icon' | 'onInputChange' | 'inputValue' | 'defaultInputValue'> {
69
80
  disabled?: boolean;
70
81
  required?: boolean;
@@ -88,31 +99,52 @@ interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDis
88
99
  onSubmit?: (key: Key | null, value: string | null) => void;
89
100
  variant?: string;
90
101
  size?: string;
91
- width?: string;
102
+ width?: WidthProp['width'];
92
103
  }
93
104
  declare const Autocomplete: {
94
- ({ disabled, required, readOnly, error, onChange, value, defaultValue, variant, size, width, ...rest }: AutocompleteProps): JSX.Element;
105
+ ({ disabled, required, readOnly, error, onChange, value, defaultValue, variant, size, width, ...rest }: AutocompleteProps): React.JSX.Element;
95
106
  Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
96
107
  };
97
108
 
98
- interface BadgeThemeExtension extends ThemeExtension<'Badge'> {
109
+ interface ComboBoxProps extends Omit<ComboBoxProps$1<object>, 'isDisabled' | 'isRequired' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange'> {
110
+ variant?: string;
111
+ size?: string;
112
+ error?: boolean;
113
+ width?: WidthProp['width'];
114
+ disabled?: boolean;
115
+ required?: boolean;
116
+ readOnly?: boolean;
117
+ defaultValue?: ComboBoxProps$1<object>['defaultInputValue'];
118
+ value?: ComboBoxProps$1<object>['inputValue'];
119
+ onChange?: ComboBoxProps$1<object>['onInputChange'];
99
120
  }
121
+ declare const ComboBox: {
122
+ ({ error, width, disabled, required, readOnly, defaultValue, value, onChange, variant, size, ...rest }: ComboBoxProps): React.JSX.Element;
123
+ Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
124
+ };
125
+
100
126
  interface BadgeProps extends HtmlProps<'div'> {
101
127
  children?: React.ReactNode;
102
128
  variant?: string;
103
129
  size?: string;
104
130
  }
105
- declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => JSX.Element;
131
+ declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => React.JSX.Element;
106
132
 
107
- interface BodyThemeExtension extends ThemeExtension<'Body'> {
108
- }
109
- interface BodyProps extends ThemeComponentProps, HtmlProps<'section'> {
133
+ interface BreakoutProps extends HtmlProps<'div'>, AlignmentProp {
110
134
  children?: ReactNode;
135
+ height?: string;
136
+ alignX?: keyof typeof alignment.horizontal.alignmentX;
137
+ alignY?: keyof typeof alignment.horizontal.alignmentY;
111
138
  }
112
- declare const Body: ({ children, variant, size, ...props }: BodyProps) => JSX.Element;
139
+ declare const Breakout: ({ height, children, orientation, alignX, alignY, ...props }: BreakoutProps) => React.JSX.Element;
113
140
 
114
- interface ButtonThemeExtension extends ThemeExtension<'Button'> {
141
+ interface BodyProps extends HtmlProps<'section'> {
142
+ children?: ReactNode;
143
+ variant?: string;
144
+ size?: string;
115
145
  }
146
+ declare const Body: ({ children, variant, size, ...props }: BodyProps) => React.JSX.Element;
147
+
116
148
  interface ButtonOwnProps extends PressEvents, FocusableDOMProps, HtmlProps<'button'> {
117
149
  children?: ReactNode;
118
150
  variant?: string;
@@ -123,36 +155,33 @@ interface ButtonProps extends PropsOf<typeof Button> {
123
155
  }
124
156
  declare const Button: PolymorphicComponent<"button", ButtonOwnProps>;
125
157
 
126
- interface CardThemeExtension extends ThemeExtension<'Card'> {
158
+ interface CardProps extends HtmlProps<'div'>, GapSpaceProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
159
+ children?: ReactNode;
160
+ variant?: string;
161
+ size?: string;
162
+ p?: PaddingSpaceProp['space'];
163
+ px?: PaddingSpacePropX['spaceX'];
164
+ py?: PaddingSpacePropY['spaceY'];
127
165
  }
128
- interface CardProps extends ThemeComponentProps, HtmlProps<'div'> {
166
+ declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => React.JSX.Element;
167
+
168
+ interface CenterProps extends HtmlProps<'div'>, GapSpaceProp {
129
169
  children?: ReactNode;
130
- space?: ResponsiveStyleValue<string>;
131
- p?: ResponsiveStyleValue<string>;
132
- px?: ResponsiveStyleValue<string>;
133
- py?: ResponsiveStyleValue<string>;
134
- pt?: ResponsiveStyleValue<string>;
135
- pb?: ResponsiveStyleValue<string>;
136
- pl?: ResponsiveStyleValue<string>;
137
- pr?: ResponsiveStyleValue<string>;
138
- }
139
- declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => JSX.Element;
140
-
141
- interface CheckboxThemeExtension extends ThemeExtensionsWithParts<'Checkbox', [
142
- 'container',
143
- 'label',
144
- 'checkbox'
145
- ]> {
170
+ maxWidth?: string;
146
171
  }
172
+ declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => React.JSX.Element;
173
+
147
174
  /**
148
175
  * `react-aria` has a slightly different API for the above events.
149
176
  * Thus, we adjust our regular props to match them.
150
177
  */
151
178
  type CustomCheckboxProps = 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp';
152
- interface CheckboxProps extends ThemeComponentProps, Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<AriaCheckboxProps, CustomCheckboxProps> {
179
+ interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<AriaCheckboxProps, CustomCheckboxProps> {
153
180
  children?: ReactNode;
154
181
  indeterminate?: boolean;
155
182
  error?: boolean;
183
+ variant?: string;
184
+ size?: string;
156
185
  }
157
186
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
158
187
 
@@ -177,8 +206,36 @@ interface CheckboxGroupProps extends Omit<HtmlProps<'div'>, 'onChange'>, AriaChe
177
206
  value?: string[];
178
207
  defaultValue?: string[];
179
208
  onChange?: (value: string[]) => void;
209
+ width?: WidthProp['width'];
180
210
  }
181
- declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, ...rest }: CheckboxGroupProps) => JSX.Element;
211
+ declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => React.JSX.Element;
212
+
213
+ interface ColumnsProps extends GapSpaceProp {
214
+ children?: ReactNode;
215
+ columns: Array<number>;
216
+ collapseAt?: string | 0;
217
+ stretch?: boolean;
218
+ }
219
+ declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => React.JSX.Element;
220
+
221
+ interface ContainerProps extends HtmlProps<'div'>, PlaceItemsProp, GridColumn, GridColsAlignProp {
222
+ children?: ReactNode;
223
+ contentType?: 'content' | 'header';
224
+ size?: keyof typeof content | keyof typeof header;
225
+ align?: 'left' | 'right' | 'center';
226
+ alignItems?: PlaceItemsProp['align'];
227
+ }
228
+ declare const content: {
229
+ small: string;
230
+ medium: string;
231
+ large: string;
232
+ };
233
+ declare const header: {
234
+ small: string;
235
+ medium: string;
236
+ large: string;
237
+ };
238
+ declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) => React.JSX.Element;
182
239
 
183
240
  interface DialogControllerProps {
184
241
  children: ReactNode;
@@ -199,8 +256,6 @@ interface DialogContextProps {
199
256
  close?: () => void;
200
257
  }
201
258
 
202
- interface DialogThemeExtension extends ThemeExtensionsWithParts<'Dialog', ['container', 'closeButton']> {
203
- }
204
259
  interface DialogChildProps {
205
260
  close: DialogContextProps['close'];
206
261
  titleProps: HTMLAttributes<HTMLElement>;
@@ -212,36 +267,29 @@ interface DialogProps extends AriaDialogProps {
212
267
  closeButton?: boolean;
213
268
  }
214
269
  declare const Dialog: {
215
- ({ children, variant, size, closeButton, ...props }: DialogProps): JSX.Element;
216
- Trigger: ({ children, dismissable, keyboardDismissable, }: DialogTriggerProps) => JSX.Element;
217
- Controller: ({ children, dismissable, keyboardDismissable, open, onOpenChange, }: DialogControllerProps) => JSX.Element;
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;
218
273
  };
219
274
 
220
- interface DividerThemeExtension extends ThemeExtension<'Divider'> {
221
- }
222
275
  interface DividerProps extends SeparatorProps {
223
276
  variant?: string;
224
277
  }
225
- declare const Divider: ({ variant, ...props }: DividerProps) => JSX.Element;
278
+ declare const Divider: ({ variant, ...props }: DividerProps) => React.JSX.Element;
226
279
 
227
- interface LabelThemeExtension extends ThemeExtension<'Label'> {
228
- }
229
280
  interface LabelProps extends HtmlProps<'label'> {
230
281
  as?: 'label' | 'span';
231
282
  variant?: string;
232
283
  size?: string;
233
- required?: boolean;
234
284
  labelWidth?: string;
235
285
  }
236
- declare const Label: ({ as, required, children, variant, size, labelWidth, ...props }: LabelProps) => JSX.Element;
286
+ declare const Label: ({ as, children, variant, size, labelWidth, ...props }: LabelProps) => React.JSX.Element;
237
287
 
238
- interface FieldBaseProps {
288
+ interface FieldBaseProps extends WidthProp {
239
289
  children?: ReactNode;
240
290
  variant?: string;
241
291
  size?: string;
242
- width?: string;
243
292
  disabled?: boolean;
244
- required?: boolean;
245
293
  label?: ReactNode;
246
294
  labelProps?: LabelHTMLAttributes<HTMLLabelElement> & Pick<LabelProps, 'as'>;
247
295
  description?: ReactNode;
@@ -251,9 +299,7 @@ interface FieldBaseProps {
251
299
  errorMessageProps?: HTMLAttributes<HTMLElement>;
252
300
  stateProps?: StateAttrProps;
253
301
  }
254
- interface FieldThemeExtension extends ThemeExtension<'Field'> {
255
- }
256
- declare const FieldBase: ({ children, variant, size, width, disabled, required, label, labelProps, description, descriptionProps, error, errorMessage, errorMessageProps, stateProps, ...props }: FieldBaseProps) => JSX.Element;
302
+ declare const FieldBase: ({ children, variant, size, width, disabled, label, labelProps, description, descriptionProps, error, errorMessage, errorMessageProps, stateProps, ...props }: FieldBaseProps) => React.JSX.Element;
257
303
 
258
304
  interface FieldGroupContextProps {
259
305
  labelWidth?: string;
@@ -264,89 +310,125 @@ interface FieldGroupProps {
264
310
  labelWidth?: string;
265
311
  children: ReactNode;
266
312
  }
267
- declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) => JSX.Element;
313
+ declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) => React.JSX.Element;
268
314
 
269
- interface DateFieldThemeExtension extends ThemeExtensionsWithParts<'DateField', [
270
- 'segment',
271
- 'placeholder',
272
- 'field',
273
- 'calendarButton',
274
- 'segmentsContainer'
275
- ]> {
276
- }
277
- interface DateFieldProps extends Omit<AriaDateFieldProps<DateValue>, 'isDisabled' | 'isReadOnly' | 'isRequired'> {
278
- onChange?: (value: DateValue) => void;
279
- value?: DateValue | null;
280
- defaultValue?: DateValue | null;
281
- ref?: React.RefObject<unknown> | undefined;
282
- icon?: ReactElement;
283
- action?: ReactElement;
284
- buttonProps?: AriaButtonProps<'button'>;
285
- isPressed?: boolean;
286
- error?: boolean;
287
- errorMessageProps?: HTMLAttributes<HTMLElement>;
288
- disabled?: boolean;
289
- readOnly?: boolean;
290
- required?: boolean;
315
+ interface FooterProps extends HtmlProps<'footer'> {
316
+ children?: ReactNode;
291
317
  variant?: string;
292
318
  size?: string;
293
319
  }
294
- declare const DateField: ({ disabled, readOnly, required, error, errorMessage, errorMessageProps, buttonProps, variant, size, icon, action, isPressed, ...res }: DateFieldProps) => JSX.Element;
295
-
296
- interface FooterThemeExtension extends ThemeExtension<'Footer'> {
297
- }
298
- interface FooterProps extends ThemeComponentProps, HtmlProps<'footer'> {
299
- children?: ReactNode;
300
- }
301
- declare const Footer: ({ children, variant, size, ...props }: FooterProps) => JSX.Element;
320
+ declare const Footer: ({ children, variant, size, ...props }: FooterProps) => React.JSX.Element;
302
321
 
303
- interface HeaderThemeExtension extends ThemeExtension<'Header'> {
304
- }
305
- interface HeaderProps extends ThemeComponentProps, HtmlProps<'header'> {
322
+ interface HeaderProps extends HtmlProps<'header'> {
306
323
  children?: ReactNode;
324
+ variant?: string;
325
+ size?: string;
307
326
  }
308
- declare const Header: ({ children, variant, size, ...props }: HeaderProps) => JSX.Element;
327
+ declare const Header: ({ children, variant, size, className, ...props }: HeaderProps) => React.JSX.Element;
309
328
 
310
- interface HeadlineThemeExtension extends ThemeExtension<'Headline'> {
311
- }
312
- interface HeadlineProps extends ThemeComponentProps, HtmlProps<'h1'> {
329
+ interface HeadlineProps extends HtmlProps<'h1'>, TextAlignProp {
313
330
  children?: ReactNode;
314
331
  level?: '1' | '2' | '3' | '4' | '5' | '6';
315
- align?: CSSObject['textAlign'];
316
332
  color?: string;
333
+ variant?: string;
334
+ size?: string;
335
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
317
336
  }
318
- declare const Headline: ({ children, variant, size, align, color, level, ...props }: HeadlineProps) => JSX.Element;
319
-
320
- interface HelpTextThemeExtension extends ThemeExtensionsWithParts<'HelpText', ['container', 'icon']> {
321
- }
337
+ declare const Headline: ({ children, variant, size, align, color, level, as, ...props }: HeadlineProps) => React.JSX.Element;
322
338
 
323
- interface ImageThemeExtension extends ThemeExtension<'Image'> {
324
- }
325
- interface ImageProps extends HtmlProps<'img'> {
339
+ interface ImageProps extends HtmlProps<'img'>, ObjectFitProp, ObjectPositionProp {
326
340
  variant?: string;
327
341
  size?: string;
328
- fit?: CSSObject['objectFit'];
329
- position?: CSSObject['objectPosition'];
330
342
  children?: never;
331
343
  alt: string;
332
344
  }
333
- declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => JSX.Element;
345
+ declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => React.JSX.Element;
334
346
 
335
- interface InputThemeExtension extends ThemeExtensionsWithParts<'Input', ['input', 'icon', 'container']> {
347
+ interface InlineProps extends AlignmentProp, GapSpaceProp {
348
+ children?: ReactNode;
349
+ alignX?: keyof typeof alignment.horizontal.alignmentX;
350
+ alignY?: keyof typeof alignment.horizontal.alignmentY;
336
351
  }
337
- interface InputOwnProps extends Omit<HtmlProps<'input'>, 'size'> {
352
+ declare const Inline: ({ space, orientation, alignX, alignY, children, ...props }: InlineProps) => React.JSX.Element;
353
+
354
+ interface InputOwnProps extends Omit<HtmlProps<'input'>, 'size' | 'className'> {
338
355
  icon?: ReactElement;
339
356
  action?: ReactElement;
340
357
  variant?: string;
341
358
  size?: string;
359
+ className?: {
360
+ container?: string;
361
+ input?: string;
362
+ icon?: string;
363
+ };
342
364
  }
343
- interface InputProps extends Omit<React.ComponentPropsWithRef<'input'>, 'size'>, InputOwnProps {
365
+ interface InputProps extends Omit<React.ComponentPropsWithRef<'input'>, 'size' | 'className'>, InputOwnProps {
344
366
  }
345
367
  declare const Input: React.ForwardRefExoticComponent<InputOwnProps & React.RefAttributes<HTMLInputElement>>;
346
368
 
347
- interface LinkThemeExtension extends ThemeExtension<'Link'> {
369
+ interface DateFieldProps extends Omit<AriaDateFieldProps<DateValue>, 'isDisabled' | 'isReadOnly' | 'isRequired'> {
370
+ onChange?: (value: DateValue) => void;
371
+ value?: DateValue | null;
372
+ defaultValue?: DateValue | null;
373
+ ref?: React.RefObject<unknown> | undefined;
374
+ triggerRef?: React.RefObject<HTMLDivElement> | undefined;
375
+ action?: ReactElement;
376
+ isPressed?: boolean;
377
+ error?: boolean;
378
+ errorMessageProps?: HTMLAttributes<HTMLElement>;
379
+ disabled?: boolean;
380
+ readOnly?: boolean;
381
+ required?: boolean;
382
+ variant?: string;
383
+ size?: string;
384
+ width?: WidthProp['width'];
348
385
  }
349
- interface LinkOwnProps extends PressEvents, BoxOwnProps {
386
+ declare const DateField: ({ disabled, readOnly, required, error, errorMessage, errorMessageProps, variant, size, action, isPressed, triggerRef, width, ...res }: DateFieldProps) => React.JSX.Element;
387
+
388
+ interface CalendarProps extends Omit<AriaCalendarProps<DateValue$1>, 'isDisabled' | 'isReadOnly'> {
389
+ disabled?: boolean;
390
+ readOnly?: boolean;
391
+ variant?: string;
392
+ size?: string;
393
+ }
394
+ declare const Calendar: ({ disabled, readOnly, size, variant, ...rest }: CalendarProps) => React.JSX.Element;
395
+
396
+ interface CalendarCellProps extends AriaCalendarCellProps {
397
+ state: CalendarState;
398
+ }
399
+ declare const CalendarCell: (props: CalendarCellProps) => React.JSX.Element;
400
+
401
+ interface CalendarGridProps extends AriaCalendarGridProps {
402
+ state: CalendarState;
403
+ }
404
+ declare const CalendarGrid: ({ state, ...props }: CalendarGridProps) => React.JSX.Element;
405
+
406
+ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDisabled' | 'isRequired' | 'isReadOnly' | 'isOpen'> {
407
+ disabled?: boolean;
408
+ required?: boolean;
409
+ readonly?: boolean;
410
+ open?: boolean;
411
+ error?: boolean;
412
+ shouldCloseOnSelect?: boolean;
413
+ variant?: string;
414
+ size?: string;
415
+ }
416
+ declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) => React.JSX.Element;
417
+
418
+ type InsetProps = {
419
+ children: ReactNode;
420
+ space?: never;
421
+ spaceX?: PaddingSpacePropX['spaceX'];
422
+ spaceY?: PaddingSpacePropY['spaceY'];
423
+ } | {
424
+ children: ReactNode;
425
+ space?: PaddingSpaceProp['space'];
426
+ spaceX?: never;
427
+ spaceY?: never;
428
+ };
429
+ declare const Inset: ({ space, spaceX, spaceY, children, }: InsetProps) => React.JSX.Element;
430
+
431
+ interface LinkOwnProps extends PressEvents {
350
432
  disabled?: boolean;
351
433
  variant?: string;
352
434
  size?: string;
@@ -360,8 +442,6 @@ interface ListItemProps extends HtmlProps<'li'> {
360
442
  children?: ReactNode;
361
443
  }
362
444
 
363
- interface ListThemeExtension extends ThemeExtensionsWithParts<'List', ['ul', 'ol', 'item']> {
364
- }
365
445
  interface ListProps extends HtmlProps<'ul'> {
366
446
  variant?: string;
367
447
  size?: string;
@@ -369,19 +449,10 @@ interface ListProps extends HtmlProps<'ul'> {
369
449
  children?: ReactNode;
370
450
  }
371
451
  declare const List: {
372
- ({ as, children, variant, size, ...props }: ListProps): JSX.Element;
373
- Item: ({ children, ...props }: ListItemProps) => JSX.Element;
452
+ ({ as, children, variant, size, ...props }: ListProps): React.JSX.Element;
453
+ Item: ({ children, ...props }: ListItemProps) => React.JSX.Element;
374
454
  };
375
455
 
376
- interface ListBoxThemeExtension extends ThemeExtensionsWithParts<'ListBox', [
377
- 'container',
378
- 'list',
379
- 'option',
380
- 'section',
381
- 'sectionTitle'
382
- ]> {
383
- }
384
-
385
456
  interface MenuTriggerProps {
386
457
  children: [trigger: ReactNode, menu: ReactNode];
387
458
  disabled?: boolean;
@@ -389,8 +460,6 @@ interface MenuTriggerProps {
389
460
  onOpenChange?: (isOpen: boolean) => void;
390
461
  }
391
462
 
392
- interface MenuThemeExtension extends ThemeExtensionsWithParts<'Menu', ['container', 'item', 'section']> {
393
- }
394
463
  interface MenuProps extends Omit<HtmlProps<'ul'>, 'onSelect' | 'size'> {
395
464
  children: CollectionElement<object> | CollectionElement<object>[];
396
465
  variant?: string;
@@ -398,32 +467,28 @@ interface MenuProps extends Omit<HtmlProps<'ul'>, 'onSelect' | 'size'> {
398
467
  onAction?: (key: Key) => void;
399
468
  }
400
469
  declare const Menu: {
401
- ({ variant, size, ...props }: MenuProps): JSX.Element;
402
- Trigger: ({ disabled, open, onOpenChange, children, }: MenuTriggerProps) => JSX.Element;
470
+ ({ variant, size, ...props }: MenuProps): React.JSX.Element;
471
+ Trigger: ({ disabled, open, onOpenChange, children, }: MenuTriggerProps) => React.JSX.Element;
403
472
  Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
404
473
  Section: <T_1>(props: _react_types_shared.SectionProps<T_1>) => JSX.Element;
405
474
  };
406
475
 
407
476
  interface ActionMenuProps extends MenuProps {
408
477
  }
409
- declare const ActionMenu: (props: ActionMenuProps) => JSX.Element;
478
+ declare const ActionMenu: (props: ActionMenuProps) => React.JSX.Element;
410
479
 
411
- interface MessageThemeExtension extends ThemeExtensionsWithParts<'Message', [
412
- 'container',
413
- 'icon',
414
- 'title',
415
- 'content'
416
- ]> {
417
- }
480
+ declare const icons: {
481
+ info: () => React.JSX.Element;
482
+ warning: () => React.JSX.Element;
483
+ error: () => React.JSX.Element;
484
+ };
418
485
  interface MessageProps extends HtmlProps<'div'> {
419
486
  messageTitle: ReactNode;
420
- variant?: string;
487
+ variant?: keyof typeof icons;
421
488
  size?: string;
422
489
  }
423
- declare const Message: ({ messageTitle, variant, size, children, ...props }: MessageProps) => JSX.Element;
490
+ declare const Message: ({ messageTitle, variant, size, children, ...props }: MessageProps) => React.JSX.Element;
424
491
 
425
- interface NumberFieldThemeExtension extends ThemeExtensionsWithParts<'NumberField', ['group', 'stepper']> {
426
- }
427
492
  /**
428
493
  * `react-aria` has a slightly different API for some DOM props.
429
494
  * Thus, we adjust our regular props to match them.
@@ -432,7 +497,7 @@ type CustomProps = 'size' | 'width' | 'type' | 'value' | 'defaultValue' | 'step'
432
497
  interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
433
498
  variant?: string;
434
499
  size?: string;
435
- width?: string;
500
+ width?: WidthProp['width'];
436
501
  hideStepper?: boolean;
437
502
  }
438
503
  declare const NumberField: React.ForwardRefExoticComponent<NumberFieldProps & React.RefAttributes<HTMLInputElement>>;
@@ -451,7 +516,7 @@ interface OverlayProps {
451
516
  children: OverlayProps$1['children'];
452
517
  container?: OverlayProps$1['portalContainer'];
453
518
  }
454
- declare const Overlay: ({ children, container, open }: OverlayProps) => JSX.Element | null;
519
+ declare const Overlay: ({ children, container, open }: OverlayProps) => React.JSX.Element | null;
455
520
 
456
521
  interface PopoverProps extends Pick<AriaPopoverProps, 'triggerRef' | 'scrollRef' | 'isNonModal'> {
457
522
  keyboardDismissDisabled?: AriaPopoverProps['isKeyboardDismissDisabled'];
@@ -469,29 +534,31 @@ interface TrayWrapperProps extends TrayProps {
469
534
  declare const Tray: React.ForwardRefExoticComponent<TrayProps & React.RefAttributes<HTMLDivElement>>;
470
535
  declare const TrayWrapper: React.ForwardRefExoticComponent<TrayWrapperProps & React.RefAttributes<HTMLDivElement>>;
471
536
 
472
- interface UnderlayThemeExtension extends ThemeExtension<'Underlay'> {
473
- }
474
537
  interface UnderlayProps extends HTMLAttributes<HTMLElement> {
475
538
  variant?: string;
476
539
  size?: string;
477
540
  }
478
- declare const Underlay: ({ size, variant, ...props }: UnderlayProps) => JSX.Element;
541
+ declare const Underlay: ({ size, variant, ...props }: UnderlayProps) => React.JSX.Element;
542
+
543
+ interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
544
+ }
545
+ declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): React.JSX.Element;
479
546
 
480
547
  interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRquired' | 'isReadOnly ' | 'validationState'> {
481
548
  children: ReactNode[];
482
- width?: string;
549
+ width?: WidthProp['width'];
483
550
  required?: boolean;
484
551
  disabled?: boolean;
485
552
  readOnly?: boolean;
486
553
  error?: boolean;
487
554
  }
488
- declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => JSX.Element;
555
+ declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => React.JSX.Element;
489
556
 
490
- interface RadioThemeExtension extends ThemeExtensionsWithParts<'Radio', ['container', 'label', 'radio']> {
491
- }
492
557
  type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
493
- interface RadioProps extends ThemeComponentProps, Omit<HtmlProps<'input'>, CustomRadioProps>, AriaRadioProps {
558
+ interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps>, AriaRadioProps {
494
559
  width?: string;
560
+ variant?: string;
561
+ size?: string;
495
562
  disabled?: boolean;
496
563
  }
497
564
  declare const Radio: RadioComponent;
@@ -503,12 +570,10 @@ interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttri
503
570
  Group: typeof RadioGroup;
504
571
  }
505
572
 
506
- interface SelectThemeExtension extends ThemeExtensionsWithParts<'Select', ['container', 'button', 'icon']> {
507
- }
508
573
  interface SelectProps extends Omit<AriaSelectProps<object>, 'autoComplete' | 'isOpen' | 'isLoading' | 'onLoadMore' | 'isDisabled' | 'isRequired' | 'validationState' | 'onSelectionChange'>, Omit<HtmlProps<'select'>, 'onKeyUp' | 'onKeyDown' | 'onFocus' | 'onBlur' | 'children' | 'size' | 'onChange'> {
509
574
  variant?: string;
510
575
  size?: string;
511
- width?: string;
576
+ width?: WidthProp['width'];
512
577
  open?: boolean;
513
578
  disabled?: boolean;
514
579
  required?: boolean;
@@ -529,13 +594,6 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps & RefAtt
529
594
  * Thanks to react-aria: https://react-spectrum.adobe.com/react-aria/useSlider.html
530
595
  */
531
596
 
532
- interface SliderThemeExtension extends ThemeExtensionsWithParts<'Slider', [
533
- 'track',
534
- 'thumb',
535
- 'label',
536
- 'output'
537
- ]> {
538
- }
539
597
  interface SliderProps extends Omit<HtmlProps<'input'>, 'step' | 'value' | 'defaultValue' | 'onChange' | 'onFocus' | 'onBlur' | 'size' | 'width'>,
540
598
  /**
541
599
  * `react-aria` has a slightly different API for some events e.g `onChange`, `onFocus`
@@ -555,29 +613,27 @@ Pick<AriaSliderProps, 'maxValue' | 'step' | 'value' | 'defaultValue' | 'onChange
555
613
  */
556
614
  declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
557
615
 
558
- interface SwitchThemeExtension extends ThemeExtensionsWithParts<'Switch', [
559
- 'container',
560
- 'label',
561
- 'track',
562
- 'thumb'
563
- ]> {
616
+ interface SplitProps extends HtmlProps<'div'> {
617
+ }
618
+ declare const Split: (props: SplitProps) => React.JSX.Element;
619
+
620
+ interface StackProps extends AlignmentProp, GapSpaceProp {
621
+ children?: ReactNode;
622
+ stretch?: boolean;
623
+ alignX?: keyof typeof alignment.vertical.alignmentX;
624
+ alignY?: keyof typeof alignment.vertical.alignmentY;
564
625
  }
626
+ declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => React.JSX.Element;
627
+
565
628
  type CustomSwitchProps = 'size' | 'value' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyUp';
566
629
  interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps> {
567
- checked?: boolean;
630
+ selected?: boolean;
568
631
  variant?: string;
569
632
  size?: string;
570
633
  width?: string;
571
634
  }
572
635
  declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
573
636
 
574
- interface TableThemeExtension extends ThemeExtensionsWithParts<'Table', [
575
- 'table',
576
- 'header',
577
- 'row',
578
- 'cell'
579
- ]> {
580
- }
581
637
  interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes'> {
582
638
  variant?: string;
583
639
  size?: string;
@@ -601,23 +657,14 @@ interface Table {
601
657
  Row: (props: RowProps) => JSX.Element;
602
658
  }
603
659
 
604
- interface TextThemeExtension extends ThemeExtension<'Text'> {
605
- }
606
- interface TextProps extends ThemeComponentProps, HtmlProps<'p'> {
607
- display?: CSSObject['display'];
608
- align?: CSSObject['textAlign'];
609
- color?: string;
610
- cursor?: string;
611
- fontSize?: string;
612
- fontWeight?: string;
613
- fontStyle?: string;
614
- outline?: string;
660
+ interface TextProps extends HtmlProps<'p'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
615
661
  children?: React.ReactNode;
662
+ variant?: string;
663
+ color?: string;
664
+ size?: string;
616
665
  }
617
- declare const Text: ({ variant, size, display, align, color, fontSize, fontStyle, fontWeight, cursor, outline, children, ...props }: TextProps) => JSX.Element;
666
+ declare const Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, ...props }: TextProps) => React.JSX.Element;
618
667
 
619
- interface TextAreaThemeExtension extends ThemeExtension<'TextArea'> {
620
- }
621
668
  /**
622
669
  * `react-aria` has a slightly different API for the above events.
623
670
  * Thus, we adjust our regular props to match them.
@@ -626,223 +673,12 @@ type CustomTextAreaEvents = 'onChange' | 'onFocus' | 'onBlur' | 'onCopy' | 'onSe
626
673
  interface TextAreaProps extends Omit<HtmlProps<'textarea'>, 'value' | 'defaultValue' | 'size' | CustomTextAreaEvents>, Pick<AriaTextFieldProps, CustomTextAreaEvents>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
627
674
  variant?: string;
628
675
  size?: string;
629
- width?: string;
676
+ width?: WidthProp['width'];
630
677
  value?: string;
631
678
  defaultValue?: string;
632
679
  }
633
680
  declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
634
681
 
635
- interface TooltipTriggerProps extends Omit<TooltipTriggerProps$1, 'isDisabled' | 'isOpen'>, Omit<PositionProps, 'isOpen'> {
636
- children: [trigger: ReactElement, menu: ReactElement];
637
- disabled?: boolean;
638
- open?: boolean;
639
- }
640
-
641
- interface TooltipThemeExtension extends ThemeExtensionsWithParts<'Tooltip', ['container', 'arrow']> {
642
- }
643
- interface TooltipProps extends HtmlProps<'div'> {
644
- children?: ReactNode;
645
- variant?: string;
646
- size?: string;
647
- }
648
- declare const Tooltip: {
649
- ({ children, variant, size }: TooltipProps): JSX.Element;
650
- Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) => JSX.Element;
651
- };
652
-
653
- interface CalendarProps extends Omit<AriaCalendarProps<DateValue$1>, 'isDisabled' | 'isReadOnly'> {
654
- disabled?: boolean;
655
- readOnly?: boolean;
656
- variant?: string;
657
- size?: string;
658
- }
659
- interface CalendarThemeExtension extends ThemeExtensionsWithParts<'Calendar', [
660
- 'calendar',
661
- 'calendarCell',
662
- 'calendarControllers'
663
- ]> {
664
- }
665
- declare const Calendar: ({ disabled, readOnly, size, variant, ...rest }: CalendarProps) => JSX.Element;
666
-
667
- interface CalendarCellProps extends AriaCalendarCellProps {
668
- state: CalendarState;
669
- }
670
- declare const CalendarCell: (props: CalendarCellProps) => JSX.Element;
671
-
672
- interface CalendarGridProps extends AriaCalendarGridProps {
673
- state: CalendarState;
674
- }
675
- declare const CalendarGrid: ({ state, ...props }: CalendarGridProps) => JSX.Element;
676
-
677
- interface DatePickerThemeExtension extends ThemeExtensionsWithParts<'DatePicker', ['field', 'actionButton']> {
678
- }
679
- interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDisabled' | 'isRequired' | 'isReadOnly' | 'isOpen'> {
680
- disabled?: boolean;
681
- required?: boolean;
682
- readonly?: boolean;
683
- open?: boolean;
684
- error?: boolean;
685
- shouldCloseOnSelect?: boolean;
686
- }
687
- declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, ...rest }: DatePickerProps) => JSX.Element;
688
-
689
- interface TagThemeExtension extends ThemeExtensionsWithParts<'Tag', ['tag', 'gridCell', 'closeButton']> {
690
- }
691
-
692
- interface TabsThemeExtension extends ThemeExtensionsWithParts<'Tabs', ['tabs', 'tab', 'tabPanel']> {
693
- }
694
- interface TabsProps extends Omit<AriaTabListProps<object>, 'orientation' | 'isDisabled'> {
695
- gap?: number;
696
- size?: 'small' | 'medium' | 'large';
697
- disabled?: boolean;
698
- }
699
- declare const Tabs: {
700
- ({ gap, size, disabled, ...res }: TabsProps): JSX.Element;
701
- Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
702
- };
703
-
704
- interface ComponentStyles extends AccordionThemeExtension, AutocompleteThemeExtension, BadgeThemeExtension, ButtonThemeExtension, CardThemeExtension, CheckboxThemeExtension, BodyThemeExtension, DialogThemeExtension, DividerThemeExtension, DateFieldThemeExtension, FieldThemeExtension, FooterThemeExtension, HeaderThemeExtension, HeadlineThemeExtension, HelpTextThemeExtension, ImageThemeExtension, InputThemeExtension, DateFieldThemeExtension, CalendarThemeExtension, DatePickerThemeExtension, LabelThemeExtension, LinkThemeExtension, ListThemeExtension, ListBoxThemeExtension, MenuThemeExtension, MessageThemeExtension, NumberFieldThemeExtension, RadioThemeExtension, SelectThemeExtension, SliderThemeExtension, SwitchThemeExtension, TableThemeExtension, TextThemeExtension, TextAreaThemeExtension, TooltipThemeExtension, UnderlayThemeExtension, TagThemeExtension, CalendarThemeExtension, TabsThemeExtension {
705
- }
706
- interface Theme extends Theme$1 {
707
- components: ComponentStyles;
708
- }
709
- interface CustomizedTheme extends Theme$1 {
710
- components?: Partial<ComponentStyles>;
711
- }
712
- declare const extendTheme: (baseTheme: Theme, extendTheme: CustomizedTheme) => Theme;
713
-
714
- interface AsideProps {
715
- children: [ReactElement, ReactElement];
716
- side?: 'left' | 'right';
717
- sideWidth?: ResponsiveStyleValue<string>;
718
- space?: ResponsiveStyleValue<string>;
719
- stretch?: boolean;
720
- wrap?: NonZeroPercentage;
721
- }
722
- declare const Aside: ({ children, sideWidth, space, side, stretch, wrap, }: AsideProps) => JSX.Element;
723
-
724
- /**
725
- * Based on https://theme-ui.com/components/aspect-ratio
726
- */
727
-
728
- interface AspectProps extends HtmlProps<'div'> {
729
- children?: ReactNode;
730
- ratio?: keyof typeof aspect;
731
- maxWidth?: string;
732
- }
733
- declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => JSX.Element;
734
-
735
- interface ComboBoxProps extends Omit<ComboBoxProps$1<object>, 'isDisabled' | 'isRequired' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange'> {
736
- variant?: string;
737
- size?: string;
738
- error?: boolean;
739
- width?: string;
740
- disabled?: boolean;
741
- required?: boolean;
742
- readOnly?: boolean;
743
- defaultValue?: ComboBoxProps$1<object>['defaultInputValue'];
744
- value?: ComboBoxProps$1<object>['inputValue'];
745
- onChange?: ComboBoxProps$1<object>['onInputChange'];
746
- }
747
- declare const ComboBox: {
748
- ({ error, width, disabled, required, readOnly, defaultValue, value, onChange, ...rest }: ComboBoxProps): JSX.Element;
749
- Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
750
- };
751
-
752
- interface BreakoutProps extends HtmlProps<'div'> {
753
- children?: ReactNode;
754
- alignY?: 'top' | 'bottom' | 'center';
755
- alignX?: 'left' | 'right' | 'center';
756
- height?: string;
757
- }
758
- declare const Breakout: ({ alignX, alignY, height, children, ...props }: BreakoutProps) => JSX.Element;
759
-
760
- interface CenterProps extends HtmlProps<'div'> {
761
- children?: ReactNode;
762
- maxWidth?: string;
763
- space?: ResponsiveStyleValue<string>;
764
- }
765
- declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => JSX.Element;
766
-
767
- interface ColumnsProps {
768
- children?: ReactNode;
769
- columns: Array<number>;
770
- space?: ResponsiveStyleValue<string>;
771
- columnLimit?: number;
772
- collapseAt?: string | 0;
773
- stretch?: boolean;
774
- }
775
- declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => JSX.Element;
776
-
777
- interface ContainerProps extends HtmlProps<'div'> {
778
- children?: ReactNode;
779
- contentType?: 'content' | 'header';
780
- size?: keyof typeof size.content | keyof typeof size.header;
781
- align?: 'left' | 'right' | 'center';
782
- alignItems?: 'left' | 'right' | 'center' | 'none';
783
- }
784
- declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) => JSX.Element;
785
-
786
- declare const ALIGNMENT_X$1: {
787
- left: string;
788
- center: string;
789
- right: string;
790
- };
791
- declare const ALIGNMENT_Y$1: {
792
- top: string;
793
- center: string;
794
- bottom: string;
795
- };
796
- interface InlineProps {
797
- children?: ReactNode;
798
- space?: ResponsiveStyleValue<string>;
799
- alignX?: keyof typeof ALIGNMENT_X$1;
800
- alignY?: keyof typeof ALIGNMENT_Y$1;
801
- }
802
- declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => JSX.Element;
803
-
804
- type InsetProps = {
805
- children: ReactNode;
806
- space?: never;
807
- spaceX?: ResponsiveStyleValue<string>;
808
- spaceY?: ResponsiveStyleValue<string>;
809
- } | {
810
- children: ReactNode;
811
- space?: ResponsiveStyleValue<string>;
812
- spaceX?: never;
813
- spaceY?: never;
814
- };
815
- declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => JSX.Element;
816
-
817
- interface MarigoldProviderProps<T extends Theme$1> extends ThemeProviderProps<T>, GlobalProps {
818
- }
819
- declare function MarigoldProvider<T extends Theme$1>({ children, theme, selector, normalizeDocument, }: MarigoldProviderProps<T>): JSX.Element;
820
-
821
- interface SplitProps extends HtmlProps<'div'> {
822
- }
823
- declare const Split: (props: SplitProps) => JSX.Element;
824
-
825
- declare const ALIGNMENT_X: {
826
- none: string;
827
- left: string;
828
- center: string;
829
- right: string;
830
- };
831
- declare const ALIGNMENT_Y: {
832
- none: string;
833
- top: string;
834
- center: string;
835
- bottom: string;
836
- };
837
- interface StackProps {
838
- children?: ReactNode;
839
- space?: ResponsiveStyleValue<string>;
840
- alignX?: keyof typeof ALIGNMENT_X;
841
- alignY?: keyof typeof ALIGNMENT_Y;
842
- stretch?: boolean;
843
- }
844
- declare const Stack: ({ children, space, alignX, alignY, stretch, ...props }: StackProps) => JSX.Element;
845
-
846
682
  /**
847
683
  * `react-aria` has a slightly different API for the above events.
848
684
  * Thus, we adjust our regular props to match them.
@@ -856,27 +692,43 @@ interface TextFieldProps extends Omit<HtmlProps<'input'>, 'value' | 'defaultValu
856
692
  Pick<AriaTextFieldProps, CustomTextFieldEvents>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
857
693
  variant?: string;
858
694
  size?: string;
859
- width?: string;
695
+ width?: WidthProp['width'];
860
696
  value?: string;
861
697
  defaultValue?: string;
862
698
  }
863
699
  declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
864
700
 
865
- interface TilesProps {
701
+ interface TilesProps extends GapSpaceProp {
866
702
  children: ReactNode;
867
703
  tilesWidth: string;
868
- space?: ResponsiveStyleValue<string>;
869
704
  stretch?: boolean;
870
705
  equalHeight?: boolean;
871
706
  }
872
- declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => JSX.Element;
707
+ declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => React.JSX.Element;
708
+
709
+ interface TooltipTriggerProps extends Omit<TooltipTriggerProps$1, 'isDisabled' | 'isOpen'>, Omit<PositionProps, 'isOpen'> {
710
+ children: [trigger: ReactElement, menu: ReactElement];
711
+ disabled?: boolean;
712
+ open?: boolean;
713
+ }
714
+
715
+ interface TooltipProps extends HtmlProps<'div'> {
716
+ children?: ReactNode;
717
+ variant?: string;
718
+ size?: string;
719
+ }
720
+ declare const Tooltip: {
721
+ ({ children, variant, size }: TooltipProps): React.JSX.Element;
722
+ Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) => React.JSX.Element;
723
+ };
873
724
 
874
725
  interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | 'validationState'>, LabelableProps, HelpTextProps {
875
- width?: string;
726
+ width?: WidthProp['width'];
876
727
  required?: boolean;
877
728
  error?: boolean;
729
+ allowsRemoving?: boolean;
878
730
  }
879
- declare const TagGroup: ({ width, required, error, ...rest }: TagGroupProps) => JSX.Element;
731
+ declare const TagGroup: ({ width, required, error, allowsRemoving, ...rest }: TagGroupProps) => React.JSX.Element;
880
732
 
881
733
  declare const Tag: TagComponent;
882
734
  /**
@@ -890,4 +742,14 @@ interface TagComponent extends ItemComponent {
890
742
 
891
743
  declare const XLoader: React.ForwardRefExoticComponent<SVGProps & React.RefAttributes<SVGElement>>;
892
744
 
893
- export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, AccordionThemeExtension, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, AutocompleteThemeExtension, Badge, BadgeProps, BadgeThemeExtension, Body, BodyProps, BodyThemeExtension, Breakout, BreakoutProps, Button, ButtonOwnProps, ButtonProps, ButtonThemeExtension, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, CalendarThemeExtension, Card, CardProps, CardThemeExtension, Center, CenterProps, Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, CheckboxThemeExtension, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomSwitchProps, CustomTextAreaEvents, CustomTextFieldEvents, CustomizedTheme, DateField, DateFieldProps, DateFieldThemeExtension, DatePicker, DatePickerProps, DatePickerThemeExtension, Dialog, DialogChildProps, DialogProps, DialogThemeExtension, Divider, DividerProps, DividerThemeExtension, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, FieldThemeExtension, Footer, FooterProps, FooterThemeExtension, Header, HeaderProps, HeaderThemeExtension, Headline, HeadlineProps, HeadlineThemeExtension, Image, ImageProps, ImageThemeExtension, Inline, InlineProps, Input, InputOwnProps, InputProps, InputThemeExtension, Inset, InsetProps, Label, LabelProps, LabelThemeExtension, Link, LinkOwnProps, LinkProps, LinkThemeExtension, List, ListProps, ListThemeExtension, MarigoldProvider, MarigoldProviderProps, Menu, MenuProps, MenuThemeExtension, Message, MessageProps, MessageThemeExtension, Modal, ModalProps, NumberField, NumberFieldProps, NumberFieldThemeExtension, Overlay, OverlayProps, Popover, PopoverProps, Radio, RadioComponent, RadioGroupProps, RadioProps, RadioThemeExtension, RowProps, Select, SelectComponent, SelectProps, SelectThemeExtension, Slider, SliderProps, SliderThemeExtension, Split, SplitProps, Stack, StackProps, Switch, SwitchProps, SwitchThemeExtension, Table, TableProps, TableThemeExtension, Tabs, TabsThemeExtension, Tag, TagComponent, Text, TextArea, TextAreaProps, TextAreaThemeExtension, TextField, TextFieldProps, TextProps, TextThemeExtension, Theme, Tiles, TilesProps, Tooltip, TooltipProps, TooltipThemeExtension, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, UnderlayThemeExtension, XLoader, extendTheme, useCheckboxGroupContext, useFieldGroupContext };
745
+ interface TabsProps extends Omit<AriaTabListProps<object>, 'orientation' | 'isDisabled'>, GapSpaceProp {
746
+ size?: 'small' | 'medium' | 'large';
747
+ disabled?: boolean;
748
+ variant?: string;
749
+ }
750
+ declare const Tabs: {
751
+ ({ space, size, disabled, variant, ...rest }: TabsProps): React.JSX.Element;
752
+ Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
753
+ };
754
+
755
+ 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 };