@faststore/components 2.2.10 → 2.2.13

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.
@@ -37,10 +37,6 @@ export interface ImageGalleryProps extends HTMLAttributes<HTMLDivElement> {
37
37
  * Event handler for clicks on each thumbnail.
38
38
  */
39
39
  setSelectedImageIdx: (idx: number) => void;
40
- /**
41
- * The position of the thumbnail and gallery image.
42
- */
43
- imagePosition: 'top' | 'center' | 'bottom';
44
40
  }
45
41
  declare const ImageGallery: React.ForwardRefExoticComponent<ImageGalleryProps & React.RefAttributes<HTMLDivElement>>;
46
42
  export default ImageGallery;
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const react_1 = tslib_1.__importStar(require("react"));
5
5
  const __1 = require("../..");
6
- const ImageGallery = (0, react_1.forwardRef)(function ImageGallery({ images, children, ImageComponent, selectedImageIdx, imagePosition = 'center', setSelectedImageIdx, testId = 'fs-image-gallery', ...otherProps }, ref) {
6
+ const ImageGallery = (0, react_1.forwardRef)(function ImageGallery({ images, children, ImageComponent, selectedImageIdx, setSelectedImageIdx, testId = 'fs-image-gallery', ...otherProps }, ref) {
7
7
  const hasSelector = images.length > 1;
8
- return (react_1.default.createElement("section", { ref: ref, "data-fs-image-gallery": hasSelector ? 'with-selector' : 'without-selector', "data-fs-image-gallery-position": imagePosition, "data-testid": testId, ...otherProps },
8
+ return (react_1.default.createElement("section", { ref: ref, "data-fs-image-gallery": hasSelector ? 'with-selector' : 'without-selector', "data-testid": testId, ...otherProps },
9
9
  children,
10
10
  hasSelector && (react_1.default.createElement(__1.ImageGallerySelector, { images: images, onSelect: setSelectedImageIdx, currentImageIdx: selectedImageIdx, ImageComponent: ImageComponent }))));
11
11
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ImageGallery.js","sourceRoot":"","sources":["../../../../src/organisms/ImageGallery/ImageGallery.tsx"],"names":[],"mappings":";;;AAAA,uDAAyC;AAGzC,6BAA4C;AA+C5C,MAAM,YAAY,GAAG,IAAA,kBAAU,EAC7B,SAAS,YAAY,CACnB,EACE,MAAM,EACN,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,aAAa,GAAG,QAAQ,EACxB,mBAAmB,EACnB,MAAM,GAAG,kBAAkB,EAC3B,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;IAErC,OAAO,CACL,2CACE,GAAG,EAAE,GAAG,2BAEN,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,kBAAkB,oCAEpB,aAAa,iBAChC,MAAM,KACf,UAAU;QAEb,QAAQ;QACR,WAAW,IAAI,CACd,8BAAC,wBAAoB,IACnB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,mBAAmB,EAC7B,eAAe,EAAE,gBAAgB,EACjC,cAAc,EAAE,cAAc,GAC9B,CACH,CACO,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,kBAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"ImageGallery.js","sourceRoot":"","sources":["../../../../src/organisms/ImageGallery/ImageGallery.tsx"],"names":[],"mappings":";;;AAAA,uDAAyC;AAGzC,6BAA4C;AA2C5C,MAAM,YAAY,GAAG,IAAA,kBAAU,EAC7B,SAAS,YAAY,CACnB,EACE,MAAM,EACN,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,MAAM,GAAG,kBAAkB,EAC3B,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;IAErC,OAAO,CACL,2CACE,GAAG,EAAE,GAAG,2BAEN,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,kBAAkB,iBAEvC,MAAM,KACf,UAAU;QAEb,QAAQ;QACR,WAAW,IAAI,CACd,8BAAC,wBAAoB,IACnB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,mBAAmB,EAC7B,eAAe,EAAE,gBAAgB,EACjC,cAAc,EAAE,cAAc,GAC9B,CACH,CACO,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,kBAAe,YAAY,CAAA"}
@@ -37,10 +37,6 @@ export interface ImageGalleryProps extends HTMLAttributes<HTMLDivElement> {
37
37
  * Event handler for clicks on each thumbnail.
38
38
  */
39
39
  setSelectedImageIdx: (idx: number) => void;
40
- /**
41
- * The position of the thumbnail and gallery image.
42
- */
43
- imagePosition: 'top' | 'center' | 'bottom';
44
40
  }
45
41
  declare const ImageGallery: React.ForwardRefExoticComponent<ImageGalleryProps & React.RefAttributes<HTMLDivElement>>;
46
42
  export default ImageGallery;
@@ -1,8 +1,8 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import { ImageGallerySelector } from '../..';
3
- const ImageGallery = forwardRef(function ImageGallery({ images, children, ImageComponent, selectedImageIdx, imagePosition = 'center', setSelectedImageIdx, testId = 'fs-image-gallery', ...otherProps }, ref) {
3
+ const ImageGallery = forwardRef(function ImageGallery({ images, children, ImageComponent, selectedImageIdx, setSelectedImageIdx, testId = 'fs-image-gallery', ...otherProps }, ref) {
4
4
  const hasSelector = images.length > 1;
5
- return (React.createElement("section", { ref: ref, "data-fs-image-gallery": hasSelector ? 'with-selector' : 'without-selector', "data-fs-image-gallery-position": imagePosition, "data-testid": testId, ...otherProps },
5
+ return (React.createElement("section", { ref: ref, "data-fs-image-gallery": hasSelector ? 'with-selector' : 'without-selector', "data-testid": testId, ...otherProps },
6
6
  children,
7
7
  hasSelector && (React.createElement(ImageGallerySelector, { images: images, onSelect: setSelectedImageIdx, currentImageIdx: selectedImageIdx, ImageComponent: ImageComponent }))));
8
8
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ImageGallery.js","sourceRoot":"","sources":["../../../../src/organisms/ImageGallery/ImageGallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AA+C5C,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EACE,MAAM,EACN,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,aAAa,GAAG,QAAQ,EACxB,mBAAmB,EACnB,MAAM,GAAG,kBAAkB,EAC3B,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;IAErC,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,2BAEN,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,kBAAkB,oCAEpB,aAAa,iBAChC,MAAM,KACf,UAAU;QAEb,QAAQ;QACR,WAAW,IAAI,CACd,oBAAC,oBAAoB,IACnB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,mBAAmB,EAC7B,eAAe,EAAE,gBAAgB,EACjC,cAAc,EAAE,cAAc,GAC9B,CACH,CACO,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"ImageGallery.js","sourceRoot":"","sources":["../../../../src/organisms/ImageGallery/ImageGallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AA2C5C,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EACE,MAAM,EACN,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,MAAM,GAAG,kBAAkB,EAC3B,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;IAErC,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,2BAEN,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,kBAAkB,iBAEvC,MAAM,KACf,UAAU;QAEb,QAAQ;QACR,WAAW,IAAI,CACd,oBAAC,oBAAoB,IACnB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,mBAAmB,EAC7B,eAAe,EAAE,gBAAgB,EACjC,cAAc,EAAE,cAAc,GAC9B,CACH,CACO,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/components",
3
- "version": "2.2.10",
3
+ "version": "2.2.13",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "typings": "dist/esm/index.d.ts",
@@ -43,5 +43,5 @@
43
43
  "node": "16.18.0",
44
44
  "yarn": "1.19.1"
45
45
  },
46
- "gitHead": "a0774a2e911ebcdf167e0456b53ef0be84c58a99"
46
+ "gitHead": "e86acedc75c7b8d3a1e5321f8c05b3b9bcf9b450"
47
47
  }
@@ -42,10 +42,6 @@ export interface ImageGalleryProps extends HTMLAttributes<HTMLDivElement> {
42
42
  * Event handler for clicks on each thumbnail.
43
43
  */
44
44
  setSelectedImageIdx: (idx: number) => void
45
- /**
46
- * The position of the thumbnail and gallery image.
47
- */
48
- imagePosition: 'top' | 'center' | 'bottom'
49
45
  }
50
46
 
51
47
  const ImageGallery = forwardRef<HTMLDivElement, ImageGalleryProps>(
@@ -55,7 +51,6 @@ const ImageGallery = forwardRef<HTMLDivElement, ImageGalleryProps>(
55
51
  children,
56
52
  ImageComponent,
57
53
  selectedImageIdx,
58
- imagePosition = 'center',
59
54
  setSelectedImageIdx,
60
55
  testId = 'fs-image-gallery',
61
56
  ...otherProps
@@ -70,7 +65,6 @@ const ImageGallery = forwardRef<HTMLDivElement, ImageGalleryProps>(
70
65
  data-fs-image-gallery={
71
66
  hasSelector ? 'with-selector' : 'without-selector'
72
67
  }
73
- data-fs-image-gallery-position={imagePosition}
74
68
  data-testid={testId}
75
69
  {...otherProps}
76
70
  >