app-studio 0.2.7 → 0.2.8
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/appstudio.cjs.development.js +12 -9
- package/dist/appstudio.cjs.development.js.map +1 -1
- package/dist/appstudio.cjs.production.min.js +1 -1
- package/dist/appstudio.cjs.production.min.js.map +1 -1
- package/dist/appstudio.esm.js +12 -9
- package/dist/appstudio.esm.js.map +1 -1
- package/dist/appstudio.umd.development.js +12 -9
- package/dist/appstudio.umd.development.js.map +1 -1
- package/dist/appstudio.umd.production.min.js +1 -1
- package/dist/appstudio.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -408,10 +408,7 @@ const ThemeProvider = _ref => {
|
|
|
408
408
|
children
|
|
409
409
|
} = _ref;
|
|
410
410
|
// Fusion profonde des thèmes par défaut avec ceux fournis
|
|
411
|
-
const mergedTheme = deepMerge(
|
|
412
|
-
main: defaultThemeMain,
|
|
413
|
-
components: {}
|
|
414
|
-
}, theme);
|
|
411
|
+
const mergedTheme = deepMerge(defaultThemeMain, theme);
|
|
415
412
|
// Fusion profonde des couleurs par défaut avec celles fournies
|
|
416
413
|
const mergedColors = deepMerge({
|
|
417
414
|
main: defaultColors,
|
|
@@ -423,6 +420,9 @@ const ThemeProvider = _ref => {
|
|
|
423
420
|
* @param name - Le nom de la couleur à récupérer.
|
|
424
421
|
* @returns La valeur de couleur résolue ou le nom original si non trouvé.
|
|
425
422
|
*/
|
|
423
|
+
console.log({
|
|
424
|
+
mergedTheme
|
|
425
|
+
});
|
|
426
426
|
const getColor = name => {
|
|
427
427
|
if (name === 'transparent') return name;
|
|
428
428
|
try {
|
|
@@ -878,7 +878,7 @@ const computeStyleProps = (props, getColor, mediaQueries, devices) => {
|
|
|
878
878
|
media,
|
|
879
879
|
...nestedProps
|
|
880
880
|
} = value;
|
|
881
|
-
const nestedResult =
|
|
881
|
+
const nestedResult = computeStyleProps(nestedProps);
|
|
882
882
|
styleProps[property] = nestedResult.styleProps;
|
|
883
883
|
keyframesList.push(...(nestedResult.keyframes || []));
|
|
884
884
|
} else {
|
|
@@ -975,7 +975,7 @@ maxDepth // Set a maximum depth
|
|
|
975
975
|
if (!styleProps[`&:${event}`]) {
|
|
976
976
|
styleProps[`&:${event}`] = {};
|
|
977
977
|
}
|
|
978
|
-
const nestedResult = computeStyleProps(value[event]
|
|
978
|
+
const nestedResult = computeStyleProps(value[event]);
|
|
979
979
|
Object.assign(styleProps[`&:${event}`], nestedResult.styleProps);
|
|
980
980
|
keyframesList.push(...(nestedResult.keyframes || []));
|
|
981
981
|
}
|
|
@@ -987,7 +987,7 @@ maxDepth // Set a maximum depth
|
|
|
987
987
|
if (!styleProps[mediaQuery]) {
|
|
988
988
|
styleProps[mediaQuery] = {};
|
|
989
989
|
}
|
|
990
|
-
const nestedResult = computeStyleProps(mediaValue
|
|
990
|
+
const nestedResult = computeStyleProps(mediaValue);
|
|
991
991
|
Object.assign(styleProps[mediaQuery], nestedResult.styleProps);
|
|
992
992
|
keyframesList.push(...(nestedResult.keyframes || []));
|
|
993
993
|
} else if (devices[screenOrDevices]) {
|
|
@@ -998,7 +998,7 @@ maxDepth // Set a maximum depth
|
|
|
998
998
|
if (!styleProps[mediaQuery]) {
|
|
999
999
|
styleProps[mediaQuery] = {};
|
|
1000
1000
|
}
|
|
1001
|
-
const nestedResult = computeStyleProps(mediaValue
|
|
1001
|
+
const nestedResult = computeStyleProps(mediaValue);
|
|
1002
1002
|
Object.assign(styleProps[mediaQuery], nestedResult.styleProps);
|
|
1003
1003
|
keyframesList.push(...(nestedResult.keyframes || []));
|
|
1004
1004
|
}
|
|
@@ -1013,7 +1013,7 @@ maxDepth // Set a maximum depth
|
|
|
1013
1013
|
media,
|
|
1014
1014
|
...nestedProps
|
|
1015
1015
|
} = value;
|
|
1016
|
-
const nestedResult = computeStyleProps(nestedProps
|
|
1016
|
+
const nestedResult = computeStyleProps(nestedProps);
|
|
1017
1017
|
styleProps[property] = nestedResult.styleProps;
|
|
1018
1018
|
keyframesList.push(...(nestedResult.keyframes || []));
|
|
1019
1019
|
}
|
|
@@ -1023,6 +1023,9 @@ maxDepth // Set a maximum depth
|
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
|
+
console.log({
|
|
1027
|
+
styleProps
|
|
1028
|
+
});
|
|
1026
1029
|
return {
|
|
1027
1030
|
styleProps,
|
|
1028
1031
|
keyframes: keyframesList
|