@descope/web-components-ui 1.0.115 → 1.0.117
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/index.esm.js
CHANGED
@@ -5200,14 +5200,16 @@ const getThemeVars = (theme, prefix) =>
|
|
5200
5200
|
set({}, path, getVarName(prefix ? [prefix, ...path] : path))
|
5201
5201
|
);
|
5202
5202
|
|
5203
|
-
const globalsThemeToStyle = (theme, themeName = '') =>
|
5204
|
-
|
5205
|
-
|
5206
|
-
|
5207
|
-
|
5208
|
-
|
5209
|
-
|
5210
|
-
|
5203
|
+
const globalsThemeToStyle = (theme, themeName = '') => {
|
5204
|
+
const style = Object.entries(themeToCSSVarsObj(theme)).reduce(
|
5205
|
+
(acc, entry) => (acc += `${entry.join(':')};\n`),
|
5206
|
+
''
|
5207
|
+
);
|
5208
|
+
|
5209
|
+
if(!themeName) return style
|
5210
|
+
|
5211
|
+
return `*[data-theme="${themeName}"] {${style}}`
|
5212
|
+
};
|
5211
5213
|
|
5212
5214
|
const componentsThemeToStyleObj = (componentsTheme) =>
|
5213
5215
|
transformTheme(componentsTheme, [], (path, val) => {
|
@@ -5926,13 +5928,13 @@ const compVars$1 = ContainerClass.cssVarList;
|
|
5926
5928
|
|
5927
5929
|
const verticalAlignment = {
|
5928
5930
|
start: { verticalAlignment: 'start' },
|
5929
|
-
center: { verticalAlignment: 'center' },
|
5931
|
+
center: { verticalAlignment: 'safe center' },
|
5930
5932
|
end: { verticalAlignment: 'end' },
|
5931
5933
|
};
|
5932
5934
|
|
5933
5935
|
const horizontalAlignment = {
|
5934
5936
|
start: { horizontalAlignment: 'start' },
|
5935
|
-
center: { horizontalAlignment: 'center' },
|
5937
|
+
center: { horizontalAlignment: 'safe center' },
|
5936
5938
|
end: { horizontalAlignment: 'end' },
|
5937
5939
|
};
|
5938
5940
|
|