@gem-sdk/core 2.0.0-dev.540 → 2.0.0-dev.553
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.
|
@@ -242,12 +242,13 @@ const handleConvertClassColorDynamicBtn = (value)=>{
|
|
|
242
242
|
};
|
|
243
243
|
return colors.getGlobalColorStateClassDynamicBtn('border', newVal);
|
|
244
244
|
};
|
|
245
|
-
const composeBorderCss = (borderV)=>{
|
|
245
|
+
const composeBorderCss = (borderV, options)=>{
|
|
246
246
|
if (!borderV) return '';
|
|
247
|
+
const sub = options?.important ? ' !important' : '';
|
|
247
248
|
const { border, width, color } = borderV;
|
|
248
|
-
return `${border ? `border-style: ${border};` : ''}
|
|
249
|
-
${width ? `border-width: ${width};` : ''}
|
|
250
|
-
${color ? `border-color: ${colors.getSingleColorVariable(color)};` : ''}
|
|
249
|
+
return `${border ? `border-style: ${border}${sub};` : ''}
|
|
250
|
+
${width ? `border-width: ${width}${sub};` : ''}
|
|
251
|
+
${color ? `border-color: ${colors.getSingleColorVariable(color)}${sub};` : ''}
|
|
251
252
|
`;
|
|
252
253
|
};
|
|
253
254
|
const composeBorderResponsive = (borderValue)=>{
|
|
@@ -240,12 +240,13 @@ const handleConvertClassColorDynamicBtn = (value)=>{
|
|
|
240
240
|
};
|
|
241
241
|
return getGlobalColorStateClassDynamicBtn('border', newVal);
|
|
242
242
|
};
|
|
243
|
-
const composeBorderCss = (borderV)=>{
|
|
243
|
+
const composeBorderCss = (borderV, options)=>{
|
|
244
244
|
if (!borderV) return '';
|
|
245
|
+
const sub = options?.important ? ' !important' : '';
|
|
245
246
|
const { border, width, color } = borderV;
|
|
246
|
-
return `${border ? `border-style: ${border};` : ''}
|
|
247
|
-
${width ? `border-width: ${width};` : ''}
|
|
248
|
-
${color ? `border-color: ${getSingleColorVariable(color)};` : ''}
|
|
247
|
+
return `${border ? `border-style: ${border}${sub};` : ''}
|
|
248
|
+
${width ? `border-width: ${width}${sub};` : ''}
|
|
249
|
+
${color ? `border-color: ${getSingleColorVariable(color)}${sub};` : ''}
|
|
249
250
|
`;
|
|
250
251
|
};
|
|
251
252
|
const composeBorderResponsive = (borderValue)=>{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -35390,7 +35390,9 @@ declare const handleConvertBorderColor: (value?: BorderStyle) => React.CSSProper
|
|
|
35390
35390
|
declare const handleConvertInputBorderColor: (value?: BorderStyle) => React.CSSProperties | undefined;
|
|
35391
35391
|
declare const handleConvertClassColor: (value?: BorderStyle) => string | undefined;
|
|
35392
35392
|
declare const handleConvertClassColorDynamicBtn: (value?: BorderStyle) => string | undefined;
|
|
35393
|
-
declare const composeBorderCss: (borderV?: Border | undefined
|
|
35393
|
+
declare const composeBorderCss: (borderV?: Border | undefined, options?: {
|
|
35394
|
+
important?: boolean;
|
|
35395
|
+
}) => string;
|
|
35394
35396
|
declare const composeBorderResponsive: (borderValue?: ObjectDevices<Border>) => React.CSSProperties;
|
|
35395
35397
|
|
|
35396
35398
|
declare const getCarouselContainerHeight: <T>(dotStyle?: Partial<Record<NameDevices$1, T>> | undefined) => {
|
|
@@ -36123,6 +36125,7 @@ type Option$4<T> = {
|
|
|
36123
36125
|
type?: string;
|
|
36124
36126
|
note?: string;
|
|
36125
36127
|
maxOption?: number;
|
|
36128
|
+
subTitle?: string;
|
|
36126
36129
|
};
|
|
36127
36130
|
type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
36128
36131
|
id: K;
|
|
@@ -36692,6 +36695,7 @@ type InputUnitSpacingControlType<T> = SharedControlType<T> & {
|
|
|
36692
36695
|
units: SizeUnit$1[];
|
|
36693
36696
|
readonly?: boolean;
|
|
36694
36697
|
useOnlyUnitInit?: boolean;
|
|
36698
|
+
hideUnit?: boolean;
|
|
36695
36699
|
};
|
|
36696
36700
|
|
|
36697
36701
|
type SizeUnit = '%' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'px' | 'em' | 'cap' | 'ex' | 'ch' | 'ic' | 'rem' | 'lh' | 'rlh' | 'vw' | 'vh' | 'vi' | 'vb' | 'vmin' | 'vmax';
|
|
@@ -42578,7 +42582,7 @@ declare const removePaddingYInStyle: (style?: React.CSSProperties) => {
|
|
|
42578
42582
|
|
|
42579
42583
|
declare function composeClasses(classList?: string): Record<string, boolean>;
|
|
42580
42584
|
|
|
42581
|
-
declare const isLocalEnv
|
|
42585
|
+
declare const isLocalEnv = false;
|
|
42582
42586
|
declare const baseAssetURL: string;
|
|
42583
42587
|
|
|
42584
42588
|
declare const convertHTML: (str: string) => string;
|