@descope/web-components-ui 1.0.399 → 1.0.401
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 +25 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +25 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/descope-button-index-js.js +1 -1
- package/dist/umd/descope-container-index-js.js +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/package.json +2 -2
- package/src/components/descope-button/ButtonClass.js +1 -1
- package/src/components/descope-container/ContainerClass.js +6 -0
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +2 -0
- package/src/helpers/themeHelpers/index.js +8 -1
- package/src/theme/components/container.js +10 -2
- package/src/theme/components/userAuthMethod.js +1 -0
package/dist/index.esm.js
CHANGED
@@ -1918,7 +1918,7 @@ const ButtonClass = compose(
|
|
1918
1918
|
|
1919
1919
|
labelTextColor: { property: 'color' },
|
1920
1920
|
iconColor: {
|
1921
|
-
selector: () => `::slotted(
|
1921
|
+
selector: () => `::slotted(*)`,
|
1922
1922
|
property: IconClass.cssVarList.fill,
|
1923
1923
|
},
|
1924
1924
|
labelTextDecoration: { ...label$a, property: 'text-decoration' },
|
@@ -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
|
|
@@ -13645,6 +13651,7 @@ const UserAuthMethodClass = compose(
|
|
13645
13651
|
{ ...methodIconSlot, property: 'width' },
|
13646
13652
|
{ ...methodIconSlot, property: 'height' },
|
13647
13653
|
],
|
13654
|
+
iconColor: [{ selector: () => '::slotted(*)', property: IconClass.cssVarList.fill }],
|
13648
13655
|
},
|
13649
13656
|
}),
|
13650
13657
|
draggableMixin,
|
@@ -15344,7 +15351,14 @@ const themeToStyle = ({ globals, components }, themeName) => ({
|
|
15344
15351
|
components: createComponentsTheme(components),
|
15345
15352
|
});
|
15346
15353
|
|
15347
|
-
|
15354
|
+
// allows to generate css variables with nested fallbacks
|
15355
|
+
const useVar = (...varNames) => {
|
15356
|
+
return varNames.reduceRight((acc, value) => {
|
15357
|
+
if (value.startsWith('--')) return `var(${value}${acc ? `, ${acc}` : acc})`;
|
15358
|
+
|
15359
|
+
return `${value}${acc ? `, ${acc}` : acc}`;
|
15360
|
+
}, '');
|
15361
|
+
};
|
15348
15362
|
|
15349
15363
|
const createHelperVars = (theme, prefix) => {
|
15350
15364
|
const res = transformTheme(theme, [], (path, value) => {
|
@@ -16257,7 +16271,15 @@ const container = {
|
|
16257
16271
|
[compVars$5.itemsGrow]: '0',
|
16258
16272
|
[compVars$5.hostWidth]: '100%',
|
16259
16273
|
[compVars$5.boxShadow]: 'none',
|
16274
|
+
|
16260
16275
|
[compVars$5.backgroundColor]: globalRefs$t.colors.surface.main,
|
16276
|
+
|
16277
|
+
[compVars$5.backgroundImage]: '', // we need to set a value to avoid inner containers from inheriting the parent's background image
|
16278
|
+
[compVars$5.backgroundPositionX]: 'center',
|
16279
|
+
[compVars$5.backgroundPositionY]: 'center',
|
16280
|
+
[compVars$5.backgroundSize]: 'cover',
|
16281
|
+
[compVars$5.backgroundRepeat]: 'no-repeat',
|
16282
|
+
|
16261
16283
|
[compVars$5.color]: globalRefs$t.colors.surface.contrast,
|
16262
16284
|
[compVars$5.borderRadius]: '0px',
|
16263
16285
|
[compVars$5.hostDirection]: globalRefs$t.direction,
|
@@ -17452,6 +17474,7 @@ const userAuthMethod = {
|
|
17452
17474
|
[vars$g.itemsGap]: '16px',
|
17453
17475
|
[vars$g.hostMinWidth]: '530px',
|
17454
17476
|
[vars$g.iconSize]: '24px',
|
17477
|
+
[vars$g.iconColor]: 'currentcolor',
|
17455
17478
|
_fullWidth: {
|
17456
17479
|
[vars$g.hostWidth]: '100%',
|
17457
17480
|
},
|