@gem-sdk/components 2.0.0-dev.265 → 2.0.0-dev.267
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.
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +1 -1
- package/dist/cjs/post-purchase/link/components/PostPurchaseLink.js +2 -2
- package/dist/cjs/post-purchase/link/constants/index.js +10 -0
- package/dist/cjs/post-purchase/text/settings/text/uiV2.js +2 -2
- package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/cjs/setting.js +1 -1
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +1 -1
- package/dist/esm/post-purchase/link/components/PostPurchaseLink.js +1 -1
- package/dist/esm/post-purchase/link/constants/index.js +10 -0
- package/dist/esm/post-purchase/text/settings/text/uiV2.js +2 -2
- package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/esm/setting.js +1 -1
- package/package.json +2 -2
|
@@ -93,7 +93,7 @@ require('../../icon-list-v2/setting/configs/settings.js');
|
|
|
93
93
|
require('../../post-purchase/image/components/Img.js');
|
|
94
94
|
require('../../post-purchase/callout-banner/components/common/getStyles.js');
|
|
95
95
|
require('../../post-purchase/line/components/PostPurchaseLine.js');
|
|
96
|
-
require('
|
|
96
|
+
require('../../post-purchase/link/constants/index.js');
|
|
97
97
|
require('../../estimate-delivery/setting/configs/settings.js');
|
|
98
98
|
require('../../accordion/next.js');
|
|
99
99
|
require('../../breadcrumb/next.js');
|
|
@@ -87,7 +87,7 @@ require('../../icon-list-v2/setting/configs/settings.js');
|
|
|
87
87
|
require('../../post-purchase/image/components/Img.js');
|
|
88
88
|
require('../../post-purchase/callout-banner/components/common/getStyles.js');
|
|
89
89
|
require('../../post-purchase/line/components/PostPurchaseLine.js');
|
|
90
|
-
require('
|
|
90
|
+
require('../../post-purchase/link/constants/index.js');
|
|
91
91
|
require('../setting/configs/settings.js');
|
|
92
92
|
var _const = require('../const.js');
|
|
93
93
|
var TextInline = require('../../text/components/TextInline.js');
|
|
@@ -9,7 +9,7 @@ var system = require('@gem-sdk/system');
|
|
|
9
9
|
var getClasses = require('./common/getClasses.js');
|
|
10
10
|
var getStyles = require('./common/getStyles.js');
|
|
11
11
|
var common = require('./common/common.js');
|
|
12
|
-
var
|
|
12
|
+
var index = require('../constants/index.js');
|
|
13
13
|
|
|
14
14
|
const Link = ({ builderAttrs, setting = {}, styles, builderProps })=>{
|
|
15
15
|
const { link, width, label } = setting;
|
|
@@ -60,7 +60,7 @@ const Link = ({ builderAttrs, setting = {}, styles, builderProps })=>{
|
|
|
60
60
|
textClass: textClasses
|
|
61
61
|
})
|
|
62
62
|
}),
|
|
63
|
-
typo?.fontSize ===
|
|
63
|
+
typo?.fontSize === index.PostPurchaseFontSizeValue.XLarge && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
64
64
|
className: elementMarginClasses
|
|
65
65
|
})
|
|
66
66
|
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.PostPurchaseFontSizeValue = void 0;
|
|
4
|
+
(function(PostPurchaseFontSizeValue) {
|
|
5
|
+
PostPurchaseFontSizeValue["Default"] = 'default';
|
|
6
|
+
PostPurchaseFontSizeValue["Small"] = 'small';
|
|
7
|
+
PostPurchaseFontSizeValue["Medium"] = 'medium';
|
|
8
|
+
PostPurchaseFontSizeValue["Large"] = 'large';
|
|
9
|
+
PostPurchaseFontSizeValue["XLarge"] = 'xlarge';
|
|
10
|
+
})(exports.PostPurchaseFontSizeValue || (exports.PostPurchaseFontSizeValue = {}));
|
|
@@ -89,14 +89,14 @@ const uiV2 = [
|
|
|
89
89
|
label: {
|
|
90
90
|
en: 'Align'
|
|
91
91
|
},
|
|
92
|
-
conditionEnable: `activeScreenId === 'desktop' ? width
|
|
92
|
+
conditionEnable: `activeScreenId === 'desktop' ? !(parseInt(width) >= 100 && width?.includes("%")) : (!(parseInt(width) >= 100 && width?.includes("%")) && width !== 'default')`,
|
|
93
93
|
setting: {
|
|
94
94
|
id: 'align'
|
|
95
95
|
},
|
|
96
96
|
options: {
|
|
97
97
|
labelVariant: 'primary',
|
|
98
98
|
fullWidth: true,
|
|
99
|
-
disableMessage:
|
|
99
|
+
disableMessage: 'Horizontal alignment is disabled when the width is set to 100% or greater'
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
]
|
|
@@ -84,7 +84,7 @@ require('../../../../../icon-list-v2/setting/configs/settings.js');
|
|
|
84
84
|
require('../../../../../post-purchase/image/components/Img.js');
|
|
85
85
|
require('../../../../../post-purchase/callout-banner/components/common/getStyles.js');
|
|
86
86
|
require('../../../../../post-purchase/line/components/PostPurchaseLine.js');
|
|
87
|
-
require('
|
|
87
|
+
require('../../../../../post-purchase/link/constants/index.js');
|
|
88
88
|
require('../../../../../estimate-delivery/setting/configs/settings.js');
|
|
89
89
|
require('../../../../../accordion/next.js');
|
|
90
90
|
require('../../../../../breadcrumb/next.js');
|
package/dist/cjs/setting.js
CHANGED
|
@@ -131,7 +131,7 @@ require('./post-purchase/line/components/PostPurchaseLine.js');
|
|
|
131
131
|
var index$M = require('./post-purchase/advanced-list/setting/index.js');
|
|
132
132
|
var index$N = require('./post-purchase/countdown-timer/settings/index.js');
|
|
133
133
|
var index$L = require('./post-purchase/link/setting/index.js');
|
|
134
|
-
require('
|
|
134
|
+
require('./post-purchase/link/constants/index.js');
|
|
135
135
|
var index$O = require('./estimate-delivery/setting/index.js');
|
|
136
136
|
var index$P = require('./article/setting/index.js');
|
|
137
137
|
var index$Q = require('./marquee/setting/index.js');
|
|
@@ -89,7 +89,7 @@ import '../../icon-list-v2/setting/configs/settings.js';
|
|
|
89
89
|
import '../../post-purchase/image/components/Img.js';
|
|
90
90
|
import '../../post-purchase/callout-banner/components/common/getStyles.js';
|
|
91
91
|
import '../../post-purchase/line/components/PostPurchaseLine.js';
|
|
92
|
-
import '
|
|
92
|
+
import '../../post-purchase/link/constants/index.js';
|
|
93
93
|
import '../../estimate-delivery/setting/configs/settings.js';
|
|
94
94
|
import '../../accordion/next.js';
|
|
95
95
|
import '../../breadcrumb/next.js';
|
|
@@ -83,7 +83,7 @@ import '../../icon-list-v2/setting/configs/settings.js';
|
|
|
83
83
|
import '../../post-purchase/image/components/Img.js';
|
|
84
84
|
import '../../post-purchase/callout-banner/components/common/getStyles.js';
|
|
85
85
|
import '../../post-purchase/line/components/PostPurchaseLine.js';
|
|
86
|
-
import '
|
|
86
|
+
import '../../post-purchase/link/constants/index.js';
|
|
87
87
|
import '../setting/configs/settings.js';
|
|
88
88
|
import { OUT_OF_STOCK } from '../const.js';
|
|
89
89
|
import TextInline from '../../text/components/TextInline.js';
|
|
@@ -5,7 +5,7 @@ import { createClass, createStyle } from '@gem-sdk/system';
|
|
|
5
5
|
import { getClasses, getComponentClasses, getTextClasses, getElementMarginClasses } from './common/getClasses.js';
|
|
6
6
|
import { getStyle, getComponentStyles, getTextStyle } from './common/getStyles.js';
|
|
7
7
|
import { getComponentTag } from './common/common.js';
|
|
8
|
-
import { PostPurchaseFontSizeValue } from '
|
|
8
|
+
import { PostPurchaseFontSizeValue } from '../constants/index.js';
|
|
9
9
|
|
|
10
10
|
const Link = ({ builderAttrs, setting = {}, styles, builderProps })=>{
|
|
11
11
|
const { link, width, label } = setting;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var PostPurchaseFontSizeValue;
|
|
2
|
+
(function(PostPurchaseFontSizeValue) {
|
|
3
|
+
PostPurchaseFontSizeValue["Default"] = 'default';
|
|
4
|
+
PostPurchaseFontSizeValue["Small"] = 'small';
|
|
5
|
+
PostPurchaseFontSizeValue["Medium"] = 'medium';
|
|
6
|
+
PostPurchaseFontSizeValue["Large"] = 'large';
|
|
7
|
+
PostPurchaseFontSizeValue["XLarge"] = 'xlarge';
|
|
8
|
+
})(PostPurchaseFontSizeValue || (PostPurchaseFontSizeValue = {}));
|
|
9
|
+
|
|
10
|
+
export { PostPurchaseFontSizeValue };
|
|
@@ -87,14 +87,14 @@ const uiV2 = [
|
|
|
87
87
|
label: {
|
|
88
88
|
en: 'Align'
|
|
89
89
|
},
|
|
90
|
-
conditionEnable: `activeScreenId === 'desktop' ? width
|
|
90
|
+
conditionEnable: `activeScreenId === 'desktop' ? !(parseInt(width) >= 100 && width?.includes("%")) : (!(parseInt(width) >= 100 && width?.includes("%")) && width !== 'default')`,
|
|
91
91
|
setting: {
|
|
92
92
|
id: 'align'
|
|
93
93
|
},
|
|
94
94
|
options: {
|
|
95
95
|
labelVariant: 'primary',
|
|
96
96
|
fullWidth: true,
|
|
97
|
-
disableMessage:
|
|
97
|
+
disableMessage: 'Horizontal alignment is disabled when the width is set to 100% or greater'
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
]
|
|
@@ -82,7 +82,7 @@ import '../../../../../icon-list-v2/setting/configs/settings.js';
|
|
|
82
82
|
import '../../../../../post-purchase/image/components/Img.js';
|
|
83
83
|
import '../../../../../post-purchase/callout-banner/components/common/getStyles.js';
|
|
84
84
|
import '../../../../../post-purchase/line/components/PostPurchaseLine.js';
|
|
85
|
-
import '
|
|
85
|
+
import '../../../../../post-purchase/link/constants/index.js';
|
|
86
86
|
import '../../../../../estimate-delivery/setting/configs/settings.js';
|
|
87
87
|
import '../../../../../accordion/next.js';
|
|
88
88
|
import '../../../../../breadcrumb/next.js';
|
package/dist/esm/setting.js
CHANGED
|
@@ -127,7 +127,7 @@ import './post-purchase/line/components/PostPurchaseLine.js';
|
|
|
127
127
|
import postPurchaseAdvancedListSetting from './post-purchase/advanced-list/setting/index.js';
|
|
128
128
|
import postPurchaseCountdownTimerSetting from './post-purchase/countdown-timer/settings/index.js';
|
|
129
129
|
import postPurchaseLinkSetting from './post-purchase/link/setting/index.js';
|
|
130
|
-
import '
|
|
130
|
+
import './post-purchase/link/constants/index.js';
|
|
131
131
|
import estimateDeliverySetting from './estimate-delivery/setting/index.js';
|
|
132
132
|
import articleListSetting from './article/setting/index.js';
|
|
133
133
|
import marqueeSetting from './marquee/setting/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.267",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
25
|
+
"@gem-sdk/core": "2.0.0-dev.267",
|
|
26
26
|
"@gem-sdk/styles": "2.0.0-dev.263",
|
|
27
27
|
"@gem-sdk/system": "2.0.0-dev.263",
|
|
28
28
|
"@types/react-transition-group": "^4.4.5"
|