@momentum-design/components 0.102.0 → 0.102.2

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.
@@ -3481,16 +3481,21 @@
3481
3481
  --mdc-listitem-secondary-label-color: var(--mds-color-theme-text-secondary-normal);
3482
3482
  --mdc-listitem-disabled-color: var(--mds-color-theme-text-primary-disabled);
3483
3483
  --mdc-listitem-column-gap: 0.75rem;
3484
- --mdc-listitem-padding-left-and-right: 0.75rem;
3484
+ --mdc-listitem-padding-left-right: 0.75rem;
3485
+ --mdc-listitem-padding-top-bottom: 0.5rem;
3486
+ --mdc-listitem-cursor: pointer;
3487
+ --mdc-listitem-width: 100%;
3488
+ --mdc-listitem-height: auto;
3485
3489
  }
3486
3490
  :host {
3487
3491
  background-color: var(--mdc-listitem-default-background-color);
3488
3492
  column-gap: var(--mdc-listitem-column-gap);
3489
- cursor: pointer;
3490
3493
  display: flex;
3491
3494
  flex-direction: row;
3492
- padding: 0.5rem var(--mdc-listitem-padding-left-and-right);
3493
- width: 100%;
3495
+ cursor: var(--mdc-listitem-cursor);
3496
+ padding: var(--mdc-listitem-padding-top-bottom) var(--mdc-listitem-padding-left-right);
3497
+ width: var(--mdc-listitem-width);
3498
+ height: var(--mdc-listitem-height);
3494
3499
  }
3495
3500
  :host([variant='inset-rectangle']) {
3496
3501
  border-radius: 0.5rem;
@@ -3501,7 +3506,7 @@
3501
3506
  :host::part(leading-text) {
3502
3507
  flex: 1;
3503
3508
  /** 2x of column gap on both ends of the listitem - 100% width */
3504
- width: calc(100% - (2 * var(--mdc-listitem-padding-left-and-right)));
3509
+ width: calc(100% - (2 * var(--mdc-listitem-padding-left-right)));
3505
3510
  }
3506
3511
  :host::part(leading-text-primary-label),
3507
3512
  :host::part(leading-text-secondary-label),
@@ -3582,21 +3587,23 @@
3582
3587
  @keyup=${this.stopEventPropagation}
3583
3588
  @keydown=${this.stopEventPropagation}
3584
3589
  ></slot>`}stopEventPropagation(t){(t instanceof KeyboardEvent&&(t.key===J.ENTER||t.key===J.SPACE)||t instanceof MouseEvent)&&t.stopPropagation()}render(){return C`
3585
- <div part="leading">
3586
- ${this.renderLeadingControls()}
3587
- <div part="leading-text">
3588
- ${this.getText("leading-text-primary-label",ot.BODY_MIDSIZE_REGULAR,this.label)}
3589
- ${this.getText("leading-text-secondary-label",ot.BODY_SMALL_REGULAR,this.secondaryLabel)}
3590
- ${this.getText("leading-text-tertiary-label",ot.BODY_SMALL_REGULAR,this.tertiaryLabel)}
3590
+ <slot name="content">
3591
+ <div part="leading">
3592
+ ${this.renderLeadingControls()}
3593
+ <div part="leading-text">
3594
+ ${this.getText("leading-text-primary-label",ot.BODY_MIDSIZE_REGULAR,this.label)}
3595
+ ${this.getText("leading-text-secondary-label",ot.BODY_SMALL_REGULAR,this.secondaryLabel)}
3596
+ ${this.getText("leading-text-tertiary-label",ot.BODY_SMALL_REGULAR,this.tertiaryLabel)}
3597
+ </div>
3591
3598
  </div>
3592
- </div>
3593
- <div part="trailing">
3594
- <div part="trailing-text">
3595
- ${this.getText("trailing-text-side-header",ot.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
3596
- ${this.getText("trailing-text-subline",ot.BODY_SMALL_REGULAR,this.sublineText)}
3599
+ <div part="trailing">
3600
+ <div part="trailing-text">
3601
+ ${this.getText("trailing-text-side-header",ot.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
3602
+ ${this.getText("trailing-text-subline",ot.BODY_SMALL_REGULAR,this.sublineText)}
3603
+ </div>
3604
+ ${this.renderTrailingControls()}
3597
3605
  </div>
3598
- ${this.renderTrailingControls()}
3599
- </div>
3606
+ </slot>
3600
3607
  `}};xe.styles=[...j.styles,...Zu],p([Nt({slot:"leading-controls"})],xe.prototype,"leadingControlsSlot",2),p([Nt({slot:"trailing-controls"})],xe.prototype,"trailingControlsSlot",2),p([g({type:String,reflect:!0})],xe.prototype,"variant",2),p([g({type:String,reflect:!0})],xe.prototype,"label",2),p([g({type:String,reflect:!0,attribute:"secondary-label"})],xe.prototype,"secondaryLabel",2),p([g({type:String,reflect:!0,attribute:"tertiary-label"})],xe.prototype,"tertiaryLabel",2),p([g({type:String,reflect:!0,attribute:"side-header-text"})],xe.prototype,"sideHeaderText",2),p([g({type:String,reflect:!0,attribute:"subline-text"})],xe.prototype,"sublineText",2),p([g({type:Boolean,reflect:!0,attribute:"soft-disabled"})],xe.prototype,"softDisabled",2),p([g({type:String,reflect:!0,attribute:"tooltip-text"})],xe.prototype,"tooltipText",2),p([g({type:String,reflect:!0,attribute:"tooltip-placement"})],xe.prototype,"tooltipPlacement",2);var ii=xe;ii.register(pl);var TE=ii;var xE=H`
3601
3608
  :host {
3602
3609
  --mdc-marker-width: 0.25rem;