@descope/web-components-ui 3.23.2 → 3.24.0
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 +32 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +150 -120
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +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-multi-selection-group-index-js.js.map +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-index-js.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -1
- package/dist/umd/descope-recovery-codes.js +1 -1
- package/dist/umd/descope-recovery-codes.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +43 -43
- package/src/components/button-selection-group-fields/baseButtonSelectionGroup.js +7 -0
- package/src/components/button-selection-group-fields/descope-button-selection-group-item/ButtonSelectionGroupItemClass.js +1 -0
- package/src/theme/components/buttonSelectionGroup/baseButtonSelectionGroup.js +11 -0
- package/src/theme/components/buttonSelectionGroup/buttonSelectionGroupItem.js +1 -0
- package/stories/descope-button-multi-selection-group.stories.js +7 -0
- package/stories/descope-button-selection-group.stories.js +7 -0
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -9716,7 +9716,7 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
|
9716
9716
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
|
9717
9717
|
<div class="wrapper">
|
|
9718
9718
|
<div class="codes-box">
|
|
9719
|
-
<div class="list"></div>
|
|
9719
|
+
<div class="list"><div class="codes-list"></div></div>
|
|
9720
9720
|
<descope-text class="icon-wrapper">
|
|
9721
9721
|
<div class="icons">
|
|
9722
9722
|
<vaadin-icon class="icon copy-icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>
|
|
@@ -9756,6 +9756,17 @@ class RawRecoveryCodes extends createBaseClass$1({
|
|
|
9756
9756
|
display: flex;
|
|
9757
9757
|
flex-grow: 1;
|
|
9758
9758
|
flex-direction: column;
|
|
9759
|
+
/* text-align maps to align-items here, so it positions the codes block
|
|
9760
|
+
(start/center/end) inside the available space, not each row */
|
|
9761
|
+
}
|
|
9762
|
+
.codes-list {
|
|
9763
|
+
display: flex;
|
|
9764
|
+
flex-direction: column;
|
|
9765
|
+
/* rows always start-aligned so the bullets line up in any font.
|
|
9766
|
+
width:fit-content hugs the codes so .list can position the whole
|
|
9767
|
+
block (keep it, it also defeats the stretch fallback) */
|
|
9768
|
+
align-items: flex-start;
|
|
9769
|
+
width: fit-content;
|
|
9759
9770
|
}
|
|
9760
9771
|
descope-text span {
|
|
9761
9772
|
display: inline-flex;
|
|
@@ -10099,7 +10110,7 @@ const RecoveryCodesClass = compose(
|
|
|
10099
10110
|
createDynamicDataMixin$1({
|
|
10100
10111
|
itemRenderer: itemRenderer$5,
|
|
10101
10112
|
rerenderAttrsList: ['variant', 'mode'],
|
|
10102
|
-
targetSelector: '.list',
|
|
10113
|
+
targetSelector: '.codes-list',
|
|
10103
10114
|
}),
|
|
10104
10115
|
draggableMixin$1,
|
|
10105
10116
|
componentNameValidationMixin$1,
|
|
@@ -24989,6 +25000,7 @@ const ButtonSelectionGroupItemClass = compose$1(
|
|
|
24989
25000
|
selector: () => ButtonClass.componentName,
|
|
24990
25001
|
property: ButtonClass.cssVarList.hostDirection,
|
|
24991
25002
|
},
|
|
25003
|
+
hostWidth: { selector: () => ButtonClass.componentName, property: 'width' },
|
|
24992
25004
|
backgroundColor: {
|
|
24993
25005
|
selector: () => ButtonClass.componentName,
|
|
24994
25006
|
property: ButtonClass.cssVarList.backgroundColor,
|
|
@@ -25029,6 +25041,7 @@ const vars$n = ButtonSelectionGroupItemClass.cssVarList;
|
|
|
25029
25041
|
|
|
25030
25042
|
const buttonSelectionGroupItem = {
|
|
25031
25043
|
[vars$n.hostDirection]: 'inherit',
|
|
25044
|
+
[vars$n.hostWidth]: 'auto',
|
|
25032
25045
|
[vars$n.backgroundColor]: globalRefs$f.colors.surface.main,
|
|
25033
25046
|
[vars$n.labelTextColor]: globalRefs$f.colors.surface.contrast,
|
|
25034
25047
|
[vars$n.borderColor]: globalRefs$f.colors.surface.light,
|
|
@@ -25326,6 +25339,12 @@ const buttonSelectionGroupMappings = {
|
|
|
25326
25339
|
errorMessageIconPosition: { ...errorMessage$2, property: 'background-position' },
|
|
25327
25340
|
errorMessageFontSize: { ...errorMessage$2, property: 'font-size' },
|
|
25328
25341
|
itemsSpacing: { ...internalWrapper, property: 'gap' },
|
|
25342
|
+
itemsDirection: { ...internalWrapper, property: 'flex-direction' },
|
|
25343
|
+
itemsAlignment: { ...internalWrapper, property: 'align-items' },
|
|
25344
|
+
itemsWidth: {
|
|
25345
|
+
selector: () => `::slotted(${ButtonSelectionGroupItemClass.componentName})`,
|
|
25346
|
+
property: ButtonSelectionGroupItemClass.cssVarList.hostWidth,
|
|
25347
|
+
},
|
|
25329
25348
|
};
|
|
25330
25349
|
|
|
25331
25350
|
const buttonSelectionGroupStyles = `
|
|
@@ -25467,6 +25486,17 @@ const createBaseButtonSelectionGroupMappings = (vars) => ({
|
|
|
25467
25486
|
[vars.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
|
25468
25487
|
[vars.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
|
25469
25488
|
[vars.errorMessageFontSize]: refs.errorMessageFontSize,
|
|
25489
|
+
|
|
25490
|
+
layout: {
|
|
25491
|
+
vertical: {
|
|
25492
|
+
[vars.itemsDirection]: 'column',
|
|
25493
|
+
[vars.itemsAlignment]: 'flex-start',
|
|
25494
|
+
_fullWidth: {
|
|
25495
|
+
[vars.itemsAlignment]: 'stretch',
|
|
25496
|
+
[vars.itemsWidth]: '100%',
|
|
25497
|
+
},
|
|
25498
|
+
},
|
|
25499
|
+
},
|
|
25470
25500
|
});
|
|
25471
25501
|
|
|
25472
25502
|
const vars$m = ButtonSelectionGroupClass.cssVarList;
|