@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
@@ -0,0 +1,98 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+ var Divider = require('./Divider.js');
8
+ var system = require('@gem-sdk/system');
9
+ var classes = require('../common/classes.js');
10
+ var styles = require('../common/styles.js');
11
+ var index = require('../common/index.js');
12
+
13
+ const Line = (props)=>{
14
+ const { className, setting, styles: styles$1, advanced, builderProps } = props;
15
+ const { text, iconSvg } = setting ?? {};
16
+ const configLine = index.getConfigLine({
17
+ styles: styles$1,
18
+ setting
19
+ });
20
+ const classContainerLine = system.createClass(classes.getClassContainerLine({
21
+ className,
22
+ styles: styles$1,
23
+ advanced
24
+ }));
25
+ const classWrapNotIcon = system.createClass(classes.getClassWrapNotIcon({
26
+ className,
27
+ setting
28
+ }));
29
+ const classWrapIcon = system.createClass(classes.getClassWrapIcon({
30
+ className,
31
+ setting
32
+ }));
33
+ const classIcon = system.createClass(classes.getClassIcon());
34
+ const classText = system.createClass(classes.getClassText({
35
+ styles: styles$1
36
+ }));
37
+ const styleWrapNotIcon = system.createStyle(styles.getStyleWrapNotIcon({
38
+ styles: styles$1
39
+ }));
40
+ const styleWrapIcon = system.createStyle(styles.getStyleWrapIcon({
41
+ styles: styles$1
42
+ }));
43
+ const styleIcon = system.createStyle(styles.getStyleIcon({
44
+ styles: styles$1,
45
+ setting
46
+ }));
47
+ const styleContainerText = system.createStyle(styles.getStyleContainerText({
48
+ styles: styles$1
49
+ }));
50
+ const propsDividerLeft = {
51
+ config: configLine,
52
+ fixedSide: 'left',
53
+ className
54
+ };
55
+ const propsDividerRight = {
56
+ config: configLine,
57
+ fixedSide: 'right',
58
+ className
59
+ };
60
+ return /*#__PURE__*/ jsxRuntime.jsxs("div", {
61
+ "data-id": builderProps?.uid,
62
+ className: classContainerLine,
63
+ children: [
64
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
65
+ style: styleWrapNotIcon,
66
+ className: classWrapNotIcon
67
+ }),
68
+ /*#__PURE__*/ jsxRuntime.jsxs("div", {
69
+ className: classWrapIcon,
70
+ style: styleWrapIcon,
71
+ children: [
72
+ /*#__PURE__*/ jsxRuntime.jsx(Divider.default, {
73
+ ...propsDividerLeft
74
+ }),
75
+ system.If(!!iconSvg, /*#__PURE__*/ jsxRuntime.jsx("span", {
76
+ className: classIcon,
77
+ style: styleIcon,
78
+ dangerouslySetInnerHTML: {
79
+ __html: iconSvg ?? ''
80
+ }
81
+ })),
82
+ system.If(!!text, /*#__PURE__*/ jsxRuntime.jsx("span", {
83
+ className: classText,
84
+ style: styleContainerText,
85
+ dangerouslySetInnerHTML: {
86
+ __html: text ?? ''
87
+ }
88
+ })),
89
+ /*#__PURE__*/ jsxRuntime.jsx(Divider.default, {
90
+ ...propsDividerRight
91
+ })
92
+ ]
93
+ })
94
+ ]
95
+ });
96
+ };
97
+
98
+ exports.default = Line;
@@ -0,0 +1,86 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@gem-sdk/core');
6
+ var Divider_liquid = require('./Divider.liquid.js');
7
+ var system = require('@gem-sdk/system');
8
+ var classes = require('../common/classes.js');
9
+ var styles = require('../common/styles.js');
10
+ var index = require('../common/index.js');
11
+
12
+ const Line = (props)=>{
13
+ const { className, setting, styles: styles$1, advanced, builderProps } = props;
14
+ const { text, iconSvg } = setting ?? {};
15
+ const configLine = index.getConfigLine({
16
+ styles: styles$1,
17
+ setting
18
+ });
19
+ const classContainerLine = system.createClass(classes.getClassContainerLine({
20
+ className,
21
+ styles: styles$1,
22
+ advanced
23
+ }));
24
+ const classWrapNotIcon = system.createClass(classes.getClassWrapNotIcon({
25
+ className,
26
+ setting
27
+ }));
28
+ const classWrapIcon = system.createClass(classes.getClassWrapIcon({
29
+ className,
30
+ setting
31
+ }));
32
+ const classIcon = system.createClass(classes.getClassIcon());
33
+ const classText = system.createClass(classes.getClassText({
34
+ styles: styles$1
35
+ }));
36
+ const styleWrapNotIcon = system.createStyle(styles.getStyleWrapNotIcon({
37
+ styles: styles$1
38
+ }));
39
+ const styleWrapIcon = system.createStyle(styles.getStyleWrapIcon({
40
+ styles: styles$1
41
+ }));
42
+ const styleIcon = system.createStyle(styles.getStyleIcon({
43
+ styles: styles$1,
44
+ setting
45
+ }));
46
+ const styleContainerText = system.createStyle(styles.getStyleContainerText({
47
+ styles: styles$1
48
+ }));
49
+ const propsDividerLeft = {
50
+ config: configLine,
51
+ fixedSide: 'left',
52
+ className
53
+ };
54
+ const propsDividerRight = {
55
+ config: configLine,
56
+ fixedSide: 'right',
57
+ className
58
+ };
59
+ return core.template`
60
+ <div data-id="${builderProps?.uid}" class="${classContainerLine}">
61
+ <div style="${styleWrapNotIcon}" class="${classWrapNotIcon}"/>
62
+ <div class="${classWrapIcon}" style="${styleWrapIcon}">
63
+ ${Divider_liquid.default(propsDividerLeft)}
64
+ ${system.If(!!iconSvg, core.template`
65
+ <span
66
+ class="${classIcon}"
67
+ style="${styleIcon}"
68
+ >
69
+ ${iconSvg}
70
+ </span>
71
+ `)}
72
+ ${system.If(!!text, core.template`
73
+ <span
74
+ class="${classText}"
75
+ style="${styleContainerText}"
76
+ >
77
+ ${text}
78
+ </span>
79
+ `)}
80
+ ${Divider_liquid.default(propsDividerRight)}
81
+ </div>
82
+ </div>
83
+ `;
84
+ };
85
+
86
+ exports.default = Line;
@@ -8,7 +8,7 @@ require('react/jsx-runtime');
8
8
  require('react');
9
9
  require('@gem-sdk/core');
10
10
 
11
- const Line = dynamic(()=>Promise.resolve().then(function () { return require('./Line.js'); }), {
11
+ const Line = dynamic(()=>Promise.resolve().then(function () { return require('./components/Line.js'); }), {
12
12
  loading: Loading.default
13
13
  });
14
14
  var line = {
@@ -32,7 +32,7 @@ const SettingUIV2 = [
32
32
  label: {
33
33
  en: 'Align'
34
34
  },
35
- conditionEnable: `width !== '100%'`,
35
+ conditionEnable: `!(parseInt(width) >= 100 && width?.includes("%"))`,
36
36
  setting: {
37
37
  id: 'align'
38
38
  },
@@ -17,7 +17,8 @@ const PostPurchaseLinkSettings = [
17
17
  type: 'textarea',
18
18
  default: 'Preview Sample',
19
19
  autoHeight: true,
20
- lazyUpdate: true
20
+ lazyUpdate: true,
21
+ isFallback: true
21
22
  },
22
23
  {
23
24
  id: 'width',
@@ -80,7 +80,7 @@ const PostPurchaseLinkUIV2 = [
80
80
  label: {
81
81
  en: 'Align'
82
82
  },
83
- conditionEnable: `width !== '100%' && width !== '1px'`,
83
+ conditionEnable: `!(parseInt(width) >= 100 && width?.includes("%")) && width !== '1px'`,
84
84
  setting: {
85
85
  id: 'align'
86
86
  },
@@ -156,7 +156,7 @@ const ProductVariantsSettingUIV2 = [
156
156
  setting: {
157
157
  id: 'align'
158
158
  },
159
- conditionEnable: '!(parseInt(width) == 100 && width?.includes("%"))',
159
+ conditionEnable: '!(parseInt(width) >= 100 && width?.includes("%"))',
160
160
  options: {
161
161
  labelVariant: 'primary',
162
162
  fullWidth: true,
@@ -43,7 +43,7 @@ const Settings = [
43
43
  id: 'arrangeContent',
44
44
  label: 'Arrange content',
45
45
  type: 'segment',
46
- default: 'center',
46
+ default: 'left',
47
47
  options: [
48
48
  {
49
49
  label: 'Left',
@@ -127,13 +127,13 @@ const Settings = [
127
127
  id: 'isRequired',
128
128
  label: 'Required',
129
129
  type: 'toggle',
130
- default: false
130
+ default: true
131
131
  },
132
132
  {
133
133
  id: 'isShowPreviewImage',
134
134
  label: 'Click image to preview',
135
135
  type: 'toggle',
136
- default: false
136
+ default: true
137
137
  },
138
138
  {
139
139
  id: 'numberOfFiles',
@@ -161,7 +161,7 @@ const Settings = [
161
161
  {
162
162
  id: 'iconVisible',
163
163
  label: 'Icon Visible',
164
- type: 'switch',
164
+ type: 'toggle',
165
165
  default: true
166
166
  },
167
167
  {
@@ -327,10 +327,11 @@ const Settings = [
327
327
  controls: [
328
328
  {
329
329
  id: 'backgroundColor',
330
- type: 'colorpicker',
330
+ type: 'color-picker-v2',
331
331
  label: 'Background Color',
332
332
  default: {
333
- normal: 'bg-3'
333
+ normal: '#FFFFFF',
334
+ hover: '#DDDDDD'
334
335
  },
335
336
  state: {
336
337
  hover: true,
@@ -339,10 +340,11 @@ const Settings = [
339
340
  },
340
341
  {
341
342
  id: 'textColor',
342
- type: 'colorpicker',
343
+ type: 'color-picker-v2',
343
344
  label: 'Text Color',
344
345
  default: {
345
- normal: 'text-1'
346
+ normal: 'text-1',
347
+ hover: 'transparent'
346
348
  },
347
349
  state: {
348
350
  hover: true,
@@ -361,6 +363,9 @@ const Settings = [
361
363
  borderWidth: '1px',
362
364
  width: '1px 1px 1px 1px',
363
365
  color: '#BBBBBB'
366
+ },
367
+ hover: {
368
+ border: 'none'
364
369
  }
365
370
  },
366
371
  state: {
@@ -373,8 +378,8 @@ const Settings = [
373
378
  type: 'toggle',
374
379
  label: 'Enable Button Shadow',
375
380
  default: {
376
- normal: false,
377
- hover: false
381
+ normal: true,
382
+ hover: true
378
383
  },
379
384
  state: {
380
385
  normal: true,
@@ -389,16 +394,6 @@ const Settings = [
389
394
  normal: true,
390
395
  hover: true
391
396
  },
392
- default: {
393
- normal: {
394
- type: 'shadow-1',
395
- distance: '4px',
396
- blur: '12px',
397
- spread: '0px',
398
- color: 'rgba(0, 0, 0, 0.20)',
399
- angle: 90
400
- }
401
- },
402
397
  state: {
403
398
  normal: true,
404
399
  hover: true
@@ -410,11 +405,14 @@ const Settings = [
410
405
  label: 'Border Radius',
411
406
  default: {
412
407
  normal: {
413
- radiusType: 'custom',
414
- btlr: '3px',
415
- btrr: '3px',
416
- bblr: '3px',
417
- bbrr: '3px'
408
+ btrr: '8px',
409
+ bblr: '8px',
410
+ bbrr: '8px',
411
+ btlr: '8px',
412
+ radiusType: 'rounded'
413
+ },
414
+ hover: {
415
+ radiusType: 'none'
418
416
  }
419
417
  },
420
418
  state: {
@@ -428,7 +426,7 @@ const Settings = [
428
426
  id: 'typo',
429
427
  type: 'typography-v2',
430
428
  default: {
431
- type: 'paragraph-2',
429
+ type: 'paragraph-1',
432
430
  attrs: {
433
431
  color: 'text-1'
434
432
  }
@@ -81,12 +81,15 @@ const SettingUIV2 = [
81
81
  {
82
82
  controls: [
83
83
  {
84
- type: 'control',
85
84
  label: {
86
85
  en: 'Icon'
87
86
  },
88
87
  setting: {
89
88
  id: 'iconVisible'
89
+ },
90
+ options: {
91
+ labelVariant: 'primary',
92
+ toggleStyle: 'switch'
90
93
  }
91
94
  },
92
95
  {
@@ -308,164 +311,6 @@ const SettingUIV2 = [
308
311
  }
309
312
  ]
310
313
  },
311
- // {
312
- // label: {
313
- // en: 'States',
314
- // },
315
- // controls: [
316
- // {
317
- // type: 'tab',
318
- // controls: [
319
- // {
320
- // type: 'toggleGroup',
321
- // label: {
322
- // en: 'Normal',
323
- // },
324
- // controls: [
325
- // {
326
- // type: 'control',
327
- // label: {
328
- // en: 'Background color',
329
- // },
330
- // setting: {
331
- // id: 'backgroundColor',
332
- // state: 'normal',
333
- // },
334
- // },
335
- // {
336
- // type: 'control',
337
- // label: {
338
- // en: 'Text color',
339
- // },
340
- // setting: {
341
- // id: 'textColor',
342
- // state: 'normal',
343
- // },
344
- // },
345
- // {
346
- // type: 'control',
347
- // // options: {
348
- // // labelPosition: 'start',
349
- // // },
350
- // label: {
351
- // en: 'Border',
352
- // },
353
- // setting: {
354
- // id: 'borderBtn',
355
- // state: 'normal',
356
- // },
357
- // },
358
- // {
359
- // type: 'control',
360
- // label: {
361
- // en: 'Corner',
362
- // },
363
- // setting: {
364
- // id: 'roundedBtn',
365
- // state: 'normal',
366
- // },
367
- // },
368
- // {
369
- // type: 'control',
370
- // label: {
371
- // en: 'Shadow',
372
- // },
373
- // setting: {
374
- // id: 'hasBoxShadowBtn',
375
- // state: 'normal',
376
- // },
377
- // },
378
- // {
379
- // type: 'control',
380
- // label: {
381
- // en: '',
382
- // },
383
- // conditionDisplay: 'hasBoxShadowBtn.normal == true',
384
- // layout: 'vertical',
385
- // setting: {
386
- // id: 'boxShadowBtn',
387
- // state: 'normal',
388
- // },
389
- // },
390
- // ],
391
- // },
392
- // {
393
- // type: 'toggleGroup',
394
- // label: {
395
- // en: 'Hover',
396
- // },
397
- // controls: [
398
- // {
399
- // type: 'control',
400
- // label: {
401
- // en: 'Background color',
402
- // },
403
- // setting: {
404
- // id: 'backgroundColor',
405
- // state: 'hover',
406
- // },
407
- // },
408
- // {
409
- // type: 'control',
410
- // label: {
411
- // en: 'Text color',
412
- // },
413
- // setting: {
414
- // id: 'textColor',
415
- // state: 'hover',
416
- // },
417
- // },
418
- // {
419
- // type: 'control',
420
- // // options: {
421
- // // labelPosition: 'start',
422
- // // },
423
- // label: {
424
- // en: 'Border',
425
- // },
426
- // setting: {
427
- // id: 'borderBtn',
428
- // state: 'hover',
429
- // },
430
- // },
431
- // {
432
- // type: 'control',
433
- // label: {
434
- // en: 'Corner',
435
- // },
436
- // setting: {
437
- // id: 'roundedBtn',
438
- // state: 'hover',
439
- // },
440
- // },
441
- // {
442
- // type: 'control',
443
- // label: {
444
- // en: 'Shadow',
445
- // },
446
- // setting: {
447
- // id: 'hasBoxShadowBtn',
448
- // state: 'hover',
449
- // },
450
- // },
451
- // {
452
- // type: 'control',
453
- // label: {
454
- // en: '',
455
- // },
456
- // layout: 'vertical',
457
- // conditionDisplay: 'hasBoxShadowBtn.hover == true',
458
- // setting: {
459
- // id: 'boxShadowBtn',
460
- // state: 'hover',
461
- // },
462
- // },
463
- // ],
464
- // },
465
- // ],
466
- // },
467
- // ],
468
- // },
469
314
  {
470
315
  label: {
471
316
  en: 'Text style'
@@ -573,7 +418,7 @@ const SettingUIV2 = [
573
418
  en: 'Corner'
574
419
  },
575
420
  setting: {
576
- id: 'roundedBtnV2',
421
+ id: 'roundedBtn',
577
422
  state: 'hover'
578
423
  }
579
424
  },
@@ -582,7 +427,7 @@ const SettingUIV2 = [
582
427
  en: 'Shadow'
583
428
  },
584
429
  setting: {
585
- id: 'boxShadowBtnV2',
430
+ id: 'boxShadowBtn',
586
431
  state: 'hover'
587
432
  },
588
433
  controlConfig: {
@@ -608,32 +453,20 @@ const SettingUIV2 = [
608
453
  }
609
454
  ]
610
455
  },
611
- // {
612
- // controls: [
613
- // {
614
- // label: {
615
- // en: 'Text align',
616
- // },
617
- // type: 'control',
618
- // setting: {
619
- // id: 'textAlign',
620
- // },
621
- // options: {
622
- // fullWidth: true,
623
- // },
624
- // },
625
- // ],
626
- // },
627
456
  {
628
- conditionDisplay: `size.width !== '100%'`,
629
457
  controls: [
630
458
  {
631
459
  label: {
632
460
  en: 'Align'
633
461
  },
634
- type: 'control',
462
+ conditionEnable: `size.width !== '100%'`,
635
463
  setting: {
636
464
  id: 'align'
465
+ },
466
+ options: {
467
+ labelVariant: 'primary',
468
+ fullWidth: true,
469
+ disableMessage: 'Horizontal alignment is disabled when the width is set to 100% or greater'
637
470
  }
638
471
  }
639
472
  ]
@@ -16,7 +16,7 @@ var dots = require('../../carousel/components/common/dots.js');
16
16
  var carousel = require('../../carousel/components/common/carousel.js');
17
17
  var product = require('../helpers/product.js');
18
18
  var SalePageProductListWarning = require('./SalePageProductListWarning.js');
19
- var common = require('../../dialog/helpers/common.js');
19
+ var common = require('../../dialog/components/common/common.js');
20
20
  var Head = require('next/head');
21
21
  var helpers = require('../../grid/row/commons/helpers.js');
22
22
 
@@ -21,9 +21,17 @@ const ProductTag = ({ setting, styles, builderProps, ...passProps })=>{
21
21
  const mode = core.useEditorMode();
22
22
  const product = core.useProduct();
23
23
  const currentVariant = core.useCurrentVariant();
24
+ const { quantity, hasUpdatePrice } = core.useQuantity();
25
+ const quantityProduct = React.useMemo(()=>{
26
+ return hasUpdatePrice && customContent?.unit !== 'percentage' ? quantity || 1 : 1;
27
+ }, [
28
+ hasUpdatePrice,
29
+ customContent?.unit,
30
+ quantity
31
+ ]);
24
32
  const price = currentVariant?.price ?? 0;
25
33
  const salePrice = currentVariant?.salePrice ?? 0;
26
- const priceSave = salePrice - price;
34
+ const priceSave = (salePrice - price) * quantityProduct;
27
35
  const moneyFormatted = core.useFormatMoney(priceSave < 0 ? 0 : priceSave, setting?.moneyWithCurrentFormat || false);
28
36
  const customDisplayWithUnit = React.useMemo(()=>{
29
37
  if (!salePrice && salePrice !== 0 || !price && price !== 0) return `${customContent?.unit === 'percentage' ? '0%' : moneyFormatted}`;
@@ -26,7 +26,7 @@ const DEVICES = [
26
26
  const VARIANT_PARAM_PATH = 'variant';
27
27
  let isMounted = false;
28
28
  const ProductVariants = ({ builderProps, style, styles, setting })=>{
29
- const { fullWidth, width, align, optionTypo, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, labelGap } = styles ?? {};
29
+ const { width, align, optionTypo, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, labelGap } = styles ?? {};
30
30
  const { label, optionType, showAsSwatches, layout, column, hasPreSelected } = setting ?? {};
31
31
  const { uid } = builderProps ?? {};
32
32
  const variants = core.useVariants();
@@ -42,7 +42,7 @@ const ProductVariants = ({ builderProps, style, styles, setting })=>{
42
42
  const mode = core.useEditorMode();
43
43
  const { selectedOptions, setSelectedOption, forceSelectedOption } = core.useSelectedOption();
44
44
  const { setHasPreSelected } = core.useHasPreSelected();
45
- const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width, fullWidth));
45
+ const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width));
46
46
  const [variantId, setVariantId] = React.useState('');
47
47
  React.useEffect(()=>{
48
48
  const url = new URL(window.location.href);
@@ -18,12 +18,12 @@ const DEVICES = [
18
18
  'mobile'
19
19
  ];
20
20
  const ProductVariants = ({ builderProps, style, styles, setting, advanced })=>{
21
- const { width, fullWidth, align, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, optionTypo, labelGap } = styles ?? {};
21
+ const { width, align, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, optionTypo, labelGap } = styles ?? {};
22
22
  const { label, optionType, showAsSwatches, layout, column, hasPreSelected } = setting ?? {};
23
23
  const advancedDisplay = advanced?.d;
24
24
  const { uid } = builderProps ?? {};
25
25
  // full width
26
- const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width, fullWidth));
26
+ const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width));
27
27
  const variantGroup = optionType === 'groupOption';
28
28
  const getSwatchAutoWidth = ()=>{
29
29
  const result = {};