@marigold/components 6.6.4 → 6.7.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 +36 -34
- package/dist/index.d.ts +36 -34
- package/dist/index.js +401 -432
- package/dist/index.mjs +355 -386
- package/package.json +63 -63
package/dist/index.d.mts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
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 react__default, { ReactElement, ReactNode, Key, HTMLAttributes, ComponentPropsWithRef, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
import react__default, { ReactElement, ReactNode, Key, ElementType, 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, CollectionElement, StyleProps, LabelableProps
|
|
7
|
+
import { ItemElement, ItemProps, Node, CollectionElement, StyleProps, LabelableProps } 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
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 RAC from 'react-aria-components';
|
|
15
|
-
import { CheckboxGroupState } from '@react-stately/checkbox';
|
|
16
|
-
import { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
|
14
|
+
import RAC, { ValidationResult } from 'react-aria-components';
|
|
17
15
|
import { AriaDialogProps } from '@react-types/dialog';
|
|
18
16
|
import { DateValue, CalendarDate } from '@internationalized/date';
|
|
19
17
|
import { AriaDateFieldProps, AriaDatePickerProps } from '@react-aria/datepicker';
|
|
@@ -71,7 +69,7 @@ interface AspectProps extends Omit<HtmlProps<'div'>, 'className'>, AspectProp {
|
|
|
71
69
|
}
|
|
72
70
|
declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => react_jsx_runtime.JSX.Element;
|
|
73
71
|
|
|
74
|
-
interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDisabled' | 'isRequired' | 'isReadonly' | 'validationState' | 'icon' | 'onInputChange' | 'inputValue' | 'defaultInputValue'> {
|
|
72
|
+
interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDisabled' | 'isRequired' | 'isReadonly' | 'validationState' | 'icon' | 'onInputChange' | 'inputValue' | 'defaultInputValue' | 'validate'> {
|
|
75
73
|
disabled?: boolean;
|
|
76
74
|
required?: boolean;
|
|
77
75
|
readOnly?: boolean;
|
|
@@ -98,7 +96,7 @@ interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDis
|
|
|
98
96
|
}
|
|
99
97
|
declare const Autocomplete: {
|
|
100
98
|
({ disabled, required, readOnly, error, onChange, value, defaultValue, variant, size, width, ...rest }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
101
|
-
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
99
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => react.JSX.Element;
|
|
102
100
|
};
|
|
103
101
|
|
|
104
102
|
interface ComboBoxProps extends Omit<ComboBoxProps$1<object>, 'isDisabled' | 'isRequired' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange'> {
|
|
@@ -115,7 +113,7 @@ interface ComboBoxProps extends Omit<ComboBoxProps$1<object>, 'isDisabled' | 'is
|
|
|
115
113
|
}
|
|
116
114
|
declare const ComboBox: {
|
|
117
115
|
({ error, width, disabled, required, readOnly, defaultValue, value, onChange, variant, size, ...rest }: ComboBoxProps): react_jsx_runtime.JSX.Element;
|
|
118
|
-
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
116
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => react__default.JSX.Element;
|
|
119
117
|
};
|
|
120
118
|
|
|
121
119
|
interface BadgeProps extends Omit<HtmlProps<'div'>, 'className'> {
|
|
@@ -140,8 +138,8 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
140
138
|
}
|
|
141
139
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
142
140
|
|
|
143
|
-
type RemovedProps$
|
|
144
|
-
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$
|
|
141
|
+
type RemovedProps$7 = 'isDisabled';
|
|
142
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$7> {
|
|
145
143
|
variant?: string;
|
|
146
144
|
size?: string;
|
|
147
145
|
fullWidth?: boolean;
|
|
@@ -176,30 +174,34 @@ interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defa
|
|
|
176
174
|
}
|
|
177
175
|
declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
178
176
|
|
|
179
|
-
interface
|
|
177
|
+
interface HelpTextProps {
|
|
178
|
+
variant?: string;
|
|
179
|
+
size?: string;
|
|
180
|
+
description?: ReactNode;
|
|
180
181
|
error?: boolean;
|
|
182
|
+
errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
|
|
181
183
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
|
|
185
|
+
interface FieldBaseProps$1<T extends ElementType> extends WidthProp, Pick<HelpTextProps, 'description' | 'errorMessage'> {
|
|
186
|
+
as?: T;
|
|
187
|
+
label?: ReactNode;
|
|
188
|
+
variant?: string;
|
|
189
|
+
size?: string;
|
|
190
|
+
children?: ReactNode;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
type RemovedProps$6 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
194
|
+
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$6>, Pick<FieldBaseProps$1<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
195
|
+
children?: ReactNode;
|
|
190
196
|
variant?: string;
|
|
191
197
|
size?: string;
|
|
192
|
-
label?: ReactNode;
|
|
193
|
-
required?: boolean;
|
|
194
|
-
disabled?: boolean;
|
|
195
|
-
readOnly?: boolean;
|
|
196
|
-
error?: boolean;
|
|
197
|
-
value?: string[];
|
|
198
|
-
defaultValue?: string[];
|
|
199
|
-
onChange?: (value: string[]) => void;
|
|
200
198
|
width?: WidthProp['width'];
|
|
199
|
+
disabled?: RAC.CheckboxGroupProps['isDisabled'];
|
|
200
|
+
required?: RAC.CheckboxGroupProps['isRequired'];
|
|
201
|
+
error?: RAC.CheckboxGroupProps['isInvalid'];
|
|
202
|
+
readOnly?: RAC.CheckboxGroupProps['isReadOnly'];
|
|
201
203
|
}
|
|
202
|
-
declare const
|
|
204
|
+
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
203
205
|
|
|
204
206
|
interface ColumnsProps extends GapSpaceProp {
|
|
205
207
|
children?: ReactNode;
|
|
@@ -285,7 +287,7 @@ interface FieldBaseProps extends WidthProp {
|
|
|
285
287
|
description?: ReactNode;
|
|
286
288
|
descriptionProps?: Omit<HTMLAttributes<HTMLElement>, 'children'>;
|
|
287
289
|
error?: boolean;
|
|
288
|
-
errorMessage?: ReactNode;
|
|
290
|
+
errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
|
|
289
291
|
errorMessageProps?: Omit<HTMLAttributes<HTMLElement>, 'children'>;
|
|
290
292
|
stateProps?: StateAttrProps;
|
|
291
293
|
}
|
|
@@ -452,8 +454,8 @@ interface MenuProps extends Omit<HtmlProps<'ul'>, 'onSelect' | 'size' | 'classNa
|
|
|
452
454
|
declare const Menu: {
|
|
453
455
|
({ variant, size, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
454
456
|
Trigger: ({ disabled, open, onOpenChange, children, }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
455
|
-
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
456
|
-
Section: <T_1>(props: _react_types_shared.SectionProps<T_1>) => JSX.Element;
|
|
457
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => react.JSX.Element;
|
|
458
|
+
Section: <T_1>(props: _react_types_shared.SectionProps<T_1>) => react.JSX.Element;
|
|
457
459
|
};
|
|
458
460
|
|
|
459
461
|
interface ActionMenuProps extends MenuProps {
|
|
@@ -705,7 +707,7 @@ declare const Tooltip: {
|
|
|
705
707
|
Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
706
708
|
};
|
|
707
709
|
|
|
708
|
-
interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | 'validationState'>, LabelableProps
|
|
710
|
+
interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | 'validationState'>, LabelableProps {
|
|
709
711
|
width?: WidthProp['width'];
|
|
710
712
|
required?: boolean;
|
|
711
713
|
error?: boolean;
|
|
@@ -732,7 +734,7 @@ interface TabsProps extends Omit<AriaTabListProps<object>, 'orientation' | 'isDi
|
|
|
732
734
|
}
|
|
733
735
|
declare const Tabs: {
|
|
734
736
|
({ space, size, disabled, variant, ...rest }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
735
|
-
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
737
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => react.JSX.Element;
|
|
736
738
|
};
|
|
737
739
|
|
|
738
|
-
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,
|
|
740
|
+
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 as CheckboxGroup, 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 as Header, HeaderProps, _Headline as Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, _Label as Label, LabelProps, _Link as Link, LinkProps, 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, useFieldGroupContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
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 react__default, { ReactElement, ReactNode, Key, HTMLAttributes, ComponentPropsWithRef, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
import react__default, { ReactElement, ReactNode, Key, ElementType, 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, CollectionElement, StyleProps, LabelableProps
|
|
7
|
+
import { ItemElement, ItemProps, Node, CollectionElement, StyleProps, LabelableProps } 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
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 RAC from 'react-aria-components';
|
|
15
|
-
import { CheckboxGroupState } from '@react-stately/checkbox';
|
|
16
|
-
import { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
|
14
|
+
import RAC, { ValidationResult } from 'react-aria-components';
|
|
17
15
|
import { AriaDialogProps } from '@react-types/dialog';
|
|
18
16
|
import { DateValue, CalendarDate } from '@internationalized/date';
|
|
19
17
|
import { AriaDateFieldProps, AriaDatePickerProps } from '@react-aria/datepicker';
|
|
@@ -71,7 +69,7 @@ interface AspectProps extends Omit<HtmlProps<'div'>, 'className'>, AspectProp {
|
|
|
71
69
|
}
|
|
72
70
|
declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => react_jsx_runtime.JSX.Element;
|
|
73
71
|
|
|
74
|
-
interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDisabled' | 'isRequired' | 'isReadonly' | 'validationState' | 'icon' | 'onInputChange' | 'inputValue' | 'defaultInputValue'> {
|
|
72
|
+
interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDisabled' | 'isRequired' | 'isReadonly' | 'validationState' | 'icon' | 'onInputChange' | 'inputValue' | 'defaultInputValue' | 'validate'> {
|
|
75
73
|
disabled?: boolean;
|
|
76
74
|
required?: boolean;
|
|
77
75
|
readOnly?: boolean;
|
|
@@ -98,7 +96,7 @@ interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDis
|
|
|
98
96
|
}
|
|
99
97
|
declare const Autocomplete: {
|
|
100
98
|
({ disabled, required, readOnly, error, onChange, value, defaultValue, variant, size, width, ...rest }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
101
|
-
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
99
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => react.JSX.Element;
|
|
102
100
|
};
|
|
103
101
|
|
|
104
102
|
interface ComboBoxProps extends Omit<ComboBoxProps$1<object>, 'isDisabled' | 'isRequired' | 'isReadOnly' | 'defaultInputValue' | 'inputValue' | 'onInputChange'> {
|
|
@@ -115,7 +113,7 @@ interface ComboBoxProps extends Omit<ComboBoxProps$1<object>, 'isDisabled' | 'is
|
|
|
115
113
|
}
|
|
116
114
|
declare const ComboBox: {
|
|
117
115
|
({ error, width, disabled, required, readOnly, defaultValue, value, onChange, variant, size, ...rest }: ComboBoxProps): react_jsx_runtime.JSX.Element;
|
|
118
|
-
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
116
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => react__default.JSX.Element;
|
|
119
117
|
};
|
|
120
118
|
|
|
121
119
|
interface BadgeProps extends Omit<HtmlProps<'div'>, 'className'> {
|
|
@@ -140,8 +138,8 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
140
138
|
}
|
|
141
139
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
142
140
|
|
|
143
|
-
type RemovedProps$
|
|
144
|
-
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$
|
|
141
|
+
type RemovedProps$7 = 'isDisabled';
|
|
142
|
+
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$7> {
|
|
145
143
|
variant?: string;
|
|
146
144
|
size?: string;
|
|
147
145
|
fullWidth?: boolean;
|
|
@@ -176,30 +174,34 @@ interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defa
|
|
|
176
174
|
}
|
|
177
175
|
declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
178
176
|
|
|
179
|
-
interface
|
|
177
|
+
interface HelpTextProps {
|
|
178
|
+
variant?: string;
|
|
179
|
+
size?: string;
|
|
180
|
+
description?: ReactNode;
|
|
180
181
|
error?: boolean;
|
|
182
|
+
errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
|
|
181
183
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
|
|
185
|
+
interface FieldBaseProps$1<T extends ElementType> extends WidthProp, Pick<HelpTextProps, 'description' | 'errorMessage'> {
|
|
186
|
+
as?: T;
|
|
187
|
+
label?: ReactNode;
|
|
188
|
+
variant?: string;
|
|
189
|
+
size?: string;
|
|
190
|
+
children?: ReactNode;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
type RemovedProps$6 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
194
|
+
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$6>, Pick<FieldBaseProps$1<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
195
|
+
children?: ReactNode;
|
|
190
196
|
variant?: string;
|
|
191
197
|
size?: string;
|
|
192
|
-
label?: ReactNode;
|
|
193
|
-
required?: boolean;
|
|
194
|
-
disabled?: boolean;
|
|
195
|
-
readOnly?: boolean;
|
|
196
|
-
error?: boolean;
|
|
197
|
-
value?: string[];
|
|
198
|
-
defaultValue?: string[];
|
|
199
|
-
onChange?: (value: string[]) => void;
|
|
200
198
|
width?: WidthProp['width'];
|
|
199
|
+
disabled?: RAC.CheckboxGroupProps['isDisabled'];
|
|
200
|
+
required?: RAC.CheckboxGroupProps['isRequired'];
|
|
201
|
+
error?: RAC.CheckboxGroupProps['isInvalid'];
|
|
202
|
+
readOnly?: RAC.CheckboxGroupProps['isReadOnly'];
|
|
201
203
|
}
|
|
202
|
-
declare const
|
|
204
|
+
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
203
205
|
|
|
204
206
|
interface ColumnsProps extends GapSpaceProp {
|
|
205
207
|
children?: ReactNode;
|
|
@@ -285,7 +287,7 @@ interface FieldBaseProps extends WidthProp {
|
|
|
285
287
|
description?: ReactNode;
|
|
286
288
|
descriptionProps?: Omit<HTMLAttributes<HTMLElement>, 'children'>;
|
|
287
289
|
error?: boolean;
|
|
288
|
-
errorMessage?: ReactNode;
|
|
290
|
+
errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
|
|
289
291
|
errorMessageProps?: Omit<HTMLAttributes<HTMLElement>, 'children'>;
|
|
290
292
|
stateProps?: StateAttrProps;
|
|
291
293
|
}
|
|
@@ -452,8 +454,8 @@ interface MenuProps extends Omit<HtmlProps<'ul'>, 'onSelect' | 'size' | 'classNa
|
|
|
452
454
|
declare const Menu: {
|
|
453
455
|
({ variant, size, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
454
456
|
Trigger: ({ disabled, open, onOpenChange, children, }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
455
|
-
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
456
|
-
Section: <T_1>(props: _react_types_shared.SectionProps<T_1>) => JSX.Element;
|
|
457
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => react.JSX.Element;
|
|
458
|
+
Section: <T_1>(props: _react_types_shared.SectionProps<T_1>) => react.JSX.Element;
|
|
457
459
|
};
|
|
458
460
|
|
|
459
461
|
interface ActionMenuProps extends MenuProps {
|
|
@@ -705,7 +707,7 @@ declare const Tooltip: {
|
|
|
705
707
|
Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
706
708
|
};
|
|
707
709
|
|
|
708
|
-
interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | 'validationState'>, LabelableProps
|
|
710
|
+
interface TagGroupProps extends Omit<AriaTagGroupProps<object>, 'isRequired' | 'validationState'>, LabelableProps {
|
|
709
711
|
width?: WidthProp['width'];
|
|
710
712
|
required?: boolean;
|
|
711
713
|
error?: boolean;
|
|
@@ -732,7 +734,7 @@ interface TabsProps extends Omit<AriaTabListProps<object>, 'orientation' | 'isDi
|
|
|
732
734
|
}
|
|
733
735
|
declare const Tabs: {
|
|
734
736
|
({ space, size, disabled, variant, ...rest }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
735
|
-
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
737
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => react.JSX.Element;
|
|
736
738
|
};
|
|
737
739
|
|
|
738
|
-
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,
|
|
740
|
+
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 as CheckboxGroup, 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 as Header, HeaderProps, _Headline as Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, _Label as Label, LabelProps, _Link as Link, LinkProps, 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, useFieldGroupContext };
|