@activecollab/components
Version:
ActiveCollab Components
17 lines • 2.18 kB
JavaScript
import styled, { css } from "styled-components";
export const StyledInput = styled.input.withConfig({
displayName: "Styles__StyledInput",
componentId: "sc-y7zymm-0"
})(["border:0px;clip:rect(0px,0px,0px,0px);cursor:pointer;height:1px;margin:-1px;opacity:0;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:1px;"]);
StyledInput.displayName = "StyledInput";
export const StyledLabel = styled.label.withConfig({
displayName: "Styles__StyledLabel",
componentId: "sc-y7zymm-1"
})([""]);
StyledLabel.displayName = "StyledLabel";
export const StyledCheckbox = styled.div.withConfig({
displayName: "Styles__StyledCheckbox",
componentId: "sc-y7zymm-2"
})(["height:16px;width:16px;position:relative;transition-duration:0.2s;border-radius:2px;path{transition-duration:0.2s;stroke:transparent;stroke-dashoffset:12;stroke-dasharray:12;}svg{cursor:pointer;border-radius:2px;fill:transparent;}", " rect{transition-duration:0.2s;", " ", "}", ":disabled ~ ", "{opacity:0.5;cursor:not-allowed;}", ":focus ~ ", "{", "}&:not(.c-checkbox__controlled) ", ":hover:not(:checked) ~ ", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);", " stroke-width:3px;}}", " ", ":checked ~ ", "{path{", "}rect{stroke:var(--color-secondary);stroke-width:19px;", "}}"], props => props.$disabled && css(["svg{cursor:not-allowed;}"]), props => !props.mixed && css(["stroke:var(--color-theme-500);"]), props => props.mixed && css(["stroke:transparent;"]), StyledInput, StyledLabel, StyledInput, StyledLabel, props => !props.mixed && css(["rect{stroke:var(--color-secondary);stroke-width:3px;}"]), StyledInput, StyledLabel, props => props.mixed && css(["stroke:transparent;"]), props => props.hover && !props.mixed && css(["", ":not(:checked) ~ ", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}}"], StyledInput, StyledLabel), StyledInput, StyledLabel, props => !props.mixed && css(["stroke:var(--page-paper-main);stroke-dashoffset:24;"]), props => props.mixed && css(["stroke:transparent;"]));
StyledCheckbox.displayName = "StyledCheckbox";
//# sourceMappingURL=Styles.js.map