@momentum-design/components 0.133.7 → 0.133.9
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 +26 -26
- package/dist/browser/index.js.map +2 -2
- package/dist/components/button/button.styles.js +24 -24
- package/dist/components/formfieldgroup/formfieldgroup.component.js +8 -1
- package/dist/components/radiogroup/radiogroup.component.d.ts +1 -0
- package/dist/components/radiogroup/radiogroup.component.js +7 -1
- package/dist/custom-elements.json +2 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -272,11 +272,11 @@
|
|
|
272
272
|
--mdc-button-text-color: var(--mds-color-theme-common-text-primary-normal);
|
|
273
273
|
--mdc-button-background: var(--mds-color-theme-button-accent-normal);
|
|
274
274
|
}
|
|
275
|
-
:host([color='accent'][variant='primary']:hover) {
|
|
275
|
+
:host([color='accent'][variant='primary']:hover:not([disabled]):not([soft-disabled])) {
|
|
276
276
|
--mdc-button-background: var(--mds-color-theme-button-accent-hover);
|
|
277
277
|
}
|
|
278
|
-
:host([color='accent'][variant='primary']:active),
|
|
279
|
-
:host([color='accent'][variant='primary'].pressed) {
|
|
278
|
+
:host([color='accent'][variant='primary']:active:not([disabled]):not([soft-disabled])),
|
|
279
|
+
:host([color='accent'][variant='primary'].pressed:not([disabled]):not([soft-disabled])) {
|
|
280
280
|
--mdc-button-background: var(--mds-color-theme-button-accent-pressed);
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -284,11 +284,11 @@
|
|
|
284
284
|
--mdc-button-text-color: var(--mds-color-theme-text-accent-normal);
|
|
285
285
|
--mdc-button-border-color: var(--mds-color-theme-outline-theme-normal);
|
|
286
286
|
}
|
|
287
|
-
:host([color='accent'][variant='secondary']:hover) {
|
|
287
|
+
:host([color='accent'][variant='secondary']:hover:not([disabled]):not([soft-disabled])) {
|
|
288
288
|
--mdc-button-background: var(--mds-color-theme-button-secondary-hover);
|
|
289
289
|
}
|
|
290
|
-
:host([color='accent'][variant='secondary']:active),
|
|
291
|
-
:host([color='accent'][variant='secondary'].pressed) {
|
|
290
|
+
:host([color='accent'][variant='secondary']:active:not([disabled]):not([soft-disabled])),
|
|
291
|
+
:host([color='accent'][variant='secondary'].pressed:not([disabled]):not([soft-disabled])) {
|
|
292
292
|
--mdc-button-background: var(--mds-color-theme-button-secondary-pressed);
|
|
293
293
|
}
|
|
294
294
|
|
|
@@ -296,11 +296,11 @@
|
|
|
296
296
|
--mdc-button-text-color: var(--mds-color-theme-common-text-primary-normal);
|
|
297
297
|
--mdc-button-background: var(--mds-color-theme-button-join-normal);
|
|
298
298
|
}
|
|
299
|
-
:host([color='positive'][variant='primary']:hover) {
|
|
299
|
+
:host([color='positive'][variant='primary']:hover:not([disabled]):not([soft-disabled])) {
|
|
300
300
|
--mdc-button-background: var(--mds-color-theme-button-join-hover);
|
|
301
301
|
}
|
|
302
|
-
:host([color='positive'][variant='primary']:active),
|
|
303
|
-
:host([color='positive'][variant='primary'].pressed) {
|
|
302
|
+
:host([color='positive'][variant='primary']:active:not([disabled]):not([soft-disabled])),
|
|
303
|
+
:host([color='positive'][variant='primary'].pressed:not([disabled]):not([soft-disabled])) {
|
|
304
304
|
--mdc-button-background: var(--mds-color-theme-button-join-pressed);
|
|
305
305
|
}
|
|
306
306
|
|
|
@@ -308,11 +308,11 @@
|
|
|
308
308
|
--mdc-button-text-color: var(--mds-color-theme-text-success-normal);
|
|
309
309
|
--mdc-button-border-color: var(--mds-color-theme-outline-join-normal);
|
|
310
310
|
}
|
|
311
|
-
:host([color='positive'][variant='secondary']:hover) {
|
|
311
|
+
:host([color='positive'][variant='secondary']:hover:not([disabled]):not([soft-disabled])) {
|
|
312
312
|
--mdc-button-background: var(--mds-color-theme-button-secondary-hover);
|
|
313
313
|
}
|
|
314
|
-
:host([color='positive'][variant='secondary']:active),
|
|
315
|
-
:host([color='positive'][variant='secondary'].pressed) {
|
|
314
|
+
:host([color='positive'][variant='secondary']:active:not([disabled]):not([soft-disabled])),
|
|
315
|
+
:host([color='positive'][variant='secondary'].pressed:not([disabled]):not([soft-disabled])) {
|
|
316
316
|
--mdc-button-background: var(--mds-color-theme-button-secondary-pressed);
|
|
317
317
|
}
|
|
318
318
|
|
|
@@ -320,11 +320,11 @@
|
|
|
320
320
|
--mdc-button-text-color: var(--mds-color-theme-common-text-primary-normal);
|
|
321
321
|
--mdc-button-background: var(--mds-color-theme-button-cancel-normal);
|
|
322
322
|
}
|
|
323
|
-
:host([color='negative'][variant='primary']:hover) {
|
|
323
|
+
:host([color='negative'][variant='primary']:hover:not([disabled]):not([soft-disabled])) {
|
|
324
324
|
--mdc-button-background: var(--mds-color-theme-button-cancel-hover);
|
|
325
325
|
}
|
|
326
|
-
:host([color='negative'][variant='primary']:active),
|
|
327
|
-
:host([color='negative'][variant='primary'].pressed) {
|
|
326
|
+
:host([color='negative'][variant='primary']:active:not([disabled]):not([soft-disabled])),
|
|
327
|
+
:host([color='negative'][variant='primary'].pressed:not([disabled]):not([soft-disabled])) {
|
|
328
328
|
--mdc-button-background: var(--mds-color-theme-button-cancel-pressed);
|
|
329
329
|
}
|
|
330
330
|
|
|
@@ -332,11 +332,11 @@
|
|
|
332
332
|
--mdc-button-text-color: var(--mds-color-theme-text-error-normal);
|
|
333
333
|
--mdc-button-border-color: var(--mds-color-theme-outline-cancel-normal);
|
|
334
334
|
}
|
|
335
|
-
:host([color='negative'][variant='secondary']:hover) {
|
|
335
|
+
:host([color='negative'][variant='secondary']:hover:not([disabled]):not([soft-disabled])) {
|
|
336
336
|
--mdc-button-background: var(--mds-color-theme-button-secondary-hover);
|
|
337
337
|
}
|
|
338
|
-
:host([color='negative'][variant='secondary']:active),
|
|
339
|
-
:host([color='negative'][variant='secondary'].pressed) {
|
|
338
|
+
:host([color='negative'][variant='secondary']:active:not([disabled]):not([soft-disabled])),
|
|
339
|
+
:host([color='negative'][variant='secondary'].pressed:not([disabled]):not([soft-disabled])) {
|
|
340
340
|
--mdc-button-background: var(--mds-color-theme-button-secondary-pressed);
|
|
341
341
|
}
|
|
342
342
|
|
|
@@ -344,11 +344,11 @@
|
|
|
344
344
|
--mdc-button-text-color: var(--mds-color-theme-common-text-primary-normal);
|
|
345
345
|
--mdc-button-background: var(--mds-color-theme-common-button-promotion-normal);
|
|
346
346
|
}
|
|
347
|
-
:host([color='promotional'][variant='primary']:hover) {
|
|
347
|
+
:host([color='promotional'][variant='primary']:hover:not([disabled]):not([soft-disabled])) {
|
|
348
348
|
--mdc-button-background: var(--mds-color-theme-common-button-promotion-hover);
|
|
349
349
|
}
|
|
350
|
-
:host([color='promotional'][variant='primary']:active),
|
|
351
|
-
:host([color='promotional'][variant='primary'].pressed) {
|
|
350
|
+
:host([color='promotional'][variant='primary']:active:not([disabled]):not([soft-disabled])),
|
|
351
|
+
:host([color='promotional'][variant='primary'].pressed:not([disabled]):not([soft-disabled])) {
|
|
352
352
|
--mdc-button-background: var(--mds-color-theme-common-button-promotion-active);
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -356,11 +356,11 @@
|
|
|
356
356
|
--mdc-button-text-color: var(--mds-color-theme-text-primary-normal);
|
|
357
357
|
--mdc-button-border-color: var(--mds-color-theme-outline-promotion-normal);
|
|
358
358
|
}
|
|
359
|
-
:host([color='promotional'][variant='secondary']:hover) {
|
|
359
|
+
:host([color='promotional'][variant='secondary']:hover:not([disabled]):not([soft-disabled])) {
|
|
360
360
|
--mdc-button-background: var(--mds-color-theme-button-secondary-hover);
|
|
361
361
|
}
|
|
362
|
-
:host([color='promotional'][variant='secondary']:active),
|
|
363
|
-
:host([color='promotional'][variant='secondary'].pressed) {
|
|
362
|
+
:host([color='promotional'][variant='secondary']:active:not([disabled]):not([soft-disabled])),
|
|
363
|
+
:host([color='promotional'][variant='secondary'].pressed:not([disabled]):not([soft-disabled])) {
|
|
364
364
|
--mdc-button-background: var(--mds-color-theme-button-secondary-pressed);
|
|
365
365
|
}
|
|
366
366
|
|
|
@@ -3943,7 +3943,7 @@
|
|
|
3943
3943
|
flex-direction: column;
|
|
3944
3944
|
gap: 0.25rem;
|
|
3945
3945
|
}
|
|
3946
|
-
`,ob=[v0];var Vd=class extends Zt{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?tt.RADIOGROUP:tt.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.
|
|
3946
|
+
`,ob=[v0];var Vd=class extends Zt{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?tt.RADIOGROUP:tt.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return S`
|
|
3947
3947
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
|
3948
3948
|
<slot></slot>
|
|
3949
3949
|
`}};Vd.styles=[...Zt.styles,...ob];var vp=Vd;var sb=z.constructTagName("formfieldgroup");vp.register(sb);var zd=vp;qa.register(Ll);var g0=qa;sn.register(Jl);var b0=sn;var hs=Ii(class extends ri{constructor(n){if(super(n),n.type!==ur.PROPERTY&&n.type!==ur.ATTRIBUTE&&n.type!==ur.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!$l(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[i]){if(i===Re||i===K)return i;let t=n.element,e=n.name;if(n.type===ur.PROPERTY){if(i===t[e])return Re}else if(n.type===ur.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return Re}else if(n.type===ur.ATTRIBUTE&&t.getAttribute(e)===i+"")return Re;return Vl(n),i}});Zt.register($v);var sr=Zt;var ab=z.constructTagName("input"),Bd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},aa={OFF:"off",ON:"on"},fo={PASSWORD:"password",TEXT:"text",SEARCH:"search"},nb={MAX_LENGTH:10,VALIDATION:Wt.ERROR},Di={VALIDATION:Wt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:$t.TERTIARY,CLEAR_BUTTON_SIZE:Ar[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:aa.OFF,INPUT_TYPE:fo.TEXT};var y0=[B`
|
|
@@ -5663,7 +5663,7 @@
|
|
|
5663
5663
|
<div part="label-text">
|
|
5664
5664
|
<slot name="label">${this.renderLabelElement()}</slot>
|
|
5665
5665
|
</div>
|
|
5666
|
-
`}};Bn.styles=[...Zt.styles,...ey],h([u({type:Boolean,reflect:!0})],Bn.prototype,"checked",2);var Wp=Bn;var ic=z.constructTagName("radio");Wp.register(ic);var mS=Wp;var uS=new RegExp(`^(${ic}|${hd})$`,"i"),Un=class extends zd{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t;Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]).flatMap(e=>e.assignedElements({flatten:!0})).filter(e=>uS.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};Un.styles=[...zd.styles],h([u({type:String})],Un.prototype,"name",2);var Yp=Un;var ry=z.constructTagName("radiogroup");Yp.register(ry);var fS=Yp;var vS=B`
|
|
5666
|
+
`}};Bn.styles=[...Zt.styles,...ey],h([u({type:Boolean,reflect:!0})],Bn.prototype,"checked",2);var Wp=Bn;var ic=z.constructTagName("radio");Wp.register(ic);var mS=Wp;var uS=new RegExp(`^(${ic}|${hd})$`,"i"),Un=class extends zd{constructor(){super();this.name="";this.isRadio=!0}connectedCallback(){super.connectedCallback(),this.toggletipPlacement=void 0,this.toggletipStrategy=void 0}firstUpdated(){var t;Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]).flatMap(e=>e.assignedElements({flatten:!0})).filter(e=>uS.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};Un.styles=[...zd.styles],h([u({type:String,reflect:!0})],Un.prototype,"name",2);var Yp=Un;var ry=z.constructTagName("radiogroup");Yp.register(ry);var fS=Yp;var vS=B`
|
|
5667
5667
|
:host::part(filters-container) {
|
|
5668
5668
|
display: flex;
|
|
5669
5669
|
gap: 0.25rem;
|