@anoki/fse-marche-ui
Version:
FSE UI components library
3 lines (2 loc) • 1.26 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/Checkbox/Checkbox.css');const e=require("./index.cjs137.js"),o=require("./index.cjs170.js"),l=require("./index.cjs9.js"),d=require("./index.cjs210.js");;/* empty css */const h=require("./index.cjs139.js"),j=({id:r,label:t,checked:i,onChange:x,classNameText:c="fs-6 fw-bold"})=>{var n;const a=()=>e.jsxRuntimeExports.jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsxRuntimeExports.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),s=new DOMParser().parseFromString(`${t}`,"text/html"),u=((n=s==null?void 0:s.body)==null?void 0:n.textContent)||"";return e.jsxRuntimeExports.jsxs(l.Row,{alignItems:"center",gap:"x16",children:[e.jsxRuntimeExports.jsx(o.Root,{id:r,checked:i,onCheckedChange:x,className:"ui-checkbox","aria-label":u,children:e.jsxRuntimeExports.jsx(o.Indicator,{children:e.jsxRuntimeExports.jsx(a,{})})}),t&&e.jsxRuntimeExports.jsx(d.default,{as:"label",htmlFor:r,className:h.clsx(c,"text-slate-20"),children:t})]})};exports.Checkbox=j;
//# sourceMappingURL=index.cjs48.js.map