@marigold/components 7.7.2 → 7.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +421 -383
- package/dist/index.mjs +323 -286
- package/package.json +26 -26
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import react__default, { ReactElement, ReactNode, ElementType, ComponentPropsWit
|
|
|
5
5
|
import { AriaAccordionProps } from '@react-aria/accordion';
|
|
6
6
|
import { ItemElement, SelectionMode, ItemProps, Node, Orientation } from '@react-types/shared';
|
|
7
7
|
import { TreeState } from '@react-stately/tree';
|
|
8
|
-
import { GapSpaceProp, AspectProp, WidthProp, AlignmentProp, alignment, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PlaceItemsProp, GridColumn, GridColsAlignProp, TextAlignProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
|
|
8
|
+
import { GapSpaceProp, AspectProp, WidthProp, AlignmentProp, alignment, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PlaceItemsProp, GridColumn, GridColsAlignProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
|
|
9
9
|
export { ThemeProvider, useTheme } from '@marigold/system';
|
|
10
10
|
import { NonZeroPercentage, HtmlProps, DistributiveOmit } from '@marigold/types';
|
|
11
11
|
import RAC, { ValidationResult, Key, DateValue, TagListProps } from 'react-aria-components';
|
|
@@ -286,6 +286,26 @@ interface FooterProps extends Omit<HtmlProps<'footer'>, 'className'> {
|
|
|
286
286
|
}
|
|
287
287
|
declare const Footer: ({ children, variant, size, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
288
288
|
|
|
289
|
+
interface GridAreaProps {
|
|
290
|
+
name: string;
|
|
291
|
+
children?: ReactNode;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
type TemplateValue = 'none' | 'auto' | 'min-content' | 'max-content' | (string & {}) | number;
|
|
295
|
+
interface GridProps extends GapSpaceProp, HeightProp {
|
|
296
|
+
areas: string[];
|
|
297
|
+
columns: TemplateValue[];
|
|
298
|
+
rows: TemplateValue[];
|
|
299
|
+
/**
|
|
300
|
+
* Children of the layout.
|
|
301
|
+
*/
|
|
302
|
+
children?: ReactNode;
|
|
303
|
+
}
|
|
304
|
+
declare const Grid: {
|
|
305
|
+
({ children, areas, columns, rows, height, space, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
306
|
+
Area: ({ name, children }: GridAreaProps) => react_jsx_runtime.JSX.Element;
|
|
307
|
+
};
|
|
308
|
+
|
|
289
309
|
interface HeaderProps extends Omit<RAC.HeadingProps, 'children'> {
|
|
290
310
|
children?: ReactNode;
|
|
291
311
|
variant?: string;
|
|
@@ -581,10 +601,10 @@ interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, 'class
|
|
|
581
601
|
declare const _SelectListItem: react.ForwardRefExoticComponent<SelectListItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
582
602
|
|
|
583
603
|
type RemoveProps = 'style' | 'className' | 'onSelectionChange';
|
|
584
|
-
interface
|
|
604
|
+
interface SelectListProps extends Omit<RAC.GridListProps<object>, RemoveProps> {
|
|
585
605
|
onChange?: RAC.GridListProps<object>['onSelectionChange'] | Dispatch<SetStateAction<any>>;
|
|
586
606
|
}
|
|
587
|
-
interface SelectListComponent extends ForwardRefExoticComponent<
|
|
607
|
+
interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps & RefAttributes<HTMLUListElement>> {
|
|
588
608
|
Item: typeof _SelectListItem;
|
|
589
609
|
}
|
|
590
610
|
declare const _SelectList: SelectListComponent;
|
|
@@ -766,4 +786,4 @@ declare const _Tabs: {
|
|
|
766
786
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
767
787
|
};
|
|
768
788
|
|
|
769
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionOwnItemProps, type AccordionProps, ActionMenu, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, type CustomCheckboxProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, _Divider as Divider, type DividerProps, FieldBase, type FieldBaseProps, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, type
|
|
789
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionOwnItemProps, type AccordionProps, ActionMenu, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, type CustomCheckboxProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, _Divider as Divider, type DividerProps, FieldBase, type FieldBaseProps, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, Grid, type GridProps, _Header as Header, type HeaderProps, _Headline as Headline, type HeadlineProps, Image, type ImageProps, Inline, type InlineProps, _Input as Input, type InputProps, Inset, type InsetProps, _Label as Label, type LabelProps, _Link as Link, type LinkProps, List, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, Message, type MessageProps, _Modal as Modal, type ModalProps, type MultiSelectItemProps, type MultiSelectProps, Multiselect, _NumberField as NumberField, type NumberFieldProps, OverlayContainerProvider, _Popover as Popover, type PopoverProps, _Radio as Radio, type RadioComponent, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, _Select as Select, type SelectComponent, _SelectList as SelectList, type SelectListProps, type SelectProps, _Slider as Slider, type SliderProps, Split, type SplitProps, Stack, type StackProps, _Switch as Switch, type SwitchProps, Table, type TableProps, _Tabs as Tabs, type TabsProps, _Tag as Tag, type TagProps, type TemplateValue, Text, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps, type TextProps, Tiles, type TilesProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, _Calendar, useFieldGroupContext, usePortalContainer };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import react__default, { ReactElement, ReactNode, ElementType, ComponentPropsWit
|
|
|
5
5
|
import { AriaAccordionProps } from '@react-aria/accordion';
|
|
6
6
|
import { ItemElement, SelectionMode, ItemProps, Node, Orientation } from '@react-types/shared';
|
|
7
7
|
import { TreeState } from '@react-stately/tree';
|
|
8
|
-
import { GapSpaceProp, AspectProp, WidthProp, AlignmentProp, alignment, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PlaceItemsProp, GridColumn, GridColsAlignProp, TextAlignProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
|
|
8
|
+
import { GapSpaceProp, AspectProp, WidthProp, AlignmentProp, alignment, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PlaceItemsProp, GridColumn, GridColsAlignProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
|
|
9
9
|
export { ThemeProvider, useTheme } from '@marigold/system';
|
|
10
10
|
import { NonZeroPercentage, HtmlProps, DistributiveOmit } from '@marigold/types';
|
|
11
11
|
import RAC, { ValidationResult, Key, DateValue, TagListProps } from 'react-aria-components';
|
|
@@ -286,6 +286,26 @@ interface FooterProps extends Omit<HtmlProps<'footer'>, 'className'> {
|
|
|
286
286
|
}
|
|
287
287
|
declare const Footer: ({ children, variant, size, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
288
288
|
|
|
289
|
+
interface GridAreaProps {
|
|
290
|
+
name: string;
|
|
291
|
+
children?: ReactNode;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
type TemplateValue = 'none' | 'auto' | 'min-content' | 'max-content' | (string & {}) | number;
|
|
295
|
+
interface GridProps extends GapSpaceProp, HeightProp {
|
|
296
|
+
areas: string[];
|
|
297
|
+
columns: TemplateValue[];
|
|
298
|
+
rows: TemplateValue[];
|
|
299
|
+
/**
|
|
300
|
+
* Children of the layout.
|
|
301
|
+
*/
|
|
302
|
+
children?: ReactNode;
|
|
303
|
+
}
|
|
304
|
+
declare const Grid: {
|
|
305
|
+
({ children, areas, columns, rows, height, space, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
306
|
+
Area: ({ name, children }: GridAreaProps) => react_jsx_runtime.JSX.Element;
|
|
307
|
+
};
|
|
308
|
+
|
|
289
309
|
interface HeaderProps extends Omit<RAC.HeadingProps, 'children'> {
|
|
290
310
|
children?: ReactNode;
|
|
291
311
|
variant?: string;
|
|
@@ -581,10 +601,10 @@ interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, 'class
|
|
|
581
601
|
declare const _SelectListItem: react.ForwardRefExoticComponent<SelectListItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
582
602
|
|
|
583
603
|
type RemoveProps = 'style' | 'className' | 'onSelectionChange';
|
|
584
|
-
interface
|
|
604
|
+
interface SelectListProps extends Omit<RAC.GridListProps<object>, RemoveProps> {
|
|
585
605
|
onChange?: RAC.GridListProps<object>['onSelectionChange'] | Dispatch<SetStateAction<any>>;
|
|
586
606
|
}
|
|
587
|
-
interface SelectListComponent extends ForwardRefExoticComponent<
|
|
607
|
+
interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps & RefAttributes<HTMLUListElement>> {
|
|
588
608
|
Item: typeof _SelectListItem;
|
|
589
609
|
}
|
|
590
610
|
declare const _SelectList: SelectListComponent;
|
|
@@ -766,4 +786,4 @@ declare const _Tabs: {
|
|
|
766
786
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
767
787
|
};
|
|
768
788
|
|
|
769
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionOwnItemProps, type AccordionProps, ActionMenu, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, type CustomCheckboxProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, _Divider as Divider, type DividerProps, FieldBase, type FieldBaseProps, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, type
|
|
789
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionOwnItemProps, type AccordionProps, ActionMenu, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, type CustomCheckboxProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, _Divider as Divider, type DividerProps, FieldBase, type FieldBaseProps, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, Grid, type GridProps, _Header as Header, type HeaderProps, _Headline as Headline, type HeadlineProps, Image, type ImageProps, Inline, type InlineProps, _Input as Input, type InputProps, Inset, type InsetProps, _Label as Label, type LabelProps, _Link as Link, type LinkProps, List, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, Message, type MessageProps, _Modal as Modal, type ModalProps, type MultiSelectItemProps, type MultiSelectProps, Multiselect, _NumberField as NumberField, type NumberFieldProps, OverlayContainerProvider, _Popover as Popover, type PopoverProps, _Radio as Radio, type RadioComponent, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, _Select as Select, type SelectComponent, _SelectList as SelectList, type SelectListProps, type SelectProps, _Slider as Slider, type SliderProps, Split, type SplitProps, Stack, type StackProps, _Switch as Switch, type SwitchProps, Table, type TableProps, _Tabs as Tabs, type TabsProps, _Tag as Tag, type TagProps, type TemplateValue, Text, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps, type TextProps, Tiles, type TilesProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, _Calendar, useFieldGroupContext, usePortalContainer };
|