@gem-sdk/components 2.0.0-dev.353 → 2.0.0-dev.355

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 (42) hide show
  1. package/dist/cjs/article/components/ArticleAuthor.liquid.js +27 -0
  2. package/dist/cjs/article/components/ArticleCategory.liquid.js +27 -0
  3. package/dist/cjs/article/components/ArticleContent.liquid.js +42 -0
  4. package/dist/cjs/article/components/ArticleDate.liquid.js +35 -0
  5. package/dist/cjs/article/components/ArticleExcerpt.liquid.js +26 -0
  6. package/dist/cjs/article/components/ArticleImage.liquid.js +67 -0
  7. package/dist/cjs/article/components/ArticlePagination.liquid.js +17 -0
  8. package/dist/cjs/article/components/ArticleReadMore.liquid.js +58 -0
  9. package/dist/cjs/article/components/ArticleTag.liquid.js +27 -0
  10. package/dist/cjs/article/components/ArticleTitle.liquid.js +46 -0
  11. package/dist/cjs/form/setting/newsletter/configs/settings.js +2 -2
  12. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +0 -44
  13. package/dist/cjs/index.liquid.js +20 -0
  14. package/dist/cjs/post-purchase/image/common/getClasses.js +1 -4
  15. package/dist/cjs/post-purchase/product/common/getClasses.js +4 -5
  16. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +3 -2
  17. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +2 -1
  18. package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +6 -2
  19. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +5 -5
  20. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +2 -1
  21. package/dist/esm/article/components/ArticleAuthor.liquid.js +23 -0
  22. package/dist/esm/article/components/ArticleCategory.liquid.js +23 -0
  23. package/dist/esm/article/components/ArticleContent.liquid.js +38 -0
  24. package/dist/esm/article/components/ArticleDate.liquid.js +31 -0
  25. package/dist/esm/article/components/ArticleExcerpt.liquid.js +22 -0
  26. package/dist/esm/article/components/ArticleImage.liquid.js +63 -0
  27. package/dist/esm/article/components/ArticlePagination.liquid.js +13 -0
  28. package/dist/esm/article/components/ArticleReadMore.liquid.js +54 -0
  29. package/dist/esm/article/components/ArticleTag.liquid.js +23 -0
  30. package/dist/esm/article/components/ArticleTitle.liquid.js +42 -0
  31. package/dist/esm/form/setting/newsletter/configs/settings.js +2 -2
  32. package/dist/esm/form/setting/newsletter/configs/uiV2.js +0 -44
  33. package/dist/esm/index.liquid.js +10 -0
  34. package/dist/esm/post-purchase/image/common/getClasses.js +1 -4
  35. package/dist/esm/post-purchase/product/common/getClasses.js +4 -5
  36. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +3 -2
  37. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +2 -1
  38. package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +6 -2
  39. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +5 -5
  40. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +2 -1
  41. package/dist/types/index.d.ts +51 -11
  42. package/package.json +2 -2
@@ -0,0 +1,23 @@
1
+ 'use client';
2
+ import { template } from '@gem-sdk/core';
3
+ import Text from '../../text/components/Text.liquid.js';
4
+
5
+ const ArticleAuthor = ({ setting, styles, advanced, builderProps })=>{
6
+ const { prefix } = setting ?? {};
7
+ return template`
8
+ ${Text({
9
+ styles: styles,
10
+ setting: {
11
+ ...setting,
12
+ text: `${prefix} {{ article.author }}`,
13
+ excludeFlex: true
14
+ },
15
+ advanced: advanced,
16
+ builderAttrs: {
17
+ 'data-id': builderProps?.uid
18
+ }
19
+ })}
20
+ `;
21
+ };
22
+
23
+ export { ArticleAuthor as default };
@@ -0,0 +1,23 @@
1
+ 'use client';
2
+ import { template } from '@gem-sdk/core';
3
+ import Text from '../../text/components/Text.liquid.js';
4
+
5
+ const ArticleCategory = ({ setting, styles, advanced, builderProps })=>{
6
+ return template`
7
+
8
+ ${Text({
9
+ styles: styles,
10
+ setting: {
11
+ ...setting,
12
+ text: '{{blogTitle}}',
13
+ excludeFlex: true
14
+ },
15
+ advanced: advanced,
16
+ builderAttrs: {
17
+ 'data-id': builderProps?.uid
18
+ }
19
+ })}
20
+ `;
21
+ };
22
+
23
+ export { ArticleCategory as default };
@@ -0,0 +1,38 @@
1
+ 'use client';
2
+ import { composeTypographyClassName, composeTypographyStyle, makeStyleResponsive, getGlobalColorStateStyle, makeStyle, makeLineClamp, template, cls, getGlobalColorStateClass, RenderIf, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
3
+ import { getSettingPreloadData } from '../../helpers.js';
4
+
5
+ const ArticleContent = ({ styles, builderProps })=>{
6
+ const appendTypoClass = composeTypographyClassName(styles?.typo, styles?.typography);
7
+ const appendTypoStyle = composeTypographyStyle(styles?.typo, styles?.typography);
8
+ const defaultStyle = {
9
+ ...makeStyleResponsive('ta', styles?.textAlign),
10
+ ...getGlobalColorStateStyle('c', styles?.color),
11
+ ...makeStyle({
12
+ tt: styles?.transform
13
+ }),
14
+ ...appendTypoStyle
15
+ };
16
+ const collapseStyle = {
17
+ ...defaultStyle,
18
+ ...makeStyleResponsive('line-clamp', makeLineClamp(styles?.lineClamp, styles?.hasLineClamp))
19
+ };
20
+ return template`
21
+ <gp-article-content data-id="${builderProps?.uid}" >
22
+ <div
23
+ class="${cls('gp-relative gp-p-description-text gp-break-words safari:[&_p]:gp-inline safari:[&_p]:after:gp-whitespace-pre', appendTypoClass, getGlobalColorStateClass('text', styles?.color), "data-[browser=safari]:after:gp-content-[' '] data-[browser=safari]:after:gp-absolute data-[browser=safari]:after:gp-left-0 data-[browser=safari]:after:gp-right-0 data-[browser=safari]:after:gp-bottom-0 data-[browser=safari]:after:gp-w-full data-[browser=safari]:after:gp-h-1/2 data-[browser=safari]:after:gp-bg-gradient-to-t data-[browser=safari]:after:gp-from-white")}"
24
+ style="${collapseStyle}"
25
+ >
26
+ {{article.content}}
27
+ </div>
28
+ {% style %}
29
+ .gp-p-description-text * {
30
+ color: inherit
31
+ }
32
+ {% endstyle %}
33
+ </gp-article-content>
34
+ ${RenderIf(isLocalEnv, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-article-content.js' | asset_url }}" defer="defer"></script>`, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="${baseAssetURL}/assets-v2/gp-article-content.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
35
+ `;
36
+ };
37
+
38
+ export { ArticleContent as default };
@@ -0,0 +1,31 @@
1
+ 'use client';
2
+ import { template } from '@gem-sdk/core';
3
+ import Text from '../../text/components/Text.liquid.js';
4
+
5
+ const FORMAT_MAP = {
6
+ '{"locales":"en-US","options":{"month":"short","day":"2-digit","year":"numeric"}}': '%b %d, %Y',
7
+ '{"locales":"en-US","options":{"month":"long","day":"2-digit","year":"numeric"}}': '%B %d, %Y',
8
+ '{"locales":"en-GB","options":{"month":"long","day":"2-digit","year":"numeric"}}': '%d %B %Y',
9
+ '{"locales":"en-GB","options":{"month":"2-digit","day":"2-digit","year":"numeric"}}': '%d/%m/%Y',
10
+ '{"locales":"en-US","options":{"month":"2-digit","day":"2-digit","year":"numeric"}}': '%m/%d/%Y',
11
+ '{"locales":"ja-JP","options":{"month":"2-digit","day":"2-digit","year":"numeric"}}': '%Y/%m/%d'
12
+ };
13
+ const ArticleDate = ({ setting, styles, advanced, builderProps })=>{
14
+ const { dateFormat } = setting ?? {};
15
+ return template`
16
+ ${Text({
17
+ styles: styles,
18
+ setting: {
19
+ ...setting,
20
+ text: `{{ article.published_at | date: '${FORMAT_MAP[dateFormat ?? '{"locales":"en-US","options":{"month":"short","day":"2-digit","year":"numeric"}}']}' }}`,
21
+ excludeFlex: true
22
+ },
23
+ advanced: advanced,
24
+ builderAttrs: {
25
+ 'data-id': builderProps?.uid
26
+ }
27
+ })}
28
+ `;
29
+ };
30
+
31
+ export { ArticleDate as default };
@@ -0,0 +1,22 @@
1
+ 'use client';
2
+ import { template } from '@gem-sdk/core';
3
+ import Text from '../../text/components/Text.liquid.js';
4
+
5
+ const ArticleExcerpt = ({ setting, styles, advanced, builderProps })=>{
6
+ return template`
7
+ ${Text({
8
+ styles: styles,
9
+ setting: {
10
+ ...setting,
11
+ text: '{{article.excerpt}}',
12
+ excludeFlex: true
13
+ },
14
+ advanced: advanced,
15
+ builderAttrs: {
16
+ 'data-id': builderProps?.uid
17
+ }
18
+ })}
19
+ `;
20
+ };
21
+
22
+ export { ArticleExcerpt as default };
@@ -0,0 +1,63 @@
1
+ 'use client';
2
+ import { template, cls } from '@gem-sdk/core';
3
+ import Image from '../../image/components/Image.liquid.js';
4
+
5
+ const ArticleImage = (props)=>{
6
+ const setting = props?.setting ?? {};
7
+ const { builderProps } = props;
8
+ return template`
9
+ <div class="${cls('gp-text-center gp-overflow-hidden', props?.className)}" style="border-radius: inherit">
10
+ ${setting?.linkArticle ? `
11
+ <a href="{{article.url}}" title="{{article.title}}">
12
+ ${Image({
13
+ ...props,
14
+ styles: props.styles,
15
+ setting: {
16
+ ...props.setting,
17
+ alt: '{{article.image.alt}}',
18
+ image: {
19
+ src: `{{article.image.src | img_url: '1024x1024'}}`,
20
+ alt: '{{article.image.alt}}'
21
+ },
22
+ srcSet: {
23
+ desktop: {
24
+ src: `{{article.image.src | img_url: '1024x1024'}}`
25
+ }
26
+ },
27
+ disableNoDataState: true
28
+ },
29
+ advanced: props.advanced,
30
+ builderAttrs: {
31
+ 'data-id': builderProps?.uid
32
+ }
33
+ })}
34
+ </a>
35
+ ` : `
36
+ ${Image({
37
+ ...props,
38
+ styles: props.styles,
39
+ setting: {
40
+ ...props.setting,
41
+ alt: '{{article.image.alt}}',
42
+ image: {
43
+ src: `{{article.image.src | img_url: '1024x1024'}}`,
44
+ alt: '{{article.image.alt}}'
45
+ },
46
+ srcSet: {
47
+ desktop: {
48
+ src: `{{article.image.src | img_url: '1024x1024'}}`
49
+ }
50
+ },
51
+ disableNoDataState: true
52
+ },
53
+ advanced: props.advanced,
54
+ builderAttrs: {
55
+ 'data-id': builderProps?.uid
56
+ }
57
+ })}
58
+ `}
59
+ </div>
60
+ `;
61
+ };
62
+
63
+ export { ArticleImage as default };
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import '@gem-sdk/core';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import 'next/link';
6
+ import '@gem-sdk/system';
7
+ import CollectionPaginator from '../../collection/components/collection-paginator/components/CollectionPaginator.liquid.js';
8
+
9
+ const ArticlePagination = (props)=>{
10
+ return CollectionPaginator(props);
11
+ };
12
+
13
+ export { ArticlePagination as default };
@@ -0,0 +1,54 @@
1
+ 'use client';
2
+ import { template, RenderIf } from '@gem-sdk/core';
3
+ import Text from '../../text/components/Text.liquid.js';
4
+ import Button from '../../button/components/Button.liquid.js';
5
+
6
+ const ArticleReadMore = ({ setting, styles, builderAttrs, builderProps, advanced, style })=>{
7
+ const { readMoreType, label } = setting ?? {};
8
+ const { typoBtn, typoText, globalSizeText, globalSizeBtn, textColorTextState, textColorBtnState, alignBtn, alignText } = styles ?? {};
9
+ return template /* liquid */ `
10
+ <a href="{{article.url}}" target="_blank">
11
+ ${RenderIf(readMoreType === 'text', Text({
12
+ builderAttrs,
13
+ builderProps,
14
+ advanced,
15
+ styles: {
16
+ ...styles,
17
+ color: textColorTextState,
18
+ typo: typoText,
19
+ spacing: '0px',
20
+ align: alignText
21
+ },
22
+ style: style ?? {},
23
+ setting: {
24
+ ...setting,
25
+ text: label,
26
+ globalSize: globalSizeText,
27
+ excludeFlex: true,
28
+ translate: undefined
29
+ }
30
+ }))}
31
+ ${RenderIf(readMoreType === 'button', Button({
32
+ builderAttrs,
33
+ builderProps,
34
+ advanced,
35
+ styles: {
36
+ ...styles,
37
+ typo: typoBtn,
38
+ globalSize: globalSizeBtn,
39
+ textColor: textColorBtnState,
40
+ align: alignBtn
41
+ },
42
+ style: style ?? {},
43
+ setting: {
44
+ ...setting,
45
+ label: label,
46
+ htmlType: 'button',
47
+ translate: undefined
48
+ }
49
+ }))}
50
+ </a>
51
+ `;
52
+ };
53
+
54
+ export { ArticleReadMore as default };
@@ -0,0 +1,23 @@
1
+ 'use client';
2
+ import { template } from '@gem-sdk/core';
3
+ import Text from '../../text/components/Text.liquid.js';
4
+
5
+ const ArticleTag = ({ setting, styles, advanced, builderProps })=>{
6
+ return template`
7
+ {%- assign tagsString = article.tags | join: ', ' -%}
8
+ ${Text({
9
+ styles: styles,
10
+ setting: {
11
+ ...setting,
12
+ text: '{{tagsString}}',
13
+ excludeFlex: true
14
+ },
15
+ advanced,
16
+ builderAttrs: {
17
+ 'data-id': builderProps?.uid
18
+ }
19
+ })}
20
+ `;
21
+ };
22
+
23
+ export { ArticleTag as default };
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+ import { template } from '@gem-sdk/core';
3
+ import Text from '../../text/components/Text.liquid.js';
4
+
5
+ const ArticleTitle = ({ setting, styles, advanced, builderProps })=>{
6
+ const target = setting?.openNewTab ? '_blank' : '_self';
7
+ return template`
8
+ ${setting?.enableLink && setting?.linkArticle ? `
9
+ <a href="{{article.url}}" target="${{
10
+ target
11
+ }}" title="{{article.title}}">
12
+ ${Text({
13
+ styles: styles,
14
+ setting: {
15
+ ...setting,
16
+ text: '{{article.title}}',
17
+ excludeFlex: true
18
+ },
19
+ advanced: advanced,
20
+ builderAttrs: {
21
+ 'data-id': builderProps?.uid
22
+ }
23
+ })}
24
+ </a>
25
+ ` : `
26
+ ${Text({
27
+ styles: styles,
28
+ setting: {
29
+ ...setting,
30
+ text: '{{article.title}}',
31
+ excludeFlex: true
32
+ },
33
+ advanced: advanced,
34
+ builderAttrs: {
35
+ 'data-id': builderProps?.uid
36
+ }
37
+ })}
38
+ `}
39
+ `;
40
+ };
41
+
42
+ export { ArticleTitle as default };
@@ -86,7 +86,7 @@ const NewsletterSettings = [
86
86
  desktop: {
87
87
  default: {
88
88
  type: 'color',
89
- color: '#DDDDDD',
89
+ color: '#E2E2E2',
90
90
  image: {
91
91
  src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
92
92
  width: 1200,
@@ -117,7 +117,7 @@ const NewsletterSettings = [
117
117
  hide: true,
118
118
  devices: {
119
119
  desktop: {
120
- default: '100%'
120
+ default: '480px'
121
121
  }
122
122
  }
123
123
  },
@@ -90,54 +90,10 @@ const SettingUIV2 = [
90
90
  label: 'Fit content',
91
91
  value: 'Auto',
92
92
  showValue: true
93
- },
94
- {
95
- label: 'Full',
96
- value: '100%',
97
- showValue: true
98
- },
99
- {
100
- label: 'Small',
101
- value: '100px',
102
- showValue: true
103
- },
104
- {
105
- label: 'Medium',
106
- value: '116px',
107
- showValue: true
108
- },
109
- {
110
- label: 'Large',
111
- value: '132px',
112
- showValue: true
113
93
  }
114
94
  ]
115
95
  },
116
96
  layout: 'horizontal'
117
- },
118
- {
119
- label: {
120
- en: 'Padding'
121
- },
122
- controlConfig: {
123
- id: 'padding',
124
- type: 'padding-v2',
125
- linkWithSetting: {
126
- name: 'globalSize',
127
- field: 'padding'
128
- },
129
- compoDefaultValue: {
130
- desktop: {
131
- default: {
132
- type: 'medium',
133
- top: '12px',
134
- bottom: '12px',
135
- left: '24px',
136
- right: '24px'
137
- }
138
- }
139
- }
140
- }
141
97
  }
142
98
  ]
143
99
  },
@@ -2,6 +2,16 @@
2
2
  export { default as Accordion } from './accordion/components/Accordion.liquid.js';
3
3
  export { default as AccordionItem } from './accordion/components/AccordionItem.liquid.js';
4
4
  export { default as ArticleList } from './article/components/ArticleList.liquid.js';
5
+ export { default as ArticleTitle } from './article/components/ArticleTitle.liquid.js';
6
+ export { default as ArticleExcerpt } from './article/components/ArticleExcerpt.liquid.js';
7
+ export { default as ArticleContent } from './article/components/ArticleContent.liquid.js';
8
+ export { default as ArticleImage } from './article/components/ArticleImage.liquid.js';
9
+ export { default as ArticlePagination } from './article/components/ArticlePagination.liquid.js';
10
+ export { default as ArticleAuthor } from './article/components/ArticleAuthor.liquid.js';
11
+ export { default as ArticleTag } from './article/components/ArticleTag.liquid.js';
12
+ export { default as ArticleCategory } from './article/components/ArticleCategory.liquid.js';
13
+ export { default as ArticleDate } from './article/components/ArticleDate.liquid.js';
14
+ export { default as ArticleReadMore } from './article/components/ArticleReadMore.liquid.js';
5
15
  export { default as HeroBanner } from './banner/components/HeroBanner.liquid.js';
6
16
  export { default as Breadcrumb } from './breadcrumb/components/Breadcrumb.liquid.js';
7
17
  export { default as Button } from './button/components/Button.liquid.js';
@@ -13,11 +13,8 @@ const getImageClass = ()=>{
13
13
  return composeClasses(classList);
14
14
  };
15
15
  const getImageWrapperClass = (settings)=>{
16
- const classList = 'gp-border';
17
16
  return {
18
- ...composeClasses(classList),
19
- 'gp-border-[#d9d9d9]': settings?.enableBorder !== 'none',
20
- 'gp-border-transparent': settings?.enableBorder === 'none'
17
+ 'gp-border-[#d9d9d9] gp-border': settings?.enableBorder !== 'none'
21
18
  };
22
19
  };
23
20
 
@@ -11,11 +11,10 @@ const getNavigationClass = ()=>{
11
11
  return composeClasses('gp-w-[24px] gp-h-[24px] gp-shrink-0 gp-flex gp-items-center gp-justify-center');
12
12
  };
13
13
  const getItemCarouselPostPurchaseClass = (settings)=>{
14
- const classList = 'gp-w-full gp-border';
14
+ const classList = 'gp-w-full';
15
15
  return {
16
16
  ...composeClasses(classList),
17
- '!gp-border-[#d9d9d9]': settings?.border,
18
- 'gp-border-transparent': !settings?.border
17
+ '!gp-border-[#d9d9d9] !gp-border': settings?.border
19
18
  };
20
19
  };
21
20
  const getItemCarouseEmptyPostPurchaseClass = ()=>{
@@ -29,7 +28,7 @@ const getImageGridClass = ()=>{
29
28
  };
30
29
  const getProductImageClass = (settings)=>{
31
30
  return {
32
- ...composeClasses('gp-flex'),
31
+ ...composeClasses('gp-flex gp-w-full'),
33
32
  [getPostPurchaseAlignClasses(settings?.align)]: true
34
33
  };
35
34
  };
@@ -40,7 +39,7 @@ const getFeatureImageClass = ()=>{
40
39
  return composeClasses('gp-flex gp-justify-center gp-h-fit gp-w-full');
41
40
  };
42
41
  const getOnlyFeatureLayoutClass = ()=>{
43
- return composeClasses('gp-flex gp-h-fit gp-max-w-full');
42
+ return composeClasses('gp-flex gp-h-fit gp-max-w-full gp-w-full');
44
43
  };
45
44
 
46
45
  export { getContainerClasses, getFeatureImageClass, getImageGridClass, getImageListClass, getItemCarouseEmptyPostPurchaseClass, getItemCarouselPostPurchaseClass, getNavigationClass, getOnlyFeatureLayoutClass, getProductImageClass, getProductImageLayoutClass };
@@ -7,10 +7,11 @@ import '@gem-sdk/core';
7
7
  import { useListCarousel } from '../../../hooks/product-image/useListCarousel.js';
8
8
 
9
9
  const CarouselPostPurchase = (props)=>{
10
- const { productImages, itemPerRow, border, aspectRatio, objectFit } = props;
10
+ const { productImages, itemPerRow, border, aspectRatio, objectFit, vertical } = props;
11
11
  const { listRender } = useListCarousel({
12
12
  productImages,
13
- itemPerRow
13
+ itemPerRow,
14
+ vertical
14
15
  });
15
16
  const itemEmptyClass = createClass(getItemCarouseEmptyPostPurchaseClass());
16
17
  return /*#__PURE__*/ jsx(Fragment, {
@@ -56,7 +56,8 @@ const CarouselWrapperPostPurchase = ({ styles, setting, productImages, objectFit
56
56
  itemPerRow: itemPerSlide,
57
57
  border: border,
58
58
  aspectRatio: aspectRatio,
59
- objectFit: objectFit
59
+ objectFit: objectFit,
60
+ vertical: vertical
60
61
  }),
61
62
  /*#__PURE__*/ jsx(ArrowPostPurchase, {
62
63
  type: "next",
@@ -2,7 +2,7 @@ import { useCallback, useMemo } from 'react';
2
2
  import { useCarousel } from './useCarousel.js';
3
3
 
4
4
  const useListCarousel = (props)=>{
5
- const { productImages, itemPerRow } = props;
5
+ const { productImages, itemPerRow, vertical } = props;
6
6
  const { moveToIdx } = useCarousel();
7
7
  const list = useCallback(()=>{
8
8
  const temp = [
@@ -16,6 +16,9 @@ const useListCarousel = (props)=>{
16
16
  ]);
17
17
  const listRender = useMemo(()=>{
18
18
  const listItem = list();
19
+ if (vertical) return [
20
+ ...productImages
21
+ ];
19
22
  if (listItem.length < itemPerRow) {
20
23
  const temp = [
21
24
  ...productImages
@@ -31,7 +34,8 @@ const useListCarousel = (props)=>{
31
34
  }, [
32
35
  list,
33
36
  itemPerRow,
34
- productImages
37
+ productImages,
38
+ vertical
35
39
  ]);
36
40
  return {
37
41
  listRender
@@ -32,25 +32,25 @@ const SettingV2 = [
32
32
  itemSpacing: 'large',
33
33
  options: [
34
34
  {
35
- label: 'Image list bottom',
35
+ label: 'Featured top',
36
36
  value: 'bottom-center',
37
37
  type: 'p-image-layout',
38
38
  iconName: 'gp-product-image-layout-bottom'
39
39
  },
40
40
  {
41
- label: 'Image list left',
41
+ label: 'Featured left',
42
42
  value: 'left',
43
43
  type: 'p-image-layout',
44
44
  iconName: 'gp-product-image-layout-left'
45
45
  },
46
46
  {
47
- label: 'Image list right',
47
+ label: 'Featured right',
48
48
  value: 'right',
49
49
  type: 'p-image-layout',
50
50
  iconName: 'gp-product-image-layout-right'
51
51
  },
52
52
  {
53
- label: 'Featured Only',
53
+ label: 'Featured only',
54
54
  value: 'only-feature',
55
55
  type: 'p-image-layout',
56
56
  iconName: 'gp-product-image-layout-featured-only'
@@ -349,7 +349,7 @@ const SettingV2 = [
349
349
  label: 'Spacing',
350
350
  id: 'ilSpacing',
351
351
  options: postPurchaseSpacing,
352
- default: 'none'
352
+ default: 'xtight'
353
353
  },
354
354
  {
355
355
  id: 'ilItemPerSlide',
@@ -168,7 +168,7 @@ const SettingUIV2 = [
168
168
  },
169
169
  {
170
170
  label: {
171
- en: 'Spacing'
171
+ en: 'Item spacing'
172
172
  },
173
173
  controls: [
174
174
  {
@@ -232,6 +232,7 @@ const SettingUIV2 = [
232
232
  fullWidth: true,
233
233
  disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
234
234
  },
235
+ conditionDisplay: "['bottom-center', 'left', 'right', 'only-feature'].includes(layoutType)",
235
236
  conditionEnable: '!(parseInt(ftWidth) >= 100 && ftWidth?.includes("%"))'
236
237
  }
237
238
  ]