@gem-sdk/components 2.0.0-dev.678 → 2.0.0-dev.680

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.
@@ -11,9 +11,9 @@ const DesktopMenu = ({ menu, height, arrow, textColor, menuTextColor, typography
11
11
  const rootMenu = menu?.ROOT;
12
12
  const appendTypoClass = core.composeTypographyClassName(typo, typography);
13
13
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
14
- className: core.cls('gp-flex gp-flex-1 gp-items-center gp-justify-center', className),
14
+ className: core.cls('gp-flex gp-flex-1 gp-items-center gp-justify-center gp-px-3', className),
15
15
  children: /*#__PURE__*/ jsxRuntime.jsx("ul", {
16
- className: core.cls('gp-flex', appendTypoClass),
16
+ className: core.cls('gp-flex gp-flex-wrap gp-justify-center', appendTypoClass),
17
17
  style: {
18
18
  ...core.makeStyleResponsive('h', height)
19
19
  },
@@ -15,7 +15,7 @@ const DesktopMenuItem = ({ id, menu, arrow, textColor, menuTextColor, depth = 0,
15
15
  const renderChild = !!item?.childrens?.length && !lastDepth;
16
16
  const hasCaret = renderChild && !!arrow;
17
17
  return /*#__PURE__*/ jsxRuntime.jsxs("li", {
18
- className: core.cls('gp-group gp-relative gp-inline-flex gp-flex-1 gp-cursor-pointer gp-items-center gp-gap-2 gp-whitespace-nowrap gp-px-4 gp-py-2 gp-transition-colors gp-duration-300', {
18
+ className: core.cls('gp-group gp-relative gp-inline-flex gp-flex-1 gp-cursor-pointer gp-items-center gp-gap-2 gp-whitespace-nowrap gp-px-4 gp-py-2 gp-transition-colors gp-duration-300 !gp-max-w-fit', {
19
19
  'gp-justify-center': depth === 0,
20
20
  'gp-min-w-[200px] gp-border-b last:gp-border-b-transparent': depth > 0
21
21
  }),
@@ -89,9 +89,11 @@ const MobileMenu = ({ menu, typography, typo, arrow, menuTextColor, menuBg, text
89
89
  nodeRef: nodeRef,
90
90
  unmountOnExit: false,
91
91
  children: (state)=>/*#__PURE__*/ jsxRuntime.jsxs("div", {
92
- className: core.cls('gp-fixed gp-inset-0 gp-z-[999] gp-overflow-hidden', {
93
- invisible: !isOpen
94
- }),
92
+ className: "gp-fixed gp-inset-0 gp-z-[999] gp-overflow-hidden",
93
+ style: {
94
+ pointerEvents: isOpen ? 'auto' : 'none',
95
+ visibility: isOpen ? 'visible' : 'hidden'
96
+ },
95
97
  children: [
96
98
  /*#__PURE__*/ jsxRuntime.jsx("div", {
97
99
  "aria-hidden": true,
@@ -22,7 +22,7 @@ const DesktopMenu = dynamic(()=>Promise.resolve().then(function () { return requ
22
22
  const BasicHeader = ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btnTextColor, btnTypography, btnType, btnWidth, openMode, buyNow, breakpoint, ...props })=>{
23
23
  const hasMenu = !!props.menu?.ROOT.childrens?.length;
24
24
  return /*#__PURE__*/ jsxRuntime.jsxs("div", {
25
- className: "gp-relative gp-z-50 gp-flex gp-items-center gp-px-4",
25
+ className: "gp-relative gp-z-50 gp-flex gp-items-center gp-px-4 gp-justify-between",
26
26
  style: core.makeStyleResponsive('h', props.height),
27
27
  children: [
28
28
  hasMenu ? /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -51,9 +51,9 @@ const BasicHeader = ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btnTextCol
51
51
  'tablet:gp-justify-center': breakpoint === 'tablet' && hasMenu,
52
52
  'mobile:gp-justify-center': breakpoint === 'mobile' && hasMenu,
53
53
  'gp-order-[-1]': breakpoint === 'tablet' || breakpoint === 'mobile',
54
- 'gp-absolute gp-inset-0 gp-flex gp-items-center': breakpoint === 'desktop',
55
- 'tablet:gp-absolute tablet:gp-inset-0 tablet:gp-flex tablet:gp-items-center': breakpoint === 'tablet',
56
- 'mobile:gp-absolute mobile:gp-inset-0 mobile:gp-flex mobile:gp-items-center': breakpoint === 'mobile'
54
+ 'gp-flex gp-items-center': breakpoint === 'desktop',
55
+ 'tablet:gp-flex tablet:gp-items-center': breakpoint === 'tablet',
56
+ 'mobile:gp-flex mobile:gp-items-center': breakpoint === 'mobile'
57
57
  }),
58
58
  children: /*#__PURE__*/ jsxRuntime.jsx(Image.default, {
59
59
  style: core.makeStyleResponsive('maxh', props.height),
@@ -76,7 +76,7 @@ const BasicHeader = ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btnTextCol
76
76
  })
77
77
  }),
78
78
  /*#__PURE__*/ jsxRuntime.jsxs("div", {
79
- className: "gp-ml-auto gp-flex gp-items-center gp-gap-4 gp-pr-4",
79
+ className: "gp-flex gp-items-center gp-gap-4 gp-pr-4",
80
80
  children: [
81
81
  buyNow && /*#__PURE__*/ jsxRuntime.jsx(CheckoutNow.default, {
82
82
  className: "mobile:gp-hidden",
@@ -415,7 +415,7 @@ const ProductBadgeSettings = [
415
415
  id: 'textSizeV2',
416
416
  type: 'size-setting',
417
417
  hiddenShowMore: true,
418
- disableShapeLinkedTooltip: 'Use other badge shape to resize without proportions',
418
+ disableShapeLinkedTooltip: 'The ratio is locked to ensure the badge shape displays correctly',
419
419
  devices: {
420
420
  desktop: {
421
421
  default: {
@@ -426,8 +426,8 @@ const ProductBadgeSettings = [
426
426
  hiddenShape: true,
427
427
  shape: 'custom',
428
428
  padding: {
429
- top: '8px',
430
- bottom: '8px',
429
+ top: '12px',
430
+ bottom: '12px',
431
431
  left: '12px',
432
432
  right: '12px'
433
433
  }
@@ -458,15 +458,15 @@ const ProductBadgeSettings = [
458
458
  id: 'imageSizeV2',
459
459
  type: 'size-setting',
460
460
  hiddenShowMore: true,
461
- disableShapeLinkedTooltip: 'Use other badge shape to resize without proportions',
461
+ disableShapeLinkedTooltip: 'The ratio is locked to ensure the badge shape displays correctly',
462
462
  devices: {
463
463
  desktop: {
464
464
  default: {
465
465
  width: '20%',
466
466
  height: 'auto',
467
467
  shapeLinked: true,
468
- hiddenShape: true,
469
- shape: 'custom',
468
+ hiddenShape: false,
469
+ shape: 'original',
470
470
  disableShapeLinked: true
471
471
  }
472
472
  }
@@ -238,7 +238,6 @@ const SettingUIV2 = [
238
238
  conditionDisplay: 'contentType == "image"',
239
239
  controls: [
240
240
  {
241
- type: 'control',
242
241
  setting: {
243
242
  id: 'imageSizeV2'
244
243
  },
@@ -266,7 +265,6 @@ const SettingUIV2 = [
266
265
  conditionDisplay: 'contentType == "text"',
267
266
  controls: [
268
267
  {
269
- type: 'control',
270
268
  setting: {
271
269
  id: 'textSizeV2'
272
270
  },
@@ -7,9 +7,9 @@ const DesktopMenu = ({ menu, height, arrow, textColor, menuTextColor, typography
7
7
  const rootMenu = menu?.ROOT;
8
8
  const appendTypoClass = composeTypographyClassName(typo, typography);
9
9
  return /*#__PURE__*/ jsx("div", {
10
- className: cls('gp-flex gp-flex-1 gp-items-center gp-justify-center', className),
10
+ className: cls('gp-flex gp-flex-1 gp-items-center gp-justify-center gp-px-3', className),
11
11
  children: /*#__PURE__*/ jsx("ul", {
12
- className: cls('gp-flex', appendTypoClass),
12
+ className: cls('gp-flex gp-flex-wrap gp-justify-center', appendTypoClass),
13
13
  style: {
14
14
  ...makeStyleResponsive('h', height)
15
15
  },
@@ -11,7 +11,7 @@ const DesktopMenuItem = ({ id, menu, arrow, textColor, menuTextColor, depth = 0,
11
11
  const renderChild = !!item?.childrens?.length && !lastDepth;
12
12
  const hasCaret = renderChild && !!arrow;
13
13
  return /*#__PURE__*/ jsxs("li", {
14
- className: cls('gp-group gp-relative gp-inline-flex gp-flex-1 gp-cursor-pointer gp-items-center gp-gap-2 gp-whitespace-nowrap gp-px-4 gp-py-2 gp-transition-colors gp-duration-300', {
14
+ className: cls('gp-group gp-relative gp-inline-flex gp-flex-1 gp-cursor-pointer gp-items-center gp-gap-2 gp-whitespace-nowrap gp-px-4 gp-py-2 gp-transition-colors gp-duration-300 !gp-max-w-fit', {
15
15
  'gp-justify-center': depth === 0,
16
16
  'gp-min-w-[200px] gp-border-b last:gp-border-b-transparent': depth > 0
17
17
  }),
@@ -85,9 +85,11 @@ const MobileMenu = ({ menu, typography, typo, arrow, menuTextColor, menuBg, text
85
85
  nodeRef: nodeRef,
86
86
  unmountOnExit: false,
87
87
  children: (state)=>/*#__PURE__*/ jsxs("div", {
88
- className: cls('gp-fixed gp-inset-0 gp-z-[999] gp-overflow-hidden', {
89
- invisible: !isOpen
90
- }),
88
+ className: "gp-fixed gp-inset-0 gp-z-[999] gp-overflow-hidden",
89
+ style: {
90
+ pointerEvents: isOpen ? 'auto' : 'none',
91
+ visibility: isOpen ? 'visible' : 'hidden'
92
+ },
91
93
  children: [
92
94
  /*#__PURE__*/ jsx("div", {
93
95
  "aria-hidden": true,
@@ -18,7 +18,7 @@ const DesktopMenu = dynamic(()=>import('./DesktopMenu.js'));
18
18
  const BasicHeader = ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btnTextColor, btnTypography, btnType, btnWidth, openMode, buyNow, breakpoint, ...props })=>{
19
19
  const hasMenu = !!props.menu?.ROOT.childrens?.length;
20
20
  return /*#__PURE__*/ jsxs("div", {
21
- className: "gp-relative gp-z-50 gp-flex gp-items-center gp-px-4",
21
+ className: "gp-relative gp-z-50 gp-flex gp-items-center gp-px-4 gp-justify-between",
22
22
  style: makeStyleResponsive('h', props.height),
23
23
  children: [
24
24
  hasMenu ? /*#__PURE__*/ jsxs(Fragment, {
@@ -47,9 +47,9 @@ const BasicHeader = ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btnTextCol
47
47
  'tablet:gp-justify-center': breakpoint === 'tablet' && hasMenu,
48
48
  'mobile:gp-justify-center': breakpoint === 'mobile' && hasMenu,
49
49
  'gp-order-[-1]': breakpoint === 'tablet' || breakpoint === 'mobile',
50
- 'gp-absolute gp-inset-0 gp-flex gp-items-center': breakpoint === 'desktop',
51
- 'tablet:gp-absolute tablet:gp-inset-0 tablet:gp-flex tablet:gp-items-center': breakpoint === 'tablet',
52
- 'mobile:gp-absolute mobile:gp-inset-0 mobile:gp-flex mobile:gp-items-center': breakpoint === 'mobile'
50
+ 'gp-flex gp-items-center': breakpoint === 'desktop',
51
+ 'tablet:gp-flex tablet:gp-items-center': breakpoint === 'tablet',
52
+ 'mobile:gp-flex mobile:gp-items-center': breakpoint === 'mobile'
53
53
  }),
54
54
  children: /*#__PURE__*/ jsx(Image, {
55
55
  style: makeStyleResponsive('maxh', props.height),
@@ -72,7 +72,7 @@ const BasicHeader = ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btnTextCol
72
72
  })
73
73
  }),
74
74
  /*#__PURE__*/ jsxs("div", {
75
- className: "gp-ml-auto gp-flex gp-items-center gp-gap-4 gp-pr-4",
75
+ className: "gp-flex gp-items-center gp-gap-4 gp-pr-4",
76
76
  children: [
77
77
  buyNow && /*#__PURE__*/ jsx(CheckoutNow, {
78
78
  className: "mobile:gp-hidden",
@@ -413,7 +413,7 @@ const ProductBadgeSettings = [
413
413
  id: 'textSizeV2',
414
414
  type: 'size-setting',
415
415
  hiddenShowMore: true,
416
- disableShapeLinkedTooltip: 'Use other badge shape to resize without proportions',
416
+ disableShapeLinkedTooltip: 'The ratio is locked to ensure the badge shape displays correctly',
417
417
  devices: {
418
418
  desktop: {
419
419
  default: {
@@ -424,8 +424,8 @@ const ProductBadgeSettings = [
424
424
  hiddenShape: true,
425
425
  shape: 'custom',
426
426
  padding: {
427
- top: '8px',
428
- bottom: '8px',
427
+ top: '12px',
428
+ bottom: '12px',
429
429
  left: '12px',
430
430
  right: '12px'
431
431
  }
@@ -456,15 +456,15 @@ const ProductBadgeSettings = [
456
456
  id: 'imageSizeV2',
457
457
  type: 'size-setting',
458
458
  hiddenShowMore: true,
459
- disableShapeLinkedTooltip: 'Use other badge shape to resize without proportions',
459
+ disableShapeLinkedTooltip: 'The ratio is locked to ensure the badge shape displays correctly',
460
460
  devices: {
461
461
  desktop: {
462
462
  default: {
463
463
  width: '20%',
464
464
  height: 'auto',
465
465
  shapeLinked: true,
466
- hiddenShape: true,
467
- shape: 'custom',
466
+ hiddenShape: false,
467
+ shape: 'original',
468
468
  disableShapeLinked: true
469
469
  }
470
470
  }
@@ -236,7 +236,6 @@ const SettingUIV2 = [
236
236
  conditionDisplay: 'contentType == "image"',
237
237
  controls: [
238
238
  {
239
- type: 'control',
240
239
  setting: {
241
240
  id: 'imageSizeV2'
242
241
  },
@@ -264,7 +263,6 @@ const SettingUIV2 = [
264
263
  conditionDisplay: 'contentType == "text"',
265
264
  controls: [
266
265
  {
267
- type: 'control',
268
266
  setting: {
269
267
  id: 'textSizeV2'
270
268
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.678",
3
+ "version": "2.0.0-dev.680",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "2.0.0-dev.676",
28
+ "@gem-sdk/core": "2.0.0-dev.680",
29
29
  "@gem-sdk/styles": "2.0.0-dev.661",
30
30
  "@gem-sdk/system": "2.0.0-dev.661",
31
31
  "@types/react-transition-group": "^4.4.5",