import { StyleSheet } from 'react-native'; import { tracking, fw, r, radius, space, type as t, type ColorTokens, } from '../../../theme'; export const makeStyles = (c: ColorTokens) => StyleSheet.create({ form: { gap: space[7], }, group: { gap: space[3], }, groupLabel: { fontSize: t.xs, fontWeight: fw.semi, color: c.foregroundSubtle, textTransform: 'uppercase', letterSpacing: tracking.loose, paddingHorizontal: space[1], }, groupBody: { borderRadius: radius.lg, overflow: 'hidden', }, groupMaterial: { borderRadius: radius.lg }, divider: { borderTopWidth: StyleSheet.hairlineWidth, borderTopColor: c.outline, }, row: { paddingHorizontal: space[7], paddingVertical: space[5], minHeight: r(48), justifyContent: 'center', }, rowMain: { flexDirection: 'row', alignItems: 'center', gap: space[5], }, rowLabel: { fontSize: t.sm, fontWeight: fw.medium, color: c.foreground, // flexShrink:让 FormRow.numberOfLines 真正生效,长 label 不把 rowControl 挤到 0 宽([M-10]) flexShrink: 1, }, required: { color: c.error, }, rowControl: { flex: 1, alignItems: 'flex-end', }, errorText: { fontSize: t.micro, color: c.error, marginTop: space[1], }, });