@marigold/components 6.3.1 → 6.5.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 +61 -71
- package/dist/index.d.ts +61 -71
- package/dist/index.js +913 -1089
- package/dist/index.mjs +928 -1110
- package/package.json +5 -4
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';
|
|
@@ -22,11 +22,8 @@ import { CalendarState } from '@react-stately/calendar';
|
|
|
22
22
|
import { AriaNumberFieldProps } from '@react-types/numberfield';
|
|
23
23
|
import { OverlayProps as OverlayProps$1, AriaPopoverProps, AriaModalOverlayProps } from '@react-aria/overlays';
|
|
24
24
|
import { OverlayTriggerState } from '@react-stately/overlays';
|
|
25
|
-
import { AriaRadioGroupProps, AriaRadioProps } from '@react-types/radio';
|
|
26
25
|
import { Item, Section } from '@react-stately/collections';
|
|
27
26
|
import { AriaSelectProps } from '@react-types/select';
|
|
28
|
-
import { AriaSliderProps } from '@react-types/slider';
|
|
29
|
-
import { AriaSwitchProps } from '@react-types/switch';
|
|
30
27
|
import { AriaTableProps } from '@react-aria/table';
|
|
31
28
|
import { TableStateProps, RowProps as RowProps$1, TableBody, Cell, TableHeader, ColumnProps as ColumnProps$1 } from '@react-stately/table';
|
|
32
29
|
import { AriaTextFieldProps } from '@react-types/textfield';
|
|
@@ -143,15 +140,15 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
143
140
|
}
|
|
144
141
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
145
142
|
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
type RemovedProps$6 = 'isDisabled';
|
|
144
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$6> {
|
|
148
145
|
variant?: string;
|
|
149
146
|
size?: string;
|
|
150
147
|
fullWidth?: boolean;
|
|
148
|
+
children?: ReactNode;
|
|
149
|
+
disabled?: RAC.ButtonProps['isDisabled'];
|
|
151
150
|
}
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
declare const Button: PolymorphicComponent<"button", ButtonOwnProps>;
|
|
151
|
+
declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
155
152
|
|
|
156
153
|
interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
|
|
157
154
|
children?: ReactNode;
|
|
@@ -169,19 +166,14 @@ interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp
|
|
|
169
166
|
}
|
|
170
167
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
171
168
|
|
|
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
169
|
type CustomCheckboxProps = 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp';
|
|
177
|
-
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps
|
|
178
|
-
children?: ReactNode;
|
|
170
|
+
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<RAC.CheckboxProps, CustomCheckboxProps> {
|
|
179
171
|
indeterminate?: boolean;
|
|
180
172
|
error?: boolean;
|
|
181
173
|
variant?: string;
|
|
182
174
|
size?: string;
|
|
183
175
|
}
|
|
184
|
-
declare const
|
|
176
|
+
declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
185
177
|
|
|
186
178
|
interface CheckboxGroupContextProps extends CheckboxGroupState {
|
|
187
179
|
error?: boolean;
|
|
@@ -206,7 +198,7 @@ interface CheckboxGroupProps extends Omit<HtmlProps<'div'>, 'onChange' | 'classN
|
|
|
206
198
|
onChange?: (value: string[]) => void;
|
|
207
199
|
width?: WidthProp['width'];
|
|
208
200
|
}
|
|
209
|
-
declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
201
|
+
declare const CheckboxGroup: ({ variant, size, children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
210
202
|
|
|
211
203
|
interface ColumnsProps extends GapSpaceProp {
|
|
212
204
|
children?: ReactNode;
|
|
@@ -270,18 +262,17 @@ declare const Dialog: {
|
|
|
270
262
|
Controller: ({ children, dismissable, keyboardDismissable, open, onOpenChange, }: DialogControllerProps) => react_jsx_runtime.JSX.Element;
|
|
271
263
|
};
|
|
272
264
|
|
|
273
|
-
interface DividerProps extends SeparatorProps {
|
|
265
|
+
interface DividerProps extends RAC.SeparatorProps {
|
|
274
266
|
variant?: string;
|
|
275
267
|
}
|
|
276
|
-
declare const
|
|
268
|
+
declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
277
269
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
variant?: string;
|
|
270
|
+
type RemovedProps$5 = 'className';
|
|
271
|
+
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$5> {
|
|
281
272
|
size?: string;
|
|
282
|
-
|
|
273
|
+
variant?: string;
|
|
283
274
|
}
|
|
284
|
-
declare const
|
|
275
|
+
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
285
276
|
|
|
286
277
|
interface FieldBaseProps extends WidthProp {
|
|
287
278
|
children?: ReactNode;
|
|
@@ -289,7 +280,7 @@ interface FieldBaseProps extends WidthProp {
|
|
|
289
280
|
size?: string;
|
|
290
281
|
disabled?: boolean;
|
|
291
282
|
label?: ReactNode;
|
|
292
|
-
labelProps?:
|
|
283
|
+
labelProps?: LabelProps;
|
|
293
284
|
description?: ReactNode;
|
|
294
285
|
descriptionProps?: Omit<HTMLAttributes<HTMLElement>, 'children'>;
|
|
295
286
|
error?: boolean;
|
|
@@ -324,15 +315,14 @@ interface HeaderProps extends Omit<HtmlProps<'header'>, 'className'> {
|
|
|
324
315
|
}
|
|
325
316
|
declare const Header: ({ children, variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
326
317
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
level?: '1' | '2' | '3' | '4' | '5' | '6';
|
|
318
|
+
type RemovedProps$4 = 'className' | 'level';
|
|
319
|
+
interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$4>, TextAlignProp {
|
|
330
320
|
color?: string;
|
|
331
321
|
variant?: string;
|
|
332
322
|
size?: string;
|
|
333
|
-
|
|
323
|
+
level?: '1' | '2' | '3' | '4' | '5' | '6' | RAC.HeadingProps['level'];
|
|
334
324
|
}
|
|
335
|
-
declare const
|
|
325
|
+
declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
336
326
|
|
|
337
327
|
interface ImageProps extends Omit<HtmlProps<'img'>, 'className'>, ObjectFitProp, ObjectPositionProp {
|
|
338
328
|
variant?: string;
|
|
@@ -422,15 +412,13 @@ type InsetProps = {
|
|
|
422
412
|
};
|
|
423
413
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
424
414
|
|
|
425
|
-
|
|
426
|
-
|
|
415
|
+
type RemovedProps$3 = 'className' | 'isDisabled';
|
|
416
|
+
interface LinksProps extends Omit<RAC.LinkProps, RemovedProps$3> {
|
|
427
417
|
variant?: string;
|
|
428
418
|
size?: string;
|
|
429
|
-
|
|
419
|
+
disabled?: RAC.LinkProps['isDisabled'];
|
|
430
420
|
}
|
|
431
|
-
|
|
432
|
-
}
|
|
433
|
-
declare const Link: PolymorphicComponent<"a", LinkOwnProps>;
|
|
421
|
+
declare const _Link: react.ForwardRefExoticComponent<LinksProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
434
422
|
|
|
435
423
|
interface ListItemProps extends Omit<HtmlProps<'li'>, 'className'> {
|
|
436
424
|
children?: ReactNode;
|
|
@@ -538,30 +526,39 @@ interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
|
|
|
538
526
|
}
|
|
539
527
|
declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
540
528
|
|
|
541
|
-
|
|
529
|
+
type RemovedProps$2 = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected';
|
|
530
|
+
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$2> {
|
|
531
|
+
variant?: string;
|
|
532
|
+
size?: string;
|
|
533
|
+
label?: string;
|
|
534
|
+
description?: string;
|
|
535
|
+
errorMessage?: string;
|
|
542
536
|
children: ReactNode[];
|
|
543
537
|
width?: WidthProp['width'];
|
|
544
|
-
|
|
545
|
-
|
|
538
|
+
error?: RAC.RadioGroupProps['isInvalid'];
|
|
539
|
+
required?: RAC.RadioGroupProps['isRequired'];
|
|
540
|
+
disabled?: RAC.RadioGroupProps['isDisabled'];
|
|
546
541
|
readOnly?: boolean;
|
|
547
|
-
|
|
542
|
+
value?: string;
|
|
548
543
|
}
|
|
549
|
-
declare const
|
|
544
|
+
declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
550
545
|
|
|
551
|
-
type
|
|
552
|
-
interface RadioProps extends Omit<
|
|
553
|
-
width?: string;
|
|
546
|
+
type RemovedProps$1 = 'className' | 'style' | 'children' | 'isDisabled';
|
|
547
|
+
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$1> {
|
|
554
548
|
variant?: string;
|
|
555
549
|
size?: string;
|
|
556
|
-
|
|
550
|
+
width?: string;
|
|
551
|
+
children?: ReactNode;
|
|
552
|
+
disabled?: RAC.RadioProps['isDisabled'];
|
|
557
553
|
}
|
|
558
|
-
declare const
|
|
554
|
+
declare const _Radio: RadioComponent;
|
|
555
|
+
|
|
559
556
|
/**
|
|
560
557
|
* We need this so that TypeScripts allows us to add
|
|
561
558
|
* additional properties to the component (function).
|
|
562
559
|
*/
|
|
563
560
|
interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>> {
|
|
564
|
-
Group: typeof
|
|
561
|
+
Group: typeof _RadioGroup;
|
|
565
562
|
}
|
|
566
563
|
|
|
567
564
|
interface SelectProps extends Omit<AriaSelectProps<object>, 'autoComplete' | 'isOpen' | 'isLoading' | 'onLoadMore' | 'isDisabled' | 'isRequired' | 'validationState' | 'onSelectionChange'>, Omit<HtmlProps<'select'>, 'onKeyUp' | 'onKeyDown' | 'onFocus' | 'onBlur' | 'children' | 'size' | 'onChange' | 'className'> {
|
|
@@ -584,24 +581,14 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps & RefAtt
|
|
|
584
581
|
Section: typeof Section;
|
|
585
582
|
}
|
|
586
583
|
|
|
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'> {
|
|
584
|
+
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'> {
|
|
585
|
+
thumbLabels?: string[];
|
|
586
|
+
width?: WidthProp['width'];
|
|
593
587
|
variant?: string;
|
|
594
588
|
size?: string;
|
|
595
|
-
|
|
596
|
-
formatOptions?: Intl.NumberFormatOptions;
|
|
597
|
-
children?: ReactNode;
|
|
589
|
+
disabled?: boolean;
|
|
598
590
|
}
|
|
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>>;
|
|
591
|
+
declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
|
|
605
592
|
|
|
606
593
|
interface SplitProps extends Omit<HtmlProps<'div'>, 'className'> {
|
|
607
594
|
}
|
|
@@ -615,14 +602,17 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
|
615
602
|
}
|
|
616
603
|
declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
617
604
|
|
|
618
|
-
type
|
|
619
|
-
interface SwitchProps extends Omit<
|
|
620
|
-
selected?: boolean;
|
|
605
|
+
type RemovedProps = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children';
|
|
606
|
+
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps> {
|
|
621
607
|
variant?: string;
|
|
622
608
|
size?: string;
|
|
609
|
+
children?: ReactNode;
|
|
623
610
|
width?: WidthProp['width'];
|
|
611
|
+
disabled?: RAC.SwitchProps['isDisabled'];
|
|
612
|
+
readOnly?: RAC.SwitchProps['isReadOnly'];
|
|
613
|
+
selected?: RAC.SwitchProps['isSelected'];
|
|
624
614
|
}
|
|
625
|
-
declare const
|
|
615
|
+
declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
626
616
|
|
|
627
617
|
interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes'> {
|
|
628
618
|
variant?: string;
|
|
@@ -744,4 +734,4 @@ declare const Tabs: {
|
|
|
744
734
|
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
745
735
|
};
|
|
746
736
|
|
|
747
|
-
export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, Button,
|
|
737
|
+
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, 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 as Radio, RadioComponent, _RadioGroup as 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';
|
|
@@ -22,11 +22,8 @@ import { CalendarState } from '@react-stately/calendar';
|
|
|
22
22
|
import { AriaNumberFieldProps } from '@react-types/numberfield';
|
|
23
23
|
import { OverlayProps as OverlayProps$1, AriaPopoverProps, AriaModalOverlayProps } from '@react-aria/overlays';
|
|
24
24
|
import { OverlayTriggerState } from '@react-stately/overlays';
|
|
25
|
-
import { AriaRadioGroupProps, AriaRadioProps } from '@react-types/radio';
|
|
26
25
|
import { Item, Section } from '@react-stately/collections';
|
|
27
26
|
import { AriaSelectProps } from '@react-types/select';
|
|
28
|
-
import { AriaSliderProps } from '@react-types/slider';
|
|
29
|
-
import { AriaSwitchProps } from '@react-types/switch';
|
|
30
27
|
import { AriaTableProps } from '@react-aria/table';
|
|
31
28
|
import { TableStateProps, RowProps as RowProps$1, TableBody, Cell, TableHeader, ColumnProps as ColumnProps$1 } from '@react-stately/table';
|
|
32
29
|
import { AriaTextFieldProps } from '@react-types/textfield';
|
|
@@ -143,15 +140,15 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
143
140
|
}
|
|
144
141
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
145
142
|
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
type RemovedProps$6 = 'isDisabled';
|
|
144
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$6> {
|
|
148
145
|
variant?: string;
|
|
149
146
|
size?: string;
|
|
150
147
|
fullWidth?: boolean;
|
|
148
|
+
children?: ReactNode;
|
|
149
|
+
disabled?: RAC.ButtonProps['isDisabled'];
|
|
151
150
|
}
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
declare const Button: PolymorphicComponent<"button", ButtonOwnProps>;
|
|
151
|
+
declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
155
152
|
|
|
156
153
|
interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
|
|
157
154
|
children?: ReactNode;
|
|
@@ -169,19 +166,14 @@ interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp
|
|
|
169
166
|
}
|
|
170
167
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
171
168
|
|
|
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
169
|
type CustomCheckboxProps = 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp';
|
|
177
|
-
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps
|
|
178
|
-
children?: ReactNode;
|
|
170
|
+
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<RAC.CheckboxProps, CustomCheckboxProps> {
|
|
179
171
|
indeterminate?: boolean;
|
|
180
172
|
error?: boolean;
|
|
181
173
|
variant?: string;
|
|
182
174
|
size?: string;
|
|
183
175
|
}
|
|
184
|
-
declare const
|
|
176
|
+
declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
185
177
|
|
|
186
178
|
interface CheckboxGroupContextProps extends CheckboxGroupState {
|
|
187
179
|
error?: boolean;
|
|
@@ -206,7 +198,7 @@ interface CheckboxGroupProps extends Omit<HtmlProps<'div'>, 'onChange' | 'classN
|
|
|
206
198
|
onChange?: (value: string[]) => void;
|
|
207
199
|
width?: WidthProp['width'];
|
|
208
200
|
}
|
|
209
|
-
declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
201
|
+
declare const CheckboxGroup: ({ variant, size, children, required, disabled, readOnly, error, width, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
210
202
|
|
|
211
203
|
interface ColumnsProps extends GapSpaceProp {
|
|
212
204
|
children?: ReactNode;
|
|
@@ -270,18 +262,17 @@ declare const Dialog: {
|
|
|
270
262
|
Controller: ({ children, dismissable, keyboardDismissable, open, onOpenChange, }: DialogControllerProps) => react_jsx_runtime.JSX.Element;
|
|
271
263
|
};
|
|
272
264
|
|
|
273
|
-
interface DividerProps extends SeparatorProps {
|
|
265
|
+
interface DividerProps extends RAC.SeparatorProps {
|
|
274
266
|
variant?: string;
|
|
275
267
|
}
|
|
276
|
-
declare const
|
|
268
|
+
declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
277
269
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
variant?: string;
|
|
270
|
+
type RemovedProps$5 = 'className';
|
|
271
|
+
interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$5> {
|
|
281
272
|
size?: string;
|
|
282
|
-
|
|
273
|
+
variant?: string;
|
|
283
274
|
}
|
|
284
|
-
declare const
|
|
275
|
+
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
285
276
|
|
|
286
277
|
interface FieldBaseProps extends WidthProp {
|
|
287
278
|
children?: ReactNode;
|
|
@@ -289,7 +280,7 @@ interface FieldBaseProps extends WidthProp {
|
|
|
289
280
|
size?: string;
|
|
290
281
|
disabled?: boolean;
|
|
291
282
|
label?: ReactNode;
|
|
292
|
-
labelProps?:
|
|
283
|
+
labelProps?: LabelProps;
|
|
293
284
|
description?: ReactNode;
|
|
294
285
|
descriptionProps?: Omit<HTMLAttributes<HTMLElement>, 'children'>;
|
|
295
286
|
error?: boolean;
|
|
@@ -324,15 +315,14 @@ interface HeaderProps extends Omit<HtmlProps<'header'>, 'className'> {
|
|
|
324
315
|
}
|
|
325
316
|
declare const Header: ({ children, variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
326
317
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
level?: '1' | '2' | '3' | '4' | '5' | '6';
|
|
318
|
+
type RemovedProps$4 = 'className' | 'level';
|
|
319
|
+
interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$4>, TextAlignProp {
|
|
330
320
|
color?: string;
|
|
331
321
|
variant?: string;
|
|
332
322
|
size?: string;
|
|
333
|
-
|
|
323
|
+
level?: '1' | '2' | '3' | '4' | '5' | '6' | RAC.HeadingProps['level'];
|
|
334
324
|
}
|
|
335
|
-
declare const
|
|
325
|
+
declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
336
326
|
|
|
337
327
|
interface ImageProps extends Omit<HtmlProps<'img'>, 'className'>, ObjectFitProp, ObjectPositionProp {
|
|
338
328
|
variant?: string;
|
|
@@ -422,15 +412,13 @@ type InsetProps = {
|
|
|
422
412
|
};
|
|
423
413
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
424
414
|
|
|
425
|
-
|
|
426
|
-
|
|
415
|
+
type RemovedProps$3 = 'className' | 'isDisabled';
|
|
416
|
+
interface LinksProps extends Omit<RAC.LinkProps, RemovedProps$3> {
|
|
427
417
|
variant?: string;
|
|
428
418
|
size?: string;
|
|
429
|
-
|
|
419
|
+
disabled?: RAC.LinkProps['isDisabled'];
|
|
430
420
|
}
|
|
431
|
-
|
|
432
|
-
}
|
|
433
|
-
declare const Link: PolymorphicComponent<"a", LinkOwnProps>;
|
|
421
|
+
declare const _Link: react.ForwardRefExoticComponent<LinksProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
434
422
|
|
|
435
423
|
interface ListItemProps extends Omit<HtmlProps<'li'>, 'className'> {
|
|
436
424
|
children?: ReactNode;
|
|
@@ -538,30 +526,39 @@ interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
|
|
|
538
526
|
}
|
|
539
527
|
declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
540
528
|
|
|
541
|
-
|
|
529
|
+
type RemovedProps$2 = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected';
|
|
530
|
+
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$2> {
|
|
531
|
+
variant?: string;
|
|
532
|
+
size?: string;
|
|
533
|
+
label?: string;
|
|
534
|
+
description?: string;
|
|
535
|
+
errorMessage?: string;
|
|
542
536
|
children: ReactNode[];
|
|
543
537
|
width?: WidthProp['width'];
|
|
544
|
-
|
|
545
|
-
|
|
538
|
+
error?: RAC.RadioGroupProps['isInvalid'];
|
|
539
|
+
required?: RAC.RadioGroupProps['isRequired'];
|
|
540
|
+
disabled?: RAC.RadioGroupProps['isDisabled'];
|
|
546
541
|
readOnly?: boolean;
|
|
547
|
-
|
|
542
|
+
value?: string;
|
|
548
543
|
}
|
|
549
|
-
declare const
|
|
544
|
+
declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
550
545
|
|
|
551
|
-
type
|
|
552
|
-
interface RadioProps extends Omit<
|
|
553
|
-
width?: string;
|
|
546
|
+
type RemovedProps$1 = 'className' | 'style' | 'children' | 'isDisabled';
|
|
547
|
+
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$1> {
|
|
554
548
|
variant?: string;
|
|
555
549
|
size?: string;
|
|
556
|
-
|
|
550
|
+
width?: string;
|
|
551
|
+
children?: ReactNode;
|
|
552
|
+
disabled?: RAC.RadioProps['isDisabled'];
|
|
557
553
|
}
|
|
558
|
-
declare const
|
|
554
|
+
declare const _Radio: RadioComponent;
|
|
555
|
+
|
|
559
556
|
/**
|
|
560
557
|
* We need this so that TypeScripts allows us to add
|
|
561
558
|
* additional properties to the component (function).
|
|
562
559
|
*/
|
|
563
560
|
interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>> {
|
|
564
|
-
Group: typeof
|
|
561
|
+
Group: typeof _RadioGroup;
|
|
565
562
|
}
|
|
566
563
|
|
|
567
564
|
interface SelectProps extends Omit<AriaSelectProps<object>, 'autoComplete' | 'isOpen' | 'isLoading' | 'onLoadMore' | 'isDisabled' | 'isRequired' | 'validationState' | 'onSelectionChange'>, Omit<HtmlProps<'select'>, 'onKeyUp' | 'onKeyDown' | 'onFocus' | 'onBlur' | 'children' | 'size' | 'onChange' | 'className'> {
|
|
@@ -584,24 +581,14 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps & RefAtt
|
|
|
584
581
|
Section: typeof Section;
|
|
585
582
|
}
|
|
586
583
|
|
|
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'> {
|
|
584
|
+
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'> {
|
|
585
|
+
thumbLabels?: string[];
|
|
586
|
+
width?: WidthProp['width'];
|
|
593
587
|
variant?: string;
|
|
594
588
|
size?: string;
|
|
595
|
-
|
|
596
|
-
formatOptions?: Intl.NumberFormatOptions;
|
|
597
|
-
children?: ReactNode;
|
|
589
|
+
disabled?: boolean;
|
|
598
590
|
}
|
|
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>>;
|
|
591
|
+
declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
|
|
605
592
|
|
|
606
593
|
interface SplitProps extends Omit<HtmlProps<'div'>, 'className'> {
|
|
607
594
|
}
|
|
@@ -615,14 +602,17 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
|
615
602
|
}
|
|
616
603
|
declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
617
604
|
|
|
618
|
-
type
|
|
619
|
-
interface SwitchProps extends Omit<
|
|
620
|
-
selected?: boolean;
|
|
605
|
+
type RemovedProps = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children';
|
|
606
|
+
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps> {
|
|
621
607
|
variant?: string;
|
|
622
608
|
size?: string;
|
|
609
|
+
children?: ReactNode;
|
|
623
610
|
width?: WidthProp['width'];
|
|
611
|
+
disabled?: RAC.SwitchProps['isDisabled'];
|
|
612
|
+
readOnly?: RAC.SwitchProps['isReadOnly'];
|
|
613
|
+
selected?: RAC.SwitchProps['isSelected'];
|
|
624
614
|
}
|
|
625
|
-
declare const
|
|
615
|
+
declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
626
616
|
|
|
627
617
|
interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes'> {
|
|
628
618
|
variant?: string;
|
|
@@ -744,4 +734,4 @@ declare const Tabs: {
|
|
|
744
734
|
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
745
735
|
};
|
|
746
736
|
|
|
747
|
-
export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, Button,
|
|
737
|
+
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, 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 as Radio, RadioComponent, _RadioGroup as 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 };
|