@gem-sdk/components 2.0.0-dev.516 → 2.0.0-dev.518
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/breadcrumb/components/common/style.js +7 -4
- package/dist/cjs/breadcrumb/setting/Breadcrumb.js +1 -0
- package/dist/cjs/breadcrumb/setting/configs/settings.js +1 -1
- package/dist/cjs/breadcrumb/setting/configs/uiV2.js +1 -1
- package/dist/cjs/product/components/ProductQuantity/common/getAttrs.js +2 -1
- package/dist/cjs/product/components/ProductQuantity/common/getClasses.js +1 -1
- package/dist/cjs/product/setting/product-quantity/configs/settings.js +2 -8
- package/dist/esm/breadcrumb/components/common/style.js +8 -5
- package/dist/esm/breadcrumb/setting/Breadcrumb.js +1 -0
- package/dist/esm/breadcrumb/setting/configs/settings.js +1 -1
- package/dist/esm/breadcrumb/setting/configs/uiV2.js +1 -1
- package/dist/esm/product/components/ProductQuantity/common/getAttrs.js +2 -1
- package/dist/esm/product/components/ProductQuantity/common/getClasses.js +1 -1
- package/dist/esm/product/setting/product-quantity/configs/settings.js +2 -8
- package/package.json +1 -1
|
@@ -26,11 +26,14 @@ const getBreadcrumbChildItemStyles = (args)=>{
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
const generateBreadcrumbChildIconStyles = (iconWidth, color)=>{
|
|
29
|
+
const desktopWidth = iconWidth?.desktop ?? 0;
|
|
30
|
+
const tabletWidth = iconWidth?.tablet ?? desktopWidth;
|
|
31
|
+
const mobileWidth = iconWidth?.mobile ?? tabletWidth;
|
|
29
32
|
return {
|
|
30
|
-
'--height-desktop': `${
|
|
31
|
-
'--height-tablet': `${
|
|
32
|
-
'--height-mobile': `${
|
|
33
|
-
'--
|
|
33
|
+
'--height-desktop': `${desktopWidth}px`,
|
|
34
|
+
'--height-tablet': `${tabletWidth}px`,
|
|
35
|
+
'--height-mobile': `${mobileWidth}px`,
|
|
36
|
+
'--c': core.getGlobalColorCSSProp(color)
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
39
|
const getBreadcrumbStyles = (style, settings)=>{
|
|
@@ -9,7 +9,8 @@ const getContainerAttrs = ({ uid, isDisabled = true, isDisableByLiquid })=>{
|
|
|
9
9
|
const getButtonAttrs = ({ buttonSide })=>{
|
|
10
10
|
return {
|
|
11
11
|
title: buttonSide === 'left' ? 'Decrement' : 'Increment',
|
|
12
|
-
'aria-label': buttonSide === 'left' ? 'decrement' : 'increment'
|
|
12
|
+
'aria-label': buttonSide === 'left' ? 'decrement' : 'increment',
|
|
13
|
+
type: 'button'
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
const getInputAttr = ({ isLiquid, qtyStyle, quantity, currentVariant, defaultQty })=>{
|
|
@@ -30,7 +30,7 @@ const getButtonClass = ({ borderBtn, buttonBackgroundColor, iconColor, buttonSid
|
|
|
30
30
|
};
|
|
31
31
|
const getContainerClasses = (advanceClass)=>{
|
|
32
32
|
return {
|
|
33
|
-
...core.composeClasses(`
|
|
33
|
+
...core.composeClasses(`quantityClass gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
const getWrapperClasses = ()=>{
|
|
@@ -360,13 +360,6 @@ const ProductQuantitySettings = [
|
|
|
360
360
|
width: '1px 1px 1px 1px',
|
|
361
361
|
color: 'line-1',
|
|
362
362
|
isCustom: true
|
|
363
|
-
},
|
|
364
|
-
hover: {
|
|
365
|
-
borderType: 'none',
|
|
366
|
-
border: 'none',
|
|
367
|
-
borderWidth: '1px',
|
|
368
|
-
width: '1px 1px 1px 1px',
|
|
369
|
-
isCustom: true
|
|
370
363
|
}
|
|
371
364
|
}
|
|
372
365
|
}
|
|
@@ -522,7 +515,8 @@ const ProductQuantitySettings = [
|
|
|
522
515
|
devices: {
|
|
523
516
|
desktop: {
|
|
524
517
|
default: {
|
|
525
|
-
normal: 1
|
|
518
|
+
normal: 1,
|
|
519
|
+
hover: 1
|
|
526
520
|
}
|
|
527
521
|
}
|
|
528
522
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyleResponsive, getGlobalColorStateStyle, makeStyle, getSingleColorVariable, removeNullUndefined } from '@gem-sdk/core';
|
|
1
|
+
import { makeStyleResponsive, getGlobalColorStateStyle, makeStyle, getSingleColorVariable, removeNullUndefined, getGlobalColorCSSProp } from '@gem-sdk/core';
|
|
2
2
|
import { makeStyleStateConditionActive } from './index.js';
|
|
3
3
|
|
|
4
4
|
const getSpacingStyles = (spacing)=>{
|
|
@@ -24,11 +24,14 @@ const getBreadcrumbChildItemStyles = (args)=>{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
const generateBreadcrumbChildIconStyles = (iconWidth, color)=>{
|
|
27
|
+
const desktopWidth = iconWidth?.desktop ?? 0;
|
|
28
|
+
const tabletWidth = iconWidth?.tablet ?? desktopWidth;
|
|
29
|
+
const mobileWidth = iconWidth?.mobile ?? tabletWidth;
|
|
27
30
|
return {
|
|
28
|
-
'--height-desktop': `${
|
|
29
|
-
'--height-tablet': `${
|
|
30
|
-
'--height-mobile': `${
|
|
31
|
-
'--
|
|
31
|
+
'--height-desktop': `${desktopWidth}px`,
|
|
32
|
+
'--height-tablet': `${tabletWidth}px`,
|
|
33
|
+
'--height-mobile': `${mobileWidth}px`,
|
|
34
|
+
'--c': getGlobalColorCSSProp(color)
|
|
32
35
|
};
|
|
33
36
|
};
|
|
34
37
|
const getBreadcrumbStyles = (style, settings)=>{
|
|
@@ -7,7 +7,8 @@ const getContainerAttrs = ({ uid, isDisabled = true, isDisableByLiquid })=>{
|
|
|
7
7
|
const getButtonAttrs = ({ buttonSide })=>{
|
|
8
8
|
return {
|
|
9
9
|
title: buttonSide === 'left' ? 'Decrement' : 'Increment',
|
|
10
|
-
'aria-label': buttonSide === 'left' ? 'decrement' : 'increment'
|
|
10
|
+
'aria-label': buttonSide === 'left' ? 'decrement' : 'increment',
|
|
11
|
+
type: 'button'
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
const getInputAttr = ({ isLiquid, qtyStyle, quantity, currentVariant, defaultQty })=>{
|
|
@@ -28,7 +28,7 @@ const getButtonClass = ({ borderBtn, buttonBackgroundColor, iconColor, buttonSid
|
|
|
28
28
|
};
|
|
29
29
|
const getContainerClasses = (advanceClass)=>{
|
|
30
30
|
return {
|
|
31
|
-
...composeClasses(`
|
|
31
|
+
...composeClasses(`quantityClass gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
const getWrapperClasses = ()=>{
|
|
@@ -358,13 +358,6 @@ const ProductQuantitySettings = [
|
|
|
358
358
|
width: '1px 1px 1px 1px',
|
|
359
359
|
color: 'line-1',
|
|
360
360
|
isCustom: true
|
|
361
|
-
},
|
|
362
|
-
hover: {
|
|
363
|
-
borderType: 'none',
|
|
364
|
-
border: 'none',
|
|
365
|
-
borderWidth: '1px',
|
|
366
|
-
width: '1px 1px 1px 1px',
|
|
367
|
-
isCustom: true
|
|
368
361
|
}
|
|
369
362
|
}
|
|
370
363
|
}
|
|
@@ -520,7 +513,8 @@ const ProductQuantitySettings = [
|
|
|
520
513
|
devices: {
|
|
521
514
|
desktop: {
|
|
522
515
|
default: {
|
|
523
|
-
normal: 1
|
|
516
|
+
normal: 1,
|
|
517
|
+
hover: 1
|
|
524
518
|
}
|
|
525
519
|
}
|
|
526
520
|
},
|