kui-crm 0.0.256 → 0.0.257

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/cjs/index.js CHANGED
@@ -4531,8 +4531,10 @@ var BigCheckbox = React.forwardRef(function (props, ref) {
4531
4531
  return (jsxRuntime.jsx(StyledCheckbox, __assign({ isChecked: checked }, props, { ref: ref, label: jsxRuntime.jsx(kuiBasic.Caption, __assign({ size: "s", weight: 500 }, { children: label })) })));
4532
4532
  });
4533
4533
  var StyledCheckbox = styled__default["default"](kuiComplex.CheckboxWithController)(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n padding: 16px 12px;\n border-radius: 12px;\n background: white;\n width: 100%;\n border: 1px solid\n ", ";\n transition: all ease-out 0.3s;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n @media (hover: hover) {\n &:hover {\n border-color: ", ";\n }\n }\n"], ["\n padding: 16px 12px;\n border-radius: 12px;\n background: white;\n width: 100%;\n border: 1px solid\n ", ";\n transition: all ease-out 0.3s;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n @media (hover: hover) {\n &:hover {\n border-color: ", ";\n }\n }\n"])), function (_a) {
4534
- var isChecked = _a.isChecked;
4535
- return isChecked ? kuiBasic.theme.palette.brand.main : kuiBasic.theme.palette.grey.fifteenB;
4534
+ var isChecked = _a.isChecked, disabled = _a.disabled;
4535
+ return isChecked && !disabled
4536
+ ? kuiBasic.theme.palette.brand.main
4537
+ : kuiBasic.theme.palette.grey.fifteenB;
4536
4538
  }, function (_a) {
4537
4539
  var disabled = _a.disabled;
4538
4540
  return disabled ? kuiBasic.theme.palette.grey.fifteenB : kuiBasic.theme.palette.brand.main;