@momentum-design/components 0.120.33 → 0.120.34
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 +12 -2
- package/dist/browser/index.js.map +2 -2
- package/dist/components/avatar/avatar.styles.js +1 -0
- package/dist/components/inputchip/inputchip.component.d.ts +6 -3
- package/dist/components/inputchip/inputchip.component.js +14 -7
- package/dist/components/inputchip/inputchip.styles.js +5 -0
- package/dist/custom-elements.json +730 -724
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/inputchip/index.d.ts +3 -0
- package/dist/react/inputchip/index.js +3 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1417,6 +1417,7 @@
|
|
|
1417
1417
|
position: relative;
|
|
1418
1418
|
display: grid;
|
|
1419
1419
|
place-items: center;
|
|
1420
|
+
flex-shrink: 0;
|
|
1420
1421
|
}
|
|
1421
1422
|
:host::part(photo) {
|
|
1422
1423
|
border-radius: 100vh;
|
|
@@ -3554,8 +3555,17 @@
|
|
|
3554
3555
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3555
3556
|
cursor: auto;
|
|
3556
3557
|
}
|
|
3557
|
-
|
|
3558
|
-
|
|
3558
|
+
|
|
3559
|
+
::slotted(mdc-avatar[slot='prefix']){
|
|
3560
|
+
width: 1.25rem;
|
|
3561
|
+
height: 1.25rem;
|
|
3562
|
+
}
|
|
3563
|
+
`,tv=[bt,VT];var jl=z.constructTagName("inputchip"),ql={TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var Lo=class extends Kt(Vt(q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return _`
|
|
3564
|
+
<slot name="prefix">
|
|
3565
|
+
${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:j}
|
|
3566
|
+
</slot>
|
|
3567
|
+
`}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return _`
|
|
3568
|
+
${this.renderPrefix()}
|
|
3559
3569
|
${this.label?_`<mdc-text part="label" type="${ql.TEXT_TYPE}" tagname="${ql.TAG_NAME}"
|
|
3560
3570
|
>${this.label}</mdc-text
|
|
3561
3571
|
>`:j}
|