@mmb-digital/design-system-web 0.1.56 → 0.1.57
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/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -923,9 +923,8 @@
|
|
|
923
923
|
@media (min-width: ${({theme:e})=>e.breakpoints.lg}) {
|
|
924
924
|
top: 50%;
|
|
925
925
|
bottom: auto;
|
|
926
|
-
left: 50%;
|
|
927
926
|
margin: 0 auto;
|
|
928
|
-
transform: translate(
|
|
927
|
+
transform: translate(0, -50%);
|
|
929
928
|
|
|
930
929
|
${({widthType:e})=>{switch(e){case exports.ModalWidthType.DEFAULT:return t.css`
|
|
931
930
|
max-width: 60rem;
|
|
@@ -1363,6 +1362,7 @@ function fc(e,t,n){return t=Sc(t),function(e,t){if(t&&("object"==typeof t||"func
|
|
|
1363
1362
|
height: 100%;
|
|
1364
1363
|
margin-left: 16px;
|
|
1365
1364
|
${Dd};
|
|
1365
|
+
color: ${({$chooseColor:e,$prefixColor:t,theme:n})=>void 0===t?e(n.colors.fg.neutral.default):t};
|
|
1366
1366
|
`,_d=t.div`
|
|
1367
1367
|
position: absolute;
|
|
1368
1368
|
top: 0;
|
|
@@ -1389,7 +1389,7 @@ function fc(e,t,n){return t=Sc(t),function(e,t){if(t&&("object"==typeof t||"func
|
|
|
1389
1389
|
::placeholder {
|
|
1390
1390
|
color: ${({theme:e})=>e.palette.grey700};
|
|
1391
1391
|
}
|
|
1392
|
-
`,Od=e.forwardRef((function(t,n){const{button:r,colorInput:o,
|
|
1392
|
+
`,Od=e.forwardRef((function(t,n){const{button:r,colorInput:o,colorScheme:a=exports.ColorScheme.light,halfWidth:i,icon:s,id:l,maxLength:c,name:u,onBlur:d,onChange:p,placeholder:h,prefix:f,prefixColor:m,suffix:g}=t,b=Bo(t,["button","colorInput","colorScheme","halfWidth","icon","id","maxLength","name","onBlur","onChange","placeholder","prefix","prefixColor","suffix"]),v=H(a),y=e.useRef(null);e.useEffect((()=>{null!==n&&("function"==typeof n?n(y.current):n.current=y.current)}),[n]),e.useEffect((()=>{if(null===y.current)throw new Error("InputBase unexpected error: localRef.current is null")}),[]);const x=e.useRef(null),[k,w]=e.useState(void 0);return e.useEffect((()=>{var e;w(null===(e=x.current)||void 0===e?void 0:e.offsetWidth)}),[g]),e.createElement(Md,{halfWidth:i},void 0!==s&&e.createElement(Ld,null,s),void 0!==f&&""!==f&&e.createElement(Nd,{$chooseColor:v,$prefixColor:m},f),e.createElement(Ad,Object.assign({button:r,colorInput:o,halfWidth:i,icon:s,id:l,maxLength:c,name:u,placeholder:h,prefix:f,ref:y,suffix:g,suffixWidth:k,onBlur:d,onChange:p},b)),void 0!==g&&""!==g&&e.createElement(Pd,{ref:x},g),void 0!==r&&e.createElement(_d,null,r))})),Rd=t.label`
|
|
1393
1393
|
display: flex;
|
|
1394
1394
|
gap: ${({theme:e})=>e.spacing.xxs};
|
|
1395
1395
|
align-items: center;
|