Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | 76x 76x 76x 3x 76x 3x 29x 14x | import { css, cssClass } from '../styled'; import { palette, theme, fontWeight } from '../utils'; import { getHiddenInputStyles } from '../utils/getHiddenInputStyles'; export const Radio = styleProps => cssClass` && { display: flex; align-items: flex-start; } & { ${theme(styleProps.themeKey, `css.root`)(styleProps)}; } `; export const RadioIcon = styleProps => cssClass` -webkit-appearance: none; background-color: white; border: 1px solid #bdbdbd; border-radius: 100%; height: 1em; position: relative; min-width: 1em; width: 1em; transition: box-shadow 0.1s ease-in-out 0s, border-color 0.1s, background-color 0.1s; & { ${theme(styleProps.themeKey, `css.root`)(styleProps)}; } `; export const RadioLabel = styleProps => cssClass` && { font-weight: ${fontWeight('normal')(styleProps)}; } & { ${theme(styleProps.themeKey, `css.root`)(styleProps)}; } `; export const HiddenRadio = styleProps => getHiddenInputStyles({ iconClassName: 'fp-RadioIcon', checkedIconCss: css` background: ${palette('primary')(styleProps)}; border-radius: 50%; content: ''; height: 0.5em; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 0.5em; `, disabledCheckedIconCss: css` border-color: ${palette('gray300')(styleProps)}; background: ${palette('gray300')(styleProps)}; `, styleProps, themeKey: 'Radio.Icon' }); export const RadioField = styleProps => cssClass` & { ${theme(styleProps.themeKey, `css.root`)(styleProps)}; } `; export const RadioGroup = styleProps => cssClass` & { ${theme(styleProps.themeKey, `css.root`)(styleProps)}; } `; export const RadioGroupField = styleProps => cssClass` & { ${theme(styleProps.themeKey, `css.root`)(styleProps)}; } `; |