@gem-sdk/components 2.0.0-dev.417 → 2.0.0-dev.418
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/product/components/ProductQuantity/common/getStyles.js +8 -1
- package/dist/cjs/product/setting/product-quantity/configs/settings.js +25 -0
- package/dist/cjs/product/setting/product-quantity/configs/uiV2.js +1 -45
- package/dist/esm/product/components/ProductQuantity/common/getStyles.js +8 -1
- package/dist/esm/product/setting/product-quantity/configs/settings.js +25 -0
- package/dist/esm/product/setting/product-quantity/configs/uiV2.js +1 -45
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -118,9 +118,16 @@ const getContainerStyles = ({ inputHeight, align })=>{
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
const getWrapperStyles = ({ backgroundColor, styles })=>{
|
|
121
|
+
const shapeShadow = styles?.shapeShadow;
|
|
122
|
+
const styleShadow = core.getResponsiveStyleShadow(shapeShadow, 'box-shadow', {
|
|
123
|
+
desktop: shapeShadow?.desktop ?? {},
|
|
124
|
+
tablet: shapeShadow?.tablet ?? shapeShadow?.desktop ?? {},
|
|
125
|
+
mobile: shapeShadow?.mobile ?? shapeShadow?.tablet ?? shapeShadow?.desktop ?? {}
|
|
126
|
+
});
|
|
121
127
|
return {
|
|
122
128
|
...core.getGlobalColorStateStyle('bg', backgroundColor),
|
|
123
|
-
...core.makeStyleResponsive('maxw', styles?.quantityWidth)
|
|
129
|
+
...core.makeStyleResponsive('maxw', styles?.quantityWidth),
|
|
130
|
+
...styleShadow
|
|
124
131
|
};
|
|
125
132
|
};
|
|
126
133
|
|
|
@@ -407,6 +407,31 @@ const ProductQuantitySettings = [
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
|
+
{
|
|
411
|
+
id: 'shapeShadow',
|
|
412
|
+
type: 'shadow-v2',
|
|
413
|
+
devices: {
|
|
414
|
+
desktop: {
|
|
415
|
+
default: {
|
|
416
|
+
normal: {}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
compoDefaultValue: {
|
|
421
|
+
desktop: {
|
|
422
|
+
default: {
|
|
423
|
+
normal: {
|
|
424
|
+
type: 'shadow-1',
|
|
425
|
+
distance: '4px',
|
|
426
|
+
blur: '4px',
|
|
427
|
+
spread: '0px',
|
|
428
|
+
color: '#121212',
|
|
429
|
+
angle: 90
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
410
435
|
{
|
|
411
436
|
id: 'buttonBoxShadow',
|
|
412
437
|
type: 'shadow-v2',
|
|
@@ -521,52 +521,8 @@ const SettingUIV2 = [
|
|
|
521
521
|
en: 'Shadow'
|
|
522
522
|
},
|
|
523
523
|
setting: {
|
|
524
|
-
id: '
|
|
524
|
+
id: 'shapeShadow',
|
|
525
525
|
state: 'normal'
|
|
526
|
-
},
|
|
527
|
-
options: {
|
|
528
|
-
updateFields: [
|
|
529
|
-
{
|
|
530
|
-
field: 'normal.enable',
|
|
531
|
-
settingId: 'advanced.hasBoxShadow',
|
|
532
|
-
state: 'normal'
|
|
533
|
-
}
|
|
534
|
-
]
|
|
535
|
-
},
|
|
536
|
-
controlChangeTrigger: {
|
|
537
|
-
settings: [
|
|
538
|
-
{
|
|
539
|
-
condition: `boxShadow.normal.enable === true`,
|
|
540
|
-
source: [
|
|
541
|
-
'boxShadow',
|
|
542
|
-
'hasBoxShadow'
|
|
543
|
-
],
|
|
544
|
-
action: {
|
|
545
|
-
controlId: 'hasBoxShadow',
|
|
546
|
-
groupType: 'advanced',
|
|
547
|
-
controlType: 'advanced',
|
|
548
|
-
state: 'normal',
|
|
549
|
-
newValue: true
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
condition: `boxShadow.normal.enable === false`,
|
|
554
|
-
source: [
|
|
555
|
-
'boxShadow',
|
|
556
|
-
'hasBoxShadow'
|
|
557
|
-
],
|
|
558
|
-
action: {
|
|
559
|
-
controlId: 'hasBoxShadow',
|
|
560
|
-
groupType: 'advanced',
|
|
561
|
-
controlType: 'advanced',
|
|
562
|
-
state: 'normal',
|
|
563
|
-
newValue: false
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
],
|
|
567
|
-
options: {
|
|
568
|
-
noRecordHistory: true
|
|
569
|
-
}
|
|
570
526
|
}
|
|
571
527
|
}
|
|
572
528
|
]
|
|
@@ -116,9 +116,16 @@ const getContainerStyles = ({ inputHeight, align })=>{
|
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
118
|
const getWrapperStyles = ({ backgroundColor, styles })=>{
|
|
119
|
+
const shapeShadow = styles?.shapeShadow;
|
|
120
|
+
const styleShadow = getResponsiveStyleShadow(shapeShadow, 'box-shadow', {
|
|
121
|
+
desktop: shapeShadow?.desktop ?? {},
|
|
122
|
+
tablet: shapeShadow?.tablet ?? shapeShadow?.desktop ?? {},
|
|
123
|
+
mobile: shapeShadow?.mobile ?? shapeShadow?.tablet ?? shapeShadow?.desktop ?? {}
|
|
124
|
+
});
|
|
119
125
|
return {
|
|
120
126
|
...getGlobalColorStateStyle('bg', backgroundColor),
|
|
121
|
-
...makeStyleResponsive('maxw', styles?.quantityWidth)
|
|
127
|
+
...makeStyleResponsive('maxw', styles?.quantityWidth),
|
|
128
|
+
...styleShadow
|
|
122
129
|
};
|
|
123
130
|
};
|
|
124
131
|
|
|
@@ -405,6 +405,31 @@ const ProductQuantitySettings = [
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
},
|
|
408
|
+
{
|
|
409
|
+
id: 'shapeShadow',
|
|
410
|
+
type: 'shadow-v2',
|
|
411
|
+
devices: {
|
|
412
|
+
desktop: {
|
|
413
|
+
default: {
|
|
414
|
+
normal: {}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
compoDefaultValue: {
|
|
419
|
+
desktop: {
|
|
420
|
+
default: {
|
|
421
|
+
normal: {
|
|
422
|
+
type: 'shadow-1',
|
|
423
|
+
distance: '4px',
|
|
424
|
+
blur: '4px',
|
|
425
|
+
spread: '0px',
|
|
426
|
+
color: '#121212',
|
|
427
|
+
angle: 90
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
408
433
|
{
|
|
409
434
|
id: 'buttonBoxShadow',
|
|
410
435
|
type: 'shadow-v2',
|
|
@@ -519,52 +519,8 @@ const SettingUIV2 = [
|
|
|
519
519
|
en: 'Shadow'
|
|
520
520
|
},
|
|
521
521
|
setting: {
|
|
522
|
-
id: '
|
|
522
|
+
id: 'shapeShadow',
|
|
523
523
|
state: 'normal'
|
|
524
|
-
},
|
|
525
|
-
options: {
|
|
526
|
-
updateFields: [
|
|
527
|
-
{
|
|
528
|
-
field: 'normal.enable',
|
|
529
|
-
settingId: 'advanced.hasBoxShadow',
|
|
530
|
-
state: 'normal'
|
|
531
|
-
}
|
|
532
|
-
]
|
|
533
|
-
},
|
|
534
|
-
controlChangeTrigger: {
|
|
535
|
-
settings: [
|
|
536
|
-
{
|
|
537
|
-
condition: `boxShadow.normal.enable === true`,
|
|
538
|
-
source: [
|
|
539
|
-
'boxShadow',
|
|
540
|
-
'hasBoxShadow'
|
|
541
|
-
],
|
|
542
|
-
action: {
|
|
543
|
-
controlId: 'hasBoxShadow',
|
|
544
|
-
groupType: 'advanced',
|
|
545
|
-
controlType: 'advanced',
|
|
546
|
-
state: 'normal',
|
|
547
|
-
newValue: true
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
condition: `boxShadow.normal.enable === false`,
|
|
552
|
-
source: [
|
|
553
|
-
'boxShadow',
|
|
554
|
-
'hasBoxShadow'
|
|
555
|
-
],
|
|
556
|
-
action: {
|
|
557
|
-
controlId: 'hasBoxShadow',
|
|
558
|
-
groupType: 'advanced',
|
|
559
|
-
controlType: 'advanced',
|
|
560
|
-
state: 'normal',
|
|
561
|
-
newValue: false
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
],
|
|
565
|
-
options: {
|
|
566
|
-
noRecordHistory: true
|
|
567
|
-
}
|
|
568
524
|
}
|
|
569
525
|
}
|
|
570
526
|
]
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4041,6 +4041,7 @@ type ProductQuantityProps = BaseProps<{
|
|
|
4041
4041
|
borderBtn?: ObjectDevices$1<StateProp<Border>>;
|
|
4042
4042
|
iconSizeCustom?: ObjectDevices$1<number>;
|
|
4043
4043
|
corner?: ObjectDevices$1<StateProp<CornerRadius>>;
|
|
4044
|
+
shapeShadow?: ObjectDevices$1<StateProp<ShadowProps$1>>;
|
|
4044
4045
|
buttonBoxShadow?: ObjectDevices$1<StateProp<ShadowProps$1>>;
|
|
4045
4046
|
inputBoxShadow?: ObjectDevices$1<StateProp<ShadowProps$1>>;
|
|
4046
4047
|
backgroundColor?: StateProp<ColorValueType$1>;
|