@descope/web-components-ui 1.0.398 → 1.0.400
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 +27 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +27 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/4619.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-container-index-js.js +1 -1
- package/package.json +2 -2
- package/src/components/descope-container/ContainerClass.js +6 -0
- package/src/helpers/themeHelpers/index.js +8 -1
- package/src/mixins/externalInputMixin.js +5 -1
- package/src/theme/components/container.js +10 -2
package/dist/index.esm.js
CHANGED
@@ -1550,13 +1550,17 @@ const externalInputMixin =
|
|
1550
1550
|
}
|
1551
1551
|
|
1552
1552
|
createExternalInput() {
|
1553
|
-
if (!this.isExternalInput) {
|
1553
|
+
if (!this.isExternalInput || this.isReadOnly || this.isDisabled) {
|
1554
1554
|
return null;
|
1555
1555
|
}
|
1556
1556
|
|
1557
1557
|
// use original input element as reference
|
1558
1558
|
const origInput = this.baseElement.querySelector('input');
|
1559
1559
|
|
1560
|
+
if (!origInput) {
|
1561
|
+
return null;
|
1562
|
+
}
|
1563
|
+
|
1560
1564
|
// to avoid focus loop between external-input and origInput
|
1561
1565
|
// we set origInput's tabindex to -1
|
1562
1566
|
// otherwise, shift-tab will never leave the component focus
|
@@ -2716,6 +2720,12 @@ const ContainerClass = compose(
|
|
2716
2720
|
flexWrap: {},
|
2717
2721
|
|
2718
2722
|
backgroundColor: {},
|
2723
|
+
backgroundImage: {},
|
2724
|
+
backgroundPositionX: {},
|
2725
|
+
backgroundPositionY: {},
|
2726
|
+
backgroundSize: {},
|
2727
|
+
backgroundRepeat: {},
|
2728
|
+
|
2719
2729
|
color: {},
|
2720
2730
|
borderRadius: {},
|
2721
2731
|
|
@@ -15340,7 +15350,14 @@ const themeToStyle = ({ globals, components }, themeName) => ({
|
|
15340
15350
|
components: createComponentsTheme(components),
|
15341
15351
|
});
|
15342
15352
|
|
15343
|
-
|
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
|
+
};
|
15344
15361
|
|
15345
15362
|
const createHelperVars = (theme, prefix) => {
|
15346
15363
|
const res = transformTheme(theme, [], (path, value) => {
|
@@ -16253,7 +16270,15 @@ const container = {
|
|
16253
16270
|
[compVars$5.itemsGrow]: '0',
|
16254
16271
|
[compVars$5.hostWidth]: '100%',
|
16255
16272
|
[compVars$5.boxShadow]: 'none',
|
16273
|
+
|
16256
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
|
+
|
16257
16282
|
[compVars$5.color]: globalRefs$t.colors.surface.contrast,
|
16258
16283
|
[compVars$5.borderRadius]: '0px',
|
16259
16284
|
[compVars$5.hostDirection]: globalRefs$t.direction,
|