@lumx/core 4.9.0-next.14 → 4.9.0-next.15
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.
|
@@ -10,16 +10,20 @@ export type ImageCaptionMetadata = {
|
|
|
10
10
|
description?: JSXElement | {
|
|
11
11
|
__html: string;
|
|
12
12
|
};
|
|
13
|
-
/** Props to pass to the
|
|
13
|
+
/** Props to pass to the description. */
|
|
14
14
|
descriptionProps?: GenericProps;
|
|
15
15
|
/** Tag content. */
|
|
16
16
|
tags?: JSXElement;
|
|
17
17
|
/** Caption custom CSS style. */
|
|
18
18
|
captionStyle?: GenericProps;
|
|
19
|
+
/** Props to pass to the wrapper FlexBox element. */
|
|
20
|
+
wrapperProps?: GenericProps;
|
|
21
|
+
/** FlexBox component injected by the framework wrapper (React or Vue). */
|
|
19
22
|
FlexBox: any;
|
|
23
|
+
/** Text component injected by the framework wrapper (React or Vue). */
|
|
20
24
|
Text: any;
|
|
21
25
|
};
|
|
22
|
-
export type ImageCaptionPropsToOverride = 'FlexBox' | 'Text' | '
|
|
26
|
+
export type ImageCaptionPropsToOverride = 'FlexBox' | 'Text' | 'wrapperProps';
|
|
23
27
|
export type ImageCaptionProps<AS extends As = 'figcaption'> = HasTheme & HasPolymorphicAs<AS> & ImageCaptionMetadata & {
|
|
24
28
|
/** Base className for sub elements */
|
|
25
29
|
baseClassName?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HorizontalAlignment, Size } from '../../constants';
|
|
2
2
|
import type { CommonRef, HasClassName, JSXElement, LumxClassName, GenericProps, HasTheme, ValueOf } from '../../types';
|
|
3
|
-
import { ImageCaptionMetadata } from './ImageCaption';
|
|
3
|
+
import { ImageCaptionMetadata, ImageCaptionPropsToOverride } from './ImageCaption';
|
|
4
4
|
/**
|
|
5
5
|
* Image block variants.
|
|
6
6
|
*/
|
|
@@ -16,7 +16,7 @@ export type ImageBlockSize = Extract<Size, 'xl' | 'xxl'>;
|
|
|
16
16
|
/**
|
|
17
17
|
* Defines the props of the component.
|
|
18
18
|
*/
|
|
19
|
-
export interface ImageBlockProps extends HasClassName, HasTheme, ImageCaptionMetadata {
|
|
19
|
+
export interface ImageBlockProps extends HasClassName, HasTheme, Omit<ImageCaptionMetadata, ImageCaptionPropsToOverride> {
|
|
20
20
|
/** Action toolbar content. */
|
|
21
21
|
actions?: JSXElement;
|
|
22
22
|
/** Alignment. */
|
|
@@ -40,6 +40,7 @@ export interface ImageBlockProps extends HasClassName, HasTheme, ImageCaptionMet
|
|
|
40
40
|
/** component for rendering the image caption */
|
|
41
41
|
ImageCaption: any;
|
|
42
42
|
}
|
|
43
|
+
export type ImageBlockPropsToOverride = 'Thumbnail' | 'ImageCaption' | 'thumbnailProps';
|
|
43
44
|
/**
|
|
44
45
|
* Component display name.
|
|
45
46
|
*/
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/dom": "^1.7.5",
|
|
10
|
-
"@lumx/icons": "^4.9.0-next.
|
|
10
|
+
"@lumx/icons": "^4.9.0-next.15",
|
|
11
11
|
"classnames": "^2.3.2",
|
|
12
12
|
"focus-visible": "^5.0.2",
|
|
13
13
|
"lodash": "4.17.23",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
70
70
|
},
|
|
71
71
|
"sideEffects": false,
|
|
72
|
-
"version": "4.9.0-next.
|
|
72
|
+
"version": "4.9.0-next.15",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
75
75
|
"@testing-library/dom": "^10.4.1",
|