@marigold/components 4.1.5 → 4.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 +22 -17
- package/dist/index.js +685 -592
- package/dist/index.mjs +619 -529
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,8 @@ export { Box, BoxOwnProps, BoxProps, StyleProps, ThemeProvider, useTheme } from
|
|
|
4
4
|
import React, { ReactNode, HTMLAttributes, LabelHTMLAttributes, Key, ForwardRefExoticComponent, RefAttributes, ReactElement } from 'react';
|
|
5
5
|
import { ComponentProps, PolymorphicPropsWithRef, PolymorphicComponentWithRef, NonZeroPercentage } from '@marigold/types';
|
|
6
6
|
import * as _react_types_shared from '@react-types/shared';
|
|
7
|
-
import { PressEvents, CollectionElement } from '@react-types/shared';
|
|
7
|
+
import { PressEvents, CollectionElement, StyleProps } from '@react-types/shared';
|
|
8
8
|
import { AriaCheckboxProps, AriaCheckboxGroupProps } from '@react-types/checkbox';
|
|
9
|
-
import { CheckboxGroupState } from '@react-stately/checkbox';
|
|
10
9
|
import { AriaDialogProps } from '@react-types/dialog';
|
|
11
10
|
import { SeparatorProps } from '@react-aria/separator';
|
|
12
11
|
import { AriaNumberFieldProps } from '@react-types/numberfield';
|
|
@@ -16,12 +15,13 @@ import { AriaSelectProps } from '@react-types/select';
|
|
|
16
15
|
import { AriaSliderProps } from '@react-types/slider';
|
|
17
16
|
import { AriaSwitchProps } from '@react-types/switch';
|
|
18
17
|
import { AriaTableProps } from '@react-aria/table';
|
|
19
|
-
import { TableStateProps, TableBody, Cell, Column, TableHeader
|
|
18
|
+
import { TableStateProps, RowProps as RowProps$1, TableBody, Cell, Column, TableHeader } from '@react-stately/table';
|
|
20
19
|
import { AriaTextFieldProps } from '@react-types/textfield';
|
|
21
20
|
import { PositionProps } from '@react-types/overlays';
|
|
22
21
|
import { TooltipTriggerProps as TooltipTriggerProps$1 } from '@react-types/tooltip';
|
|
23
22
|
import { aspect, size } from '@marigold/tokens';
|
|
24
|
-
import {
|
|
23
|
+
import { CheckboxGroupState } from '@react-stately/checkbox';
|
|
24
|
+
import { OverlayProps as OverlayProps$1, AriaPopoverProps, AriaModalOverlayProps } from '@react-aria/overlays';
|
|
25
25
|
import { OverlayTriggerState } from '@react-stately/overlays';
|
|
26
26
|
export { SSRProvider } from '@react-aria/ssr';
|
|
27
27
|
export { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
@@ -88,8 +88,6 @@ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.Re
|
|
|
88
88
|
|
|
89
89
|
interface CheckboxGroupContextProps extends CheckboxGroupState {
|
|
90
90
|
error?: boolean;
|
|
91
|
-
variant?: string;
|
|
92
|
-
size?: string;
|
|
93
91
|
}
|
|
94
92
|
/**
|
|
95
93
|
* Needs to be falsy so we can check if a checkbox is used as standalone
|
|
@@ -97,8 +95,6 @@ interface CheckboxGroupContextProps extends CheckboxGroupState {
|
|
|
97
95
|
*/
|
|
98
96
|
declare const CheckboxGroupContext: React.Context<CheckboxGroupContextProps>;
|
|
99
97
|
declare const useCheckboxGroupContext: () => CheckboxGroupContextProps;
|
|
100
|
-
interface CheckboxGroupThemeExtension extends ThemeExtensionsWithParts<'CheckboxGroup', ['container', 'group']> {
|
|
101
|
-
}
|
|
102
98
|
interface CheckboxGroupProps extends Omit<ComponentProps<'div'>, 'onChange'>, AriaCheckboxGroupProps {
|
|
103
99
|
children: ReactNode;
|
|
104
100
|
variant?: string;
|
|
@@ -112,7 +108,7 @@ interface CheckboxGroupProps extends Omit<ComponentProps<'div'>, 'onChange'>, Ar
|
|
|
112
108
|
defaultValue?: string[];
|
|
113
109
|
onChange?: (value: string[]) => void;
|
|
114
110
|
}
|
|
115
|
-
declare const CheckboxGroup: ({ children,
|
|
111
|
+
declare const CheckboxGroup: ({ children, required, disabled, readOnly, error, ...rest }: CheckboxGroupProps) => JSX.Element;
|
|
116
112
|
|
|
117
113
|
interface DialogTriggerProps {
|
|
118
114
|
children: [trigger: ReactNode, menu: ReactNode];
|
|
@@ -336,6 +332,15 @@ interface PopoverProps extends Pick<AriaPopoverProps, 'triggerRef' | 'scrollRef'
|
|
|
336
332
|
}
|
|
337
333
|
declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
338
334
|
|
|
335
|
+
interface TrayProps extends AriaModalOverlayProps, StyleProps, OverlayProps$1 {
|
|
336
|
+
children: ReactNode;
|
|
337
|
+
state: OverlayTriggerState;
|
|
338
|
+
}
|
|
339
|
+
interface TrayWrapperProps extends TrayProps {
|
|
340
|
+
}
|
|
341
|
+
declare const Tray: React.ForwardRefExoticComponent<TrayProps & React.RefAttributes<HTMLDivElement>>;
|
|
342
|
+
declare const TrayWrapper: React.ForwardRefExoticComponent<TrayWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
343
|
+
|
|
339
344
|
interface UnderlayThemeExtension extends ThemeExtension<'Underlay'> {
|
|
340
345
|
}
|
|
341
346
|
interface UnderlayProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -344,19 +349,15 @@ interface UnderlayProps extends HTMLAttributes<HTMLElement> {
|
|
|
344
349
|
}
|
|
345
350
|
declare const Underlay: ({ size, variant, ...props }: UnderlayProps) => JSX.Element;
|
|
346
351
|
|
|
347
|
-
interface RadioGroupThemeExtension extends ThemeExtensionsWithParts<'RadioGroup', ['container', 'group']> {
|
|
348
|
-
}
|
|
349
352
|
interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRquired' | 'isReadOnly ' | 'validationState'> {
|
|
350
353
|
children: ReactNode[];
|
|
351
|
-
variant?: string;
|
|
352
|
-
size?: string;
|
|
353
354
|
width?: string;
|
|
354
355
|
required?: boolean;
|
|
355
356
|
disabled?: boolean;
|
|
356
357
|
readOnly?: boolean;
|
|
357
358
|
error?: boolean;
|
|
358
359
|
}
|
|
359
|
-
declare const RadioGroup: ({ children, orientation,
|
|
360
|
+
declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => JSX.Element;
|
|
360
361
|
|
|
361
362
|
interface RadioThemeExtension extends ThemeExtensionsWithParts<'Radio', ['container', 'label', 'radio']> {
|
|
362
363
|
}
|
|
@@ -453,6 +454,10 @@ interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAc
|
|
|
453
454
|
size?: string;
|
|
454
455
|
stretch?: boolean;
|
|
455
456
|
}
|
|
457
|
+
interface RowProps extends RowProps$1 {
|
|
458
|
+
variant?: string;
|
|
459
|
+
size?: string;
|
|
460
|
+
}
|
|
456
461
|
declare const Table: Table;
|
|
457
462
|
/**
|
|
458
463
|
* Necessary since TypeScript can not infer the
|
|
@@ -464,7 +469,7 @@ interface Table {
|
|
|
464
469
|
Cell: typeof Cell;
|
|
465
470
|
Column: typeof Column;
|
|
466
471
|
Header: typeof TableHeader;
|
|
467
|
-
Row:
|
|
472
|
+
Row: (props: RowProps) => JSX.Element;
|
|
468
473
|
}
|
|
469
474
|
|
|
470
475
|
interface TextThemeExtension extends ThemeExtension<'Text'> {
|
|
@@ -514,7 +519,7 @@ declare const Tooltip: {
|
|
|
514
519
|
Trigger: ({ disabled, open, delay, placement, children, ...rest }: TooltipTriggerProps) => JSX.Element;
|
|
515
520
|
};
|
|
516
521
|
|
|
517
|
-
interface ComponentStyles extends BadgeThemeExtension, ButtonThemeExtension, CardThemeExtension, CheckboxThemeExtension,
|
|
522
|
+
interface ComponentStyles extends BadgeThemeExtension, ButtonThemeExtension, CardThemeExtension, CheckboxThemeExtension, BodyThemeExtension, DialogThemeExtension, DividerThemeExtension, FieldThemeExtension, FooterThemeExtension, HeaderThemeExtension, HeadlineThemeExtension, HelpTextThemeExtension, ImageThemeExtension, InputThemeExtension, LabelThemeExtension, LinkThemeExtension, ListThemeExtension, ListBoxThemeExtension, MenuThemeExtension, MessageThemeExtension, NumberFieldThemeExtension, RadioThemeExtension, SelectThemeExtension, SliderThemeExtension, SwitchThemeExtension, TableThemeExtension, TextThemeExtension, TextAreaThemeExtension, TooltipThemeExtension, UnderlayThemeExtension {
|
|
518
523
|
}
|
|
519
524
|
interface Theme extends Theme$1 {
|
|
520
525
|
components: ComponentStyles;
|
|
@@ -656,4 +661,4 @@ declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...pr
|
|
|
656
661
|
|
|
657
662
|
declare const XLoader: React.ForwardRefExoticComponent<SVGProps & React.RefAttributes<SVGElement>>;
|
|
658
663
|
|
|
659
|
-
export { 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,
|
|
664
|
+
export { 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, Footer, FooterProps, FooterThemeExtension, Header, HeaderProps, HeaderThemeExtension, Headline, HeadlineProps, HeadlineThemeExtension, Image, ImageProps, ImageThemeExtension, Inline, InlineProps, Input, InputOwnProps, InputProps, InputThemeExtension, 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, TrayWrapper, Underlay, UnderlayProps, UnderlayThemeExtension, XLoader, extendTheme, useCheckboxGroupContext };
|