@ikas/storefront 0.0.169-alpha.1 → 0.0.169-alpha.2

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.
@@ -19,6 +19,7 @@ declare type ImageProps = Omit<JSX.IntrinsicElements["img"], "src" | "srcSet" |
19
19
  objectPosition?: ImgElementStyle["objectPosition"];
20
20
  image: IkasImage;
21
21
  sizes: string;
22
+ useBlur?: boolean;
22
23
  } & ({
23
24
  width?: never;
24
25
  height?: never;
package/build/index.es.js CHANGED
@@ -70294,7 +70294,7 @@ var IMAGE_SIZES = [
70294
70294
  3840,
70295
70295
  ];
70296
70296
  var Image = function (_a) {
70297
- var image = _a.image, others = __rest(_a, ["image"]);
70297
+ var image = _a.image, useBlur = _a.useBlur, others = __rest(_a, ["image", "useBlur"]);
70298
70298
  var loader = function (_a) {
70299
70299
  var width = _a.width;
70300
70300
  var closest = IMAGE_SIZES.reduce(function (prev, curr) {
@@ -70302,7 +70302,7 @@ var Image = function (_a) {
70302
70302
  });
70303
70303
  return image.getSrc(closest);
70304
70304
  };
70305
- return (createElement(NextImage, __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: "blur", blurDataURL: image.getSrc(180) })));
70305
+ return (createElement(NextImage, __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: useBlur ? "blur" : "empty", blurDataURL: useBlur ? image.getSrc(180) : undefined })));
70306
70306
  };
70307
70307
 
70308
70308
  var styles$k = {"StepContainer":"style-module_StepContainer__1O2dD","Step":"style-module_Step__1iOYA","StepTitleContainer":"style-module_StepTitleContainer__2GUg2","First":"style-module_First__cAzdJ","StepTitleTop":"style-module_StepTitleTop__3zfsj","WithRightContent":"style-module_WithRightContent__2fqb1","StepCircle":"style-module_StepCircle__36A5q","Selected":"style-module_Selected__3j91L","StepTitle":"style-module_StepTitle__10YDP","Light":"style-module_Light__15wSX","StepTitleRightContent":"style-module_StepTitleRightContent__2Q43m","StepContent":"style-module_StepContent__20QIi"};
package/build/index.js CHANGED
@@ -70273,7 +70273,7 @@ var IMAGE_SIZES = [
70273
70273
  3840,
70274
70274
  ];
70275
70275
  var Image = function (_a) {
70276
- var image = _a.image, others = __rest(_a, ["image"]);
70276
+ var image = _a.image, useBlur = _a.useBlur, others = __rest(_a, ["image", "useBlur"]);
70277
70277
  var loader = function (_a) {
70278
70278
  var width = _a.width;
70279
70279
  var closest = IMAGE_SIZES.reduce(function (prev, curr) {
@@ -70281,7 +70281,7 @@ var Image = function (_a) {
70281
70281
  });
70282
70282
  return image.getSrc(closest);
70283
70283
  };
70284
- return (React.createElement(NextImage__default['default'], __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: "blur", blurDataURL: image.getSrc(180) })));
70284
+ return (React.createElement(NextImage__default['default'], __assign({}, others, { loader: loader, quality: 100, src: image.src, alt: others.alt || "Image", placeholder: useBlur ? "blur" : "empty", blurDataURL: useBlur ? image.getSrc(180) : undefined })));
70285
70285
  };
70286
70286
 
70287
70287
  var styles$k = {"StepContainer":"style-module_StepContainer__1O2dD","Step":"style-module_Step__1iOYA","StepTitleContainer":"style-module_StepTitleContainer__2GUg2","First":"style-module_First__cAzdJ","StepTitleTop":"style-module_StepTitleTop__3zfsj","WithRightContent":"style-module_WithRightContent__2fqb1","StepCircle":"style-module_StepCircle__36A5q","Selected":"style-module_Selected__3j91L","StepTitle":"style-module_StepTitle__10YDP","Light":"style-module_Light__15wSX","StepTitleRightContent":"style-module_StepTitleRightContent__2Q43m","StepContent":"style-module_StepContent__20QIi"};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.169-alpha.1",
3
+ "version": "0.0.169-alpha.2",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",