init: the first public commit for AFFiNE

This commit is contained in:
DarkSky
2022-07-22 15:49:21 +08:00
commit e3e3741393
1451 changed files with 108124 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import * as React from 'react';
/* eslint-disable no-restricted-imports */
import MuiRadio, { type RadioProps } from '@mui/material/Radio';
import { styled } from '../styled';
// TODO: sync online icon
// import {
// SingleSelectBoxUncheckIcon,
// SingleSelectBoxCheckIcon,
// } from '@toeverything/components/icons';
export { RadioProps };
export const Radio = (props: RadioProps) => {
return (
<StyledRadio
// icon={<SingleSelectBoxUncheckIcon />}
// checkedIcon={<SingleSelectBoxCheckIcon />}
{...props}
/>
);
};
const StyledRadio = styled(MuiRadio)`
padding: 0;
color: #b9cad5;
&.Mui-checked {
color: #b9cad5;
}
`;
+2
View File
@@ -0,0 +1,2 @@
export { Radio } from './Radio';
export type { RadioProps } from './Radio';