@gem-sdk/components 2.0.0-dev.731 → 2.0.0-dev.732

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.
@@ -101,7 +101,8 @@ const SettingUIV2 = [
101
101
  btrr: '99999px',
102
102
  bblr: '99999px',
103
103
  bbrr: '99999px',
104
- btlr: '99999px'
104
+ btlr: '99999px',
105
+ radiusType: 'circle'
105
106
  }
106
107
  },
107
108
  groupType: 'style',
@@ -68,13 +68,17 @@ const useSticky = (setting)=>{
68
68
  const getCSSPosition = (position)=>{
69
69
  return position == 'top' ? 'sticky' : 'fixed';
70
70
  };
71
- const positionStyle = ()=>{
71
+ const positionStyle = React.useMemo(()=>{
72
72
  return {
73
73
  [`--pos`]: getCSSPosition(position?.desktop),
74
74
  [`--pos-tablet`]: getCSSPosition(position?.tablet ?? position?.desktop),
75
75
  [`--pos-mobile`]: getCSSPosition(position?.mobile ?? position?.desktop)
76
76
  };
77
- };
77
+ }, [
78
+ position?.desktop,
79
+ position?.mobile,
80
+ position?.tablet
81
+ ]);
78
82
  return {
79
83
  w,
80
84
  displayStyle,
@@ -99,7 +99,8 @@ const SettingUIV2 = [
99
99
  btrr: '99999px',
100
100
  bblr: '99999px',
101
101
  bbrr: '99999px',
102
- btlr: '99999px'
102
+ btlr: '99999px',
103
+ radiusType: 'circle'
103
104
  }
104
105
  },
105
106
  groupType: 'style',
@@ -64,13 +64,17 @@ const useSticky = (setting)=>{
64
64
  const getCSSPosition = (position)=>{
65
65
  return position == 'top' ? 'sticky' : 'fixed';
66
66
  };
67
- const positionStyle = ()=>{
67
+ const positionStyle = useMemo(()=>{
68
68
  return {
69
69
  [`--pos`]: getCSSPosition(position?.desktop),
70
70
  [`--pos-tablet`]: getCSSPosition(position?.tablet ?? position?.desktop),
71
71
  [`--pos-mobile`]: getCSSPosition(position?.mobile ?? position?.desktop)
72
72
  };
73
- };
73
+ }, [
74
+ position?.desktop,
75
+ position?.mobile,
76
+ position?.tablet
77
+ ]);
74
78
  return {
75
79
  w,
76
80
  displayStyle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.731",
3
+ "version": "2.0.0-dev.732",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -35,7 +35,8 @@
35
35
  "@gem-sdk/keen-slider": "^6.8.8",
36
36
  "node-html-parser": "^6.1.13",
37
37
  "react-transition-group": "^4.4.5",
38
- "react-youtube": "^10.1.0"
38
+ "react-youtube": "^10.1.0",
39
+ "swiper": "^11.2.8"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "next": ">=13"