@micromag/screen-gallery 0.4.89 → 0.4.90-alpha.3

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.
Files changed (2) hide show
  1. package/es/index.js +8 -4
  2. 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","placeholder":"micromag-screen-gallery-placeholder","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"};
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
- className: styles.placeholder,
400
- height: "100%"
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: "line",
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.89",
3
+ "version": "0.4.90-alpha.3",
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.88",
66
- "@micromag/element-background": "^0.4.88",
67
- "@micromag/element-container": "^0.4.88",
68
- "@micromag/element-footer": "^0.4.89",
69
- "@micromag/element-grid": "^0.4.88",
70
- "@micromag/element-header": "^0.4.88",
71
- "@micromag/element-layout": "^0.4.88",
72
- "@micromag/element-text": "^0.4.88",
73
- "@micromag/element-visual": "^0.4.89",
74
- "@micromag/transforms": "^0.4.88",
65
+ "@micromag/core": "^0.4.90-alpha.3",
66
+ "@micromag/element-background": "^0.4.90-alpha.3",
67
+ "@micromag/element-container": "^0.4.90-alpha.3",
68
+ "@micromag/element-footer": "^0.4.90-alpha.3",
69
+ "@micromag/element-grid": "^0.4.90-alpha.3",
70
+ "@micromag/element-header": "^0.4.90-alpha.3",
71
+ "@micromag/element-layout": "^0.4.90-alpha.3",
72
+ "@micromag/element-text": "^0.4.90-alpha.3",
73
+ "@micromag/element-visual": "^0.4.90-alpha.3",
74
+ "@micromag/transforms": "^0.4.90-alpha.3",
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": "b22ccb83a7c0679970a453b09e2be779ed68f839",
84
+ "gitHead": "689d8c3e98fba05ccc291aa1c9997d0b89bb5fc1",
85
85
  "types": "es/index.d.ts"
86
86
  }