PageSourceSearch

https://discuss.systems/packs/toggle_field-BH1KQwCE.js

js discuss.systems collected 2026-10-02 18:46:47 UTC 1,023 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{t as n}from"./jsx-runtime-BdxMnOeJ.js";import{t as r}from"./classnames-CfLRLWYq.js";import{t as i}from"./form_field_wrapper-B00MNsQd.js";var a=e(t()),o=e(r()),s={wrapper:`_comp_form_fields_toggle__wrapper`,input:`_comp_form_fields_toggle__input`,toggle:`_comp_form_fields_toggle__toggle`},c=n(),l=(0,a.forwardRef)(({id:e,label:t,hint:n,status:r,required:a,wrapperClassName:o,...s},l)=>(0,c.jsx)(i,{label:t,hint:n,required:a,status:r,inputId:e,inputPlacement:`inline-end`,className:o,children:e=>(0,c.jsx)(u,{...s,...e,ref:l})}));l.displayName=`ToggleField`;var u=(0,a.forwardRef)(({className:e,size:t,...n},r)=>(0,c.jsxs)(`span`,{className:s.wrapper,style:{"--diameter":t?`${t}px`:void 0},children:[(0,c.jsx)(`input`,{...n,type:`checkbox`,className:s.input,ref:r}),(0,c.jsx)(`span`,{className:(0,o.default)(s.toggle,e),hidden:!0})]}));u.displayName=`Toggle`;export{l as n,u as t};
2//# sourceMappingURL=toggle_field-BH1KQwCE.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.