react-restyle-components 0.3.49 → 0.3.50
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/core-components/ToggleCore/elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/core-components/ToggleCore/elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AA8FF,eAAO,MAAM,cAAc,iBAAgB,WAAW,4CAOrD,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,WAAW,4CAI7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,4LArHT,GAAG,kFA+HvB,CAAC;AAEF,eAAO,MAAM,WAAW,kNAIvB,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,6CAoB9B,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled, css } from 'styled-components';
|
|
3
3
|
import { createTransition } from '../../utils';
|
|
4
4
|
import { StateLayer } from '../StateLayer';
|
|
5
|
-
import { Icon } from '../../components';
|
|
6
5
|
// import {Text} from '../../components/Text';
|
|
7
6
|
const Text = (props) => {
|
|
8
7
|
return _jsx("span", { ...props });
|
|
@@ -67,12 +66,6 @@ const StyledCheckbox = styled.span `
|
|
|
67
66
|
color: var(--aui-on-surface);
|
|
68
67
|
`}
|
|
69
68
|
`;
|
|
70
|
-
const CheckIcon = styled(Icon.SSR) `
|
|
71
|
-
opacity: ${({ $checked }) => ($checked ? 1 : 0)};
|
|
72
|
-
`;
|
|
73
|
-
const MinusIcon = styled(Icon.SSR) `
|
|
74
|
-
opacity: ${({ $checked, $indeterminate }) => !$checked && $indeterminate ? 1 : 0};
|
|
75
|
-
`;
|
|
76
69
|
const StyledRadio = styled.span `
|
|
77
70
|
${baseToggleStyles};
|
|
78
71
|
|
|
@@ -99,7 +92,7 @@ const StyledRadio = styled.span `
|
|
|
99
92
|
opacity: ${({ $checked }) => ($checked ? '1' : '0')};
|
|
100
93
|
}
|
|
101
94
|
`;
|
|
102
|
-
export const CheckboxToggle = ({ ...props }) => (_jsxs(StyledCheckbox, { ...props, children: [_jsx(StateLayer, {}), _jsx(
|
|
95
|
+
export const CheckboxToggle = ({ ...props }) => (_jsxs(StyledCheckbox, { ...props, children: [_jsx(StateLayer, {}), _jsx("span", { children: "Icons" })] }));
|
|
103
96
|
export const RadioToggle = (props) => (_jsx(StyledRadio, { ...props, children: _jsx(StateLayer, {}) }));
|
|
104
97
|
export const StyledDescription = styled(Text).attrs({
|
|
105
98
|
size: 2,
|