@marigold/components 2.0.0 → 2.1.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 +5 -2
- package/dist/index.js +127 -113
- package/dist/index.mjs +81 -67
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
2
|
-
import { ThemeExtension, ThemeComponentProps, ThemeExtensionsWithParts, BoxOwnProps, StateAttrProps,
|
|
2
|
+
import { ThemeExtension, ThemeComponentProps, ThemeExtensionsWithParts, CSSObject, BoxOwnProps, StateAttrProps, Theme as Theme$1, ResponsiveStyleValue, ThemeProviderProps, GlobalProps } from '@marigold/system';
|
|
3
3
|
export { Box, BoxOwnProps, BoxProps, StyleProps, ThemeProvider, useTheme } from '@marigold/system';
|
|
4
4
|
import React, { ReactNode, HTMLAttributes, Key, LabelHTMLAttributes, ForwardRefExoticComponent, RefAttributes, ReactElement } from 'react';
|
|
5
5
|
import { ComponentProps, PolymorphicPropsWithRef, PolymorphicComponentWithRef, NonZeroPercentage } from '@marigold/types';
|
|
@@ -171,9 +171,12 @@ interface ImageThemeExtension extends ThemeExtension<'Image'> {
|
|
|
171
171
|
interface ImageProps extends ComponentProps<'img'> {
|
|
172
172
|
variant?: string;
|
|
173
173
|
size?: string;
|
|
174
|
+
fit?: CSSObject['objectFit'];
|
|
175
|
+
position?: CSSObject['objectPosition'];
|
|
174
176
|
children?: never;
|
|
177
|
+
alt: string;
|
|
175
178
|
}
|
|
176
|
-
declare const Image: ({ variant, ...props }: ImageProps) => JSX.Element;
|
|
179
|
+
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => JSX.Element;
|
|
177
180
|
|
|
178
181
|
interface InputThemeExtension extends ThemeExtension<'Input'> {
|
|
179
182
|
}
|