@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.
@@ -14428,20 +14428,19 @@ class RawUserAttribute extends createBaseClass({
14428
14428
 
14429
14429
  this.attachShadow({ mode: 'open' }).innerHTML = `
14430
14430
  <div class="root">
14431
- <div class="text-wrapper">
14432
- <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
14431
+ <descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
14432
+ <div class="content-wrapper">
14433
14433
  <descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>
14434
+ <div class="btn-wrapper">
14435
+ <descope-badge mode="default" bordered="true" size="xs"></descope-badge>
14436
+ <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
14437
+ <vaadin-icon src=${editIcon}></vaadin-icon>
14438
+ </descope-button>
14439
+ <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
14440
+ <vaadin-icon src=${deleteIcon}></vaadin-icon>
14441
+ </descope-button>
14442
+ </div>
14434
14443
  </div>
14435
-
14436
- <div class="btn-wrapper">
14437
- <descope-badge mode="default" bordered="true" size="xs"></descope-badge>
14438
- <descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
14439
- <vaadin-icon src=${editIcon}></vaadin-icon>
14440
- </descope-button>
14441
- <descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
14442
- <vaadin-icon src=${deleteIcon}></vaadin-icon>
14443
- </descope-button>
14444
- </div
14445
14444
  </div>
14446
14445
  `;
14447
14446
 
@@ -14449,6 +14448,7 @@ class RawUserAttribute extends createBaseClass({
14449
14448
  `
14450
14449
  :host {
14451
14450
  display: inline-flex;
14451
+ container-type: inline-size;
14452
14452
  }
14453
14453
 
14454
14454
  vaadin-icon {
@@ -14462,6 +14462,12 @@ class RawUserAttribute extends createBaseClass({
14462
14462
  align-items: center;
14463
14463
  }
14464
14464
 
14465
+ @container (max-width: 529px) {
14466
+ .root {
14467
+ flex-wrap: wrap;
14468
+ }
14469
+ }
14470
+
14465
14471
  .btn-wrapper {
14466
14472
  display: flex;
14467
14473
  justify-content: space-between;
@@ -14469,10 +14475,10 @@ class RawUserAttribute extends createBaseClass({
14469
14475
  flex-grow: 0;
14470
14476
  }
14471
14477
 
14472
- .text-wrapper {
14478
+ .content-wrapper {
14473
14479
  display: flex;
14474
- align-items: center;
14475
14480
  flex-grow: 1;
14481
+ align-items: center;
14476
14482
  }
14477
14483
 
14478
14484
  descope-text::part(text-wrapper) {
@@ -14484,10 +14490,13 @@ class RawUserAttribute extends createBaseClass({
14484
14490
 
14485
14491
  descope-text {
14486
14492
  display: inline-flex;
14493
+ max-width: 100%;
14494
+ min-width: 0;
14487
14495
  }
14488
14496
 
14489
14497
  .label {
14490
- flex-grow: 0;
14498
+ flex-grow: 1;
14499
+ width: 100%;
14491
14500
  }
14492
14501
 
14493
14502
  .value {
@@ -14633,14 +14642,13 @@ class RawUserAttribute extends createBaseClass({
14633
14642
  }
14634
14643
  }
14635
14644
 
14636
- const { host: host$9, textFields, buttons: buttons$1, badge: badge$1, labelText, valueText, textWrapper: textWrapper$1 } = {
14645
+ const { host: host$9, textFields, buttons: buttons$1, badge: badge$1, labelText, contentWrapper } = {
14637
14646
  host: { selector: () => ':host' },
14638
14647
  textFields: { selector: 'descope-text' },
14639
- valueText: { selector: 'descope-text[data-id="value-text"]' },
14640
14648
  labelText: { selector: 'descope-text[data-id="label-text"]' },
14641
14649
  buttons: { selector: 'descope-button' },
14642
14650
  badge: { selector: 'descope-badge' },
14643
- textWrapper: { selector: ' .text-wrapper' },
14651
+ contentWrapper: { selector: ' .content-wrapper' },
14644
14652
  };
14645
14653
 
14646
14654
  const UserAttributeClass = compose$1(
@@ -14648,16 +14656,17 @@ const UserAttributeClass = compose$1(
14648
14656
  mappings: {
14649
14657
  hostWidth: { ...host$9, property: 'width' },
14650
14658
  hostMinWidth: { ...host$9, property: 'min-width' },
14659
+ hostMaxWidth: { ...host$9, property: 'max-width' },
14651
14660
  hostDirection: [
14652
14661
  { ...host$9, property: 'direction' },
14653
14662
  { ...textFields, property: TextClass.cssVarList.hostDirection },
14654
14663
  { ...buttons$1, property: ButtonClass.cssVarList.hostDirection },
14655
14664
  { ...badge$1, property: BadgeClass.cssVarList.hostDirection },
14656
14665
  ],
14657
- labelTextWidth: { ...labelText, property: 'width' },
14658
- valueTextWidth: { ...valueText, property: 'width' },
14666
+ labelMinWidth: { ...labelText, property: 'min-width' },
14667
+ contentMinWidth: { ...contentWrapper, property: 'min-width' },
14659
14668
  badgeMaxWidth: { ...badge$1, property: 'max-width' },
14660
- itemsGap: [{ property: 'gap' }, { ...textWrapper$1, property: 'gap' }],
14669
+ itemsGap: [{ property: 'gap' }, { ...contentWrapper, property: 'gap' }],
14661
14670
  },
14662
14671
  }),
14663
14672
  draggableMixin,
@@ -14668,12 +14677,15 @@ const globalRefs$i = getThemeRefs(globals$1);
14668
14677
  const vars$t = UserAttributeClass.cssVarList;
14669
14678
 
14670
14679
  const userAttribute = {
14680
+ [vars$t.labelMinWidth]: '150px',
14671
14681
  [vars$t.hostDirection]: globalRefs$i.direction,
14672
- [vars$t.labelTextWidth]: '150px',
14673
- [vars$t.valueTextWidth]: '200px',
14682
+ [vars$t.contentMinWidth]: `calc(100% - ${useVar(vars$t.labelMinWidth)})`,
14674
14683
  [vars$t.badgeMaxWidth]: '85px',
14675
- [vars$t.itemsGap]: '16px',
14676
- [vars$t.hostMinWidth]: '530px',
14684
+ [vars$t.itemsGap]: '4px',
14685
+ [vars$t.hostMinWidth]: '310px',
14686
+ [vars$t.hostWidth]: '530px',
14687
+ [vars$t.hostMaxWidth]: '100%',
14688
+
14677
14689
  _fullWidth: {
14678
14690
  [vars$t.hostWidth]: '100%',
14679
14691
  },
@@ -14745,6 +14757,7 @@ class RawUserAuthMethod extends createBaseClass({
14745
14757
  display: flex;
14746
14758
  align-items: center;
14747
14759
  flex-grow: 1;
14760
+ min-width: 0;
14748
14761
  }
14749
14762
 
14750
14763
  descope-text::part(text-wrapper) {
@@ -14756,6 +14769,7 @@ class RawUserAuthMethod extends createBaseClass({
14756
14769
 
14757
14770
  descope-text {
14758
14771
  display: inline-flex;
14772
+ min-width: 0;
14759
14773
  }
14760
14774
 
14761
14775
  .status-indicator {
@@ -14919,13 +14933,13 @@ const UserAuthMethodClass = compose$1(
14919
14933
  mappings: {
14920
14934
  hostWidth: { ...host$8, property: 'width' },
14921
14935
  hostMinWidth: { ...host$8, property: 'min-width' },
14936
+ hostMaxWidth: { ...host$8, property: 'max-width' },
14922
14937
  hostDirection: [
14923
14938
  { ...host$8, property: 'direction' },
14924
14939
  { ...textField, property: TextClass.cssVarList.hostDirection },
14925
14940
  { ...buttons, property: ButtonClass.cssVarList.hostDirection },
14926
14941
  { ...badge, property: BadgeClass.cssVarList.hostDirection },
14927
14942
  ],
14928
- labelTextWidth: { ...textField, property: 'width' },
14929
14943
  itemsGap: [{ property: 'gap' }, { ...textWrapper, property: 'gap' }],
14930
14944
  iconSize: [
14931
14945
  { ...methodIconSlot, property: 'width' },
@@ -14943,9 +14957,10 @@ const vars$s = UserAuthMethodClass.cssVarList;
14943
14957
 
14944
14958
  const userAuthMethod = {
14945
14959
  [vars$s.hostDirection]: globalRefs$h.direction,
14946
- [vars$s.labelTextWidth]: '200px',
14947
14960
  [vars$s.itemsGap]: '16px',
14948
- [vars$s.hostMinWidth]: '530px',
14961
+ [vars$s.hostMinWidth]: '310px',
14962
+ [vars$s.hostWidth]: '530px',
14963
+ [vars$s.hostMaxWidth]: '100%',
14949
14964
  [vars$s.iconSize]: '24px',
14950
14965
  [vars$s.iconColor]: 'currentcolor',
14951
14966
  _fullWidth: {