@gem-sdk/core 1.14.0-dev.641 → 1.14.0-dev.642

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.
@@ -1 +1 @@
1
- "use strict";var getResonsiveValue=require("./get-resonsive-value.js");const getCarouselContainerHeight=(e,t,s)=>{let o=(e,t,s)=>"outside"===e?`calc(100% - ${t??"0"}px - ${s&&"Auto"!==s?s:"0"}px)`:"100%";return{desktop:o(getResonsiveValue.getResponsiveValueByScreen(e,"desktop"),getResonsiveValue.getResponsiveValueByScreen(t,"desktop"),getResonsiveValue.getResponsiveValueByScreen(s,"desktop")),tablet:o(getResonsiveValue.getResponsiveValueByScreen(e,"tablet"),getResonsiveValue.getResponsiveValueByScreen(t,"tablet"),getResonsiveValue.getResponsiveValueByScreen(s,"tablet")),mobile:o(getResonsiveValue.getResponsiveValueByScreen(e,"mobile"),getResonsiveValue.getResponsiveValueByScreen(t,"mobile"),getResonsiveValue.getResponsiveValueByScreen(s,"mobile"))}},makeDotGapToCarouselStyle=(e,t)=>{let s=e=>"outside"===e?"mt":"bottom",o={desktop:`${getResonsiveValue.getResponsiveValueByScreen(t,"desktop",0)}px`,tablet:`${getResonsiveValue.getResponsiveValueByScreen(t,"tablet",0)}px`,mobile:`${getResonsiveValue.getResponsiveValueByScreen(t,"mobile",0)}px`};return{[`--${s(e?.desktop)}`]:o.desktop,[`--${s(e?.tablet)}-tablet`]:o.tablet,[`--${s(e?.mobile)}-mobile`]:o.mobile}};exports.getCarouselContainerHeight=getCarouselContainerHeight,exports.makeDotGapToCarouselStyle=makeDotGapToCarouselStyle;
1
+ "use strict";var getResonsiveValue=require("./get-resonsive-value.js");const getCarouselContainerHeight=(e,t,s)=>{let o=(e,t,s)=>"outside"===e?`calc(100% - ${t??"0"}px - ${s&&"Auto"!==s?s:"0"}px)`:"100%";return{desktop:o(getResonsiveValue.getResponsiveValueByScreen(e,"desktop"),getResonsiveValue.getResponsiveValueByScreen(t,"desktop"),getResonsiveValue.getResponsiveValueByScreen(s,"desktop")),tablet:o(getResonsiveValue.getResponsiveValueByScreen(e,"tablet"),getResonsiveValue.getResponsiveValueByScreen(t,"tablet"),getResonsiveValue.getResponsiveValueByScreen(s,"tablet")),mobile:o(getResonsiveValue.getResponsiveValueByScreen(e,"mobile"),getResonsiveValue.getResponsiveValueByScreen(t,"mobile"),getResonsiveValue.getResponsiveValueByScreen(s,"mobile"))}},makeDotGapToCarouselStyle=(e,t,s)=>{let o={},l=["desktop","tablet","mobile"],a=(e,t)=>"outside"===e?t?"ml":"mt":t?"right":"bottom";return l.map(e=>{let s=getResonsiveValue.getResponsiveValueByScreen(t,e,0);o={...o,[e]:`${s&&"Auto"!==s?s:"0"}px`}}),{[`--${a(e?.desktop,s?.desktop)}`]:o.desktop,[`--${a(e?.tablet,s?.tablet)}-tablet`]:o.tablet,[`--${a(e?.mobile,s?.mobile)}-mobile`]:o.mobile}};exports.getCarouselContainerHeight=getCarouselContainerHeight,exports.makeDotGapToCarouselStyle=makeDotGapToCarouselStyle;
@@ -1 +1 @@
1
- import{getResponsiveValueByScreen as e}from"./get-resonsive-value.js";let getCarouselContainerHeight=(t,o,l)=>{let a=(e,t,o)=>"outside"===e?`calc(100% - ${t??"0"}px - ${o&&"Auto"!==o?o:"0"}px)`:"100%";return{desktop:a(e(t,"desktop"),e(o,"desktop"),e(l,"desktop")),tablet:a(e(t,"tablet"),e(o,"tablet"),e(l,"tablet")),mobile:a(e(t,"mobile"),e(o,"mobile"),e(l,"mobile"))}},makeDotGapToCarouselStyle=(t,o)=>{let l=e=>"outside"===e?"mt":"bottom",a={desktop:`${e(o,"desktop",0)}px`,tablet:`${e(o,"tablet",0)}px`,mobile:`${e(o,"mobile",0)}px`};return{[`--${l(t?.desktop)}`]:a.desktop,[`--${l(t?.tablet)}-tablet`]:a.tablet,[`--${l(t?.mobile)}-mobile`]:a.mobile}};export{getCarouselContainerHeight,makeDotGapToCarouselStyle};
1
+ import{getResponsiveValueByScreen as e}from"./get-resonsive-value.js";let getCarouselContainerHeight=(t,o,l)=>{let a=(e,t,o)=>"outside"===e?`calc(100% - ${t??"0"}px - ${o&&"Auto"!==o?o:"0"}px)`:"100%";return{desktop:a(e(t,"desktop"),e(o,"desktop"),e(l,"desktop")),tablet:a(e(t,"tablet"),e(o,"tablet"),e(l,"tablet")),mobile:a(e(t,"mobile"),e(o,"mobile"),e(l,"mobile"))}},makeDotGapToCarouselStyle=(t,o,l)=>{let a={},b=["desktop","tablet","mobile"],i=(e,t)=>"outside"===e?t?"ml":"mt":t?"right":"bottom";return b.map(t=>{let l=e(o,t,0);a={...a,[t]:`${l&&"Auto"!==l?l:"0"}px`}}),{[`--${i(t?.desktop,l?.desktop)}`]:a.desktop,[`--${i(t?.tablet,l?.tablet)}-tablet`]:a.tablet,[`--${i(t?.mobile,l?.mobile)}-mobile`]:a.mobile}};export{getCarouselContainerHeight,makeDotGapToCarouselStyle};
@@ -8192,37 +8192,15 @@ declare const handleConvertClassColor: (value?: BorderStyle) => string | undefin
8192
8192
  declare const handleConvertClassColorDynamicBtn: (value?: BorderStyle) => string | undefined;
8193
8193
  declare const composeBorderCss: (borderV?: Border | undefined) => string;
8194
8194
 
8195
- type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
8196
- declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
8197
- declare const makeStyleKey: <T extends ShortHandProperty>(name: T) => string[];
8198
- declare const makeStyle: <T extends ShortHandProperty, K>(style: Record<T, K>) => {
8199
- [k: string]: Record<`--${T}`, K>;
8200
- };
8201
- declare const makeStyleState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<StateType, K>> | undefined) => {};
8202
- declare const makeStyleResponsiveState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, Partial<Record<StateType, K>>>> | undefined) => {};
8203
- declare const makeStyleResponsive: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined, unit?: string) => Record<ResponsiveKey<T>, K>;
8204
- declare const makeStyleResponsiveByScreen: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined, unit?: string) => Record<ResponsiveKey<T>, K>;
8205
- declare const makeWidth: (widthValue?: ObjectDevices<string | number>, fullWidthValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
8206
- declare const makeGlobalSizeWidthResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
8207
- '--w': string | undefined;
8208
- '--w-tablet': string | undefined;
8209
- '--w-mobile': string | undefined;
8210
- };
8211
- declare const makeGlobalSizeHeightResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
8212
- '--h': string | undefined;
8213
- '--h-tablet': string | undefined;
8214
- '--h-mobile': string | undefined;
8215
- };
8216
- declare const makeHeight: (heighValue?: ObjectDevices<string | number>, autoHeight?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
8217
- declare const makeAspectRatio: (aspectRatio?: ObjectDevices<string>, aspectWidth?: ObjectDevices<string | number>, aspectHeight?: ObjectDevices<string | number>) => ObjectDevices<string>;
8218
- declare const makeLineClamp: (lineClampValue?: ObjectDevices<number>, hasLineClampValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
8219
-
8195
+ type DotStyle = 'none' | 'inside' | 'outside';
8220
8196
  declare const getCarouselContainerHeight: <T>(dotStyle?: Partial<Record<NameDevices$1, T>> | undefined, dotSize?: ObjectDevices<number>, dotGapToCarousel?: ObjectDevices<number>) => {
8221
8197
  desktop: string | undefined;
8222
8198
  tablet: string | undefined;
8223
8199
  mobile: string | undefined;
8224
8200
  };
8225
- declare const makeDotGapToCarouselStyle: <T extends ShortHandProperty, K>(dotStyle?: Partial<Record<NameDevices$1, K>> | undefined, dotGapToCarousel?: ObjectDevices<number>) => Record<ResponsiveKey<T>, K>;
8201
+ declare const makeDotGapToCarouselStyle: <T extends ShortHandProperty, K>(dotStyle?: ObjectDevices<DotStyle>, dotGapToCarousel?: Partial<Record<NameDevices$1, K>> | undefined, vertical?: ObjectDevices<boolean>) => {
8202
+ [x: string]: string | undefined;
8203
+ };
8226
8204
 
8227
8205
  type ClassValue = ClassDictionary | string | null | undefined;
8228
8206
  type ClassDictionary = Record<string, boolean | undefined | null>;
@@ -8261,6 +8239,31 @@ declare const animations: () => {
8261
8239
  slide: (target: Element, options: AnimationSettingType) => Animation;
8262
8240
  };
8263
8241
 
8242
+ type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
8243
+ declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
8244
+ declare const makeStyleKey: <T extends ShortHandProperty>(name: T) => string[];
8245
+ declare const makeStyle: <T extends ShortHandProperty, K>(style: Record<T, K>) => {
8246
+ [k: string]: Record<`--${T}`, K>;
8247
+ };
8248
+ declare const makeStyleState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<StateType, K>> | undefined) => {};
8249
+ declare const makeStyleResponsiveState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, Partial<Record<StateType, K>>>> | undefined) => {};
8250
+ declare const makeStyleResponsive: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined, unit?: string) => Record<ResponsiveKey<T>, K>;
8251
+ declare const makeStyleResponsiveByScreen: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined, unit?: string) => Record<ResponsiveKey<T>, K>;
8252
+ declare const makeWidth: (widthValue?: ObjectDevices<string | number>, fullWidthValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
8253
+ declare const makeGlobalSizeWidthResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
8254
+ '--w': string | undefined;
8255
+ '--w-tablet': string | undefined;
8256
+ '--w-mobile': string | undefined;
8257
+ };
8258
+ declare const makeGlobalSizeHeightResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
8259
+ '--h': string | undefined;
8260
+ '--h-tablet': string | undefined;
8261
+ '--h-mobile': string | undefined;
8262
+ };
8263
+ declare const makeHeight: (heighValue?: ObjectDevices<string | number>, autoHeight?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
8264
+ declare const makeAspectRatio: (aspectRatio?: ObjectDevices<string>, aspectWidth?: ObjectDevices<string | number>, aspectHeight?: ObjectDevices<string | number>) => ObjectDevices<string>;
8265
+ declare const makeLineClamp: (lineClampValue?: ObjectDevices<number>, hasLineClampValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
8266
+
8264
8267
  declare function normalizeBuilderData(data: BuilderEntityNested): {
8265
8268
  [x: string]: BuilderEntity;
8266
8269
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.14.0-dev.641",
3
+ "version": "1.14.0-dev.642",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",