@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 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(-50%, -50%);
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,halfWidth:a,icon:i,id:s,maxLength:l,name:c,onBlur:u,onChange:d,placeholder:p,prefix:h,suffix:f}=t,m=Bo(t,["button","colorInput","halfWidth","icon","id","maxLength","name","onBlur","onChange","placeholder","prefix","suffix"]),g=e.useRef(null);e.useEffect((()=>{null!==n&&("function"==typeof n?n(g.current):n.current=g.current)}),[n]),e.useEffect((()=>{if(null===g.current)throw new Error("InputBase unexpected error: localRef.current is null")}),[]);const b=e.useRef(null),[v,y]=e.useState(void 0);return e.useEffect((()=>{var e;y(null===(e=b.current)||void 0===e?void 0:e.offsetWidth)}),[f]),e.createElement(Md,{halfWidth:a},void 0!==i&&e.createElement(Ld,null,i),void 0!==h&&""!==h&&e.createElement(Nd,null,h),e.createElement(Ad,Object.assign({button:r,colorInput:o,halfWidth:a,icon:i,id:s,maxLength:l,name:c,placeholder:p,prefix:h,ref:g,suffix:f,suffixWidth:v,onBlur:u,onChange:d},m)),void 0!==f&&""!==f&&e.createElement(Pd,{ref:b},f),void 0!==r&&e.createElement(_d,null,r))})),Rd=t.label`
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;