@gem-sdk/core 2.0.0 → 2.0.1
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.
|
@@ -297,14 +297,10 @@ const removeAttrInStyle = (style, filterKeys)=>{
|
|
|
297
297
|
});
|
|
298
298
|
return newStyle;
|
|
299
299
|
};
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
'--btlr',
|
|
305
|
-
'--btrr'
|
|
306
|
-
];
|
|
307
|
-
return filterAttrInStyle(style, cornerKeys);
|
|
300
|
+
const getCornerStyle = (advancedSetting)=>{
|
|
301
|
+
return composeAdvanceStyle({
|
|
302
|
+
rounded: advancedSetting?.rounded
|
|
303
|
+
});
|
|
308
304
|
};
|
|
309
305
|
const removePaddingYInStyle = (style)=>{
|
|
310
306
|
const keys = [
|
|
@@ -321,7 +317,7 @@ const removePaddingYInStyle = (style)=>{
|
|
|
321
317
|
exports.composeAdvanceStyle = composeAdvanceStyle;
|
|
322
318
|
exports.composeAdvanceStyleForPostPurchase = composeAdvanceStyleForPostPurchase;
|
|
323
319
|
exports.filterAttrInStyle = filterAttrInStyle;
|
|
324
|
-
exports.
|
|
320
|
+
exports.getCornerStyle = getCornerStyle;
|
|
325
321
|
exports.removeAttrInStyle = removeAttrInStyle;
|
|
326
322
|
exports.removePaddingYInStyle = removePaddingYInStyle;
|
|
327
323
|
exports.splitStyle = splitStyle;
|
package/dist/cjs/index.js
CHANGED
|
@@ -224,7 +224,7 @@ exports.isColor = colors.isColor;
|
|
|
224
224
|
exports.composeAdvanceStyle = composeAdvanceStyle.composeAdvanceStyle;
|
|
225
225
|
exports.composeAdvanceStyleForPostPurchase = composeAdvanceStyle.composeAdvanceStyleForPostPurchase;
|
|
226
226
|
exports.filterAttrInStyle = composeAdvanceStyle.filterAttrInStyle;
|
|
227
|
-
exports.
|
|
227
|
+
exports.getCornerStyle = composeAdvanceStyle.getCornerStyle;
|
|
228
228
|
exports.removeAttrInStyle = composeAdvanceStyle.removeAttrInStyle;
|
|
229
229
|
exports.removePaddingYInStyle = composeAdvanceStyle.removePaddingYInStyle;
|
|
230
230
|
exports.splitStyle = composeAdvanceStyle.splitStyle;
|
|
@@ -295,14 +295,10 @@ const removeAttrInStyle = (style, filterKeys)=>{
|
|
|
295
295
|
});
|
|
296
296
|
return newStyle;
|
|
297
297
|
};
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
'--btlr',
|
|
303
|
-
'--btrr'
|
|
304
|
-
];
|
|
305
|
-
return filterAttrInStyle(style, cornerKeys);
|
|
298
|
+
const getCornerStyle = (advancedSetting)=>{
|
|
299
|
+
return composeAdvanceStyle({
|
|
300
|
+
rounded: advancedSetting?.rounded
|
|
301
|
+
});
|
|
306
302
|
};
|
|
307
303
|
const removePaddingYInStyle = (style)=>{
|
|
308
304
|
const keys = [
|
|
@@ -316,4 +312,4 @@ const removePaddingYInStyle = (style)=>{
|
|
|
316
312
|
return removeAttrInStyle(style, keys);
|
|
317
313
|
};
|
|
318
314
|
|
|
319
|
-
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, filterAttrInStyle,
|
|
315
|
+
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, filterAttrInStyle, getCornerStyle, removeAttrInStyle, removePaddingYInStyle, splitStyle };
|
package/dist/esm/index.js
CHANGED
|
@@ -56,7 +56,7 @@ import * as tiktokpixel from './helpers/tracking/tiktokpixel.js';
|
|
|
56
56
|
export { tiktokpixel };
|
|
57
57
|
export { GRADIENT_BGR_KEY, composeBackgroundCss, getBgImageByDevice, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getStyleBackgroundByDevice, getStyleBgColor, makeFixedBgAttachment } from './helpers/background.js';
|
|
58
58
|
export { composeTextColorCss, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getSingleColorVariable, isColor } from './helpers/colors.js';
|
|
59
|
-
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, filterAttrInStyle,
|
|
59
|
+
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, filterAttrInStyle, getCornerStyle, removeAttrInStyle, removePaddingYInStyle, splitStyle } from './helpers/compose-advance-style.js';
|
|
60
60
|
export { baseAssetURL, isLocalEnv } from './helpers/convert.js';
|
|
61
61
|
export { convertHTML } from './helpers/covert-entities-html.js';
|
|
62
62
|
export { composePositionLineHeight, composePostionIconList } from './helpers/icon-list.js';
|