@marigold/components 9.0.1 → 9.0.2
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 +33 -19
- package/dist/index.d.ts +33 -19
- package/dist/index.js +45 -36
- package/dist/index.mjs +27 -22
- package/package.json +18 -18
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, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp,
|
|
8
|
+
import { GapSpaceProp, AspectProp, WidthProp, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, 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, DistributiveOmit, HtmlProps } from '@marigold/types';
|
|
11
11
|
import RAC, { ValidationResult, Key, DateValue, TagListProps } from 'react-aria-components';
|
|
@@ -135,7 +135,7 @@ declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) => react_j
|
|
|
135
135
|
|
|
136
136
|
interface ListBoxItemProps extends Omit<RAC.ListBoxItemProps, 'style' | 'className'> {
|
|
137
137
|
}
|
|
138
|
-
declare const _ListBoxItem: (props: ListBoxItemProps) => react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare const _ListBoxItem: ({ ...props }: ListBoxItemProps) => react_jsx_runtime.JSX.Element;
|
|
139
139
|
|
|
140
140
|
interface SectionProps extends Omit<RAC.SectionProps<object>, 'className' | 'style'> {
|
|
141
141
|
}
|
|
@@ -151,7 +151,7 @@ interface ListBoxComponent extends ForwardRefExoticComponent<ListBoxProps & RefA
|
|
|
151
151
|
}
|
|
152
152
|
declare const _ListBox: ListBoxComponent;
|
|
153
153
|
|
|
154
|
-
type RemovedProps$n = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState';
|
|
154
|
+
type RemovedProps$n = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
|
|
155
155
|
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$n>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
156
156
|
/**
|
|
157
157
|
* The value of the input (uncontrolled).
|
|
@@ -629,20 +629,21 @@ interface ImageProps extends Pick<HtmlProps<'img'>, 'src' | 'srcSet' | 'sizes' |
|
|
|
629
629
|
}
|
|
630
630
|
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
631
631
|
|
|
632
|
-
interface InlineProps extends
|
|
632
|
+
interface InlineProps extends GapSpaceProp {
|
|
633
|
+
/**
|
|
634
|
+
* The children of the component.
|
|
635
|
+
*/
|
|
633
636
|
children?: ReactNode;
|
|
634
637
|
/**
|
|
635
|
-
* Horizontal alignment of the items inside the
|
|
636
|
-
* @default 'left'
|
|
638
|
+
* Horizontal alignment of the items inside the element.
|
|
637
639
|
*/
|
|
638
640
|
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
639
641
|
/**
|
|
640
|
-
* Vertical alignment of the items inside the
|
|
641
|
-
* @default 'center'
|
|
642
|
+
* Vertical alignment of the items inside the element.
|
|
642
643
|
*/
|
|
643
644
|
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
644
645
|
}
|
|
645
|
-
declare const Inline: ({ space,
|
|
646
|
+
declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
646
647
|
|
|
647
648
|
type RemovedProps$i = 'className' | 'style' | 'size';
|
|
648
649
|
interface InputProps extends Omit<RAC.InputProps, RemovedProps$i> {
|
|
@@ -773,7 +774,7 @@ interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$e> {
|
|
|
773
774
|
}
|
|
774
775
|
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
775
776
|
|
|
776
|
-
type RemovedProps$d = 'className' | 'isDisabled';
|
|
777
|
+
type RemovedProps$d = 'className' | 'isDisabled' | 'slot';
|
|
777
778
|
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$d> {
|
|
778
779
|
variant?: string;
|
|
779
780
|
size?: string;
|
|
@@ -1267,18 +1268,16 @@ interface StackProps extends GapSpaceProp {
|
|
|
1267
1268
|
stretch?: boolean;
|
|
1268
1269
|
/**
|
|
1269
1270
|
* Horizontal alignment for the children.
|
|
1270
|
-
* @default none
|
|
1271
1271
|
*/
|
|
1272
1272
|
alignX?: keyof typeof alignment.vertical.alignmentX;
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Vertical alignment for the children.
|
|
1275
|
-
* @default none
|
|
1276
1275
|
*/
|
|
1277
1276
|
alignY?: keyof typeof alignment.vertical.alignmentY;
|
|
1278
1277
|
}
|
|
1279
1278
|
declare const Stack: ({ children, space, stretch, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
1280
1279
|
|
|
1281
|
-
type RemovedProps$5 = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children';
|
|
1280
|
+
type RemovedProps$5 = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children' | 'slot';
|
|
1282
1281
|
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$5> {
|
|
1283
1282
|
variant?: string;
|
|
1284
1283
|
size?: string;
|
|
@@ -1354,7 +1353,7 @@ interface Table {
|
|
|
1354
1353
|
Row: (props: RowProps) => JSX.Element;
|
|
1355
1354
|
}
|
|
1356
1355
|
|
|
1357
|
-
interface TextProps extends TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1356
|
+
interface TextProps extends Omit<RAC.TextProps, 'elementType'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1358
1357
|
/**
|
|
1359
1358
|
* The children of the component
|
|
1360
1359
|
*/
|
|
@@ -1364,10 +1363,15 @@ interface TextProps extends TextAlignProp, FontSizeProp, FontWeightProp, FontSty
|
|
|
1364
1363
|
* @default currentColor
|
|
1365
1364
|
*/
|
|
1366
1365
|
color?: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* Element to render
|
|
1368
|
+
* @default "div"
|
|
1369
|
+
*/
|
|
1370
|
+
as?: 'div' | 'p' | 'span';
|
|
1367
1371
|
variant?: string;
|
|
1368
1372
|
size?: string;
|
|
1369
1373
|
}
|
|
1370
|
-
declare const
|
|
1374
|
+
declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
1371
1375
|
|
|
1372
1376
|
type RemovedProps$4 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1373
1377
|
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$4>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
@@ -1421,7 +1425,7 @@ interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$4>, Pick<R
|
|
|
1421
1425
|
}
|
|
1422
1426
|
declare const _TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1423
1427
|
|
|
1424
|
-
type RemovedProps$3 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1428
|
+
type RemovedProps$3 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue' | 'slot';
|
|
1425
1429
|
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$3>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1426
1430
|
variant?: string;
|
|
1427
1431
|
size?: string;
|
|
@@ -1501,9 +1505,19 @@ interface TilesProps extends GapSpaceProp {
|
|
|
1501
1505
|
}
|
|
1502
1506
|
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
1503
1507
|
|
|
1504
|
-
type RemovedProps$2 = 'isDisabled' | 'isOpen';
|
|
1508
|
+
type RemovedProps$2 = 'isDisabled' | 'isOpen' | 'children';
|
|
1505
1509
|
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$2> {
|
|
1510
|
+
/**
|
|
1511
|
+
* The children of the component.
|
|
1512
|
+
*/
|
|
1513
|
+
children: ReactNode;
|
|
1514
|
+
/**
|
|
1515
|
+
* Whether the tooltip should be disabled, independent from the trigger.
|
|
1516
|
+
*/
|
|
1506
1517
|
disabled?: RAC.TooltipTriggerComponentProps['isDisabled'];
|
|
1518
|
+
/**
|
|
1519
|
+
* Control the visibility of the tooltip.
|
|
1520
|
+
*/
|
|
1507
1521
|
open?: boolean;
|
|
1508
1522
|
}
|
|
1509
1523
|
|
|
@@ -1565,7 +1579,7 @@ interface TabPanelProps extends Omit<RAC.TabPanelProps, 'className' | 'style'> {
|
|
|
1565
1579
|
interface TabListProps extends Omit<RAC.TabListProps<Object>, 'className' | 'style'>, GapSpaceProp {
|
|
1566
1580
|
}
|
|
1567
1581
|
|
|
1568
|
-
interface TabsProps extends Omit<RAC.TabsProps, 'className' | 'style' | 'isDisabled' | 'orientation'> {
|
|
1582
|
+
interface TabsProps extends Omit<RAC.TabsProps, 'className' | 'style' | 'isDisabled' | 'orientation' | 'slot'> {
|
|
1569
1583
|
/**
|
|
1570
1584
|
* Set All TabPanel disabled
|
|
1571
1585
|
* @default false
|
|
@@ -1581,4 +1595,4 @@ declare const _Tabs: {
|
|
|
1581
1595
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
1582
1596
|
};
|
|
1583
1597
|
|
|
1584
|
-
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, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _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, _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 RemovedProps$k as RemovedProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _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 };
|
|
1598
|
+
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, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _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, _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 RemovedProps$k as RemovedProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _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 as 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, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp,
|
|
8
|
+
import { GapSpaceProp, AspectProp, WidthProp, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, 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, DistributiveOmit, HtmlProps } from '@marigold/types';
|
|
11
11
|
import RAC, { ValidationResult, Key, DateValue, TagListProps } from 'react-aria-components';
|
|
@@ -135,7 +135,7 @@ declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) => react_j
|
|
|
135
135
|
|
|
136
136
|
interface ListBoxItemProps extends Omit<RAC.ListBoxItemProps, 'style' | 'className'> {
|
|
137
137
|
}
|
|
138
|
-
declare const _ListBoxItem: (props: ListBoxItemProps) => react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare const _ListBoxItem: ({ ...props }: ListBoxItemProps) => react_jsx_runtime.JSX.Element;
|
|
139
139
|
|
|
140
140
|
interface SectionProps extends Omit<RAC.SectionProps<object>, 'className' | 'style'> {
|
|
141
141
|
}
|
|
@@ -151,7 +151,7 @@ interface ListBoxComponent extends ForwardRefExoticComponent<ListBoxProps & RefA
|
|
|
151
151
|
}
|
|
152
152
|
declare const _ListBox: ListBoxComponent;
|
|
153
153
|
|
|
154
|
-
type RemovedProps$n = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState';
|
|
154
|
+
type RemovedProps$n = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
|
|
155
155
|
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$n>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
156
156
|
/**
|
|
157
157
|
* The value of the input (uncontrolled).
|
|
@@ -629,20 +629,21 @@ interface ImageProps extends Pick<HtmlProps<'img'>, 'src' | 'srcSet' | 'sizes' |
|
|
|
629
629
|
}
|
|
630
630
|
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
631
631
|
|
|
632
|
-
interface InlineProps extends
|
|
632
|
+
interface InlineProps extends GapSpaceProp {
|
|
633
|
+
/**
|
|
634
|
+
* The children of the component.
|
|
635
|
+
*/
|
|
633
636
|
children?: ReactNode;
|
|
634
637
|
/**
|
|
635
|
-
* Horizontal alignment of the items inside the
|
|
636
|
-
* @default 'left'
|
|
638
|
+
* Horizontal alignment of the items inside the element.
|
|
637
639
|
*/
|
|
638
640
|
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
639
641
|
/**
|
|
640
|
-
* Vertical alignment of the items inside the
|
|
641
|
-
* @default 'center'
|
|
642
|
+
* Vertical alignment of the items inside the element.
|
|
642
643
|
*/
|
|
643
644
|
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
644
645
|
}
|
|
645
|
-
declare const Inline: ({ space,
|
|
646
|
+
declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
646
647
|
|
|
647
648
|
type RemovedProps$i = 'className' | 'style' | 'size';
|
|
648
649
|
interface InputProps extends Omit<RAC.InputProps, RemovedProps$i> {
|
|
@@ -773,7 +774,7 @@ interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$e> {
|
|
|
773
774
|
}
|
|
774
775
|
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
775
776
|
|
|
776
|
-
type RemovedProps$d = 'className' | 'isDisabled';
|
|
777
|
+
type RemovedProps$d = 'className' | 'isDisabled' | 'slot';
|
|
777
778
|
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$d> {
|
|
778
779
|
variant?: string;
|
|
779
780
|
size?: string;
|
|
@@ -1267,18 +1268,16 @@ interface StackProps extends GapSpaceProp {
|
|
|
1267
1268
|
stretch?: boolean;
|
|
1268
1269
|
/**
|
|
1269
1270
|
* Horizontal alignment for the children.
|
|
1270
|
-
* @default none
|
|
1271
1271
|
*/
|
|
1272
1272
|
alignX?: keyof typeof alignment.vertical.alignmentX;
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Vertical alignment for the children.
|
|
1275
|
-
* @default none
|
|
1276
1275
|
*/
|
|
1277
1276
|
alignY?: keyof typeof alignment.vertical.alignmentY;
|
|
1278
1277
|
}
|
|
1279
1278
|
declare const Stack: ({ children, space, stretch, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
1280
1279
|
|
|
1281
|
-
type RemovedProps$5 = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children';
|
|
1280
|
+
type RemovedProps$5 = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children' | 'slot';
|
|
1282
1281
|
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$5> {
|
|
1283
1282
|
variant?: string;
|
|
1284
1283
|
size?: string;
|
|
@@ -1354,7 +1353,7 @@ interface Table {
|
|
|
1354
1353
|
Row: (props: RowProps) => JSX.Element;
|
|
1355
1354
|
}
|
|
1356
1355
|
|
|
1357
|
-
interface TextProps extends TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1356
|
+
interface TextProps extends Omit<RAC.TextProps, 'elementType'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1358
1357
|
/**
|
|
1359
1358
|
* The children of the component
|
|
1360
1359
|
*/
|
|
@@ -1364,10 +1363,15 @@ interface TextProps extends TextAlignProp, FontSizeProp, FontWeightProp, FontSty
|
|
|
1364
1363
|
* @default currentColor
|
|
1365
1364
|
*/
|
|
1366
1365
|
color?: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* Element to render
|
|
1368
|
+
* @default "div"
|
|
1369
|
+
*/
|
|
1370
|
+
as?: 'div' | 'p' | 'span';
|
|
1367
1371
|
variant?: string;
|
|
1368
1372
|
size?: string;
|
|
1369
1373
|
}
|
|
1370
|
-
declare const
|
|
1374
|
+
declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
1371
1375
|
|
|
1372
1376
|
type RemovedProps$4 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1373
1377
|
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$4>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
@@ -1421,7 +1425,7 @@ interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$4>, Pick<R
|
|
|
1421
1425
|
}
|
|
1422
1426
|
declare const _TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1423
1427
|
|
|
1424
|
-
type RemovedProps$3 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1428
|
+
type RemovedProps$3 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue' | 'slot';
|
|
1425
1429
|
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$3>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1426
1430
|
variant?: string;
|
|
1427
1431
|
size?: string;
|
|
@@ -1501,9 +1505,19 @@ interface TilesProps extends GapSpaceProp {
|
|
|
1501
1505
|
}
|
|
1502
1506
|
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
1503
1507
|
|
|
1504
|
-
type RemovedProps$2 = 'isDisabled' | 'isOpen';
|
|
1508
|
+
type RemovedProps$2 = 'isDisabled' | 'isOpen' | 'children';
|
|
1505
1509
|
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$2> {
|
|
1510
|
+
/**
|
|
1511
|
+
* The children of the component.
|
|
1512
|
+
*/
|
|
1513
|
+
children: ReactNode;
|
|
1514
|
+
/**
|
|
1515
|
+
* Whether the tooltip should be disabled, independent from the trigger.
|
|
1516
|
+
*/
|
|
1506
1517
|
disabled?: RAC.TooltipTriggerComponentProps['isDisabled'];
|
|
1518
|
+
/**
|
|
1519
|
+
* Control the visibility of the tooltip.
|
|
1520
|
+
*/
|
|
1507
1521
|
open?: boolean;
|
|
1508
1522
|
}
|
|
1509
1523
|
|
|
@@ -1565,7 +1579,7 @@ interface TabPanelProps extends Omit<RAC.TabPanelProps, 'className' | 'style'> {
|
|
|
1565
1579
|
interface TabListProps extends Omit<RAC.TabListProps<Object>, 'className' | 'style'>, GapSpaceProp {
|
|
1566
1580
|
}
|
|
1567
1581
|
|
|
1568
|
-
interface TabsProps extends Omit<RAC.TabsProps, 'className' | 'style' | 'isDisabled' | 'orientation'> {
|
|
1582
|
+
interface TabsProps extends Omit<RAC.TabsProps, 'className' | 'style' | 'isDisabled' | 'orientation' | 'slot'> {
|
|
1569
1583
|
/**
|
|
1570
1584
|
* Set All TabPanel disabled
|
|
1571
1585
|
* @default false
|
|
@@ -1581,4 +1595,4 @@ declare const _Tabs: {
|
|
|
1581
1595
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
1582
1596
|
};
|
|
1583
1597
|
|
|
1584
|
-
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, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _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, _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 RemovedProps$k as RemovedProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _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 };
|
|
1598
|
+
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, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _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, _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 RemovedProps$k as RemovedProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _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 as 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.js
CHANGED
|
@@ -78,7 +78,7 @@ __export(src_exports, {
|
|
|
78
78
|
Popover: () => _Popover,
|
|
79
79
|
Radio: () => _Radio,
|
|
80
80
|
RadioGroup: () => _RadioGroup,
|
|
81
|
-
RouterProvider: () =>
|
|
81
|
+
RouterProvider: () => import_react_aria_components59.RouterProvider,
|
|
82
82
|
Scrollable: () => Scrollable,
|
|
83
83
|
SearchField: () => _SearchField,
|
|
84
84
|
SectionMessage: () => SectionMessage,
|
|
@@ -91,7 +91,7 @@ __export(src_exports, {
|
|
|
91
91
|
Table: () => Table,
|
|
92
92
|
Tabs: () => _Tabs,
|
|
93
93
|
Tag: () => _Tag,
|
|
94
|
-
Text: () =>
|
|
94
|
+
Text: () => _Text,
|
|
95
95
|
TextArea: () => _TextArea,
|
|
96
96
|
TextField: () => _TextField,
|
|
97
97
|
ThemeProvider: () => import_system14.ThemeProvider,
|
|
@@ -701,10 +701,10 @@ var import_react11 = require("react");
|
|
|
701
701
|
var ListBoxContext = (0, import_react11.createContext)({});
|
|
702
702
|
var useListBoxContext = () => (0, import_react11.useContext)(ListBoxContext);
|
|
703
703
|
|
|
704
|
-
// src/ListBox/
|
|
704
|
+
// src/ListBox/ListBoxItem.tsx
|
|
705
705
|
var import_react_aria_components5 = require("react-aria-components");
|
|
706
706
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
707
|
-
var _ListBoxItem = (props) => {
|
|
707
|
+
var _ListBoxItem = ({ ...props }) => {
|
|
708
708
|
const { classNames: classNames2 } = useListBoxContext();
|
|
709
709
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_aria_components5.ListBoxItem, { ...props, className: classNames2.option });
|
|
710
710
|
};
|
|
@@ -880,7 +880,10 @@ var AutocompleteInput = ({
|
|
|
880
880
|
{
|
|
881
881
|
ref,
|
|
882
882
|
className: {
|
|
883
|
-
action: (0, import_system17.cn)(
|
|
883
|
+
action: (0, import_system17.cn)(
|
|
884
|
+
(state == null ? void 0 : state.inputValue) === "" ? "invisible" : "visible",
|
|
885
|
+
classNames2
|
|
886
|
+
)
|
|
884
887
|
},
|
|
885
888
|
onKeyDown: (e) => {
|
|
886
889
|
if (e.key === "Enter" || e.key === "Escape") {
|
|
@@ -926,7 +929,7 @@ var _Autocomplete = (0, import_react15.forwardRef)(
|
|
|
926
929
|
isRequired: required,
|
|
927
930
|
...rest
|
|
928
931
|
};
|
|
929
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(FieldBase, { as: import_react_aria_components10.ComboBox, ...props, children: [
|
|
932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(FieldBase, { as: import_react_aria_components10.ComboBox, ref, ...props, children: [
|
|
930
933
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AutocompleteInput, { onSubmit, onClear, ref }),
|
|
931
934
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(_ListBox, { children }) })
|
|
932
935
|
] });
|
|
@@ -1614,13 +1617,12 @@ var import_system37 = require("@marigold/system");
|
|
|
1614
1617
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1615
1618
|
var Inline = ({
|
|
1616
1619
|
space = 0,
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
alignY = ((_b) => (_b = orientation == null ? void 0 : orientation.horizontal) == null ? void 0 : _b.alignY)(),
|
|
1620
|
+
alignX,
|
|
1621
|
+
alignY,
|
|
1620
1622
|
children,
|
|
1621
1623
|
...props
|
|
1622
1624
|
}) => {
|
|
1623
|
-
var
|
|
1625
|
+
var _a, _b, _c, _d;
|
|
1624
1626
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1625
1627
|
"div",
|
|
1626
1628
|
{
|
|
@@ -1628,7 +1630,7 @@ var Inline = ({
|
|
|
1628
1630
|
className: (0, import_system37.cn)(
|
|
1629
1631
|
"flex flex-wrap",
|
|
1630
1632
|
import_system37.gapSpace[space],
|
|
1631
|
-
alignX && ((
|
|
1633
|
+
alignX && ((_b = (_a = import_system37.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
|
|
1632
1634
|
alignY && ((_d = (_c = import_system37.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
|
|
1633
1635
|
),
|
|
1634
1636
|
children
|
|
@@ -2784,7 +2786,7 @@ var _Select = (0, import_react39.forwardRef)(
|
|
|
2784
2786
|
classNames2.select
|
|
2785
2787
|
),
|
|
2786
2788
|
children: [
|
|
2787
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_aria_components45.SelectValue, {}),
|
|
2789
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_aria_components45.SelectValue, { className: "[&>[slot=description]]:hidden" }),
|
|
2788
2790
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ChevronDown, { className: (0, import_system62.cn)("size-4", classNames2.icon) })
|
|
2789
2791
|
]
|
|
2790
2792
|
}
|
|
@@ -2824,7 +2826,10 @@ var _SelectListItem = (0, import_react41.forwardRef)(
|
|
|
2824
2826
|
{
|
|
2825
2827
|
textValue,
|
|
2826
2828
|
...props,
|
|
2827
|
-
className: (0, import_system63.cn)(
|
|
2829
|
+
className: (0, import_system63.cn)(
|
|
2830
|
+
"items-center group-data-[layout=grid]/list:flex-row",
|
|
2831
|
+
classNames2 == null ? void 0 : classNames2.option
|
|
2832
|
+
),
|
|
2828
2833
|
ref,
|
|
2829
2834
|
children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
|
|
2830
2835
|
selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(FieldGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Checkbox, { slot: "selection" }) }),
|
|
@@ -2848,9 +2853,10 @@ var _SelectList = (0, import_react42.forwardRef)(
|
|
|
2848
2853
|
import_react_aria_components47.GridList,
|
|
2849
2854
|
{
|
|
2850
2855
|
...props,
|
|
2856
|
+
layout: "grid",
|
|
2851
2857
|
ref,
|
|
2852
2858
|
className: (0, import_system64.cn)(
|
|
2853
|
-
"overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
|
|
2859
|
+
"group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
|
|
2854
2860
|
classNames2.list
|
|
2855
2861
|
),
|
|
2856
2862
|
children: props.children
|
|
@@ -3049,7 +3055,7 @@ var TableBody = ({ children, emptyState }) => {
|
|
|
3049
3055
|
const { rowGroupProps } = (0, import_table.useTableRowGroup)();
|
|
3050
3056
|
const { state, classNames: classNames2 } = useTableContext();
|
|
3051
3057
|
if (state.collection.size === 0 && emptyState) {
|
|
3052
|
-
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
3058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
3053
3059
|
"td",
|
|
3054
3060
|
{
|
|
3055
3061
|
className: classNames2 == null ? void 0 : classNames2.cell,
|
|
@@ -3057,7 +3063,7 @@ var TableBody = ({ children, emptyState }) => {
|
|
|
3057
3063
|
role: "rowheader",
|
|
3058
3064
|
children: emptyState()
|
|
3059
3065
|
}
|
|
3060
|
-
) });
|
|
3066
|
+
) }) });
|
|
3061
3067
|
}
|
|
3062
3068
|
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { ...rowGroupProps, children });
|
|
3063
3069
|
};
|
|
@@ -3427,9 +3433,10 @@ Table.Header = import_table10.TableHeader;
|
|
|
3427
3433
|
Table.Row = import_table10.Row;
|
|
3428
3434
|
|
|
3429
3435
|
// src/Text/Text.tsx
|
|
3436
|
+
var import_react_aria_components50 = require("react-aria-components");
|
|
3430
3437
|
var import_system75 = require("@marigold/system");
|
|
3431
3438
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
3432
|
-
var
|
|
3439
|
+
var _Text = ({
|
|
3433
3440
|
variant,
|
|
3434
3441
|
size,
|
|
3435
3442
|
color,
|
|
@@ -3439,6 +3446,7 @@ var Text2 = ({
|
|
|
3439
3446
|
fontSize,
|
|
3440
3447
|
fontStyle,
|
|
3441
3448
|
children,
|
|
3449
|
+
as = "div",
|
|
3442
3450
|
...props
|
|
3443
3451
|
}) => {
|
|
3444
3452
|
const theme = (0, import_system75.useTheme)();
|
|
@@ -3448,9 +3456,10 @@ var Text2 = ({
|
|
|
3448
3456
|
size
|
|
3449
3457
|
});
|
|
3450
3458
|
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
3451
|
-
|
|
3459
|
+
import_react_aria_components50.Text,
|
|
3452
3460
|
{
|
|
3453
3461
|
...props,
|
|
3462
|
+
elementType: as,
|
|
3454
3463
|
className: (0, import_system75.cn)(
|
|
3455
3464
|
"text-[--color] outline-[--outline]",
|
|
3456
3465
|
classNames2,
|
|
@@ -3475,7 +3484,7 @@ var Text2 = ({
|
|
|
3475
3484
|
|
|
3476
3485
|
// src/TextArea/TextArea.tsx
|
|
3477
3486
|
var import_react53 = require("react");
|
|
3478
|
-
var
|
|
3487
|
+
var import_react_aria_components51 = require("react-aria-components");
|
|
3479
3488
|
var import_system76 = require("@marigold/system");
|
|
3480
3489
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
3481
3490
|
var _TextArea = (0, import_react53.forwardRef)(
|
|
@@ -3497,13 +3506,13 @@ var _TextArea = (0, import_react53.forwardRef)(
|
|
|
3497
3506
|
isRequired: required,
|
|
3498
3507
|
...rest
|
|
3499
3508
|
};
|
|
3500
|
-
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(FieldBase, { as:
|
|
3509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(FieldBase, { as: import_react_aria_components51.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_aria_components51.TextArea, { className: classNames2, ref, rows }) });
|
|
3501
3510
|
}
|
|
3502
3511
|
);
|
|
3503
3512
|
|
|
3504
3513
|
// src/TextField/TextField.tsx
|
|
3505
3514
|
var import_react54 = require("react");
|
|
3506
|
-
var
|
|
3515
|
+
var import_react_aria_components52 = require("react-aria-components");
|
|
3507
3516
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
3508
3517
|
var _TextField = (0, import_react54.forwardRef)(
|
|
3509
3518
|
({ required, disabled, readOnly, error, ...rest }, ref) => {
|
|
@@ -3514,7 +3523,7 @@ var _TextField = (0, import_react54.forwardRef)(
|
|
|
3514
3523
|
isRequired: required,
|
|
3515
3524
|
...rest
|
|
3516
3525
|
};
|
|
3517
|
-
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(FieldBase, { as:
|
|
3526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(FieldBase, { as: import_react_aria_components52.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(_Input, { ref }) });
|
|
3518
3527
|
}
|
|
3519
3528
|
);
|
|
3520
3529
|
|
|
@@ -3550,11 +3559,11 @@ var Tiles = ({
|
|
|
3550
3559
|
};
|
|
3551
3560
|
|
|
3552
3561
|
// src/Tooltip/Tooltip.tsx
|
|
3553
|
-
var
|
|
3562
|
+
var import_react_aria_components54 = require("react-aria-components");
|
|
3554
3563
|
var import_system78 = require("@marigold/system");
|
|
3555
3564
|
|
|
3556
3565
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3557
|
-
var
|
|
3566
|
+
var import_react_aria_components53 = require("react-aria-components");
|
|
3558
3567
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
3559
3568
|
var _TooltipTrigger = ({
|
|
3560
3569
|
delay = 1e3,
|
|
@@ -3569,7 +3578,7 @@ var _TooltipTrigger = ({
|
|
|
3569
3578
|
isOpen: open,
|
|
3570
3579
|
delay
|
|
3571
3580
|
};
|
|
3572
|
-
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
3581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria_components53.TooltipTrigger, { ...props, children });
|
|
3573
3582
|
};
|
|
3574
3583
|
|
|
3575
3584
|
// src/Tooltip/Tooltip.tsx
|
|
@@ -3582,13 +3591,13 @@ var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
|
3582
3591
|
const classNames2 = (0, import_system78.useClassNames)({ component: "Tooltip", variant, size });
|
|
3583
3592
|
const portal = usePortalContainer();
|
|
3584
3593
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
3585
|
-
|
|
3594
|
+
import_react_aria_components54.Tooltip,
|
|
3586
3595
|
{
|
|
3587
3596
|
...props,
|
|
3588
3597
|
className: (0, import_system78.cn)("group/tooltip", classNames2.container),
|
|
3589
3598
|
UNSTABLE_portalContainer: portal,
|
|
3590
3599
|
children: [
|
|
3591
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
3600
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_aria_components54.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
3592
3601
|
children
|
|
3593
3602
|
]
|
|
3594
3603
|
}
|
|
@@ -3817,7 +3826,7 @@ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0,
|
|
|
3817
3826
|
));
|
|
3818
3827
|
|
|
3819
3828
|
// src/Tabs/Tabs.tsx
|
|
3820
|
-
var
|
|
3829
|
+
var import_react_aria_components58 = require("react-aria-components");
|
|
3821
3830
|
var import_system82 = require("@marigold/system");
|
|
3822
3831
|
|
|
3823
3832
|
// src/Tabs/Context.ts
|
|
@@ -3826,13 +3835,13 @@ var TabContext = (0, import_react56.createContext)({});
|
|
|
3826
3835
|
var useTabContext = () => (0, import_react56.useContext)(TabContext);
|
|
3827
3836
|
|
|
3828
3837
|
// src/Tabs/Tab.tsx
|
|
3829
|
-
var
|
|
3838
|
+
var import_react_aria_components55 = require("react-aria-components");
|
|
3830
3839
|
var import_system80 = require("@marigold/system");
|
|
3831
3840
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
3832
3841
|
var _Tab = (props) => {
|
|
3833
3842
|
const { classNames: classNames2 } = useTabContext();
|
|
3834
3843
|
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
3835
|
-
|
|
3844
|
+
import_react_aria_components55.Tab,
|
|
3836
3845
|
{
|
|
3837
3846
|
...props,
|
|
3838
3847
|
className: (0, import_system80.cn)(
|
|
@@ -3845,13 +3854,13 @@ var _Tab = (props) => {
|
|
|
3845
3854
|
};
|
|
3846
3855
|
|
|
3847
3856
|
// src/Tabs/TabList.tsx
|
|
3848
|
-
var
|
|
3857
|
+
var import_react_aria_components56 = require("react-aria-components");
|
|
3849
3858
|
var import_system81 = require("@marigold/system");
|
|
3850
3859
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
3851
3860
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3852
3861
|
const { classNames: classNames2 } = useTabContext();
|
|
3853
3862
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
3854
|
-
|
|
3863
|
+
import_react_aria_components56.TabList,
|
|
3855
3864
|
{
|
|
3856
3865
|
...props,
|
|
3857
3866
|
className: (0, import_system81.cn)("flex", import_system81.gapSpace[space], classNames2.tabsList),
|
|
@@ -3861,11 +3870,11 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3861
3870
|
};
|
|
3862
3871
|
|
|
3863
3872
|
// src/Tabs/TabPanel.tsx
|
|
3864
|
-
var
|
|
3873
|
+
var import_react_aria_components57 = require("react-aria-components");
|
|
3865
3874
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
3866
3875
|
var _TabPanel = (props) => {
|
|
3867
3876
|
const { classNames: classNames2 } = useTabContext();
|
|
3868
|
-
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
3877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_aria_components57.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
|
|
3869
3878
|
};
|
|
3870
3879
|
|
|
3871
3880
|
// src/Tabs/Tabs.tsx
|
|
@@ -3880,14 +3889,14 @@ var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
|
3880
3889
|
size,
|
|
3881
3890
|
variant
|
|
3882
3891
|
});
|
|
3883
|
-
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
3892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_aria_components58.Tabs, { ...props, className: classNames2.container, children: props.children }) });
|
|
3884
3893
|
};
|
|
3885
3894
|
_Tabs.List = _TabList;
|
|
3886
3895
|
_Tabs.TabPanel = _TabPanel;
|
|
3887
3896
|
_Tabs.Item = _Tab;
|
|
3888
3897
|
|
|
3889
3898
|
// src/RouterProvider/RouterProvider.tsx
|
|
3890
|
-
var
|
|
3899
|
+
var import_react_aria_components59 = require("react-aria-components");
|
|
3891
3900
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3892
3901
|
0 && (module.exports = {
|
|
3893
3902
|
Accordion,
|
package/dist/index.mjs
CHANGED
|
@@ -599,10 +599,10 @@ import { createContext as createContext2, useContext as useContext3 } from "reac
|
|
|
599
599
|
var ListBoxContext = createContext2({});
|
|
600
600
|
var useListBoxContext = () => useContext3(ListBoxContext);
|
|
601
601
|
|
|
602
|
-
// src/ListBox/
|
|
602
|
+
// src/ListBox/ListBoxItem.tsx
|
|
603
603
|
import { ListBoxItem } from "react-aria-components";
|
|
604
604
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
605
|
-
var _ListBoxItem = (props) => {
|
|
605
|
+
var _ListBoxItem = ({ ...props }) => {
|
|
606
606
|
const { classNames: classNames2 } = useListBoxContext();
|
|
607
607
|
return /* @__PURE__ */ jsx13(ListBoxItem, { ...props, className: classNames2.option });
|
|
608
608
|
};
|
|
@@ -778,7 +778,10 @@ var AutocompleteInput = ({
|
|
|
778
778
|
{
|
|
779
779
|
ref,
|
|
780
780
|
className: {
|
|
781
|
-
action: cn13(
|
|
781
|
+
action: cn13(
|
|
782
|
+
(state == null ? void 0 : state.inputValue) === "" ? "invisible" : "visible",
|
|
783
|
+
classNames2
|
|
784
|
+
)
|
|
782
785
|
},
|
|
783
786
|
onKeyDown: (e) => {
|
|
784
787
|
if (e.key === "Enter" || e.key === "Escape") {
|
|
@@ -824,7 +827,7 @@ var _Autocomplete = forwardRef8(
|
|
|
824
827
|
isRequired: required,
|
|
825
828
|
...rest
|
|
826
829
|
};
|
|
827
|
-
return /* @__PURE__ */ jsxs8(FieldBase, { as: ComboBox, ...props, children: [
|
|
830
|
+
return /* @__PURE__ */ jsxs8(FieldBase, { as: ComboBox, ref, ...props, children: [
|
|
828
831
|
/* @__PURE__ */ jsx19(AutocompleteInput, { onSubmit, onClear, ref }),
|
|
829
832
|
/* @__PURE__ */ jsx19(_Popover, { children: /* @__PURE__ */ jsx19(_ListBox, { children }) })
|
|
830
833
|
] });
|
|
@@ -1537,21 +1540,16 @@ var Image = ({
|
|
|
1537
1540
|
};
|
|
1538
1541
|
|
|
1539
1542
|
// src/Inline/Inline.tsx
|
|
1540
|
-
import {
|
|
1541
|
-
alignment as alignment2,
|
|
1542
|
-
cn as cn27,
|
|
1543
|
-
gapSpace as gapSpace6
|
|
1544
|
-
} from "@marigold/system";
|
|
1543
|
+
import { alignment as alignment2, cn as cn27, gapSpace as gapSpace6 } from "@marigold/system";
|
|
1545
1544
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
1546
1545
|
var Inline = ({
|
|
1547
1546
|
space = 0,
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
alignY = ((_b) => (_b = orientation == null ? void 0 : orientation.horizontal) == null ? void 0 : _b.alignY)(),
|
|
1547
|
+
alignX,
|
|
1548
|
+
alignY,
|
|
1551
1549
|
children,
|
|
1552
1550
|
...props
|
|
1553
1551
|
}) => {
|
|
1554
|
-
var
|
|
1552
|
+
var _a, _b, _c, _d;
|
|
1555
1553
|
return /* @__PURE__ */ jsx42(
|
|
1556
1554
|
"div",
|
|
1557
1555
|
{
|
|
@@ -1559,7 +1557,7 @@ var Inline = ({
|
|
|
1559
1557
|
className: cn27(
|
|
1560
1558
|
"flex flex-wrap",
|
|
1561
1559
|
gapSpace6[space],
|
|
1562
|
-
alignX && ((
|
|
1560
|
+
alignX && ((_b = (_a = alignment2) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
|
|
1563
1561
|
alignY && ((_d = (_c = alignment2) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
|
|
1564
1562
|
),
|
|
1565
1563
|
children
|
|
@@ -2734,7 +2732,7 @@ var _Select = forwardRef18(
|
|
|
2734
2732
|
classNames2.select
|
|
2735
2733
|
),
|
|
2736
2734
|
children: [
|
|
2737
|
-
/* @__PURE__ */ jsx73(SelectValue, {}),
|
|
2735
|
+
/* @__PURE__ */ jsx73(SelectValue, { className: "[&>[slot=description]]:hidden" }),
|
|
2738
2736
|
/* @__PURE__ */ jsx73(ChevronDown, { className: cn42("size-4", classNames2.icon) })
|
|
2739
2737
|
]
|
|
2740
2738
|
}
|
|
@@ -2776,7 +2774,10 @@ var _SelectListItem = forwardRef19(
|
|
|
2776
2774
|
{
|
|
2777
2775
|
textValue,
|
|
2778
2776
|
...props,
|
|
2779
|
-
className: cn43(
|
|
2777
|
+
className: cn43(
|
|
2778
|
+
"items-center group-data-[layout=grid]/list:flex-row",
|
|
2779
|
+
classNames2 == null ? void 0 : classNames2.option
|
|
2780
|
+
),
|
|
2780
2781
|
ref,
|
|
2781
2782
|
children: ({ selectionMode }) => /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
2782
2783
|
selectionMode === "multiple" && /* @__PURE__ */ jsx74(FieldGroup, { children: /* @__PURE__ */ jsx74(_Checkbox, { slot: "selection" }) }),
|
|
@@ -2800,9 +2801,10 @@ var _SelectList = forwardRef20(
|
|
|
2800
2801
|
SelectList,
|
|
2801
2802
|
{
|
|
2802
2803
|
...props,
|
|
2804
|
+
layout: "grid",
|
|
2803
2805
|
ref,
|
|
2804
2806
|
className: cn44(
|
|
2805
|
-
"overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
|
|
2807
|
+
"group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
|
|
2806
2808
|
classNames2.list
|
|
2807
2809
|
),
|
|
2808
2810
|
children: props.children
|
|
@@ -3021,7 +3023,7 @@ var TableBody = ({ children, emptyState }) => {
|
|
|
3021
3023
|
const { rowGroupProps } = useTableRowGroup();
|
|
3022
3024
|
const { state, classNames: classNames2 } = useTableContext();
|
|
3023
3025
|
if (state.collection.size === 0 && emptyState) {
|
|
3024
|
-
return /* @__PURE__ */ jsx81("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ jsx81(
|
|
3026
|
+
return /* @__PURE__ */ jsx81("tbody", { children: /* @__PURE__ */ jsx81("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ jsx81(
|
|
3025
3027
|
"td",
|
|
3026
3028
|
{
|
|
3027
3029
|
className: classNames2 == null ? void 0 : classNames2.cell,
|
|
@@ -3029,7 +3031,7 @@ var TableBody = ({ children, emptyState }) => {
|
|
|
3029
3031
|
role: "rowheader",
|
|
3030
3032
|
children: emptyState()
|
|
3031
3033
|
}
|
|
3032
|
-
) });
|
|
3034
|
+
) }) });
|
|
3033
3035
|
}
|
|
3034
3036
|
return /* @__PURE__ */ jsx81("tbody", { ...rowGroupProps, children });
|
|
3035
3037
|
};
|
|
@@ -3406,6 +3408,7 @@ Table.Header = Header2;
|
|
|
3406
3408
|
Table.Row = Row;
|
|
3407
3409
|
|
|
3408
3410
|
// src/Text/Text.tsx
|
|
3411
|
+
import { Text as Text2 } from "react-aria-components";
|
|
3409
3412
|
import {
|
|
3410
3413
|
cn as cn55,
|
|
3411
3414
|
createVar as createVar11,
|
|
@@ -3419,7 +3422,7 @@ import {
|
|
|
3419
3422
|
useTheme as useTheme3
|
|
3420
3423
|
} from "@marigold/system";
|
|
3421
3424
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
3422
|
-
var
|
|
3425
|
+
var _Text = ({
|
|
3423
3426
|
variant,
|
|
3424
3427
|
size,
|
|
3425
3428
|
color,
|
|
@@ -3429,6 +3432,7 @@ var Text2 = ({
|
|
|
3429
3432
|
fontSize,
|
|
3430
3433
|
fontStyle,
|
|
3431
3434
|
children,
|
|
3435
|
+
as = "div",
|
|
3432
3436
|
...props
|
|
3433
3437
|
}) => {
|
|
3434
3438
|
const theme = useTheme3();
|
|
@@ -3438,9 +3442,10 @@ var Text2 = ({
|
|
|
3438
3442
|
size
|
|
3439
3443
|
});
|
|
3440
3444
|
return /* @__PURE__ */ jsx90(
|
|
3441
|
-
|
|
3445
|
+
Text2,
|
|
3442
3446
|
{
|
|
3443
3447
|
...props,
|
|
3448
|
+
elementType: as,
|
|
3444
3449
|
className: cn55(
|
|
3445
3450
|
"text-[--color] outline-[--outline]",
|
|
3446
3451
|
classNames2,
|
|
@@ -3940,7 +3945,7 @@ export {
|
|
|
3940
3945
|
Table,
|
|
3941
3946
|
_Tabs as Tabs,
|
|
3942
3947
|
_Tag as Tag,
|
|
3943
|
-
|
|
3948
|
+
_Text as Text,
|
|
3944
3949
|
_TextArea as TextArea,
|
|
3945
3950
|
_TextField as TextField,
|
|
3946
3951
|
ThemeProvider2 as ThemeProvider,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/components",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Components for the Marigold Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -24,27 +24,27 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@internationalized/date": "3.5.5",
|
|
27
|
-
"@react-aria/accordion": "3.0.0-alpha.
|
|
28
|
-
"@react-aria/button": "3.9.
|
|
29
|
-
"@react-aria/calendar": "3.5.
|
|
30
|
-
"@react-aria/focus": "3.18.
|
|
31
|
-
"@react-aria/i18n": "3.12.
|
|
32
|
-
"@react-aria/interactions": "3.22.
|
|
33
|
-
"@react-aria/overlays": "3.23.
|
|
34
|
-
"@react-aria/selection": "3.19.
|
|
27
|
+
"@react-aria/accordion": "3.0.0-alpha.33",
|
|
28
|
+
"@react-aria/button": "3.9.8",
|
|
29
|
+
"@react-aria/calendar": "3.5.11",
|
|
30
|
+
"@react-aria/focus": "3.18.2",
|
|
31
|
+
"@react-aria/i18n": "3.12.2",
|
|
32
|
+
"@react-aria/interactions": "3.22.2",
|
|
33
|
+
"@react-aria/overlays": "3.23.2",
|
|
34
|
+
"@react-aria/selection": "3.19.3",
|
|
35
35
|
"@react-aria/ssr": "3.9.5",
|
|
36
|
-
"@react-aria/table": "3.15.
|
|
37
|
-
"@react-aria/utils": "3.25.
|
|
38
|
-
"@react-aria/visually-hidden": "3.8.
|
|
36
|
+
"@react-aria/table": "3.15.3",
|
|
37
|
+
"@react-aria/utils": "3.25.2",
|
|
38
|
+
"@react-aria/visually-hidden": "3.8.15",
|
|
39
39
|
"@react-stately/collections": "3.10.9",
|
|
40
40
|
"@react-stately/data": "3.11.6",
|
|
41
|
-
"@react-stately/table": "3.12.
|
|
42
|
-
"@react-stately/tree": "3.8.
|
|
41
|
+
"@react-stately/table": "3.12.2",
|
|
42
|
+
"@react-stately/tree": "3.8.4",
|
|
43
43
|
"@react-types/shared": "3.24.1",
|
|
44
44
|
"@react-types/table": "3.10.1",
|
|
45
|
-
"react-aria-components": "1.3.
|
|
46
|
-
"@marigold/icons": "1.2.
|
|
47
|
-
"@marigold/system": "9.0.
|
|
45
|
+
"react-aria-components": "1.3.3",
|
|
46
|
+
"@marigold/icons": "1.2.57",
|
|
47
|
+
"@marigold/system": "9.0.2",
|
|
48
48
|
"@marigold/types": "1.1.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"react-dom": "18.x"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/react": "18.3.
|
|
55
|
+
"@types/react": "18.3.5",
|
|
56
56
|
"react": "18.3.1",
|
|
57
57
|
"react-dom": "18.3.1",
|
|
58
58
|
"tsup": "8.1.0",
|