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