forstok-ui-lib 6.4.1 → 6.4.2

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.mjs CHANGED
@@ -228,16 +228,7 @@ import*as e from"react";import t,{useState as n,useEffect as r,forwardRef as i,u
228
228
  }
229
229
  }
230
230
  ${rt}
231
- `;const st=e=>{var{id:t,name:i,children:o,$flow:s,extendKey:l,extendClass:c,reset:d,setReset:u,isForceUpdate:p,setForceUpdate:h,evChange:g,$isError:m,$iconRight:f}=e,x=w(e,["id","name","children","$flow","extendKey","extendClass","reset","setReset","isForceUpdate","setForceUpdate","evChange","$isError","$iconRight"]);const{disabled:y,defaultChecked:v}=x,[b,C]=n(v||!1),k=a(null);r((()=>{p&&(C(v||!1),h&&h(!1)),d&&(C(!1),u&&u(!1))}),[d,u,p,h,v]);return delete Object.assign({},x).defaultChecked,M.jsxs(ot,{$flow:s,$iconRight:f,ref:k,htmlFor:t,disabled:y||!1,children:[o,M.jsx(et,Object.assign({id:t,type:"checkbox",checked:b,name:i,evChange:e=>{C(e.target.checked),g&&g(e)}},c&&{className:c},""!==l&&{"data-key":l},x)),M.jsx(at,Object.assign({$isError:m},x["data-qa-id"]&&{"data-qa-id":x["data-qa-id"]}))]})};y`
232
- width: 32px;
233
- height: 32px;
234
- align-items: center;
235
- display: grid;
236
- background-color: #000;
237
- `,y`
238
- display: inline-grid;
239
- width: 100%;
240
- `;const lt=x.aside`
231
+ `;const st=e=>{var{id:t,name:i,children:o,$flow:s,extendKey:l,extendClass:c,reset:d,setReset:u,isForceUpdate:p,setForceUpdate:h,evChange:g,$isError:m,$iconRight:f}=e,x=w(e,["id","name","children","$flow","extendKey","extendClass","reset","setReset","isForceUpdate","setForceUpdate","evChange","$isError","$iconRight"]);const{disabled:y,defaultChecked:v}=x,[b,C]=n(v||!1),k=a(null);r((()=>{p&&(C(v||!1),h&&h(!1)),d&&(C(!1),u&&u(!1))}),[d,u,p,h,v]);return delete Object.assign({},x).defaultChecked,M.jsxs(ot,{$flow:s,$iconRight:f,ref:k,htmlFor:t,disabled:y||!1,children:[o,M.jsx(et,Object.assign({id:t,type:"checkbox",checked:b,name:i,evChange:e=>{C(e.target.checked),g&&g(e)}},c&&{className:c},""!==l&&{"data-key":l},x)),M.jsx(at,Object.assign({$isError:m},x["data-qa-id"]&&{"data-qa-id":x["data-qa-id"]}))]})},lt=x.aside`
241
232
  display: grid;
242
233
  grid-auto-flow: column;
243
234
  grid-gap: 8px;