@momentum-design/components 0.129.37 → 0.129.38
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 +5 -6
- package/dist/browser/index.js.map +2 -2
- package/dist/components/bullet/bullet.component.d.ts +16 -6
- package/dist/components/bullet/bullet.component.js +16 -6
- package/dist/components/bullet/bullet.styles.js +5 -6
- package/dist/components/divider/divider.component.d.ts +50 -55
- package/dist/components/divider/divider.component.js +50 -55
- package/dist/components/marker/marker.component.d.ts +20 -15
- package/dist/components/marker/marker.component.js +20 -15
- package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +22 -11
- package/dist/components/staticcheckbox/staticcheckbox.component.js +22 -11
- package/dist/components/staticradio/staticradio.component.d.ts +21 -11
- package/dist/components/staticradio/staticradio.component.js +21 -11
- package/dist/components/statictoggle/statictoggle.component.d.ts +25 -12
- package/dist/components/statictoggle/statictoggle.component.js +25 -12
- package/dist/custom-elements.json +73 -75
- package/dist/react/bullet/index.d.ts +16 -6
- package/dist/react/bullet/index.js +16 -6
- package/dist/react/divider/index.d.ts +33 -38
- package/dist/react/divider/index.js +33 -38
- package/dist/react/marker/index.d.ts +17 -12
- package/dist/react/marker/index.js +17 -12
- package/dist/react/staticcheckbox/index.d.ts +22 -11
- package/dist/react/staticcheckbox/index.js +22 -11
- package/dist/react/staticradio/index.d.ts +21 -11
- package/dist/react/staticradio/index.js +21 -11
- package/dist/react/statictoggle/index.d.ts +25 -12
- package/dist/react/statictoggle/index.js +25 -12
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1797,23 +1797,22 @@
|
|
|
1797
1797
|
`,tf=[VE];var Io=class extends q{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let o=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(o),Promise.reject(o)}updated(o){super.updated(o),o.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),o.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(o,t,r){let m=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return m&&Object.entries(r).forEach(([b,x])=>{m.setAttribute(b,x)}),m||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([r,s])=>{o.setAttribute(r,s)}),o}handleBrandVisualLoadedSuccess(o){this.brandVisualData=this.injectTemplateAttributes(o,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(o){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:o}});this.dispatchEvent(t)}render(){return _` ${this.brandVisualData} `}};Io.styles=[...q.styles,...tf],p([ut()],Io.prototype,"brandVisualData",2),p([u({type:String,reflect:!0})],Io.prototype,"name",2),p([u({type:String,reflect:!0,attribute:"alt-text"})],Io.prototype,"altText",2);var Dc=Io;var ef=z.constructTagName("brandvisual");Dc.register(ef);var BE=Dc;var UE=U`
|
|
1798
1798
|
:host {
|
|
1799
1799
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
1800
|
-
--mdc-bullet-size
|
|
1801
|
-
--mdc-bullet-size-medium: 0.5rem;
|
|
1802
|
-
--mdc-bullet-size-large: 1rem;
|
|
1800
|
+
--mdc-bullet-size: 0.25rem;
|
|
1803
1801
|
|
|
1804
1802
|
border-radius: 50%;
|
|
1805
1803
|
display: block;
|
|
1806
1804
|
aspect-ratio: 1;
|
|
1805
|
+
height: var(--mdc-bullet-size);
|
|
1807
1806
|
background-color: var(--mdc-bullet-background-color);
|
|
1808
1807
|
}
|
|
1809
1808
|
:host([size='small']) {
|
|
1810
|
-
|
|
1809
|
+
--mdc-bullet-size: 0.25rem;
|
|
1811
1810
|
}
|
|
1812
1811
|
:host([size='medium']) {
|
|
1813
|
-
|
|
1812
|
+
--mdc-bullet-size: 0.5rem;
|
|
1814
1813
|
}
|
|
1815
1814
|
:host([size='large']) {
|
|
1816
|
-
|
|
1815
|
+
--mdc-bullet-size: 1rem;
|
|
1817
1816
|
}
|
|
1818
1817
|
`,rf=[UE];var of=z.constructTagName("bullet"),sf={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Ma=class extends q{constructor(){super(...arguments);this.size=sf.SMALL}};Ma.styles=[...q.styles,...rf],p([u({type:String,reflect:!0})],Ma.prototype,"size",2);var Fc=Ma;Fc.register(of);var HE=Fc;var af=z.constructTagName("buttongroup"),GE={40:40,32:32,28:28,24:24},YE={HORIZONTAL:"horizontal",VERTICAL:"vertical"},WE={PRIMARY:"primary",SECONDARY:"secondary"},kl={SIZE:GE[28],VARIANT:WE.PRIMARY,ORIENTATION:YE.HORIZONTAL};var jE=U`
|
|
1819
1818
|
:host {
|