@marigold/components 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +44 -60
- package/dist/index.d.ts +44 -60
- package/dist/index.js +1002 -1241
- package/dist/index.mjs +847 -1088
- package/package.json +63 -62
package/dist/index.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import { ReactElement, ReactNode, Key, HTMLAttributes,
|
|
4
|
+
import react__default, { ReactElement, ReactNode, Key, HTMLAttributes, ComponentPropsWithRef, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
5
|
import { AriaAccordionProps } from '@react-aria/accordion';
|
|
6
6
|
import * as _react_types_shared from '@react-types/shared';
|
|
7
|
-
import { ItemElement, ItemProps, Node,
|
|
7
|
+
import { ItemElement, ItemProps, Node, CollectionElement, StyleProps, LabelableProps, HelpTextProps } from '@react-types/shared';
|
|
8
8
|
import { TreeState } from '@react-stately/tree';
|
|
9
9
|
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';
|
|
10
10
|
export { ThemeProvider, useTheme } from '@marigold/system';
|
|
11
|
-
import { NonZeroPercentage, HtmlProps
|
|
11
|
+
import { NonZeroPercentage, HtmlProps } from '@marigold/types';
|
|
12
12
|
import { SearchAutocompleteProps } from '@react-types/autocomplete';
|
|
13
13
|
import { ComboBoxProps as ComboBoxProps$1 } from '@react-types/combobox';
|
|
14
|
-
import
|
|
14
|
+
import RAC from 'react-aria-components';
|
|
15
15
|
import { CheckboxGroupState } from '@react-stately/checkbox';
|
|
16
|
+
import { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
|
16
17
|
import { AriaDialogProps } from '@react-types/dialog';
|
|
17
|
-
import { SeparatorProps } from '@react-aria/separator';
|
|
18
18
|
import { DateValue, CalendarDate } from '@internationalized/date';
|
|
19
19
|
import { AriaDateFieldProps, AriaDatePickerProps } from '@react-aria/datepicker';
|
|
20
20
|
import { AriaCalendarProps, DateValue as DateValue$1, AriaCalendarCellProps, AriaCalendarGridProps } from '@react-aria/calendar';
|
|
@@ -25,8 +25,6 @@ import { OverlayTriggerState } from '@react-stately/overlays';
|
|
|
25
25
|
import { AriaRadioGroupProps, AriaRadioProps } from '@react-types/radio';
|
|
26
26
|
import { Item, Section } from '@react-stately/collections';
|
|
27
27
|
import { AriaSelectProps } from '@react-types/select';
|
|
28
|
-
import { AriaSliderProps } from '@react-types/slider';
|
|
29
|
-
import { AriaSwitchProps } from '@react-types/switch';
|
|
30
28
|
import { AriaTableProps } from '@react-aria/table';
|
|
31
29
|
import { TableStateProps, RowProps as RowProps$1, TableBody, Cell, TableHeader, ColumnProps as ColumnProps$1 } from '@react-stately/table';
|
|
32
30
|
import { AriaTextFieldProps } from '@react-types/textfield';
|
|
@@ -143,15 +141,15 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
143
141
|
}
|
|
144
142
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
145
143
|
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
type RemovedProps$4 = 'isDisabled';
|
|
145
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$4> {
|
|
148
146
|
variant?: string;
|
|
149
147
|
size?: string;
|
|
150
148
|
fullWidth?: boolean;
|
|
149
|
+
children?: ReactNode;
|
|
150
|
+
disabled?: RAC.ButtonProps['isDisabled'];
|
|
151
151
|
}
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
declare const Button: PolymorphicComponent<"button", ButtonOwnProps>;
|
|
152
|
+
declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
155
153
|
|
|
156
154
|
interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
|
|
157
155
|
children?: ReactNode;
|
|
@@ -169,19 +167,14 @@ interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp
|
|
|
169
167
|
}
|
|
170
168
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
171
169
|
|
|
172
|
-
/**
|
|
173
|
-
* `react-aria` has a slightly different API for the above events.
|
|
174
|
-
* Thus, we adjust our regular props to match them.
|
|
175
|
-
*/
|
|
176
170
|
type CustomCheckboxProps = 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp';
|
|
177
|
-
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps
|
|
178
|
-
children?: ReactNode;
|
|
171
|
+
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<RAC.CheckboxProps, CustomCheckboxProps> {
|
|
179
172
|
indeterminate?: boolean;
|
|
180
173
|
error?: boolean;
|
|
181
174
|
variant?: string;
|
|
182
175
|
size?: string;
|
|
183
176
|
}
|
|
184
|
-
declare const
|
|
177
|
+
declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
185
178
|
|
|
186
179
|
interface CheckboxGroupContextProps extends CheckboxGroupState {
|
|
187
180
|
error?: boolean;
|
|
@@ -206,7 +199,7 @@ interface CheckboxGroupProps extends Omit<HtmlProps<'div'>, 'onChange' | 'classN
|
|
|
206
199
|
onChange?: (value: string[]) => void;
|
|
207
200
|
width?: WidthProp['width'];
|
|
208
201
|
}
|
|
209
|
-
declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
202
|
+
declare const CheckboxGroup: ({ variant, size, children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
210
203
|
|
|
211
204
|
interface ColumnsProps extends GapSpaceProp {
|
|
212
205
|
children?: ReactNode;
|
|
@@ -270,18 +263,17 @@ declare const Dialog: {
|
|
|
270
263
|
Controller: ({ children, dismissable, keyboardDismissable, open, onOpenChange, }: DialogControllerProps) => react_jsx_runtime.JSX.Element;
|
|
271
264
|
};
|
|
272
265
|
|
|
273
|
-
interface DividerProps extends SeparatorProps {
|
|
266
|
+
interface DividerProps extends RAC.SeparatorProps {
|
|
274
267
|
variant?: string;
|
|
275
268
|
}
|
|
276
|
-
declare const
|
|
269
|
+
declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
277
270
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
variant?: string;
|
|
271
|
+
type RemovedProps$3 = 'className';
|
|
272
|
+
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$3> {
|
|
281
273
|
size?: string;
|
|
282
|
-
|
|
274
|
+
variant?: string;
|
|
283
275
|
}
|
|
284
|
-
declare const
|
|
276
|
+
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
285
277
|
|
|
286
278
|
interface FieldBaseProps extends WidthProp {
|
|
287
279
|
children?: ReactNode;
|
|
@@ -289,7 +281,7 @@ interface FieldBaseProps extends WidthProp {
|
|
|
289
281
|
size?: string;
|
|
290
282
|
disabled?: boolean;
|
|
291
283
|
label?: ReactNode;
|
|
292
|
-
labelProps?:
|
|
284
|
+
labelProps?: LabelProps;
|
|
293
285
|
description?: ReactNode;
|
|
294
286
|
descriptionProps?: Omit<HTMLAttributes<HTMLElement>, 'children'>;
|
|
295
287
|
error?: boolean;
|
|
@@ -324,15 +316,14 @@ interface HeaderProps extends Omit<HtmlProps<'header'>, 'className'> {
|
|
|
324
316
|
}
|
|
325
317
|
declare const Header: ({ children, variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
326
318
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
level?: '1' | '2' | '3' | '4' | '5' | '6';
|
|
319
|
+
type RemovedProps$2 = 'className' | 'level';
|
|
320
|
+
interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$2>, TextAlignProp {
|
|
330
321
|
color?: string;
|
|
331
322
|
variant?: string;
|
|
332
323
|
size?: string;
|
|
333
|
-
|
|
324
|
+
level?: '1' | '2' | '3' | '4' | '5' | '6' | RAC.HeadingProps['level'];
|
|
334
325
|
}
|
|
335
|
-
declare const
|
|
326
|
+
declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
336
327
|
|
|
337
328
|
interface ImageProps extends Omit<HtmlProps<'img'>, 'className'>, ObjectFitProp, ObjectPositionProp {
|
|
338
329
|
variant?: string;
|
|
@@ -422,15 +413,13 @@ type InsetProps = {
|
|
|
422
413
|
};
|
|
423
414
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
424
415
|
|
|
425
|
-
|
|
426
|
-
|
|
416
|
+
type RemovedProps$1 = 'className' | 'isDisabled';
|
|
417
|
+
interface LinksProps extends Omit<RAC.LinkProps, RemovedProps$1> {
|
|
427
418
|
variant?: string;
|
|
428
419
|
size?: string;
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
interface LinkProps extends PropsOf<typeof Link> {
|
|
420
|
+
disabled?: RAC.LinkProps['isDisabled'];
|
|
432
421
|
}
|
|
433
|
-
declare const
|
|
422
|
+
declare const _Link: react.ForwardRefExoticComponent<LinksProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
434
423
|
|
|
435
424
|
interface ListItemProps extends Omit<HtmlProps<'li'>, 'className'> {
|
|
436
425
|
children?: ReactNode;
|
|
@@ -539,6 +528,8 @@ interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
|
|
|
539
528
|
declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
540
529
|
|
|
541
530
|
interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRquired' | 'isReadOnly ' | 'validationState'> {
|
|
531
|
+
variant?: string;
|
|
532
|
+
size?: string;
|
|
542
533
|
children: ReactNode[];
|
|
543
534
|
width?: WidthProp['width'];
|
|
544
535
|
required?: boolean;
|
|
@@ -546,7 +537,7 @@ interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRq
|
|
|
546
537
|
readOnly?: boolean;
|
|
547
538
|
error?: boolean;
|
|
548
539
|
}
|
|
549
|
-
declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
540
|
+
declare const RadioGroup: ({ variant, size, children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
550
541
|
|
|
551
542
|
type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
|
|
552
543
|
interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps | 'children' | 'className'>, AriaRadioProps {
|
|
@@ -584,24 +575,14 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps & RefAtt
|
|
|
584
575
|
Section: typeof Section;
|
|
585
576
|
}
|
|
586
577
|
|
|
587
|
-
interface SliderProps extends Omit<
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
* `onBlur`. Thus, we adjust our regular props to match them.
|
|
591
|
-
*/
|
|
592
|
-
Pick<AriaSliderProps, 'maxValue' | 'step' | 'value' | 'defaultValue' | 'onChange'> {
|
|
578
|
+
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'> {
|
|
579
|
+
thumbLabels?: string[];
|
|
580
|
+
width?: WidthProp['width'];
|
|
593
581
|
variant?: string;
|
|
594
582
|
size?: string;
|
|
595
|
-
|
|
596
|
-
formatOptions?: Intl.NumberFormatOptions;
|
|
597
|
-
children?: ReactNode;
|
|
583
|
+
disabled?: boolean;
|
|
598
584
|
}
|
|
599
|
-
|
|
600
|
-
* The slider consists of two parts.
|
|
601
|
-
* A label + the output value and the slider functionality itself.
|
|
602
|
-
* The slider itself consists of a track line and a thumb.
|
|
603
|
-
*/
|
|
604
|
-
declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<HTMLDivElement>>;
|
|
585
|
+
declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
|
|
605
586
|
|
|
606
587
|
interface SplitProps extends Omit<HtmlProps<'div'>, 'className'> {
|
|
607
588
|
}
|
|
@@ -615,14 +596,17 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
|
615
596
|
}
|
|
616
597
|
declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
617
598
|
|
|
618
|
-
type
|
|
619
|
-
interface SwitchProps extends Omit<
|
|
620
|
-
selected?: boolean;
|
|
599
|
+
type RemovedProps = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children';
|
|
600
|
+
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps> {
|
|
621
601
|
variant?: string;
|
|
622
602
|
size?: string;
|
|
603
|
+
children?: ReactNode;
|
|
623
604
|
width?: WidthProp['width'];
|
|
605
|
+
disabled?: RAC.SwitchProps['isDisabled'];
|
|
606
|
+
readOnly?: RAC.SwitchProps['isReadOnly'];
|
|
607
|
+
selected?: RAC.SwitchProps['isSelected'];
|
|
624
608
|
}
|
|
625
|
-
declare const
|
|
609
|
+
declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
626
610
|
|
|
627
611
|
interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes'> {
|
|
628
612
|
variant?: string;
|
|
@@ -744,4 +728,4 @@ declare const Tabs: {
|
|
|
744
728
|
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
745
729
|
};
|
|
746
730
|
|
|
747
|
-
export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, Button,
|
|
731
|
+
export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, _Button as Button, ButtonProps, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, Card, CardProps, Center, CenterProps, _Checkbox as Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomTextAreaEvents, CustomTextFieldEvents, DateField, DateFieldProps, DatePicker, DatePickerProps, Dialog, DialogChildProps, DialogProps, _Divider as Divider, DividerProps, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, Footer, FooterProps, Header, HeaderProps, _Headline as Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, _Label as Label, LabelProps, _Link as Link, LinksProps, 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 as Slider, SliderProps, Split, SplitProps, Stack, StackProps, _Switch as Switch, SwitchProps, Table, TableProps, Tabs, Tag, TagComponent, Text, TextArea, TextAreaProps, TextField, TextFieldProps, TextProps, Tiles, TilesProps, Tooltip, TooltipProps, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, XLoader, _Slider, useCheckboxGroupContext, useFieldGroupContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import { ReactElement, ReactNode, Key, HTMLAttributes,
|
|
4
|
+
import react__default, { ReactElement, ReactNode, Key, HTMLAttributes, ComponentPropsWithRef, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
5
|
import { AriaAccordionProps } from '@react-aria/accordion';
|
|
6
6
|
import * as _react_types_shared from '@react-types/shared';
|
|
7
|
-
import { ItemElement, ItemProps, Node,
|
|
7
|
+
import { ItemElement, ItemProps, Node, CollectionElement, StyleProps, LabelableProps, HelpTextProps } from '@react-types/shared';
|
|
8
8
|
import { TreeState } from '@react-stately/tree';
|
|
9
9
|
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';
|
|
10
10
|
export { ThemeProvider, useTheme } from '@marigold/system';
|
|
11
|
-
import { NonZeroPercentage, HtmlProps
|
|
11
|
+
import { NonZeroPercentage, HtmlProps } from '@marigold/types';
|
|
12
12
|
import { SearchAutocompleteProps } from '@react-types/autocomplete';
|
|
13
13
|
import { ComboBoxProps as ComboBoxProps$1 } from '@react-types/combobox';
|
|
14
|
-
import
|
|
14
|
+
import RAC from 'react-aria-components';
|
|
15
15
|
import { CheckboxGroupState } from '@react-stately/checkbox';
|
|
16
|
+
import { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
|
16
17
|
import { AriaDialogProps } from '@react-types/dialog';
|
|
17
|
-
import { SeparatorProps } from '@react-aria/separator';
|
|
18
18
|
import { DateValue, CalendarDate } from '@internationalized/date';
|
|
19
19
|
import { AriaDateFieldProps, AriaDatePickerProps } from '@react-aria/datepicker';
|
|
20
20
|
import { AriaCalendarProps, DateValue as DateValue$1, AriaCalendarCellProps, AriaCalendarGridProps } from '@react-aria/calendar';
|
|
@@ -25,8 +25,6 @@ import { OverlayTriggerState } from '@react-stately/overlays';
|
|
|
25
25
|
import { AriaRadioGroupProps, AriaRadioProps } from '@react-types/radio';
|
|
26
26
|
import { Item, Section } from '@react-stately/collections';
|
|
27
27
|
import { AriaSelectProps } from '@react-types/select';
|
|
28
|
-
import { AriaSliderProps } from '@react-types/slider';
|
|
29
|
-
import { AriaSwitchProps } from '@react-types/switch';
|
|
30
28
|
import { AriaTableProps } from '@react-aria/table';
|
|
31
29
|
import { TableStateProps, RowProps as RowProps$1, TableBody, Cell, TableHeader, ColumnProps as ColumnProps$1 } from '@react-stately/table';
|
|
32
30
|
import { AriaTextFieldProps } from '@react-types/textfield';
|
|
@@ -143,15 +141,15 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
143
141
|
}
|
|
144
142
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
145
143
|
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
type RemovedProps$4 = 'isDisabled';
|
|
145
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$4> {
|
|
148
146
|
variant?: string;
|
|
149
147
|
size?: string;
|
|
150
148
|
fullWidth?: boolean;
|
|
149
|
+
children?: ReactNode;
|
|
150
|
+
disabled?: RAC.ButtonProps['isDisabled'];
|
|
151
151
|
}
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
declare const Button: PolymorphicComponent<"button", ButtonOwnProps>;
|
|
152
|
+
declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
155
153
|
|
|
156
154
|
interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
|
|
157
155
|
children?: ReactNode;
|
|
@@ -169,19 +167,14 @@ interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp
|
|
|
169
167
|
}
|
|
170
168
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
171
169
|
|
|
172
|
-
/**
|
|
173
|
-
* `react-aria` has a slightly different API for the above events.
|
|
174
|
-
* Thus, we adjust our regular props to match them.
|
|
175
|
-
*/
|
|
176
170
|
type CustomCheckboxProps = 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp';
|
|
177
|
-
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps
|
|
178
|
-
children?: ReactNode;
|
|
171
|
+
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<RAC.CheckboxProps, CustomCheckboxProps> {
|
|
179
172
|
indeterminate?: boolean;
|
|
180
173
|
error?: boolean;
|
|
181
174
|
variant?: string;
|
|
182
175
|
size?: string;
|
|
183
176
|
}
|
|
184
|
-
declare const
|
|
177
|
+
declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
185
178
|
|
|
186
179
|
interface CheckboxGroupContextProps extends CheckboxGroupState {
|
|
187
180
|
error?: boolean;
|
|
@@ -206,7 +199,7 @@ interface CheckboxGroupProps extends Omit<HtmlProps<'div'>, 'onChange' | 'classN
|
|
|
206
199
|
onChange?: (value: string[]) => void;
|
|
207
200
|
width?: WidthProp['width'];
|
|
208
201
|
}
|
|
209
|
-
declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
202
|
+
declare const CheckboxGroup: ({ variant, size, children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
210
203
|
|
|
211
204
|
interface ColumnsProps extends GapSpaceProp {
|
|
212
205
|
children?: ReactNode;
|
|
@@ -270,18 +263,17 @@ declare const Dialog: {
|
|
|
270
263
|
Controller: ({ children, dismissable, keyboardDismissable, open, onOpenChange, }: DialogControllerProps) => react_jsx_runtime.JSX.Element;
|
|
271
264
|
};
|
|
272
265
|
|
|
273
|
-
interface DividerProps extends SeparatorProps {
|
|
266
|
+
interface DividerProps extends RAC.SeparatorProps {
|
|
274
267
|
variant?: string;
|
|
275
268
|
}
|
|
276
|
-
declare const
|
|
269
|
+
declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
277
270
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
variant?: string;
|
|
271
|
+
type RemovedProps$3 = 'className';
|
|
272
|
+
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$3> {
|
|
281
273
|
size?: string;
|
|
282
|
-
|
|
274
|
+
variant?: string;
|
|
283
275
|
}
|
|
284
|
-
declare const
|
|
276
|
+
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
285
277
|
|
|
286
278
|
interface FieldBaseProps extends WidthProp {
|
|
287
279
|
children?: ReactNode;
|
|
@@ -289,7 +281,7 @@ interface FieldBaseProps extends WidthProp {
|
|
|
289
281
|
size?: string;
|
|
290
282
|
disabled?: boolean;
|
|
291
283
|
label?: ReactNode;
|
|
292
|
-
labelProps?:
|
|
284
|
+
labelProps?: LabelProps;
|
|
293
285
|
description?: ReactNode;
|
|
294
286
|
descriptionProps?: Omit<HTMLAttributes<HTMLElement>, 'children'>;
|
|
295
287
|
error?: boolean;
|
|
@@ -324,15 +316,14 @@ interface HeaderProps extends Omit<HtmlProps<'header'>, 'className'> {
|
|
|
324
316
|
}
|
|
325
317
|
declare const Header: ({ children, variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
326
318
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
level?: '1' | '2' | '3' | '4' | '5' | '6';
|
|
319
|
+
type RemovedProps$2 = 'className' | 'level';
|
|
320
|
+
interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$2>, TextAlignProp {
|
|
330
321
|
color?: string;
|
|
331
322
|
variant?: string;
|
|
332
323
|
size?: string;
|
|
333
|
-
|
|
324
|
+
level?: '1' | '2' | '3' | '4' | '5' | '6' | RAC.HeadingProps['level'];
|
|
334
325
|
}
|
|
335
|
-
declare const
|
|
326
|
+
declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
336
327
|
|
|
337
328
|
interface ImageProps extends Omit<HtmlProps<'img'>, 'className'>, ObjectFitProp, ObjectPositionProp {
|
|
338
329
|
variant?: string;
|
|
@@ -422,15 +413,13 @@ type InsetProps = {
|
|
|
422
413
|
};
|
|
423
414
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
424
415
|
|
|
425
|
-
|
|
426
|
-
|
|
416
|
+
type RemovedProps$1 = 'className' | 'isDisabled';
|
|
417
|
+
interface LinksProps extends Omit<RAC.LinkProps, RemovedProps$1> {
|
|
427
418
|
variant?: string;
|
|
428
419
|
size?: string;
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
interface LinkProps extends PropsOf<typeof Link> {
|
|
420
|
+
disabled?: RAC.LinkProps['isDisabled'];
|
|
432
421
|
}
|
|
433
|
-
declare const
|
|
422
|
+
declare const _Link: react.ForwardRefExoticComponent<LinksProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
434
423
|
|
|
435
424
|
interface ListItemProps extends Omit<HtmlProps<'li'>, 'className'> {
|
|
436
425
|
children?: ReactNode;
|
|
@@ -539,6 +528,8 @@ interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
|
|
|
539
528
|
declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
540
529
|
|
|
541
530
|
interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRquired' | 'isReadOnly ' | 'validationState'> {
|
|
531
|
+
variant?: string;
|
|
532
|
+
size?: string;
|
|
542
533
|
children: ReactNode[];
|
|
543
534
|
width?: WidthProp['width'];
|
|
544
535
|
required?: boolean;
|
|
@@ -546,7 +537,7 @@ interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRq
|
|
|
546
537
|
readOnly?: boolean;
|
|
547
538
|
error?: boolean;
|
|
548
539
|
}
|
|
549
|
-
declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
540
|
+
declare const RadioGroup: ({ variant, size, children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
550
541
|
|
|
551
542
|
type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
|
|
552
543
|
interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps | 'children' | 'className'>, AriaRadioProps {
|
|
@@ -584,24 +575,14 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps & RefAtt
|
|
|
584
575
|
Section: typeof Section;
|
|
585
576
|
}
|
|
586
577
|
|
|
587
|
-
interface SliderProps extends Omit<
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
* `onBlur`. Thus, we adjust our regular props to match them.
|
|
591
|
-
*/
|
|
592
|
-
Pick<AriaSliderProps, 'maxValue' | 'step' | 'value' | 'defaultValue' | 'onChange'> {
|
|
578
|
+
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'> {
|
|
579
|
+
thumbLabels?: string[];
|
|
580
|
+
width?: WidthProp['width'];
|
|
593
581
|
variant?: string;
|
|
594
582
|
size?: string;
|
|
595
|
-
|
|
596
|
-
formatOptions?: Intl.NumberFormatOptions;
|
|
597
|
-
children?: ReactNode;
|
|
583
|
+
disabled?: boolean;
|
|
598
584
|
}
|
|
599
|
-
|
|
600
|
-
* The slider consists of two parts.
|
|
601
|
-
* A label + the output value and the slider functionality itself.
|
|
602
|
-
* The slider itself consists of a track line and a thumb.
|
|
603
|
-
*/
|
|
604
|
-
declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<HTMLDivElement>>;
|
|
585
|
+
declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
|
|
605
586
|
|
|
606
587
|
interface SplitProps extends Omit<HtmlProps<'div'>, 'className'> {
|
|
607
588
|
}
|
|
@@ -615,14 +596,17 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
|
615
596
|
}
|
|
616
597
|
declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
617
598
|
|
|
618
|
-
type
|
|
619
|
-
interface SwitchProps extends Omit<
|
|
620
|
-
selected?: boolean;
|
|
599
|
+
type RemovedProps = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children';
|
|
600
|
+
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps> {
|
|
621
601
|
variant?: string;
|
|
622
602
|
size?: string;
|
|
603
|
+
children?: ReactNode;
|
|
623
604
|
width?: WidthProp['width'];
|
|
605
|
+
disabled?: RAC.SwitchProps['isDisabled'];
|
|
606
|
+
readOnly?: RAC.SwitchProps['isReadOnly'];
|
|
607
|
+
selected?: RAC.SwitchProps['isSelected'];
|
|
624
608
|
}
|
|
625
|
-
declare const
|
|
609
|
+
declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
626
610
|
|
|
627
611
|
interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes'> {
|
|
628
612
|
variant?: string;
|
|
@@ -744,4 +728,4 @@ declare const Tabs: {
|
|
|
744
728
|
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
745
729
|
};
|
|
746
730
|
|
|
747
|
-
export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, Button,
|
|
731
|
+
export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, _Button as Button, ButtonProps, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, Card, CardProps, Center, CenterProps, _Checkbox as Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomTextAreaEvents, CustomTextFieldEvents, DateField, DateFieldProps, DatePicker, DatePickerProps, Dialog, DialogChildProps, DialogProps, _Divider as Divider, DividerProps, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, Footer, FooterProps, Header, HeaderProps, _Headline as Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, _Label as Label, LabelProps, _Link as Link, LinksProps, 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 as Slider, SliderProps, Split, SplitProps, Stack, StackProps, _Switch as Switch, SwitchProps, Table, TableProps, Tabs, Tag, TagComponent, Text, TextArea, TextAreaProps, TextField, TextFieldProps, TextProps, Tiles, TilesProps, Tooltip, TooltipProps, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, XLoader, _Slider, useCheckboxGroupContext, useFieldGroupContext };
|