@movable/ui 2.15.3 → 2.15.4
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/lib/components/InkCard/InkCard.d.ts +13 -3
- package/lib/components/InkCard/InkCardMedia.d.ts +3 -1
- package/lib/components/InkCard/InkCardMediaLoader.d.ts +1 -0
- package/lib/components/InkCard/InkGalleryContent.d.ts +8 -0
- package/lib/components/InkCard/VariantStyles.d.ts +5 -0
- package/lib/index.d.ts +23 -5
- package/lib/index.mjs +2496 -2430
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { CardProps } from '@mui/material';
|
|
2
2
|
import { InkCardHeaderProps } from './InkCardHeader';
|
|
3
3
|
import { InkCardMediaProps } from './InkCardMedia';
|
|
4
|
-
|
|
4
|
+
import { InkCardType } from './VariantStyles';
|
|
5
|
+
import { GalleryContentProps } from './InkGalleryContent';
|
|
6
|
+
type InkCardBaseProps = CardProps & {
|
|
5
7
|
cardHeader?: InkCardHeaderProps;
|
|
6
8
|
cardMedia?: InkCardMediaProps;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
cardType?: InkCardType;
|
|
10
|
+
};
|
|
11
|
+
type InkCardProps = (InkCardBaseProps & {
|
|
12
|
+
galleryContent: GalleryContentProps;
|
|
13
|
+
cardType: 'gallery';
|
|
14
|
+
}) | (InkCardBaseProps & {
|
|
15
|
+
galleryContent?: never;
|
|
16
|
+
});
|
|
17
|
+
export declare function InkCard({ cardMedia, cardHeader, cardType, galleryContent, children, ...rest }: InkCardProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CardMediaProps } from '@mui/material';
|
|
2
|
+
import { InkCardType } from './VariantStyles';
|
|
2
3
|
export interface InkCardMediaProps extends CardMediaProps {
|
|
3
4
|
mediaContent?: JSX.Element;
|
|
5
|
+
cardType?: InkCardType;
|
|
4
6
|
}
|
|
5
|
-
export declare function InkCardMedia({ mediaContent, ...rest }: InkCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function InkCardMedia({ mediaContent, image, cardType, sx, ...rest }: InkCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function InkCardMediaLoader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps } from '@mui/material';
|
|
2
|
+
export type GalleryContentProps = {
|
|
3
|
+
description?: string;
|
|
4
|
+
buttonProps?: ButtonProps & {
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare function InkGalleryContent({ description, buttonProps, }: GalleryContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export type InkCardType = 'default' | 'gallery' | 'metric' | 'insight';
|
|
3
|
+
export declare const MAX_CARD_WIDTH = 382;
|
|
4
|
+
export declare const getComposedCardStyles: (isSelectable: boolean, isSelected: boolean, isDisabled?: boolean, cardType?: InkCardType, customSx?: SxProps<Theme>) => SxProps<Theme>;
|
|
5
|
+
export declare const getGalleryCardStyles: () => SxProps<Theme>;
|
package/lib/index.d.ts
CHANGED
|
@@ -172,6 +172,13 @@ declare type FiveThreeSplitContentLayoutProps = {
|
|
|
172
172
|
|
|
173
173
|
export declare const FormSkeletonGrid: ({ skeletonRows, skeletonColumns, }: SkeletonGridType) => JSX_2.Element;
|
|
174
174
|
|
|
175
|
+
declare type GalleryContentProps = {
|
|
176
|
+
description?: string;
|
|
177
|
+
buttonProps?: ButtonProps & {
|
|
178
|
+
label?: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
|
|
175
182
|
declare type HeaderLink = {
|
|
176
183
|
label: string;
|
|
177
184
|
path?: string;
|
|
@@ -266,7 +273,13 @@ declare type InkAttributeProps = ListItemTextProps & {
|
|
|
266
273
|
};
|
|
267
274
|
};
|
|
268
275
|
|
|
269
|
-
export declare function InkCard({ cardMedia, cardHeader, children, ...rest }: InkCardProps): JSX_2.Element;
|
|
276
|
+
export declare function InkCard({ cardMedia, cardHeader, cardType, galleryContent, children, ...rest }: InkCardProps): JSX_2.Element;
|
|
277
|
+
|
|
278
|
+
declare type InkCardBaseProps = CardProps & {
|
|
279
|
+
cardHeader?: InkCardHeaderProps;
|
|
280
|
+
cardMedia?: InkCardMediaProps;
|
|
281
|
+
cardType?: InkCardType;
|
|
282
|
+
};
|
|
270
283
|
|
|
271
284
|
declare interface InkCardHeaderProps {
|
|
272
285
|
checkboxProps?: CheckboxProps;
|
|
@@ -280,12 +293,17 @@ declare interface InkCardHeaderProps {
|
|
|
280
293
|
|
|
281
294
|
declare interface InkCardMediaProps extends CardMediaProps {
|
|
282
295
|
mediaContent?: JSX.Element;
|
|
296
|
+
cardType?: InkCardType;
|
|
283
297
|
}
|
|
284
298
|
|
|
285
|
-
declare
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
299
|
+
declare type InkCardProps = (InkCardBaseProps & {
|
|
300
|
+
galleryContent: GalleryContentProps;
|
|
301
|
+
cardType: 'gallery';
|
|
302
|
+
}) | (InkCardBaseProps & {
|
|
303
|
+
galleryContent?: never;
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
declare type InkCardType = 'default' | 'gallery' | 'metric' | 'insight';
|
|
289
307
|
|
|
290
308
|
export declare function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): JSX_2.Element | undefined;
|
|
291
309
|
|