@descope/web-components-ui 1.119.0 → 1.121.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/index.esm.js CHANGED
@@ -8592,7 +8592,9 @@ const customMixin$c = (superclass) =>
8592
8592
 
8593
8593
  this.inputElement = this.shadowRoot.querySelector(componentName$_);
8594
8594
 
8595
- forwardAttrs$1(this, this.inputElement, { includeAttrs: ['digits', 'size', 'loading'] });
8595
+ forwardAttrs$1(this, this.inputElement, {
8596
+ includeAttrs: ['digits', 'size', 'loading', 'disabled'],
8597
+ });
8596
8598
  }
8597
8599
 
8598
8600
  attributeChangedCallback(attrName, oldValue, newValue) {
@@ -16102,20 +16104,19 @@ class RawUserAttribute extends createBaseClass$1({
16102
16104
 
16103
16105
  this.attachShadow({ mode: 'open' }).innerHTML = `
16104
16106
  <div class="root">
16105
- <div class="text-wrapper">
16106
- <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
16107
+ <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
16108
+ <div class="content-wrapper">
16107
16109
  <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>
16110
+ <div class="btn-wrapper">
16111
+ <descope-badge mode="default" bordered="true" size="xs"></descope-badge>
16112
+ <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
16113
+ <vaadin-icon src=${editIcon}></vaadin-icon>
16114
+ </descope-button>
16115
+ <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
16116
+ <vaadin-icon src=${deleteIcon}></vaadin-icon>
16117
+ </descope-button>
16118
+ </div>
16108
16119
  </div>
16109
-
16110
- <div class="btn-wrapper">
16111
- <descope-badge mode="default" bordered="true" size="xs"></descope-badge>
16112
- <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
16113
- <vaadin-icon src=${editIcon}></vaadin-icon>
16114
- </descope-button>
16115
- <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
16116
- <vaadin-icon src=${deleteIcon}></vaadin-icon>
16117
- </descope-button>
16118
- </div
16119
16120
  </div>
16120
16121
  `;
16121
16122
 
@@ -16123,6 +16124,7 @@ class RawUserAttribute extends createBaseClass$1({
16123
16124
  `
16124
16125
  :host {
16125
16126
  display: inline-flex;
16127
+ container-type: inline-size;
16126
16128
  }
16127
16129
 
16128
16130
  vaadin-icon {
@@ -16136,6 +16138,12 @@ class RawUserAttribute extends createBaseClass$1({
16136
16138
  align-items: center;
16137
16139
  }
16138
16140
 
16141
+ @container (max-width: 529px) {
16142
+ .root {
16143
+ flex-wrap: wrap;
16144
+ }
16145
+ }
16146
+
16139
16147
  .btn-wrapper {
16140
16148
  display: flex;
16141
16149
  justify-content: space-between;
@@ -16143,10 +16151,10 @@ class RawUserAttribute extends createBaseClass$1({
16143
16151
  flex-grow: 0;
16144
16152
  }
16145
16153
 
16146
- .text-wrapper {
16154
+ .content-wrapper {
16147
16155
  display: flex;
16148
- align-items: center;
16149
16156
  flex-grow: 1;
16157
+ align-items: center;
16150
16158
  }
16151
16159
 
16152
16160
  descope-text::part(text-wrapper) {
@@ -16158,10 +16166,13 @@ class RawUserAttribute extends createBaseClass$1({
16158
16166
 
16159
16167
  descope-text {
16160
16168
  display: inline-flex;
16169
+ max-width: 100%;
16170
+ min-width: 0;
16161
16171
  }
16162
16172
 
16163
16173
  .label {
16164
- flex-grow: 0;
16174
+ flex-grow: 1;
16175
+ width: 100%;
16165
16176
  }
16166
16177
 
16167
16178
  .value {
@@ -16307,14 +16318,13 @@ class RawUserAttribute extends createBaseClass$1({
16307
16318
  }
16308
16319
  }
16309
16320
 
16310
- const { host: host$a, textFields, buttons: buttons$1, badge: badge$3, labelText, valueText, textWrapper: textWrapper$1 } = {
16321
+ const { host: host$a, textFields, buttons: buttons$1, badge: badge$3, labelText, contentWrapper } = {
16311
16322
  host: { selector: () => ':host' },
16312
16323
  textFields: { selector: 'descope-text' },
16313
- valueText: { selector: 'descope-text[data-id="value-text"]' },
16314
16324
  labelText: { selector: 'descope-text[data-id="label-text"]' },
16315
16325
  buttons: { selector: 'descope-button' },
16316
16326
  badge: { selector: 'descope-badge' },
16317
- textWrapper: { selector: ' .text-wrapper' },
16327
+ contentWrapper: { selector: ' .content-wrapper' },
16318
16328
  };
16319
16329
 
16320
16330
  const UserAttributeClass = compose$1(
@@ -16322,16 +16332,17 @@ const UserAttributeClass = compose$1(
16322
16332
  mappings: {
16323
16333
  hostWidth: { ...host$a, property: 'width' },
16324
16334
  hostMinWidth: { ...host$a, property: 'min-width' },
16335
+ hostMaxWidth: { ...host$a, property: 'max-width' },
16325
16336
  hostDirection: [
16326
16337
  { ...host$a, property: 'direction' },
16327
16338
  { ...textFields, property: TextClass.cssVarList.hostDirection },
16328
16339
  { ...buttons$1, property: ButtonClass.cssVarList.hostDirection },
16329
16340
  { ...badge$3, property: BadgeClass.cssVarList.hostDirection },
16330
16341
  ],
16331
- labelTextWidth: { ...labelText, property: 'width' },
16332
- valueTextWidth: { ...valueText, property: 'width' },
16342
+ labelMinWidth: { ...labelText, property: 'min-width' },
16343
+ contentMinWidth: { ...contentWrapper, property: 'min-width' },
16333
16344
  badgeMaxWidth: { ...badge$3, property: 'max-width' },
16334
- itemsGap: [{ property: 'gap' }, { ...textWrapper$1, property: 'gap' }],
16345
+ itemsGap: [{ property: 'gap' }, { ...contentWrapper, property: 'gap' }],
16335
16346
  },
16336
16347
  }),
16337
16348
  draggableMixin$1,
@@ -16400,6 +16411,7 @@ class RawUserAuthMethod extends createBaseClass$1({
16400
16411
  display: flex;
16401
16412
  align-items: center;
16402
16413
  flex-grow: 1;
16414
+ min-width: 0;
16403
16415
  }
16404
16416
 
16405
16417
  descope-text::part(text-wrapper) {
@@ -16411,6 +16423,7 @@ class RawUserAuthMethod extends createBaseClass$1({
16411
16423
 
16412
16424
  descope-text {
16413
16425
  display: inline-flex;
16426
+ min-width: 0;
16414
16427
  }
16415
16428
 
16416
16429
  .status-indicator {
@@ -16574,13 +16587,13 @@ const UserAuthMethodClass = compose$1(
16574
16587
  mappings: {
16575
16588
  hostWidth: { ...host$9, property: 'width' },
16576
16589
  hostMinWidth: { ...host$9, property: 'min-width' },
16590
+ hostMaxWidth: { ...host$9, property: 'max-width' },
16577
16591
  hostDirection: [
16578
16592
  { ...host$9, property: 'direction' },
16579
16593
  { ...textField$2, property: TextClass.cssVarList.hostDirection },
16580
16594
  { ...buttons, property: ButtonClass.cssVarList.hostDirection },
16581
16595
  { ...badge$2, property: BadgeClass.cssVarList.hostDirection },
16582
16596
  ],
16583
- labelTextWidth: { ...textField$2, property: 'width' },
16584
16597
  itemsGap: [{ property: 'gap' }, { ...textWrapper, property: 'gap' }],
16585
16598
  iconSize: [
16586
16599
  { ...methodIconSlot, property: 'width' },
@@ -21677,12 +21690,15 @@ const globalRefs$i = getThemeRefs(globals$1);
21677
21690
  const vars$t = UserAttributeClass.cssVarList;
21678
21691
 
21679
21692
  const userAttribute = {
21693
+ [vars$t.labelMinWidth]: '150px',
21680
21694
  [vars$t.hostDirection]: globalRefs$i.direction,
21681
- [vars$t.labelTextWidth]: '150px',
21682
- [vars$t.valueTextWidth]: '200px',
21695
+ [vars$t.contentMinWidth]: `calc(100% - ${useVar(vars$t.labelMinWidth)})`,
21683
21696
  [vars$t.badgeMaxWidth]: '85px',
21684
- [vars$t.itemsGap]: '16px',
21685
- [vars$t.hostMinWidth]: '530px',
21697
+ [vars$t.itemsGap]: '4px',
21698
+ [vars$t.hostMinWidth]: '310px',
21699
+ [vars$t.hostWidth]: '530px',
21700
+ [vars$t.hostMaxWidth]: '100%',
21701
+
21686
21702
  _fullWidth: {
21687
21703
  [vars$t.hostWidth]: '100%',
21688
21704
  },
@@ -21699,9 +21715,10 @@ const vars$s = UserAuthMethodClass.cssVarList;
21699
21715
 
21700
21716
  const userAuthMethod = {
21701
21717
  [vars$s.hostDirection]: globalRefs$h.direction,
21702
- [vars$s.labelTextWidth]: '200px',
21703
21718
  [vars$s.itemsGap]: '16px',
21704
- [vars$s.hostMinWidth]: '530px',
21719
+ [vars$s.hostMinWidth]: '310px',
21720
+ [vars$s.hostWidth]: '530px',
21721
+ [vars$s.hostMaxWidth]: '100%',
21705
21722
  [vars$s.iconSize]: '24px',
21706
21723
  [vars$s.iconColor]: 'currentcolor',
21707
21724
  _fullWidth: {