@gem-sdk/components 2.0.0-dev.394 → 2.0.0-dev.396
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/common/getStyle.js +3 -1
- package/dist/cjs/banner/setting/setting.js +12 -16
- package/dist/cjs/banner/setting/uiV2.js +0 -26
- package/dist/cjs/product/components/ProductBundle/common/styles.js +17 -6
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
- package/dist/cjs/product/components/ProductBundle/setting/ProductBundleDiscount.js +47 -415
- package/dist/cjs/product/components/ProductBundle/setting/uiV1.js +404 -0
- package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +728 -0
- package/dist/cjs/product/setting/product-badge/configs/settings.js +1 -1
- package/dist/cjs/product/setting/product-badge/configs/uiV2.js +2 -5
- package/dist/esm/banner/components/common/getStyle.js +4 -2
- package/dist/esm/banner/setting/setting.js +12 -16
- package/dist/esm/banner/setting/uiV2.js +0 -26
- package/dist/esm/product/components/ProductBundle/common/styles.js +17 -6
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
- package/dist/esm/product/components/ProductBundle/setting/ProductBundleDiscount.js +47 -415
- package/dist/esm/product/components/ProductBundle/setting/uiV1.js +400 -0
- package/dist/esm/product/components/ProductBundle/setting/uiV2.js +724 -0
- package/dist/esm/product/setting/product-badge/configs/settings.js +1 -1
- package/dist/esm/product/setting/product-badge/configs/uiV2.js +2 -5
- package/dist/types/index.d.ts +3 -1
- package/package.json +2 -2
|
@@ -103,9 +103,9 @@ const ProductBadgeSettings = [
|
|
|
103
103
|
default: 'Sale {percent_discount} off',
|
|
104
104
|
minHeight: 72,
|
|
105
105
|
inputClass: '!pr-36',
|
|
106
|
-
isFallback: true,
|
|
107
106
|
autoHeight: true,
|
|
108
107
|
showPlusBtn: true,
|
|
108
|
+
isFocusToBottom: true,
|
|
109
109
|
defaultRows: 1,
|
|
110
110
|
suggestContents: [
|
|
111
111
|
{
|
|
@@ -70,7 +70,7 @@ const SettingUIV2 = [
|
|
|
70
70
|
{
|
|
71
71
|
id: 'content-badge',
|
|
72
72
|
type: 'combo',
|
|
73
|
-
iconName: 'polaris-
|
|
73
|
+
iconName: 'polaris-plus',
|
|
74
74
|
isHideClear: true,
|
|
75
75
|
fixedValue: 'Add...',
|
|
76
76
|
popoverLabel: {
|
|
@@ -79,9 +79,6 @@ const SettingUIV2 = [
|
|
|
79
79
|
label: {
|
|
80
80
|
en: 'Content'
|
|
81
81
|
},
|
|
82
|
-
setting: {
|
|
83
|
-
id: 'displayContent'
|
|
84
|
-
},
|
|
85
82
|
layout: 'vertical',
|
|
86
83
|
conditionDisplay: 'contentType == "text"',
|
|
87
84
|
controls: [
|
|
@@ -102,7 +99,7 @@ const SettingUIV2 = [
|
|
|
102
99
|
setting: {
|
|
103
100
|
id: 'contentBanner'
|
|
104
101
|
},
|
|
105
|
-
conditionDisplay: 'displayContent
|
|
102
|
+
conditionDisplay: 'displayContent?.includes("{inventory_quantity}")'
|
|
106
103
|
}
|
|
107
104
|
]
|
|
108
105
|
},
|
package/dist/types/index.d.ts
CHANGED
|
@@ -730,7 +730,7 @@ type Styles$2 = {
|
|
|
730
730
|
shadowBg?: ShadowProps$1;
|
|
731
731
|
sizeSetting?: ObjectDevices$1<SizeSettingGlobal>;
|
|
732
732
|
order?: ObjectDevices$1<number>;
|
|
733
|
-
contentPadding?: ObjectDevices$1<
|
|
733
|
+
contentPadding?: ObjectDevices$1<PaddingType$1>;
|
|
734
734
|
} & Pick<NonNullable<RowProps['styles']>, 'verticalGutter' | 'background'>;
|
|
735
735
|
type HeroBannerProps = BasePropsWrap<Setting$4, Styles$2> & {
|
|
736
736
|
children?: React.ReactNode;
|
|
@@ -3968,6 +3968,7 @@ type ProductBundleDiscountProps = BasePropsWrap<{
|
|
|
3968
3968
|
iconSpacing?: Property.Padding;
|
|
3969
3969
|
bundleItems?: bundleItem[];
|
|
3970
3970
|
useProductCompareAtPrice?: boolean;
|
|
3971
|
+
iconItemColor?: ColorValueType$1;
|
|
3971
3972
|
}, {
|
|
3972
3973
|
size?: ObjectDevices$1<SizeSettingGlobal>;
|
|
3973
3974
|
backgroundColor?: StateProp<ColorValueType$1>;
|
|
@@ -3977,6 +3978,7 @@ type ProductBundleDiscountProps = BasePropsWrap<{
|
|
|
3977
3978
|
borderBundle?: StateProp<Border>;
|
|
3978
3979
|
roundedBundle?: StateProp<CornerRadius>;
|
|
3979
3980
|
align?: string;
|
|
3981
|
+
itemSpacing?: Property.Padding;
|
|
3980
3982
|
}> & {
|
|
3981
3983
|
children: React.ReactNode[];
|
|
3982
3984
|
rawChildren?: any[];
|
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.396",
|
|
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.396",
|
|
26
26
|
"@gem-sdk/styles": "2.0.0-dev.381",
|
|
27
27
|
"@gem-sdk/system": "2.0.0-dev.371",
|
|
28
28
|
"@types/react-transition-group": "^4.4.5"
|