@marigold/components 1.3.0 → 2.1.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.ts +14 -9
- package/dist/index.js +191 -152
- package/dist/index.mjs +200 -167
- package/package.json +47 -46
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export { useAsyncList, useListData } from '@react-stately/data';
|
|
2
|
+
import { ThemeExtension, ThemeComponentProps, ThemeExtensionsWithParts, CSSObject, BoxOwnProps, StateAttrProps, Theme as Theme$1, ResponsiveStyleValue, ThemeProviderProps, GlobalProps } from '@marigold/system';
|
|
2
3
|
export { Box, BoxOwnProps, BoxProps, StyleProps, ThemeProvider, useTheme } from '@marigold/system';
|
|
3
|
-
import React, { ReactNode, HTMLAttributes, Key, LabelHTMLAttributes, ForwardRefExoticComponent, RefAttributes, ReactElement
|
|
4
|
+
import React, { ReactNode, HTMLAttributes, Key, LabelHTMLAttributes, ForwardRefExoticComponent, RefAttributes, ReactElement } from 'react';
|
|
4
5
|
import { ComponentProps, PolymorphicPropsWithRef, PolymorphicComponentWithRef, NonZeroPercentage } from '@marigold/types';
|
|
5
6
|
import * as _react_types_shared from '@react-types/shared';
|
|
6
7
|
import { PressEvents, CollectionElement } from '@react-types/shared';
|
|
@@ -14,13 +15,13 @@ import { Item, Section } from '@react-stately/collections';
|
|
|
14
15
|
import { AriaSelectProps } from '@react-types/select';
|
|
15
16
|
import { AriaSliderProps } from '@react-types/slider';
|
|
16
17
|
import { AriaSwitchProps } from '@react-types/switch';
|
|
17
|
-
import {
|
|
18
|
+
import { AriaTableProps } from '@react-aria/table';
|
|
18
19
|
import { TableStateProps, TableBody, Cell, Column, TableHeader, Row } from '@react-stately/table';
|
|
19
20
|
import { AriaTextFieldProps } from '@react-types/textfield';
|
|
20
21
|
import { PositionProps } from '@react-types/overlays';
|
|
21
22
|
import { TooltipTriggerProps as TooltipTriggerProps$1 } from '@react-types/tooltip';
|
|
22
23
|
import { aspect, size } from '@marigold/tokens';
|
|
23
|
-
import {
|
|
24
|
+
import { AriaOverlayProps } from '@react-aria/overlays';
|
|
24
25
|
export { SSRProvider } from '@react-aria/ssr';
|
|
25
26
|
export { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
26
27
|
|
|
@@ -35,10 +36,11 @@ declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => JSX.
|
|
|
35
36
|
|
|
36
37
|
interface ButtonThemeExtension extends ThemeExtension<'Button'> {
|
|
37
38
|
}
|
|
38
|
-
interface ButtonOwnProps extends PressEvents {
|
|
39
|
+
interface ButtonOwnProps extends PressEvents, ComponentProps<'button'> {
|
|
39
40
|
children?: ReactNode;
|
|
40
41
|
variant?: string;
|
|
41
42
|
size?: string;
|
|
43
|
+
fullWidth?: boolean;
|
|
42
44
|
}
|
|
43
45
|
interface ButtonProps extends PolymorphicPropsWithRef<ButtonOwnProps, 'button'> {
|
|
44
46
|
}
|
|
@@ -169,9 +171,12 @@ interface ImageThemeExtension extends ThemeExtension<'Image'> {
|
|
|
169
171
|
interface ImageProps extends ComponentProps<'img'> {
|
|
170
172
|
variant?: string;
|
|
171
173
|
size?: string;
|
|
174
|
+
fit?: CSSObject['objectFit'];
|
|
175
|
+
position?: CSSObject['objectPosition'];
|
|
172
176
|
children?: never;
|
|
177
|
+
alt: string;
|
|
173
178
|
}
|
|
174
|
-
declare const Image: ({ variant, ...props }: ImageProps) => JSX.Element;
|
|
179
|
+
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => JSX.Element;
|
|
175
180
|
|
|
176
181
|
interface InputThemeExtension extends ThemeExtension<'Input'> {
|
|
177
182
|
}
|
|
@@ -303,7 +308,7 @@ interface OverlayProps extends ComponentProps<'div'> {
|
|
|
303
308
|
}
|
|
304
309
|
declare const Overlay: ({ children, open, container, ...props }: OverlayProps) => JSX.Element | null;
|
|
305
310
|
|
|
306
|
-
interface PopoverProps extends Omit<
|
|
311
|
+
interface PopoverProps extends Omit<AriaOverlayProps, 'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled'> {
|
|
307
312
|
children?: ReactNode;
|
|
308
313
|
open?: boolean;
|
|
309
314
|
dismissable?: boolean;
|
|
@@ -428,7 +433,7 @@ interface TableThemeExtension extends ThemeExtensionsWithParts<'Table', [
|
|
|
428
433
|
'cell'
|
|
429
434
|
]> {
|
|
430
435
|
}
|
|
431
|
-
interface TableProps extends Pick<
|
|
436
|
+
interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes'> {
|
|
432
437
|
variant?: string;
|
|
433
438
|
size?: string;
|
|
434
439
|
stretch?: boolean;
|
|
@@ -500,7 +505,7 @@ interface Theme extends Theme$1 {
|
|
|
500
505
|
}
|
|
501
506
|
|
|
502
507
|
interface AsideProps {
|
|
503
|
-
children: [
|
|
508
|
+
children: [ReactElement, ReactElement];
|
|
504
509
|
side?: 'left' | 'right';
|
|
505
510
|
sideWidth?: ResponsiveStyleValue<string>;
|
|
506
511
|
space?: ResponsiveStyleValue<string>;
|