@gem-sdk/components 2.0.0-dev.679 → 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",
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.679",
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",