1 line
3.4 KiB
JSON
1 line
3.4 KiB
JSON
{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport CascaderContext from \"../context\";\nexport default function Checkbox(_ref) {\n var prefixCls = _ref.prefixCls,\n checked = _ref.checked,\n halfChecked = _ref.halfChecked,\n disabled = _ref.disabled,\n onClick = _ref.onClick,\n disableCheckbox = _ref.disableCheckbox;\n var _React$useContext = React.useContext(CascaderContext),\n checkable = _React$useContext.checkable;\n var customCheckbox = typeof checkable !== 'boolean' ? checkable : null;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(\"\".concat(prefixCls), _defineProperty(_defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-checked\"), checked), \"\".concat(prefixCls, \"-indeterminate\"), !checked && halfChecked), \"\".concat(prefixCls, \"-disabled\"), disabled || disableCheckbox)),\n onClick: onClick\n }, customCheckbox);\n}","map":{"version":3,"names":["_defineProperty","React","classNames","CascaderContext","Checkbox","_ref","prefixCls","checked","halfChecked","disabled","onClick","disableCheckbox","_React$useContext","useContext","checkable","customCheckbox","createElement","className","concat"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/rc-cascader/es/OptionList/Checkbox.js"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport CascaderContext from \"../context\";\nexport default function Checkbox(_ref) {\n var prefixCls = _ref.prefixCls,\n checked = _ref.checked,\n halfChecked = _ref.halfChecked,\n disabled = _ref.disabled,\n onClick = _ref.onClick,\n disableCheckbox = _ref.disableCheckbox;\n var _React$useContext = React.useContext(CascaderContext),\n checkable = _React$useContext.checkable;\n var customCheckbox = typeof checkable !== 'boolean' ? checkable : null;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(\"\".concat(prefixCls), _defineProperty(_defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-checked\"), checked), \"\".concat(prefixCls, \"-indeterminate\"), !checked && halfChecked), \"\".concat(prefixCls, \"-disabled\"), disabled || disableCheckbox)),\n onClick: onClick\n }, customCheckbox);\n}"],"mappings":"AAAA,OAAOA,eAAe,MAAM,2CAA2C;AACvE,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,eAAe,MAAM,YAAY;AACxC,eAAe,SAASC,QAAQA,CAACC,IAAI,EAAE;EACrC,IAAIC,SAAS,GAAGD,IAAI,CAACC,SAAS;IAC5BC,OAAO,GAAGF,IAAI,CAACE,OAAO;IACtBC,WAAW,GAAGH,IAAI,CAACG,WAAW;IAC9BC,QAAQ,GAAGJ,IAAI,CAACI,QAAQ;IACxBC,OAAO,GAAGL,IAAI,CAACK,OAAO;IACtBC,eAAe,GAAGN,IAAI,CAACM,eAAe;EACxC,IAAIC,iBAAiB,GAAGX,KAAK,CAACY,UAAU,CAACV,eAAe,CAAC;IACvDW,SAAS,GAAGF,iBAAiB,CAACE,SAAS;EACzC,IAAIC,cAAc,GAAG,OAAOD,SAAS,KAAK,SAAS,GAAGA,SAAS,GAAG,IAAI;EACtE,OAAO,aAAab,KAAK,CAACe,aAAa,CAAC,MAAM,EAAE;IAC9CC,SAAS,EAAEf,UAAU,CAAC,EAAE,CAACgB,MAAM,CAACZ,SAAS,CAAC,EAAEN,eAAe,CAACA,eAAe,CAACA,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,CAACkB,MAAM,CAACZ,SAAS,EAAE,UAAU,CAAC,EAAEC,OAAO,CAAC,EAAE,EAAE,CAACW,MAAM,CAACZ,SAAS,EAAE,gBAAgB,CAAC,EAAE,CAACC,OAAO,IAAIC,WAAW,CAAC,EAAE,EAAE,CAACU,MAAM,CAACZ,SAAS,EAAE,WAAW,CAAC,EAAEG,QAAQ,IAAIE,eAAe,CAAC,CAAC;IAC9QD,OAAO,EAAEA;EACX,CAAC,EAAEK,cAAc,CAAC;AACpB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |