@mmb-digital/design-system-web 0.1.73 → 0.1.75

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
@@ -1001,12 +1001,11 @@
1001
1001
  ${({theme:e})=>e.spacing.sm}
1002
1002
  `,Ao=t.div`
1003
1003
  position: relative;
1004
- z-index: 9;
1004
+ z-index: 10;
1005
1005
  display: block;
1006
- row-gap: ${({theme:e})=>e.spacing.xxs};
1007
1006
  max-width: 266px;
1008
1007
  padding: ${Do};
1009
- background-color: ${({chooseColor:e,theme:t})=>e(t.colors.surface.risen)};
1008
+ background-color: ${({chooseColor:e,theme:t})=>e(t.colors.surface.risen)}!important;
1010
1009
  border-radius: ${({theme:e})=>e.borderRadius.xs};
1011
1010
  box-shadow: ${({theme:e})=>e.shadow.box.md};
1012
1011
  `,Lo=t.div`
@@ -1059,7 +1058,6 @@
1059
1058
  border-radius: ${({theme:e})=>e.borderRadius.md};
1060
1059
 
1061
1060
  @media (min-width: ${({theme:e})=>e.breakpoints.sm}) {
1062
- min-width: 355px;
1063
1061
  padding: ${({theme:e})=>e.spacing.xl};
1064
1062
  }
1065
1063
  `,Na=t.div`
@@ -1432,7 +1430,7 @@ function Gu(e,t,n){return t=qu(t),function(e,t){if(t&&("object"==typeof t||"func
1432
1430
  ::placeholder {
1433
1431
  color: ${({theme:e})=>e.palette.grey700};
1434
1432
  }
1435
- `,ip=t=>{const n=e.useRef(null),[r,o]=e.useState(void 0),a=Boolean(t)||0===t,i=e.useCallback((()=>{n.current&&o(n.current.offsetWidth)}),[]),s=qo(i,500,{maxWait:500});return e.useLayoutEffect((()=>{a&&i()}),[a,i]),e.useEffect((()=>(a&&window.addEventListener("resize",s),()=>{a&&window.removeEventListener("resize",s)})),[a,s]),{width:r,wrapperRef:n}},sp=e.forwardRef(((t,n)=>{const{button:r,colorInput:o,colorScheme:a=exports.ColorScheme.light,halfWidth:i,icon:s,id:l,maxLength:u,name:c,onBlur:d,onChange:p,onFocus:h,placeholder:f,prefix:m,prefixColor:g,size:b,suffix:v,weight:y=exports.InputWeight.REGULAR_400}=t,x=Ht(t,["button","colorInput","colorScheme","halfWidth","icon","id","maxLength","name","onBlur","onChange","onFocus","placeholder","prefix","prefixColor","size","suffix","weight"]),k=H(a),w=Ur([n,e.useRef(null)]),{width:C,wrapperRef:E}=ip(m),{width:I,wrapperRef:S}=ip(v);return e.createElement(Qd,{$halfWidth:i,$size:b},void 0!==s&&e.createElement(np,null,s),void 0!==m&&""!==m&&e.createElement(rp,{$chooseColor:k,$prefixColor:g,ref:E},m),e.createElement(tp,Object.assign({button:r,colorInput:o,halfWidth:i,icon:s,id:l,maxLength:u,name:c,placeholder:f,prefixWidth:C,ref:w,size:b,suffixWidth:I,weight:y,onBlur:d,onChange:p,onFocus:h},x)),void 0!==v&&""!==v&&e.createElement(ap,{ref:S},v),void 0!==r&&e.createElement(op,null,r))}));sp.displayName="InputBase";const lp=t.label`
1433
+ `,ip=(t,n)=>{const r=e.useRef(null),[o,a]=e.useState(void 0),i=Boolean(t)||0===t,s=e.useCallback((()=>{r.current&&a(r.current.offsetWidth)}),[]),l=qo(s,500,{maxWait:500});return e.useLayoutEffect((()=>{i&&s()}),[i,s]),e.useEffect((()=>{var e;return null===(e=n.current)||void 0===e||e.addEventListener("focus",s),()=>{var e;null===(e=n.current)||void 0===e||e.removeEventListener("focus",s)}}),[n,s]),e.useEffect((()=>(i&&window.addEventListener("resize",l),()=>{i&&window.removeEventListener("resize",l)})),[i,l]),{width:o,wrapperRef:r}},sp=e.forwardRef(((t,n)=>{const{button:r,colorInput:o,colorScheme:a=exports.ColorScheme.light,halfWidth:i,icon:s,id:l,maxLength:u,name:c,onBlur:d,onChange:p,onFocus:h,placeholder:f,prefix:m,prefixColor:g,size:b,suffix:v,weight:y=exports.InputWeight.REGULAR_400}=t,x=Ht(t,["button","colorInput","colorScheme","halfWidth","icon","id","maxLength","name","onBlur","onChange","onFocus","placeholder","prefix","prefixColor","size","suffix","weight"]),k=H(a),w=e.useRef(null),C=Ur([n,w]),{width:E,wrapperRef:I}=ip(m,w),{width:S,wrapperRef:T}=ip(v,w);return e.createElement(Qd,{$halfWidth:i,$size:b},void 0!==s&&e.createElement(np,null,s),void 0!==m&&""!==m&&e.createElement(rp,{$chooseColor:k,$prefixColor:g,ref:I},m),e.createElement(tp,Object.assign({button:r,colorInput:o,halfWidth:i,icon:s,id:l,maxLength:u,name:c,placeholder:f,prefixWidth:E,ref:C,size:b,suffixWidth:S,weight:y,onBlur:d,onChange:p,onFocus:h},x)),void 0!==v&&""!==v&&e.createElement(ap,{ref:T},v),void 0!==r&&e.createElement(op,null,r))}));sp.displayName="InputBase";const lp=t.label`
1436
1434
  display: flex;
1437
1435
  gap: ${({theme:e})=>e.spacing.xxs};
1438
1436
  align-items: center;
@@ -1865,8 +1863,8 @@ function Gu(e,t,n){return t=qu(t),function(e,t){if(t&&("object"==typeof t||"func
1865
1863
  min-height: 124px;
1866
1864
  padding: ${({theme:e})=>e.spacing.sm};
1867
1865
  font-family: Inter, sans-serif;
1868
- font-size: ${({theme:e})=>e.font.size.body.sm};
1869
- line-height: ${({theme:e})=>e.font.lineHeight.body.sm};
1866
+ font-size: ${({theme:e})=>e.font.size.body.md};
1867
+ line-height: ${({theme:e})=>e.font.lineHeight.body.md};
1870
1868
  letter-spacing: ${({theme:e})=>e.font.letterSpacing.body.sm};
1871
1869
  resize: vertical;
1872
1870
  background: ${({theme:e})=>e.palette.white};