@marigold/components 5.0.0 → 5.2.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.ts +57 -6
- package/dist/index.js +2310 -1850
- package/dist/index.mjs +2346 -1890
- package/package.json +8 -5
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { AriaTextFieldProps } from '@react-types/textfield';
|
|
|
20
20
|
import { PositionProps } from '@react-types/overlays';
|
|
21
21
|
import { TooltipTriggerProps as TooltipTriggerProps$1 } from '@react-types/tooltip';
|
|
22
22
|
import { aspect, size } from '@marigold/tokens';
|
|
23
|
+
import { SearchAutocompleteProps } from '@react-types/autocomplete';
|
|
23
24
|
import { CheckboxGroupState } from '@react-stately/checkbox';
|
|
24
25
|
import { OverlayProps as OverlayProps$1, AriaPopoverProps, AriaModalOverlayProps } from '@react-aria/overlays';
|
|
25
26
|
import { OverlayTriggerState } from '@react-stately/overlays';
|
|
@@ -235,15 +236,24 @@ interface ImageProps extends HtmlProps<'img'> {
|
|
|
235
236
|
}
|
|
236
237
|
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => JSX.Element;
|
|
237
238
|
|
|
239
|
+
interface InputFieldOwnProps extends Omit<HtmlProps<'input'>, 'size'> {
|
|
240
|
+
}
|
|
241
|
+
interface InputFieldProps extends Omit<React.ComponentPropsWithRef<'input'>, 'size'>, InputFieldOwnProps {
|
|
242
|
+
}
|
|
243
|
+
declare const InputField: React.ForwardRefExoticComponent<InputFieldOwnProps & React.RefAttributes<HTMLInputElement>>;
|
|
244
|
+
|
|
238
245
|
interface InputThemeExtension extends ThemeExtension<'Input'> {
|
|
239
246
|
}
|
|
240
|
-
interface
|
|
241
|
-
|
|
247
|
+
interface InputProps extends Omit<HtmlProps<'div'>, 'size'> {
|
|
248
|
+
children: ReactNode;
|
|
249
|
+
space?: ResponsiveStyleValue<string>;
|
|
242
250
|
variant?: string;
|
|
251
|
+
size?: string;
|
|
243
252
|
}
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
|
|
253
|
+
declare const Input: {
|
|
254
|
+
({ space, children, variant, size, ...props }: InputProps): JSX.Element;
|
|
255
|
+
Field: React.ForwardRefExoticComponent<InputFieldOwnProps & React.RefAttributes<HTMLInputElement>>;
|
|
256
|
+
};
|
|
247
257
|
|
|
248
258
|
interface LinkThemeExtension extends ThemeExtension<'Link'> {
|
|
249
259
|
}
|
|
@@ -580,6 +590,34 @@ interface AspectProps extends HtmlProps<'div'> {
|
|
|
580
590
|
}
|
|
581
591
|
declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => JSX.Element;
|
|
582
592
|
|
|
593
|
+
interface AutocompleteProps extends Omit<SearchAutocompleteProps<object>, 'isDisabled' | 'isRequired' | 'isReadonly' | 'validationState' | 'icon' | 'onInputChange' | 'inputValue' | 'defaultInputValue'> {
|
|
594
|
+
disabled?: boolean;
|
|
595
|
+
required?: boolean;
|
|
596
|
+
readOnly?: boolean;
|
|
597
|
+
error?: boolean;
|
|
598
|
+
defaultValue?: SearchAutocompleteProps<object>['defaultInputValue'];
|
|
599
|
+
value?: SearchAutocompleteProps<object>['inputValue'];
|
|
600
|
+
/**
|
|
601
|
+
* Handler that is called when the input value changes.
|
|
602
|
+
*/
|
|
603
|
+
onChange?: SearchAutocompleteProps<object>['onInputChange'];
|
|
604
|
+
/**
|
|
605
|
+
* Handler that is called when the SearchAutocomplete is submitted.
|
|
606
|
+
*
|
|
607
|
+
* A `key` will be passed if the submission is a selected item (e.g. a user
|
|
608
|
+
* clicks or presses enter on an option). If the input is a custom `value`, `key` will be `null`.
|
|
609
|
+
*
|
|
610
|
+
* A `value` will be passed if the submission is a custom value (e.g. a user
|
|
611
|
+
* types then presses enter). If the input is a selected item, `value` will be `null`.
|
|
612
|
+
*/
|
|
613
|
+
onSubmit?: (key: Key | null, value: string | null) => void;
|
|
614
|
+
width?: string;
|
|
615
|
+
}
|
|
616
|
+
declare const Autocomplete: {
|
|
617
|
+
({ disabled, required, readOnly, error, onChange, value, defaultValue, width, ...rest }: AutocompleteProps): JSX.Element;
|
|
618
|
+
Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
|
|
619
|
+
};
|
|
620
|
+
|
|
583
621
|
interface BreakoutProps extends HtmlProps<'div'> {
|
|
584
622
|
children?: ReactNode;
|
|
585
623
|
alignY?: 'top' | 'bottom' | 'center';
|
|
@@ -632,6 +670,19 @@ interface InlineProps {
|
|
|
632
670
|
}
|
|
633
671
|
declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => JSX.Element;
|
|
634
672
|
|
|
673
|
+
type InsetProps = {
|
|
674
|
+
children: ReactNode;
|
|
675
|
+
space?: never;
|
|
676
|
+
spaceX?: ResponsiveStyleValue<string>;
|
|
677
|
+
spaceY?: ResponsiveStyleValue<string>;
|
|
678
|
+
} | {
|
|
679
|
+
children: ReactNode;
|
|
680
|
+
space?: ResponsiveStyleValue<string>;
|
|
681
|
+
spaceX?: never;
|
|
682
|
+
spaceY?: never;
|
|
683
|
+
};
|
|
684
|
+
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => JSX.Element;
|
|
685
|
+
|
|
635
686
|
interface MarigoldProviderProps<T extends Theme$1> extends ThemeProviderProps<T>, GlobalProps {
|
|
636
687
|
}
|
|
637
688
|
declare function MarigoldProvider<T extends Theme$1>({ children, theme, selector, normalizeDocument, }: MarigoldProviderProps<T>): JSX.Element;
|
|
@@ -691,4 +742,4 @@ declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...pr
|
|
|
691
742
|
|
|
692
743
|
declare const XLoader: React.ForwardRefExoticComponent<SVGProps & React.RefAttributes<SVGElement>>;
|
|
693
744
|
|
|
694
|
-
export { ActionMenu, Aside, AsideProps, Aspect, AspectProps, Badge, BadgeProps, BadgeThemeExtension, Body, BodyProps, BodyThemeExtension, Breakout, BreakoutProps, Button, ButtonOwnProps, ButtonProps, ButtonThemeExtension, Card, CardProps, CardThemeExtension, Center, CenterProps, Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxProps, CheckboxThemeExtension, Columns, ColumnsProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomSwitchProps, CustomTextAreaEvents, CustomTextFieldEvents, CustomizedTheme, 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,
|
|
745
|
+
export { ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, BadgeThemeExtension, Body, BodyProps, BodyThemeExtension, Breakout, BreakoutProps, Button, ButtonOwnProps, ButtonProps, ButtonThemeExtension, Card, CardProps, CardThemeExtension, Center, CenterProps, Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, CheckboxThemeExtension, Columns, ColumnsProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomSwitchProps, CustomTextAreaEvents, CustomTextFieldEvents, CustomizedTheme, 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, InputField, InputFieldOwnProps, InputFieldProps, 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, Text, TextArea, TextAreaProps, TextAreaThemeExtension, TextField, TextFieldProps, TextProps, TextThemeExtension, Theme, Tiles, TilesProps, Tooltip, TooltipProps, TooltipThemeExtension, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, UnderlayThemeExtension, XLoader, extendTheme, useCheckboxGroupContext, useFieldGroupContext };
|