You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.3 KiB
1 line
3.3 KiB
{"ast":null,"code":"import classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormCheckInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n id,\n bsPrefix,\n className,\n type = 'checkbox',\n isValid = false,\n isInvalid = false,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'input',\n ...props\n } = _ref;\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-input');\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n type: type,\n id: id || controlId,\n className: classNames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')\n });\n});\nFormCheckInput.displayName = 'FormCheckInput';\nexport default FormCheckInput;","map":{"version":3,"names":["classNames","React","useContext","FormContext","useBootstrapPrefix","jsx","_jsx","FormCheckInput","forwardRef","ref","id","bsPrefix","className","type","isValid","isInvalid","as","Component","props","controlId","displayName"],"sources":["C:/Cours/SAE/SAE-3.01/Scripted/Scripted/website/node_modules/react-bootstrap/esm/FormCheckInput.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormCheckInput = /*#__PURE__*/React.forwardRef(({\n id,\n bsPrefix,\n className,\n type = 'checkbox',\n isValid = false,\n isInvalid = false,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'input',\n ...props\n}, ref) => {\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-input');\n return /*#__PURE__*/_jsx(Component, { ...props,\n ref: ref,\n type: type,\n id: id || controlId,\n className: classNames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')\n });\n});\nFormCheckInput.displayName = 'FormCheckInput';\nexport default FormCheckInput;"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,OAAO;AAClC,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,cAAc,GAAG,aAAaN,KAAK,CAACO,UAAU,CAAC,OAUlDC,GAAG,KAAK;EAAA,IAV2C;IACpDC,EAAE;IACFC,QAAQ;IACRC,SAAS;IACTC,IAAI,GAAG,UAAU;IACjBC,OAAO,GAAG,KAAK;IACfC,SAAS,GAAG,KAAK;IACjB;IACAC,EAAE,EAAEC,SAAS,GAAG,OAAO;IACvB,GAAGC;EACL,CAAC;EACC,MAAM;IACJC;EACF,CAAC,GAAGjB,UAAU,CAACC,WAAW,CAAC;EAC3BQ,QAAQ,GAAGP,kBAAkB,CAACO,QAAQ,EAAE,kBAAkB,CAAC;EAC3D,OAAO,aAAaL,IAAI,CAACW,SAAS,EAAE;IAAE,GAAGC,KAAK;IAC5CT,GAAG,EAAEA,GAAG;IACRI,IAAI,EAAEA,IAAI;IACVH,EAAE,EAAEA,EAAE,IAAIS,SAAS;IACnBP,SAAS,EAAEZ,UAAU,CAACY,SAAS,EAAED,QAAQ,EAAEG,OAAO,IAAI,UAAU,EAAEC,SAAS,IAAI,YAAY;EAC7F,CAAC,CAAC;AACJ,CAAC,CAAC;AACFR,cAAc,CAACa,WAAW,GAAG,gBAAgB;AAC7C,eAAeb,cAAc"},"metadata":{},"sourceType":"module"} |