@meduza/ui-kit-2 0.1.44 → 0.1.45
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/dist/Image/Image.types.d.ts +1 -4
- package/dist/ui-kit-2.cjs.development.js +4 -10
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +4 -10
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +449 -449
- package/package.json +1 -1
- package/src/DotsOnImage/index.tsx +1 -1
- package/src/EmbedBlock/EmbedBlock.tsx +0 -1
- package/src/Image/Image.stories.tsx +0 -1
- package/src/Image/Image.types.ts +1 -4
- package/src/Image/index.tsx +2 -2
package/dist/ui-kit-2.esm.js
CHANGED
|
@@ -436,7 +436,8 @@ var Image = function Image(_ref) {
|
|
|
436
436
|
height = _ref.height,
|
|
437
437
|
source = _ref.source,
|
|
438
438
|
lazy = _ref.lazy,
|
|
439
|
-
fullscreen = _ref.fullscreen,
|
|
439
|
+
_ref$fullscreen = _ref.fullscreen,
|
|
440
|
+
fullscreen = _ref$fullscreen === void 0 ? true : _ref$fullscreen,
|
|
440
441
|
ratio = _ref.ratio,
|
|
441
442
|
styleContext = _ref.styleContext;
|
|
442
443
|
|
|
@@ -465,7 +466,7 @@ var Image = function Image(_ref) {
|
|
|
465
466
|
/* fallback w325 url until w6 was released */
|
|
466
467
|
|
|
467
468
|
var fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
|
|
468
|
-
var classNames = [[styles$4.root, true], [styles$4.isLoaded, isLoaded], [styles$4.fullscreen, fullscreen
|
|
469
|
+
var classNames = [[styles$4.root, true], [styles$4.isLoaded, isLoaded], [styles$4.fullscreen, fullscreen]];
|
|
469
470
|
|
|
470
471
|
if (styleContext) {
|
|
471
472
|
classNames = makeStyleContext(classNames, styleContext, styles$4);
|
|
@@ -744,10 +745,7 @@ var DotsOnImage = function DotsOnImage(_ref) {
|
|
|
744
745
|
height: height,
|
|
745
746
|
alt: credit,
|
|
746
747
|
display: display,
|
|
747
|
-
fullscreen:
|
|
748
|
-
mobile: false,
|
|
749
|
-
desktop: false
|
|
750
|
-
}
|
|
748
|
+
fullscreen: false
|
|
751
749
|
}), React.createElement("div", {
|
|
752
750
|
ref: container
|
|
753
751
|
}, dots.map(function (dot) {
|
|
@@ -1262,10 +1260,6 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1262
1260
|
return React.createElement("div", {
|
|
1263
1261
|
className: styles$i.figure
|
|
1264
1262
|
}, React.createElement(Image, {
|
|
1265
|
-
fullscreen: {
|
|
1266
|
-
desktop: block.data.fullscreen,
|
|
1267
|
-
mobile: true
|
|
1268
|
-
},
|
|
1269
1263
|
source: !optimized && [small, large],
|
|
1270
1264
|
optimized: block.data.optimized,
|
|
1271
1265
|
width: block.data.width,
|