@gem-sdk/components 2.0.0-dev.294 → 2.0.0-dev.304

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 (236) hide show
  1. package/dist/cjs/accordion/components/common/index.js +2 -2
  2. package/dist/cjs/article/components/ArticleAuthor.js +1 -1
  3. package/dist/cjs/article/components/ArticleTitle.js +3 -1
  4. package/dist/cjs/article/components/ArticleTitle.liquid.js +5 -2
  5. package/dist/cjs/article/setting/ArticleList.js +0 -30
  6. package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +0 -9
  7. package/dist/cjs/article/setting/configs/ArticleAuthor/settings.js +9 -5
  8. package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
  9. package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +0 -9
  10. package/dist/cjs/article/setting/configs/ArticleCategory/settings.js +9 -5
  11. package/dist/cjs/article/setting/configs/ArticleDate/presets.js +0 -9
  12. package/dist/cjs/article/setting/configs/ArticleDate/settings.js +9 -5
  13. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +22 -1
  14. package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +36 -7
  15. package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +47 -2
  16. package/dist/cjs/banner/setting/presets/heroBanner1Col.js +14 -0
  17. package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +13 -0
  18. package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +12 -0
  19. package/dist/cjs/banner/setting/presets/heroBannerParallax.js +14 -0
  20. package/dist/cjs/banner/setting/setting.js +6 -18
  21. package/dist/cjs/banner/setting/uiV1.js +1 -2
  22. package/dist/cjs/banner/setting/uiV2.js +4 -5
  23. package/dist/cjs/builder.js +6 -2
  24. package/dist/cjs/button/components/Button.js +1 -1
  25. package/dist/cjs/button/components/Button.liquid.js +1 -1
  26. package/dist/cjs/button/components/ButtonIcon.liquid.js +3 -1
  27. package/dist/cjs/button/components/ButtonLabel.liquid.js +3 -1
  28. package/dist/cjs/button/components/common/attributes.js +2 -2
  29. package/dist/cjs/button/components/common/classes.js +2 -1
  30. package/dist/cjs/button/components/common/styles.js +9 -11
  31. package/dist/cjs/button/setting/configs/settings.js +7 -8
  32. package/dist/cjs/button/setting/configs/uiV2.js +4 -50
  33. package/dist/cjs/dialog/components/Dialog.js +109 -394
  34. package/dist/cjs/dialog/components/Dialog.liquid.js +129 -153
  35. package/dist/cjs/dialog/components/common/common.js +130 -0
  36. package/dist/cjs/dialog/components/common/getAttr.js +27 -0
  37. package/dist/cjs/dialog/components/common/getClasses.js +88 -0
  38. package/dist/cjs/dialog/components/common/getStyle.js +107 -0
  39. package/dist/cjs/dialog/components/hooks/useDialog.js +233 -0
  40. package/dist/cjs/dialog/setting/configs/settings.js +1 -1
  41. package/dist/cjs/dialog/setting/configs/uiV2.js +35 -25
  42. package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +0 -4
  43. package/dist/cjs/form/components/textinput/TextInput.js +58 -0
  44. package/dist/cjs/form/components/textinput/TextInput.liquid.js +60 -0
  45. package/dist/cjs/form/components/textinput/common/composeClasses.js +33 -0
  46. package/dist/cjs/form/components/textinput/common/composeStyles.js +70 -0
  47. package/dist/cjs/form/next.js +5 -1
  48. package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +12 -0
  49. package/dist/cjs/form/setting/index.js +3 -1
  50. package/dist/cjs/form/setting/newsletter/configs/settings.js +4 -2
  51. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +2 -0
  52. package/dist/cjs/form/setting/text-input/TextInput.js +53 -0
  53. package/dist/cjs/form/setting/text-input/configs/settings.js +307 -0
  54. package/dist/cjs/form/setting/text-input/configs/uiV1.js +106 -0
  55. package/dist/cjs/form/setting/text-input/configs/uiV2.js +303 -0
  56. package/dist/cjs/grid/row/setting/configs/settings.js +6 -3
  57. package/dist/cjs/helpers.js +8 -0
  58. package/dist/cjs/icon-list/common/attrs.js +10 -0
  59. package/dist/cjs/icon-list/common/classes.js +9 -0
  60. package/dist/cjs/icon-list/common/styles.js +29 -0
  61. package/dist/cjs/icon-list/components/IconList.js +19 -30
  62. package/dist/cjs/icon-list/components/IconList.liquid.js +21 -24
  63. package/dist/cjs/icon-list/components/IconListItem.js +13 -7
  64. package/dist/cjs/icon-list/components/IconListItem.liquid.js +13 -7
  65. package/dist/cjs/icon-list-hoz/components/IconListHoz.js +37 -25
  66. package/dist/cjs/icon-list-hoz/components/IconListHoz.liquid.js +31 -25
  67. package/dist/cjs/icon-list-hoz/components/IconListHozItem.js +12 -6
  68. package/dist/cjs/icon-list-hoz/components/IconListIHozItem.liquid.js +26 -0
  69. package/dist/cjs/icon-list-hoz/components/common/getAttr.js +9 -0
  70. package/dist/cjs/icon-list-hoz/components/common/getClasses.js +24 -0
  71. package/dist/cjs/icon-list-hoz/components/common/getStyle.js +30 -0
  72. package/dist/cjs/index.js +6 -1
  73. package/dist/cjs/index.liquid.js +7 -3
  74. package/dist/cjs/line/common/classes.js +66 -0
  75. package/dist/cjs/line/common/index.js +16 -0
  76. package/dist/cjs/line/common/styles.js +120 -0
  77. package/dist/cjs/line/components/Divider.js +26 -0
  78. package/dist/cjs/line/components/Divider.liquid.js +22 -0
  79. package/dist/cjs/line/components/Line.js +98 -0
  80. package/dist/cjs/line/components/Line.liquid.js +86 -0
  81. package/dist/cjs/line/next.js +1 -1
  82. package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +1 -1
  83. package/dist/cjs/post-purchase/link/setting/configs/settings.js +2 -1
  84. package/dist/cjs/post-purchase/link/setting/configs/uiV2.js +1 -1
  85. package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  86. package/dist/cjs/product/components/FileUpload/components/config/setting.js +24 -26
  87. package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +12 -179
  88. package/dist/cjs/product/components/ProductList.js +1 -1
  89. package/dist/cjs/product/components/ProductTag.js +9 -1
  90. package/dist/cjs/product/components/ProductVariants/index.js +2 -2
  91. package/dist/cjs/product/components/ProductVariants/index.liquid.js +2 -2
  92. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +8 -3
  93. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
  94. package/dist/cjs/product/setting/ProductVariants.js +8 -1374
  95. package/dist/cjs/product/setting/product-list/configs/uiV2.js +0 -3
  96. package/dist/cjs/product/setting/product-variant/configs/presets.js +168 -0
  97. package/dist/cjs/product/setting/product-variant/configs/settings.js +732 -0
  98. package/dist/cjs/product/setting/product-variant/configs/uiV1.js +509 -0
  99. package/dist/cjs/product/setting/product-variant/configs/uiV2.js +347 -0
  100. package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.js +33 -0
  101. package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +12 -0
  102. package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +12 -0
  103. package/dist/cjs/third-party/next.js +5 -0
  104. package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc.js +142 -0
  105. package/dist/cjs/third-party/setting/index.js +3 -1
  106. package/dist/esm/accordion/components/common/index.js +2 -2
  107. package/dist/esm/article/components/ArticleAuthor.js +1 -1
  108. package/dist/esm/article/components/ArticleTitle.js +3 -1
  109. package/dist/esm/article/components/ArticleTitle.liquid.js +5 -2
  110. package/dist/esm/article/setting/ArticleList.js +0 -30
  111. package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +0 -9
  112. package/dist/esm/article/setting/configs/ArticleAuthor/settings.js +9 -5
  113. package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
  114. package/dist/esm/article/setting/configs/ArticleCategory/presets.js +0 -9
  115. package/dist/esm/article/setting/configs/ArticleCategory/settings.js +9 -5
  116. package/dist/esm/article/setting/configs/ArticleDate/presets.js +0 -9
  117. package/dist/esm/article/setting/configs/ArticleDate/settings.js +9 -5
  118. package/dist/esm/article/setting/configs/ArticleImage/settings.js +22 -1
  119. package/dist/esm/article/setting/configs/ArticleTitle/settings.js +36 -7
  120. package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +47 -2
  121. package/dist/esm/banner/setting/presets/heroBanner1Col.js +14 -0
  122. package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +13 -0
  123. package/dist/esm/banner/setting/presets/heroBannerContentRight.js +12 -0
  124. package/dist/esm/banner/setting/presets/heroBannerParallax.js +14 -0
  125. package/dist/esm/banner/setting/setting.js +6 -18
  126. package/dist/esm/banner/setting/uiV1.js +1 -2
  127. package/dist/esm/banner/setting/uiV2.js +4 -5
  128. package/dist/esm/builder.js +6 -2
  129. package/dist/esm/button/components/Button.js +1 -1
  130. package/dist/esm/button/components/Button.liquid.js +1 -1
  131. package/dist/esm/button/components/ButtonIcon.liquid.js +3 -1
  132. package/dist/esm/button/components/ButtonLabel.liquid.js +3 -1
  133. package/dist/esm/button/components/common/attributes.js +2 -2
  134. package/dist/esm/button/components/common/classes.js +3 -2
  135. package/dist/esm/button/components/common/styles.js +10 -12
  136. package/dist/esm/button/setting/configs/settings.js +7 -8
  137. package/dist/esm/button/setting/configs/uiV2.js +4 -50
  138. package/dist/esm/dialog/components/Dialog.js +110 -395
  139. package/dist/esm/dialog/components/Dialog.liquid.js +130 -154
  140. package/dist/esm/dialog/components/common/common.js +117 -0
  141. package/dist/esm/dialog/components/common/getAttr.js +22 -0
  142. package/dist/esm/dialog/components/common/getClasses.js +79 -0
  143. package/dist/esm/dialog/components/common/getStyle.js +98 -0
  144. package/dist/esm/dialog/components/hooks/useDialog.js +231 -0
  145. package/dist/esm/dialog/setting/configs/settings.js +1 -1
  146. package/dist/esm/dialog/setting/configs/uiV2.js +35 -25
  147. package/dist/esm/form/components/form-checkbox/FormCheckbox.js +0 -4
  148. package/dist/esm/form/components/textinput/TextInput.js +54 -0
  149. package/dist/esm/form/components/textinput/TextInput.liquid.js +56 -0
  150. package/dist/esm/form/components/textinput/common/composeClasses.js +29 -0
  151. package/dist/esm/form/components/textinput/common/composeStyles.js +67 -0
  152. package/dist/esm/form/next.js +5 -1
  153. package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +12 -0
  154. package/dist/esm/form/setting/index.js +3 -1
  155. package/dist/esm/form/setting/newsletter/configs/settings.js +4 -2
  156. package/dist/esm/form/setting/newsletter/configs/uiV2.js +2 -0
  157. package/dist/esm/form/setting/text-input/TextInput.js +49 -0
  158. package/dist/esm/form/setting/text-input/configs/settings.js +305 -0
  159. package/dist/esm/form/setting/text-input/configs/uiV1.js +104 -0
  160. package/dist/esm/form/setting/text-input/configs/uiV2.js +301 -0
  161. package/dist/esm/grid/row/setting/configs/settings.js +6 -3
  162. package/dist/esm/helpers.js +8 -1
  163. package/dist/esm/icon-list/common/attrs.js +8 -0
  164. package/dist/esm/icon-list/common/classes.js +6 -0
  165. package/dist/esm/icon-list/common/styles.js +25 -0
  166. package/dist/esm/icon-list/components/IconList.js +21 -32
  167. package/dist/esm/icon-list/components/IconList.liquid.js +21 -24
  168. package/dist/esm/icon-list/components/IconListItem.js +13 -7
  169. package/dist/esm/icon-list/components/IconListItem.liquid.js +14 -8
  170. package/dist/esm/icon-list-hoz/components/IconListHoz.js +38 -26
  171. package/dist/esm/icon-list-hoz/components/IconListHoz.liquid.js +32 -26
  172. package/dist/esm/icon-list-hoz/components/IconListHozItem.js +12 -6
  173. package/dist/esm/icon-list-hoz/components/IconListIHozItem.liquid.js +22 -0
  174. package/dist/esm/icon-list-hoz/components/common/getAttr.js +7 -0
  175. package/dist/esm/icon-list-hoz/components/common/getClasses.js +21 -0
  176. package/dist/esm/icon-list-hoz/components/common/getStyle.js +27 -0
  177. package/dist/esm/index.js +4 -2
  178. package/dist/esm/index.liquid.js +4 -2
  179. package/dist/esm/line/common/classes.js +59 -0
  180. package/dist/esm/line/common/index.js +14 -0
  181. package/dist/esm/line/common/styles.js +114 -0
  182. package/dist/esm/line/components/Divider.js +22 -0
  183. package/dist/esm/line/components/Divider.liquid.js +18 -0
  184. package/dist/esm/line/components/Line.js +94 -0
  185. package/dist/esm/line/components/Line.liquid.js +82 -0
  186. package/dist/esm/line/next.js +1 -1
  187. package/dist/esm/post-purchase/line/setting/configs/uiV2.js +1 -1
  188. package/dist/esm/post-purchase/link/setting/configs/settings.js +2 -1
  189. package/dist/esm/post-purchase/link/setting/configs/uiV2.js +1 -1
  190. package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  191. package/dist/esm/product/components/FileUpload/components/config/setting.js +24 -26
  192. package/dist/esm/product/components/FileUpload/components/config/uiV2.js +12 -179
  193. package/dist/esm/product/components/ProductList.js +1 -1
  194. package/dist/esm/product/components/ProductTag.js +10 -2
  195. package/dist/esm/product/components/ProductVariants/index.js +2 -2
  196. package/dist/esm/product/components/ProductVariants/index.liquid.js +2 -2
  197. package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +8 -3
  198. package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
  199. package/dist/esm/product/setting/ProductVariants.js +8 -1374
  200. package/dist/esm/product/setting/product-list/configs/uiV2.js +0 -3
  201. package/dist/esm/product/setting/product-variant/configs/presets.js +166 -0
  202. package/dist/esm/product/setting/product-variant/configs/settings.js +730 -0
  203. package/dist/esm/product/setting/product-variant/configs/uiV1.js +507 -0
  204. package/dist/esm/product/setting/product-variant/configs/uiV2.js +345 -0
  205. package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.js +29 -0
  206. package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +8 -0
  207. package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +8 -0
  208. package/dist/esm/third-party/next.js +5 -0
  209. package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc.js +138 -0
  210. package/dist/esm/third-party/setting/index.js +3 -1
  211. package/dist/types/index.d.ts +184 -166
  212. package/package.json +2 -2
  213. package/dist/cjs/dialog/helpers/common.js +0 -55
  214. package/dist/cjs/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -23
  215. package/dist/cjs/line/Divider.js +0 -35
  216. package/dist/cjs/line/Divider.liquid.js +0 -35
  217. package/dist/cjs/line/Line.js +0 -167
  218. package/dist/cjs/line/Line.liquid.js +0 -163
  219. package/dist/esm/dialog/helpers/common.js +0 -47
  220. package/dist/esm/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -19
  221. package/dist/esm/line/Divider.js +0 -31
  222. package/dist/esm/line/Divider.liquid.js +0 -31
  223. package/dist/esm/line/Line.js +0 -163
  224. package/dist/esm/line/Line.liquid.js +0 -159
  225. /package/dist/cjs/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
  226. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
  227. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
  228. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
  229. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
  230. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
  231. /package/dist/esm/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
  232. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
  233. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
  234. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
  235. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
  236. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
@@ -15,7 +15,7 @@ const getDataState = (props, rawChildren)=>{
15
15
  const expanded = expandedMode === 'multiple';
16
16
  const parseActiveKeys = (key)=>{
17
17
  if (!key) return [];
18
- return key.toLowerCase().split(',').map((item)=>parseInt(item.trim()) - 1).map((item)=>item.toString());
18
+ return key.toString().toLowerCase().split(',').map((item)=>parseInt(item.trim()) - 1).map((item)=>item.toString());
19
19
  };
20
20
  const activeIndex = expandItem ? parseActiveKeys(activeKey) : [];
21
21
  const accordions = expanded ? [
@@ -36,7 +36,7 @@ const getDataState = (props, rawChildren)=>{
36
36
  expandedMode,
37
37
  configIconSize,
38
38
  parentUid: builderProps?.uid,
39
- childListNumber: expandItem ? activeKey?.toLowerCase() === 'all' ? rawChildren?.map((_, index)=>index.toString()) : accordions : [],
39
+ childListNumber: expandItem ? activeKey?.toString().toLowerCase() === 'all' ? rawChildren?.map((_, index)=>index.toString()) : accordions : [],
40
40
  chidlrenUid: rawChildren?.map((item)=>item.uid)
41
41
  });
42
42
  const getStyles = ()=>({
@@ -12,7 +12,7 @@ const ArticleAuthor = ({ setting, builderProps, styles })=>{
12
12
  const { prefix } = setting;
13
13
  const article = core.useArticleStore((s)=>s.article);
14
14
  const author = React.useMemo(()=>{
15
- return `${prefix} ${article?.author || 'Unknown'}`;
15
+ return `${prefix ?? ''} ${article?.author || 'Unknown'}`;
16
16
  }, [
17
17
  article?.author,
18
18
  prefix
@@ -12,11 +12,13 @@ var useArticleLink = require('../hooks/useArticleLink.js');
12
12
  const ArticleTitle = ({ setting, builderProps, styles })=>{
13
13
  const article = core.useArticleStore((s)=>s.article);
14
14
  const { shopifyArticleLink } = useArticleLink.useArticleLink();
15
+ const target = setting?.openNewTab ? '_blank' : '_self';
15
16
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
16
17
  id: `shopify-text-element-${builderProps?.uid}`,
17
18
  "data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
18
- children: !article ? null : setting?.linkArticle ? /*#__PURE__*/ jsxRuntime.jsx(Link, {
19
+ children: !article ? null : setting?.enableLink && setting?.linkArticle ? /*#__PURE__*/ jsxRuntime.jsx(Link, {
19
20
  href: shopifyArticleLink,
21
+ target: target,
20
22
  title: article?.title,
21
23
  children: /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
22
24
  builderProps: builderProps,
@@ -7,9 +7,12 @@ var core = require('@gem-sdk/core');
7
7
  var Text_liquid = require('../../text/components/Text.liquid.js');
8
8
 
9
9
  const ArticleTitle = ({ setting, styles, advanced, builderProps })=>{
10
+ const target = setting?.openNewTab ? '_blank' : '_self';
10
11
  return core.template`
11
- ${setting?.linkArticle ? `
12
- <a href="{{article.url}}" title="{{article.title}}">
12
+ ${setting?.enableLink && setting?.linkArticle ? `
13
+ <a href="{{article.url}}" target="${{
14
+ target
15
+ }}" title="{{article.title}}">
13
16
  ${Text_liquid.default({
14
17
  styles: styles,
15
18
  setting: {
@@ -615,11 +615,6 @@ const config = {
615
615
  mobile: '12px'
616
616
  },
617
617
  fontWeight: '400',
618
- lineHeight: {
619
- desktop: '180%',
620
- tablet: '180%',
621
- mobile: '180%'
622
- },
623
618
  fontFamily: 'Assistant'
624
619
  }
625
620
  },
@@ -630,9 +625,6 @@ const config = {
630
625
  advanced: {
631
626
  'spacing-setting': {
632
627
  desktop: {
633
- margin: {
634
- bottom: 'var(--g-s-s)'
635
- },
636
628
  padding: {
637
629
  right: 'var(--g-s-s)',
638
630
  top: '0px'
@@ -678,11 +670,6 @@ const config = {
678
670
  mobile: '12px'
679
671
  },
680
672
  fontWeight: '400',
681
- lineHeight: {
682
- desktop: '180%',
683
- tablet: '180%',
684
- mobile: '180%'
685
- },
686
673
  fontFamily: 'Assistant'
687
674
  }
688
675
  },
@@ -693,9 +680,6 @@ const config = {
693
680
  advanced: {
694
681
  'spacing-setting': {
695
682
  desktop: {
696
- margin: {
697
- bottom: 'var(--g-s-s)'
698
- },
699
683
  padding: {
700
684
  right: 'var(--g-s-s)',
701
685
  top: '0px'
@@ -741,26 +725,12 @@ const config = {
741
725
  mobile: '12px'
742
726
  },
743
727
  fontWeight: '400',
744
- lineHeight: {
745
- desktop: '180%',
746
- tablet: '180%',
747
- mobile: '180%'
748
- },
749
728
  fontFamily: 'Assistant'
750
729
  }
751
730
  },
752
731
  color: {
753
732
  normal: 'text-2'
754
733
  }
755
- },
756
- advanced: {
757
- 'spacing-setting': {
758
- desktop: {
759
- margin: {
760
- bottom: 'var(--g-s-s)'
761
- }
762
- }
763
- }
764
734
  }
765
735
  }
766
736
  ]
@@ -24,15 +24,6 @@ const ArticleAuthorPresets = [
24
24
  typo: {
25
25
  type: 'paragraph-3'
26
26
  }
27
- },
28
- advanced: {
29
- 'spacing-setting': {
30
- desktop: {
31
- margin: {
32
- bottom: 'var(--g-s-s)'
33
- }
34
- }
35
- }
36
27
  }
37
28
  }
38
29
  ]
@@ -56,12 +56,16 @@ const ArticleAuthorSettings = [
56
56
  id: 'typo',
57
57
  type: 'typography-v2',
58
58
  default: {
59
- type: 'subheading-3'
59
+ type: 'subheading-3',
60
+ custom: {
61
+ lineHeight: {
62
+ desktop: '120%',
63
+ tablet: '120%',
64
+ mobile: '120%'
65
+ }
66
+ }
60
67
  },
61
- ignoreReRender: true,
62
- hiddenSetting: {
63
- color: true
64
- }
68
+ ignoreReRender: true
65
69
  },
66
70
  {
67
71
  id: 'textAlign',
@@ -59,6 +59,22 @@ const uiV2 = [
59
59
  noRecordHistory: true
60
60
  }
61
61
  }
62
+ },
63
+ {
64
+ label: {
65
+ en: 'SEO'
66
+ },
67
+ controls: [
68
+ {
69
+ type: 'control',
70
+ label: {
71
+ en: 'HTML tag'
72
+ },
73
+ setting: {
74
+ id: 'htmlTag'
75
+ }
76
+ }
77
+ ]
62
78
  }
63
79
  ]
64
80
  }
@@ -24,15 +24,6 @@ const ArticleCategoryPresets = [
24
24
  typo: {
25
25
  type: 'paragraph-3'
26
26
  }
27
- },
28
- advanced: {
29
- 'spacing-setting': {
30
- desktop: {
31
- margin: {
32
- bottom: 'var(--g-s-s)'
33
- }
34
- }
35
- }
36
27
  }
37
28
  }
38
29
  ]
@@ -49,12 +49,16 @@ const ArticleCategorySettings = [
49
49
  id: 'typo',
50
50
  type: 'typography-v2',
51
51
  default: {
52
- type: 'subheading-3'
52
+ type: 'subheading-3',
53
+ custom: {
54
+ lineHeight: {
55
+ desktop: '120%',
56
+ tablet: '120%',
57
+ mobile: '120%'
58
+ }
59
+ }
53
60
  },
54
- ignoreReRender: true,
55
- hiddenSetting: {
56
- color: true
57
- }
61
+ ignoreReRender: true
58
62
  },
59
63
  {
60
64
  id: 'textAlign',
@@ -23,15 +23,6 @@ const ArticleDatePresets = [
23
23
  typo: {
24
24
  type: 'paragraph-3'
25
25
  }
26
- },
27
- advanced: {
28
- 'spacing-setting': {
29
- desktop: {
30
- margin: {
31
- bottom: 'var(--g-s-s)'
32
- }
33
- }
34
- }
35
26
  }
36
27
  }
37
28
  ]
@@ -82,12 +82,16 @@ const ArticleDateSettings = [
82
82
  id: 'typo',
83
83
  type: 'typography-v2',
84
84
  default: {
85
- type: 'subheading-3'
85
+ type: 'subheading-3',
86
+ custom: {
87
+ lineHeight: {
88
+ desktop: '120%',
89
+ tablet: '120%',
90
+ mobile: '120%'
91
+ }
92
+ }
86
93
  },
87
- ignoreReRender: true,
88
- hiddenSetting: {
89
- color: true
90
- }
94
+ ignoreReRender: true
91
95
  },
92
96
  {
93
97
  id: 'textAlign',
@@ -50,13 +50,19 @@ const ArticleImageSettings = [
50
50
  }
51
51
  ]
52
52
  },
53
+ {
54
+ id: 'enableLink',
55
+ type: 'toggle',
56
+ label: 'Link',
57
+ default: true
58
+ },
53
59
  {
54
60
  id: 'linkArticle',
55
61
  label: 'After click',
56
62
  type: 'select',
57
63
  options: [
58
64
  {
59
- label: 'Go to article',
65
+ label: 'View article',
60
66
  value: true
61
67
  },
62
68
  {
@@ -66,6 +72,21 @@ const ArticleImageSettings = [
66
72
  ],
67
73
  default: true,
68
74
  info: 'Ability to click on article title to go to article detail page.'
75
+ },
76
+ {
77
+ id: 'openNewTab',
78
+ type: 'segment',
79
+ label: 'Open new tab',
80
+ options: [
81
+ {
82
+ label: 'Yes',
83
+ value: true
84
+ },
85
+ {
86
+ label: 'No',
87
+ value: false
88
+ }
89
+ ]
69
90
  }
70
91
  ]
71
92
  },
@@ -40,6 +40,12 @@ const ArticleTitleSettings = [
40
40
  ],
41
41
  default: 'h1'
42
42
  },
43
+ {
44
+ id: 'enableLink',
45
+ type: 'toggle',
46
+ label: 'Link',
47
+ default: true
48
+ },
43
49
  {
44
50
  id: 'linkArticle',
45
51
  label: 'After click',
@@ -56,6 +62,22 @@ const ArticleTitleSettings = [
56
62
  ],
57
63
  default: true,
58
64
  info: 'Ability to click on article title to go to article detail page.'
65
+ },
66
+ {
67
+ id: 'openNewTab',
68
+ type: 'segment',
69
+ label: 'Open new tab',
70
+ options: [
71
+ {
72
+ label: 'Yes',
73
+ value: true
74
+ },
75
+ {
76
+ label: 'No',
77
+ value: false
78
+ }
79
+ ],
80
+ default: true
59
81
  }
60
82
  ]
61
83
  },
@@ -68,10 +90,7 @@ const ArticleTitleSettings = [
68
90
  default: {
69
91
  type: 'subheading-3'
70
92
  },
71
- ignoreReRender: true,
72
- hiddenSetting: {
73
- color: true
74
- }
93
+ ignoreReRender: true
75
94
  },
76
95
  {
77
96
  id: 'textAlign',
@@ -115,8 +134,18 @@ const ArticleTitleSettings = [
115
134
  },
116
135
  {
117
136
  id: 'hasLineClamp',
118
- type: 'toggle',
137
+ type: 'segment',
119
138
  label: 'Has Line Clamp',
139
+ options: [
140
+ {
141
+ label: 'Yes',
142
+ value: true
143
+ },
144
+ {
145
+ label: 'No',
146
+ value: false
147
+ }
148
+ ],
120
149
  devices: {
121
150
  desktop: {
122
151
  default: false
@@ -125,7 +154,7 @@ const ArticleTitleSettings = [
125
154
  },
126
155
  {
127
156
  id: 'lineClamp',
128
- type: 'input:number',
157
+ type: 'input:stepper',
129
158
  min: 1,
130
159
  label: 'Line Clamp',
131
160
  disableDecimal: true,
@@ -139,7 +168,7 @@ const ArticleTitleSettings = [
139
168
  {
140
169
  id: 'color',
141
170
  label: 'Text Color',
142
- type: 'colorpicker',
171
+ type: 'color-picker-v2',
143
172
  default: {
144
173
  normal: 'text-2'
145
174
  },
@@ -51,8 +51,18 @@ const uiV2 = [
51
51
  {
52
52
  id: 'hasLineClamp',
53
53
  label: {
54
- en: 'Max line'
54
+ en: 'Max lines'
55
55
  },
56
+ setting: {
57
+ id: 'hasLineClamp'
58
+ }
59
+ },
60
+ {
61
+ id: 'lineClamp',
62
+ label: {
63
+ en: 'Number of lines'
64
+ },
65
+ conditionDisplay: 'hasLineClamp === true',
56
66
  setting: {
57
67
  id: 'lineClamp'
58
68
  }
@@ -77,16 +87,51 @@ const uiV2 = [
77
87
  },
78
88
  {
79
89
  label: {
80
- en: 'Redirect to'
90
+ en: 'SEO'
81
91
  },
82
92
  controls: [
83
93
  {
94
+ type: 'control',
95
+ label: {
96
+ en: 'HTML tag'
97
+ },
98
+ setting: {
99
+ id: 'htmlTag'
100
+ }
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ controls: [
106
+ {
107
+ label: {
108
+ en: 'Link'
109
+ },
110
+ setting: {
111
+ id: 'enableLink'
112
+ },
113
+ options: {
114
+ labelVariant: 'primary',
115
+ toggleStyle: 'switch'
116
+ }
117
+ },
118
+ {
119
+ conditionDisplay: 'enableLink === true',
84
120
  label: {
85
121
  en: 'After click'
86
122
  },
87
123
  setting: {
88
124
  id: 'linkArticle'
89
125
  }
126
+ },
127
+ {
128
+ conditionDisplay: 'enableLink === true',
129
+ label: {
130
+ en: 'Open new tab'
131
+ },
132
+ setting: {
133
+ id: 'openNewTab'
134
+ }
90
135
  }
91
136
  ]
92
137
  }
@@ -42,6 +42,20 @@ const heroBanner1Col = {
42
42
  contentWidth: {
43
43
  desktop: '1200px'
44
44
  },
45
+ sizeSetting: {
46
+ desktop: {
47
+ shape: 'custom',
48
+ widthHeightLinked: false,
49
+ width: '100%',
50
+ height: '600px'
51
+ },
52
+ mobile: {
53
+ shape: 'custom',
54
+ widthHeightLinked: false,
55
+ width: '1200px',
56
+ height: '600px'
57
+ }
58
+ },
45
59
  background: {
46
60
  desktop: {
47
61
  image: {
@@ -48,6 +48,19 @@ const heroBannerContentLeft = {
48
48
  contentWidth: {
49
49
  desktop: '1200px'
50
50
  },
51
+ sizeSetting: {
52
+ desktop: {
53
+ shape: 'original',
54
+ widthHeightLinked: true,
55
+ width: '100%'
56
+ },
57
+ mobile: {
58
+ shape: 'custom',
59
+ widthHeightLinked: false,
60
+ width: '100%',
61
+ height: 'auto'
62
+ }
63
+ },
51
64
  background: {
52
65
  desktop: {
53
66
  image: {
@@ -57,6 +57,18 @@ const heroBannerContentRight = {
57
57
  contentWidth: {
58
58
  desktop: '1200px'
59
59
  },
60
+ sizeSetting: {
61
+ desktop: {
62
+ shape: 'original',
63
+ widthHeightLinked: true,
64
+ width: '100%'
65
+ },
66
+ mobile: {
67
+ shape: 'original',
68
+ widthHeightLinked: true,
69
+ width: '100%'
70
+ }
71
+ },
60
72
  background: {
61
73
  desktop: {
62
74
  image: {
@@ -42,6 +42,20 @@ const heroBannerParallax = {
42
42
  contentWidth: {
43
43
  desktop: '1200px'
44
44
  },
45
+ sizeSetting: {
46
+ desktop: {
47
+ shape: 'custom',
48
+ widthHeightLinked: false,
49
+ width: '100%',
50
+ height: '600px'
51
+ },
52
+ mobile: {
53
+ shape: 'custom',
54
+ widthHeightLinked: false,
55
+ width: '1200px',
56
+ height: '600px'
57
+ }
58
+ },
45
59
  background: {
46
60
  desktop: {
47
61
  image: {
@@ -402,16 +402,18 @@ const SettingsV1 = [
402
402
  devices: {
403
403
  desktop: {
404
404
  default: {
405
- shape: 'original',
405
+ shape: 'custom',
406
406
  widthHeightLinked: false,
407
- width: '100%'
407
+ width: '100%',
408
+ height: '600px'
408
409
  }
409
410
  },
410
411
  mobile: {
411
412
  default: {
412
413
  shape: 'custom',
413
- height: '500px',
414
- width: '100%'
414
+ widthHeightLinked: false,
415
+ width: '1200px',
416
+ height: '600px'
415
417
  }
416
418
  }
417
419
  },
@@ -783,20 +785,6 @@ const SettingsV1 = [
783
785
  hover: true
784
786
  }
785
787
  },
786
- {
787
- id: 'borderBg',
788
- type: 'border',
789
- label: 'Border',
790
- default: {
791
- borderType: 'style-1',
792
- border: 'solid',
793
- width: '0px 0px 0px 0px',
794
- position: 'all',
795
- borderWidth: '0px',
796
- color: '#000000',
797
- isCustom: true
798
- }
799
- },
800
788
  {
801
789
  id: 'cornerBg',
802
790
  type: 'radius-preset',
@@ -412,8 +412,7 @@ const SettingUIV1 = [
412
412
  },
413
413
  setting: {
414
414
  id: 'speedParallax'
415
- },
416
- condition: 'enableParallax == true'
415
+ }
417
416
  }
418
417
  ]
419
418
  },
@@ -102,10 +102,10 @@ const SettingUIV2 = [
102
102
  type: 'padding-v2',
103
103
  compoDefaultValue: {
104
104
  default: {
105
- top: '4px',
106
- right: '16px',
107
- bottom: '4px',
108
- left: '16px',
105
+ top: '80px',
106
+ right: '0px',
107
+ bottom: '80px',
108
+ left: '0px',
109
109
  linked: false
110
110
  }
111
111
  }
@@ -198,7 +198,6 @@ const SettingUIV2 = [
198
198
  },
199
199
  iconName: 'polaris-star',
200
200
  getValueFromSettingID: 'speedParallax',
201
- isHideClear: true,
202
201
  controls: [
203
202
  {
204
203
  layout: 'vertical',