@descope/web-components-ui 1.0.399 → 1.0.400-1
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/cjs/index.cjs.js +28 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +28 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-container-index-js.js +1 -1
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-policy-validation-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/package.json +2 -2
- package/src/components/descope-container/ContainerClass.js +6 -0
- package/src/components/descope-grid/helpers.js +1 -1
- package/src/components/descope-policy-validation/PolicyValidationClass.js +2 -2
- package/src/components/descope-upload-file/UploadFileClass.js +3 -3
- package/src/helpers/themeHelpers/index.js +8 -1
- package/src/theme/components/container.js +10 -2
package/dist/index.esm.js
CHANGED
@@ -2720,6 +2720,12 @@ const ContainerClass = compose(
|
|
2720
2720
|
flexWrap: {},
|
2721
2721
|
|
2722
2722
|
backgroundColor: {},
|
2723
|
+
backgroundImage: {},
|
2724
|
+
backgroundPositionX: {},
|
2725
|
+
backgroundPositionY: {},
|
2726
|
+
backgroundSize: {},
|
2727
|
+
backgroundRepeat: {},
|
2728
|
+
|
2723
2729
|
color: {},
|
2724
2730
|
borderRadius: {},
|
2725
2731
|
|
@@ -9076,9 +9082,9 @@ class RawPolicyValidation extends createBaseClass({ componentName: componentName
|
|
9076
9082
|
updateLabel(val) {
|
9077
9083
|
if (!val) {
|
9078
9084
|
this.classList.add('hide-label');
|
9079
|
-
this.label.
|
9085
|
+
this.label.textContent = '';
|
9080
9086
|
} else {
|
9081
|
-
this.label.
|
9087
|
+
this.label.textContent = val;
|
9082
9088
|
this.classList.remove('hide-label');
|
9083
9089
|
}
|
9084
9090
|
}
|
@@ -9927,15 +9933,15 @@ class RawUploadFile extends BaseInputClass$3 {
|
|
9927
9933
|
}
|
9928
9934
|
|
9929
9935
|
updateTitle(val) {
|
9930
|
-
this.title.
|
9936
|
+
this.title.textContent = val;
|
9931
9937
|
}
|
9932
9938
|
|
9933
9939
|
updateDescription(val) {
|
9934
|
-
this.description.
|
9940
|
+
this.description.textContent = val;
|
9935
9941
|
}
|
9936
9942
|
|
9937
9943
|
updateButtonLabel(val) {
|
9938
|
-
this.button.
|
9944
|
+
this.button.textContent = val;
|
9939
9945
|
}
|
9940
9946
|
|
9941
9947
|
updateButtonSize(val) {
|
@@ -11112,7 +11118,7 @@ const renderCodeSnippet = (value, lang) =>
|
|
11112
11118
|
|
11113
11119
|
const renderText = (text) =>
|
11114
11120
|
`<div class="row-details__value text" title="${text}">${text}</div>`;
|
11115
|
-
const renderJson = (value) => renderCodeSnippet(JSON.stringify(value, null, 2), 'json');
|
11121
|
+
const renderJson = (value) => renderCodeSnippet(escapeXML(JSON.stringify(value, null, 2)), 'json');
|
11116
11122
|
const renderXml = (value) => renderCodeSnippet(escapeXML(value), 'xml');
|
11117
11123
|
|
11118
11124
|
const defaultRowDetailsValueRenderer = (value) => {
|
@@ -15344,7 +15350,14 @@ const themeToStyle = ({ globals, components }, themeName) => ({
|
|
15344
15350
|
components: createComponentsTheme(components),
|
15345
15351
|
});
|
15346
15352
|
|
15347
|
-
|
15353
|
+
// allows to generate css variables with nested fallbacks
|
15354
|
+
const useVar = (...varNames) => {
|
15355
|
+
return varNames.reduceRight((acc, value) => {
|
15356
|
+
if (value.startsWith('--')) return `var(${value}${acc ? `, ${acc}` : acc})`;
|
15357
|
+
|
15358
|
+
return `${value}${acc ? `, ${acc}` : acc}`;
|
15359
|
+
}, '');
|
15360
|
+
};
|
15348
15361
|
|
15349
15362
|
const createHelperVars = (theme, prefix) => {
|
15350
15363
|
const res = transformTheme(theme, [], (path, value) => {
|
@@ -16257,7 +16270,15 @@ const container = {
|
|
16257
16270
|
[compVars$5.itemsGrow]: '0',
|
16258
16271
|
[compVars$5.hostWidth]: '100%',
|
16259
16272
|
[compVars$5.boxShadow]: 'none',
|
16273
|
+
|
16260
16274
|
[compVars$5.backgroundColor]: globalRefs$t.colors.surface.main,
|
16275
|
+
|
16276
|
+
[compVars$5.backgroundImage]: '', // we need to set a value to avoid inner containers from inheriting the parent's background image
|
16277
|
+
[compVars$5.backgroundPositionX]: 'center',
|
16278
|
+
[compVars$5.backgroundPositionY]: 'center',
|
16279
|
+
[compVars$5.backgroundSize]: 'cover',
|
16280
|
+
[compVars$5.backgroundRepeat]: 'no-repeat',
|
16281
|
+
|
16261
16282
|
[compVars$5.color]: globalRefs$t.colors.surface.contrast,
|
16262
16283
|
[compVars$5.borderRadius]: '0px',
|
16263
16284
|
[compVars$5.hostDirection]: globalRefs$t.direction,
|