@gem-sdk/core 1.23.0-staging.239 → 1.23.0-staging.244
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.
|
@@ -46,7 +46,9 @@ const getAttrValue = (attr, value, tag)=>{
|
|
|
46
46
|
};
|
|
47
47
|
function composeAdvanceStyle(data, tag) {
|
|
48
48
|
if (!data) return {};
|
|
49
|
-
const styles = {
|
|
49
|
+
const styles = {
|
|
50
|
+
'--pos': 'relative'
|
|
51
|
+
};
|
|
50
52
|
const devices = [
|
|
51
53
|
'desktop',
|
|
52
54
|
'tablet',
|
|
@@ -65,7 +67,7 @@ function composeAdvanceStyle(data, tag) {
|
|
|
65
67
|
if (Array.isArray(value)) return;
|
|
66
68
|
Object.keys(value).forEach((composeAttr)=>{
|
|
67
69
|
if (devices.includes(composeAttr)) {
|
|
68
|
-
|
|
70
|
+
let deviceValue = value[composeAttr];
|
|
69
71
|
if (deviceValue !== undefined) {
|
|
70
72
|
// Responsive border with state
|
|
71
73
|
if (attr === 'border') {
|
|
@@ -74,6 +76,12 @@ function composeAdvanceStyle(data, tag) {
|
|
|
74
76
|
if (attr === 'rounded') {
|
|
75
77
|
Object.assign(styles, radius.composeRadius(value));
|
|
76
78
|
}
|
|
79
|
+
if (attr == 'pos') {
|
|
80
|
+
// force static value same relative default
|
|
81
|
+
if (deviceValue == 'static') {
|
|
82
|
+
deviceValue = 'relative';
|
|
83
|
+
}
|
|
84
|
+
}
|
|
77
85
|
if (composeAttr === 'desktop') {
|
|
78
86
|
switch(attr){
|
|
79
87
|
case 'padding':
|
|
@@ -44,7 +44,9 @@ const getAttrValue = (attr, value, tag)=>{
|
|
|
44
44
|
};
|
|
45
45
|
function composeAdvanceStyle(data, tag) {
|
|
46
46
|
if (!data) return {};
|
|
47
|
-
const styles = {
|
|
47
|
+
const styles = {
|
|
48
|
+
'--pos': 'relative'
|
|
49
|
+
};
|
|
48
50
|
const devices = [
|
|
49
51
|
'desktop',
|
|
50
52
|
'tablet',
|
|
@@ -63,7 +65,7 @@ function composeAdvanceStyle(data, tag) {
|
|
|
63
65
|
if (Array.isArray(value)) return;
|
|
64
66
|
Object.keys(value).forEach((composeAttr)=>{
|
|
65
67
|
if (devices.includes(composeAttr)) {
|
|
66
|
-
|
|
68
|
+
let deviceValue = value[composeAttr];
|
|
67
69
|
if (deviceValue !== undefined) {
|
|
68
70
|
// Responsive border with state
|
|
69
71
|
if (attr === 'border') {
|
|
@@ -72,6 +74,12 @@ function composeAdvanceStyle(data, tag) {
|
|
|
72
74
|
if (attr === 'rounded') {
|
|
73
75
|
Object.assign(styles, composeRadius(value));
|
|
74
76
|
}
|
|
77
|
+
if (attr == 'pos') {
|
|
78
|
+
// force static value same relative default
|
|
79
|
+
if (deviceValue == 'static') {
|
|
80
|
+
deviceValue = 'relative';
|
|
81
|
+
}
|
|
82
|
+
}
|
|
75
83
|
if (composeAttr === 'desktop') {
|
|
76
84
|
switch(attr){
|
|
77
85
|
case 'padding':
|