{"version":3,"file":"CheckboxStyles.mjs","sources":["../../../packages/checkbox/CheckboxStyles.tsx"],"sourcesContent":["import styled from '../utils/styled-components-wrapper.js'\nimport { Check } from '../icons/index.js'\n\nexport const CheckboxWrapperStyle = styled.label`\n  flex-shrink: 0;\n  display: inline-flex;\n  position: relative;\n  overflow: hidden;\n  line-height: 0;\n  align-items: center;\n`\n\nexport const CheckboxIconStyle = styled(Check)`\n  height: 24px;\n  width: 24px;\n  border-radius: 4px;\n  transition:\n    box-shadow 0.1s ease,\n    background-color 0.1s ease;\n  fill: var(--lido-color-primaryContrast);\n`\n\nexport const CheckboxInputStyle = styled.input`\n  width: 1px;\n  height: 1px;\n  position: absolute;\n  overflow: hidden;\n  clip: rect(0 0 0 0);\n\n  &:not(:disabled) ~ * {\n    cursor: pointer;\n  }\n\n  label:hover &:not(:disabled):not(:checked) + ${CheckboxIconStyle} {\n    box-shadow: inset 0 0 0 1px var(--lido-color-borderHover);\n  }\n\n  & + ${CheckboxIconStyle} {\n    background-color: var(--lido-color-controlBg);\n    box-shadow: inset 0 0 0 1px var(--lido-color-border);\n\n    path {\n      opacity: 0;\n    }\n  }\n\n  &:checked + ${CheckboxIconStyle} {\n    background-color: var(--lido-color-primary);\n    box-shadow: none;\n\n    path {\n      opacity: 1;\n    }\n  }\n\n  &:disabled + ${CheckboxIconStyle} {\n    opacity: 0.5;\n    cursor: default;\n  }\n\n  &:focus-visible + ${CheckboxIconStyle} {\n    box-shadow: inset 0 0 0 1px var(--lido-color-primary);\n  }\n\n  &:focus-visible:checked + ${CheckboxIconStyle} {\n    box-shadow: inset 0 0 0 1px var(--lido-color-borderHover);\n  }\n`\n"],"names":["CheckboxWrapperStyle","styled","label","CheckboxIconStyle","Check","CheckboxInputStyle","input"],"mappings":";;;AAGaA,MAAAA,oBAAoB,GAAGC,MAAM,CAACC,KAAK,CAAA;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;MAEYC,iBAAiB,GAAGF,MAAM,CAACG,KAAK,CAAC,CAAA;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AAEYC,MAAAA,kBAAkB,GAAGJ,MAAM,CAACK,KAAK,CAAA;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAAA,EAAiDH,iBAAiB,CAAA;AAClE;AACA;AACA;AACA,MAAA,EAAQA,iBAAiB,CAAA;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAA,EAAgBA,iBAAiB,CAAA;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAA,EAAiBA,iBAAiB,CAAA;AAClC;AACA;AACA;AACA;AACA,oBAAA,EAAsBA,iBAAiB,CAAA;AACvC;AACA;AACA;AACA,4BAAA,EAA8BA,iBAAiB,CAAA;AAC/C;AACA;AACA;;;;"}