@micromag/screen-gallery 0.4.89 → 0.4.90-alpha.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/es/index.js +8 -4
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -186,7 +186,7 @@ var layoutProps = {
|
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
-
var styles = {"container":"micromag-screen-gallery-container","background":"micromag-screen-gallery-background","content":"micromag-screen-gallery-content","inner":"micromag-screen-gallery-inner","grid":"micromag-screen-gallery-grid","
|
|
189
|
+
var styles = {"container":"micromag-screen-gallery-container","background":"micromag-screen-gallery-background","content":"micromag-screen-gallery-content","inner":"micromag-screen-gallery-inner","grid":"micromag-screen-gallery-grid","emptyImage":"micromag-screen-gallery-emptyImage","emptyCaption":"micromag-screen-gallery-emptyCaption","gridItem":"micromag-screen-gallery-gridItem","imageContainer":"micromag-screen-gallery-imageContainer","header":"micromag-screen-gallery-header","footer":"micromag-screen-gallery-footer","image":"micromag-screen-gallery-image","caption":"micromag-screen-gallery-caption"};
|
|
190
190
|
|
|
191
191
|
const emptyArray = [];
|
|
192
192
|
function GalleryScreen(t0) {
|
|
@@ -396,14 +396,15 @@ function GalleryScreen(t0) {
|
|
|
396
396
|
children: /*#__PURE__*/jsx(ScreenElement, {
|
|
397
397
|
placeholder: "image",
|
|
398
398
|
placeholderProps: {
|
|
399
|
-
|
|
400
|
-
height: "
|
|
399
|
+
width: "70%",
|
|
400
|
+
height: "70%"
|
|
401
401
|
},
|
|
402
402
|
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
403
403
|
id: "ebsPd4",
|
|
404
404
|
defaultMessage: "Image"
|
|
405
405
|
}),
|
|
406
406
|
emptyClassName: styles.emptyImage,
|
|
407
|
+
placeholderClassName: "position-absolute top-50 start-50 translate-middle w-100",
|
|
407
408
|
isEmpty: !hasImage,
|
|
408
409
|
children: active || current ? /*#__PURE__*/jsx(Visual, {
|
|
409
410
|
className: styles.image,
|
|
@@ -422,7 +423,10 @@ function GalleryScreen(t0) {
|
|
|
422
423
|
}) : null
|
|
423
424
|
})
|
|
424
425
|
}), withCaptions ? /*#__PURE__*/jsx(ScreenElement, {
|
|
425
|
-
placeholder: "
|
|
426
|
+
placeholder: "text",
|
|
427
|
+
placeholderProps: {
|
|
428
|
+
lines: 1
|
|
429
|
+
},
|
|
426
430
|
emptyLabel: /*#__PURE__*/jsx(FormattedMessage, {
|
|
427
431
|
id: "6tIigB",
|
|
428
432
|
defaultMessage: "Caption"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-gallery",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.90-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -62,16 +62,16 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@babel/runtime": "^7.28.6",
|
|
65
|
-
"@micromag/core": "^0.4.
|
|
66
|
-
"@micromag/element-background": "^0.4.
|
|
67
|
-
"@micromag/element-container": "^0.4.
|
|
68
|
-
"@micromag/element-footer": "^0.4.
|
|
69
|
-
"@micromag/element-grid": "^0.4.
|
|
70
|
-
"@micromag/element-header": "^0.4.
|
|
71
|
-
"@micromag/element-layout": "^0.4.
|
|
72
|
-
"@micromag/element-text": "^0.4.
|
|
73
|
-
"@micromag/element-visual": "^0.4.
|
|
74
|
-
"@micromag/transforms": "^0.4.
|
|
65
|
+
"@micromag/core": "^0.4.90-alpha.1",
|
|
66
|
+
"@micromag/element-background": "^0.4.90-alpha.1",
|
|
67
|
+
"@micromag/element-container": "^0.4.90-alpha.1",
|
|
68
|
+
"@micromag/element-footer": "^0.4.90-alpha.1",
|
|
69
|
+
"@micromag/element-grid": "^0.4.90-alpha.1",
|
|
70
|
+
"@micromag/element-header": "^0.4.90-alpha.1",
|
|
71
|
+
"@micromag/element-layout": "^0.4.90-alpha.1",
|
|
72
|
+
"@micromag/element-text": "^0.4.90-alpha.1",
|
|
73
|
+
"@micromag/element-visual": "^0.4.90-alpha.1",
|
|
74
|
+
"@micromag/transforms": "^0.4.90-alpha.1",
|
|
75
75
|
"classnames": "^2.2.6",
|
|
76
76
|
"lodash": "^4.17.23",
|
|
77
77
|
"react-intl": "^8.1.3 || ^10.0.0",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"access": "public",
|
|
82
82
|
"registry": "https://registry.npmjs.org/"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "a13dd2242ee733dc3b3663354783f0b4395f9926",
|
|
85
85
|
"types": "es/index.d.ts"
|
|
86
86
|
}
|