@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.
- package/dist/browser/index.js +25 -18
- package/dist/browser/index.js.map +2 -2
- package/dist/components/listitem/listitem.component.d.ts +7 -1
- package/dist/components/listitem/listitem.component.js +22 -14
- package/dist/components/listitem/listitem.styles.js +10 -5
- package/dist/custom-elements.json +777 -557
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +3 -3
- package/dist/react/listitem/index.d.ts +7 -1
- package/dist/react/listitem/index.js +7 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -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-
|
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
|
-
|
3493
|
-
|
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-
|
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
|
-
<
|
3586
|
-
|
3587
|
-
|
3588
|
-
|
3589
|
-
|
3590
|
-
|
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
|
-
|
3593
|
-
|
3594
|
-
|
3595
|
-
|
3596
|
-
|
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
|
-
|
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;
|