@momentum-design/components 0.129.37 → 0.129.39
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 -7
- 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/dialog/dialog.styles.js +7 -1
- 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
|
@@ -1096,7 +1096,13 @@
|
|
|
1096
1096
|
position: absolute;
|
|
1097
1097
|
right: 50%;
|
|
1098
1098
|
bottom: 50%;
|
|
1099
|
-
transform: translateX(
|
|
1099
|
+
transform: translateX(50%) translateY(50%);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
@supports (transform: translateX(round(to-zero, 1px, 1px))) {
|
|
1103
|
+
:host {
|
|
1104
|
+
transform: translateX(round(to-zero, 50%, 1px)) translateY(round(to-zero, 50%, 1px));
|
|
1105
|
+
}
|
|
1100
1106
|
}
|
|
1101
1107
|
|
|
1102
1108
|
:host > [part='body']:first-of-type {
|
|
@@ -1797,23 +1803,22 @@
|
|
|
1797
1803
|
`,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
1804
|
:host {
|
|
1799
1805
|
--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;
|
|
1806
|
+
--mdc-bullet-size: 0.25rem;
|
|
1803
1807
|
|
|
1804
1808
|
border-radius: 50%;
|
|
1805
1809
|
display: block;
|
|
1806
1810
|
aspect-ratio: 1;
|
|
1811
|
+
height: var(--mdc-bullet-size);
|
|
1807
1812
|
background-color: var(--mdc-bullet-background-color);
|
|
1808
1813
|
}
|
|
1809
1814
|
:host([size='small']) {
|
|
1810
|
-
|
|
1815
|
+
--mdc-bullet-size: 0.25rem;
|
|
1811
1816
|
}
|
|
1812
1817
|
:host([size='medium']) {
|
|
1813
|
-
|
|
1818
|
+
--mdc-bullet-size: 0.5rem;
|
|
1814
1819
|
}
|
|
1815
1820
|
:host([size='large']) {
|
|
1816
|
-
|
|
1821
|
+
--mdc-bullet-size: 1rem;
|
|
1817
1822
|
}
|
|
1818
1823
|
`,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
1824
|
:host {
|