@movable/ui 3.20.8-alpha.1 → 4.0.0-alpha.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/README.md +2 -2
- package/lib/components/InkCard/InkCard.d.ts +8 -15
- package/lib/components/InkCard/InkCardActions.d.ts +8 -0
- package/lib/components/InkCard/InkCardContent.d.ts +6 -0
- package/lib/components/InkCard/InkCardHeader.d.ts +4 -6
- package/lib/components/InkCard/InkCardMedia.d.ts +2 -1
- package/lib/components/InkCard/index.d.ts +8 -0
- package/lib/index.d.ts +7 -35
- package/lib/index.mjs +7591 -6563
- package/lib/index.mjs.map +1 -1
- package/lib/theme/components/stepper.d.ts +87 -55
- package/lib/theme/components/surfaces/card.d.ts +4 -3
- package/package.json +1 -1
- package/lib/components/InkCard/InkGalleryContent.d.ts +0 -8
package/README.md
CHANGED
|
@@ -86,9 +86,9 @@ This consolidated approach reduces duplicate snapshots and CI runtime while main
|
|
|
86
86
|
|
|
87
87
|
## Conventional Commits
|
|
88
88
|
|
|
89
|
-
This repo
|
|
89
|
+
This repo uses [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) to drive automated versioning. Commits are linted both pre-commit and in PR checks.
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
**Breaking changes** must use `feat!:` or include a `BREAKING CHANGE:` footer — see [CONTRIBUTING.md](./CONTRIBUTING.md#breaking-changes) for details.
|
|
92
92
|
|
|
93
93
|
```
|
|
94
94
|
fix(percy): added percy snapshots for all component states
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { CardProps } from '@mui/material';
|
|
2
|
-
import { InkCardHeaderProps } from './InkCardHeader';
|
|
3
|
-
import { InkCardMediaProps } from './InkCardMedia';
|
|
1
|
+
import { CardProps, CheckboxProps } from '@mui/material';
|
|
4
2
|
import { InkCardType } from './VariantStyles';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export type InkCardProps = CardProps & {
|
|
4
|
+
CardMedia?: JSX.Element;
|
|
5
|
+
CardHeader?: JSX.Element;
|
|
6
|
+
CardContent?: JSX.Element;
|
|
7
|
+
CardActions?: JSX.Element;
|
|
9
8
|
cardType?: InkCardType;
|
|
9
|
+
checkboxProps?: CheckboxProps;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
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 {};
|
|
11
|
+
export declare function InkCard({ CardMedia, CardHeader, CardContent, CardActions, cardType, checkboxProps, children, ...rest }: InkCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardActionsProps, ButtonProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface InkCardActionsProps extends CardActionsProps {
|
|
4
|
+
primaryAction?: ButtonProps & {
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function InkCardActions({ primaryAction, children, ...rest }: InkCardActionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CardContentProps } from '@mui/material';
|
|
2
|
+
export interface InkCardContentProps extends CardContentProps {
|
|
3
|
+
description?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function InkCardContent({ description, disabled, children, ...rest }: InkCardContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { CheckboxProps, TypographyProps } from '@mui/material';
|
|
2
|
-
export interface InkCardHeaderProps {
|
|
1
|
+
import { CardHeaderProps, CheckboxProps, TypographyProps } from '@mui/material';
|
|
2
|
+
export interface InkCardHeaderProps extends CardHeaderProps {
|
|
3
3
|
checkboxProps?: CheckboxProps;
|
|
4
|
-
title?: string;
|
|
5
4
|
size?: 'small' | 'medium';
|
|
6
|
-
subheader?: string;
|
|
7
5
|
adornment?: JSX.Element;
|
|
8
6
|
titleProps?: TypographyProps;
|
|
9
|
-
avatar?: JSX.Element;
|
|
10
7
|
onClose?: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
11
9
|
}
|
|
12
|
-
export declare function InkCardHeader({ checkboxProps, title, avatar, size, subheader, adornment, titleProps, onClose, }: InkCardHeaderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export declare function InkCardHeader({ checkboxProps, title, avatar, size, subheader, adornment, titleProps, onClose, disabled, ...rest }: InkCardHeaderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -3,5 +3,6 @@ import { InkCardType } from './VariantStyles';
|
|
|
3
3
|
export interface InkCardMediaProps extends CardMediaProps {
|
|
4
4
|
mediaContent?: JSX.Element;
|
|
5
5
|
cardType?: InkCardType;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare function InkCardMedia({ mediaContent, image, cardType, sx, ...rest }: InkCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function InkCardMedia({ mediaContent, image, cardType, disabled, sx, ...rest }: InkCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
export { InkCard } from './InkCard';
|
|
2
2
|
export type { InkCardProps } from './InkCard';
|
|
3
|
+
export { InkCardHeader } from './InkCardHeader';
|
|
4
|
+
export type { InkCardHeaderProps } from './InkCardHeader';
|
|
5
|
+
export { InkCardMedia } from './InkCardMedia';
|
|
6
|
+
export type { InkCardMediaProps } from './InkCardMedia';
|
|
7
|
+
export { InkCardContent } from './InkCardContent';
|
|
8
|
+
export type { InkCardContentProps } from './InkCardContent';
|
|
9
|
+
export { InkCardActions } from './InkCardActions';
|
|
10
|
+
export type { InkCardActionsProps } from './InkCardActions';
|
package/lib/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { BoxProps } from '@mui/material';
|
|
|
6
6
|
import { BoxProps as BoxProps_2 } from '@mui/material/Box';
|
|
7
7
|
import { ButtonProps } from '@mui/material';
|
|
8
8
|
import { ButtonProps as ButtonProps_2 } from '@mui/material/Button';
|
|
9
|
-
import { CardMediaProps } from '@mui/material';
|
|
10
9
|
import { CardProps } from '@mui/material';
|
|
11
10
|
import type { ChartData } from 'chart.js';
|
|
12
11
|
import type { ChartOptions } from 'chart.js';
|
|
@@ -252,13 +251,6 @@ declare type FullContentLayoutProps = {
|
|
|
252
251
|
itemProps?: Grid2Props_2;
|
|
253
252
|
};
|
|
254
253
|
|
|
255
|
-
declare type GalleryContentProps = {
|
|
256
|
-
description?: string;
|
|
257
|
-
buttonProps?: ButtonProps & {
|
|
258
|
-
label?: string;
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
|
|
262
254
|
declare type HeaderLink = {
|
|
263
255
|
label: string;
|
|
264
256
|
path?: string;
|
|
@@ -393,36 +385,16 @@ declare type InkAutocompleteProps<T, Multiple extends boolean | undefined = unde
|
|
|
393
385
|
disableCommaPaste?: boolean;
|
|
394
386
|
};
|
|
395
387
|
|
|
396
|
-
export declare function InkCard({
|
|
388
|
+
export declare function InkCard({ CardMedia, CardHeader, CardContent, CardActions, cardType, checkboxProps, children, ...rest }: InkCardProps): JSX_2.Element;
|
|
397
389
|
|
|
398
|
-
declare type
|
|
399
|
-
|
|
400
|
-
|
|
390
|
+
export declare type InkCardProps = CardProps & {
|
|
391
|
+
CardMedia?: JSX.Element;
|
|
392
|
+
CardHeader?: JSX.Element;
|
|
393
|
+
CardContent?: JSX.Element;
|
|
394
|
+
CardActions?: JSX.Element;
|
|
401
395
|
cardType?: InkCardType;
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
declare interface InkCardHeaderProps {
|
|
405
396
|
checkboxProps?: CheckboxProps;
|
|
406
|
-
|
|
407
|
-
size?: 'small' | 'medium';
|
|
408
|
-
subheader?: string;
|
|
409
|
-
adornment?: JSX.Element;
|
|
410
|
-
titleProps?: TypographyProps;
|
|
411
|
-
avatar?: JSX.Element;
|
|
412
|
-
onClose?: () => void;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
declare interface InkCardMediaProps extends CardMediaProps {
|
|
416
|
-
mediaContent?: JSX.Element;
|
|
417
|
-
cardType?: InkCardType;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
export declare type InkCardProps = (InkCardBaseProps & {
|
|
421
|
-
galleryContent: GalleryContentProps;
|
|
422
|
-
cardType: 'gallery';
|
|
423
|
-
}) | (InkCardBaseProps & {
|
|
424
|
-
galleryContent?: never;
|
|
425
|
-
});
|
|
397
|
+
};
|
|
426
398
|
|
|
427
399
|
declare type InkCardType = 'default' | 'gallery' | 'metric' | 'insight';
|
|
428
400
|
|