@gem-sdk/core 1.41.0-dev.54 → 1.41.0-dev.56
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.
|
@@ -2,24 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
var getResonsiveValue = require('./get-resonsive-value.js');
|
|
4
4
|
|
|
5
|
-
const getCarouselContainerHeight = (dotStyle
|
|
6
|
-
const getVal = (dotStyle
|
|
7
|
-
|
|
8
|
-
return `calc(100% - ${dotSize ?? '0'}px - ${!dotGapToCarousel || dotGapToCarousel === 'Auto' ? '0' : dotGapToCarousel}px)`;
|
|
9
|
-
}
|
|
10
|
-
return '100%';
|
|
5
|
+
const getCarouselContainerHeight = (dotStyle)=>{
|
|
6
|
+
const getVal = (dotStyle)=>{
|
|
7
|
+
return dotStyle === 'outside' ? 'auto' : '100%';
|
|
11
8
|
};
|
|
12
9
|
return {
|
|
13
|
-
desktop: getVal(getResonsiveValue.getResponsiveValueByScreen(dotStyle, 'desktop')
|
|
14
|
-
tablet: getVal(getResonsiveValue.getResponsiveValueByScreen(dotStyle, 'tablet')
|
|
15
|
-
mobile: getVal(getResonsiveValue.getResponsiveValueByScreen(dotStyle, 'mobile')
|
|
10
|
+
desktop: getVal(getResonsiveValue.getResponsiveValueByScreen(dotStyle, 'desktop')),
|
|
11
|
+
tablet: getVal(getResonsiveValue.getResponsiveValueByScreen(dotStyle, 'tablet')),
|
|
12
|
+
mobile: getVal(getResonsiveValue.getResponsiveValueByScreen(dotStyle, 'mobile'))
|
|
16
13
|
};
|
|
17
14
|
};
|
|
18
15
|
const makeContainerWidthOrHeight = (setting)=>{
|
|
19
16
|
const getStyleName = (vertical)=>{
|
|
20
17
|
return vertical ? 'w' : 'h';
|
|
21
18
|
};
|
|
22
|
-
const result = getCarouselContainerHeight(setting.dotStyle
|
|
19
|
+
const result = getCarouselContainerHeight(setting.dotStyle);
|
|
23
20
|
return {
|
|
24
21
|
[`--${getStyleName(getResonsiveValue.getResponsiveValueByScreen(setting?.vertical, 'desktop'))}`]: result.desktop,
|
|
25
22
|
[`--${getStyleName(getResonsiveValue.getResponsiveValueByScreen(setting?.vertical, 'tablet'))}-tablet`]: result.tablet,
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { getResponsiveValueByScreen } from './get-resonsive-value.js';
|
|
2
2
|
|
|
3
|
-
const getCarouselContainerHeight = (dotStyle
|
|
4
|
-
const getVal = (dotStyle
|
|
5
|
-
|
|
6
|
-
return `calc(100% - ${dotSize ?? '0'}px - ${!dotGapToCarousel || dotGapToCarousel === 'Auto' ? '0' : dotGapToCarousel}px)`;
|
|
7
|
-
}
|
|
8
|
-
return '100%';
|
|
3
|
+
const getCarouselContainerHeight = (dotStyle)=>{
|
|
4
|
+
const getVal = (dotStyle)=>{
|
|
5
|
+
return dotStyle === 'outside' ? 'auto' : '100%';
|
|
9
6
|
};
|
|
10
7
|
return {
|
|
11
|
-
desktop: getVal(getResponsiveValueByScreen(dotStyle, 'desktop')
|
|
12
|
-
tablet: getVal(getResponsiveValueByScreen(dotStyle, 'tablet')
|
|
13
|
-
mobile: getVal(getResponsiveValueByScreen(dotStyle, 'mobile')
|
|
8
|
+
desktop: getVal(getResponsiveValueByScreen(dotStyle, 'desktop')),
|
|
9
|
+
tablet: getVal(getResponsiveValueByScreen(dotStyle, 'tablet')),
|
|
10
|
+
mobile: getVal(getResponsiveValueByScreen(dotStyle, 'mobile'))
|
|
14
11
|
};
|
|
15
12
|
};
|
|
16
13
|
const makeContainerWidthOrHeight = (setting)=>{
|
|
17
14
|
const getStyleName = (vertical)=>{
|
|
18
15
|
return vertical ? 'w' : 'h';
|
|
19
16
|
};
|
|
20
|
-
const result = getCarouselContainerHeight(setting.dotStyle
|
|
17
|
+
const result = getCarouselContainerHeight(setting.dotStyle);
|
|
21
18
|
return {
|
|
22
19
|
[`--${getStyleName(getResponsiveValueByScreen(setting?.vertical, 'desktop'))}`]: result.desktop,
|
|
23
20
|
[`--${getStyleName(getResponsiveValueByScreen(setting?.vertical, 'tablet'))}-tablet`]: result.tablet,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -27967,15 +27967,13 @@ declare const handleConvertClassColorDynamicBtn: (value?: BorderStyle) => string
|
|
|
27967
27967
|
declare const composeBorderCss: (borderV?: Border | undefined) => string;
|
|
27968
27968
|
|
|
27969
27969
|
type DotStyle = 'none' | 'inside' | 'outside';
|
|
27970
|
-
declare const getCarouselContainerHeight: <T>(dotStyle?: Partial<Record<NameDevices$1, T>> | undefined
|
|
27970
|
+
declare const getCarouselContainerHeight: <T>(dotStyle?: Partial<Record<NameDevices$1, T>> | undefined) => {
|
|
27971
27971
|
desktop: string | undefined;
|
|
27972
27972
|
tablet: string | undefined;
|
|
27973
27973
|
mobile: string | undefined;
|
|
27974
27974
|
};
|
|
27975
27975
|
declare const makeContainerWidthOrHeight: <T extends ShortHandProperty>(setting: {
|
|
27976
27976
|
dotStyle?: ObjectDevices<DotStyle>;
|
|
27977
|
-
dotSize?: ObjectDevices<number>;
|
|
27978
|
-
dotGapToCarousel?: ObjectDevices<number>;
|
|
27979
27977
|
vertical?: ObjectDevices<boolean>;
|
|
27980
27978
|
}) => {
|
|
27981
27979
|
[x: string]: string | undefined;
|