diff --git a/apps/android/src/screens/bot/styles.ts b/apps/android/src/screens/bot/styles.ts new file mode 100644 index 0000000..574b4b6 --- /dev/null +++ b/apps/android/src/screens/bot/styles.ts @@ -0,0 +1,215 @@ +import { StyleSheet } from 'react-native' +import { radius, spacing, type } from '../../ui/theme' +import type { ThemeColors } from '../../ui/theme-context' + +export const createBotStyles = (colors: ThemeColors) => StyleSheet.create({ + flex: { flex: 1, backgroundColor: colors.background }, + row: { flexDirection: 'row', alignItems: 'center', gap: spacing.sm }, + wrap: { flexDirection: 'row', flexWrap: 'wrap', gap: spacing.sm }, + body: { ...type.body, color: colors.ink }, + muted: { ...type.small, color: colors.muted }, + title: { ...type.title, color: colors.ink }, + heading: { ...type.bodyStrong, color: colors.ink }, + section: { gap: spacing.sm, marginVertical: spacing.xs }, + sheetContent: { gap: spacing.md }, + actions: { flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'flex-end', gap: spacing.xs, paddingTop: spacing.xxs }, + choice: { flexDirection: 'row', alignItems: 'center', gap: spacing.sm, minHeight: 52, paddingHorizontal: spacing.md, paddingVertical: spacing.xs, borderRadius: radius.lg, borderWidth: 1, borderColor: 'transparent', backgroundColor: colors.grouped }, + choicePressed: { opacity: 0.75 }, + card: { + padding: 18, + borderRadius: 22, + borderWidth: StyleSheet.hairlineWidth, + borderColor: colors.separator, + backgroundColor: colors.surface, + shadowColor: '#000', + shadowOpacity: 0.04, + shadowRadius: 12, + shadowOffset: { width: 0, height: 3 }, + elevation: 2, + gap: spacing.sm, + }, + rosterHeader: { paddingTop: 8, gap: 8 }, + rosterTitle: { ...type.title, color: colors.ink }, + searchBox: { flexDirection: 'row', alignItems: 'center', gap: 8, paddingHorizontal: spacing.md, borderRadius: radius.pill, backgroundColor: colors.grouped }, + searchInput: { flex: 1, minHeight: 48, paddingVertical: 10, ...type.body, fontSize: 15, color: colors.ink }, + mainBotRow: { minHeight: 80 }, + mainBotName: { fontSize: 17, fontWeight: '600', color: colors.ink }, + mainBots: { paddingTop: 12, marginBottom: 12, gap: 2 }, + rosterFooter: { flexDirection: 'row', alignItems: 'center', borderTopWidth: StyleSheet.hairlineWidth, borderTopColor: colors.separator, paddingTop: 8, gap: 8 }, + footerAction: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 8, minHeight: 44, flex: 1, paddingHorizontal: 12, borderRadius: radius.md }, + footerLabel: { ...type.small, color: colors.muted }, + footerDisabled: { opacity: 0.45 }, + rosterSection: { marginBottom: 20, gap: 2 }, + sectionLabel: { ...type.small, fontSize: 15, color: colors.muted, paddingHorizontal: spacing.md, paddingVertical: 6 }, + rosterRow: { flexDirection: 'row', alignItems: 'center', minHeight: 64, gap: 12, paddingHorizontal: spacing.sm, paddingVertical: 8, borderRadius: radius.lg }, + rosterPressed: { backgroundColor: colors.surfaceStrong }, + rosterName: { ...type.body, fontWeight: '600', color: colors.ink }, + rosterSubtitle: { ...type.small, fontSize: 13, lineHeight: 18, color: colors.muted }, + groupAvatar: { width: 48, height: 48, justifyContent: 'center', alignItems: 'center' }, + grow: { flex: 1, minWidth: 0 }, + input: { ...type.body, color: colors.ink, backgroundColor: colors.surface, borderColor: colors.border, borderWidth: 1, borderRadius: radius.lg, paddingHorizontal: spacing.md, paddingVertical: spacing.sm, minHeight: 48 }, + multiline: { minHeight: 88, textAlignVertical: 'top' }, + detailsContent: { gap: 4 }, + detailsHeader: { flexDirection: 'row', alignItems: 'center', gap: 12, paddingBottom: 16 }, + detailActions: { gap: 0 }, + detailAction: { flexDirection: 'row', alignItems: 'center', gap: 12, minHeight: 52, paddingHorizontal: spacing.sm, paddingVertical: 10, borderRadius: radius.lg }, + detailDivider: { height: StyleSheet.hairlineWidth, backgroundColor: colors.separator, marginVertical: 4 }, + detailHint: { ...type.small, color: colors.muted, paddingHorizontal: 8, paddingTop: 12 }, + field: { gap: spacing.xs }, + selected: { backgroundColor: colors.primarySoft, borderColor: colors.primary }, + error: { ...type.small, color: colors.danger, padding: spacing.sm }, + conversation: { paddingHorizontal: 16, paddingTop: 12, paddingBottom: 20, flexGrow: 1 }, + composer: { flexDirection: 'row', alignItems: 'flex-end', gap: spacing.xs, padding: spacing.sm, borderTopWidth: 1, borderTopColor: colors.border, backgroundColor: colors.surface }, + composerOuter: { + paddingHorizontal: 14, + paddingTop: 6, + paddingBottom: 14, + backgroundColor: 'transparent', + }, + composerCard: { + borderRadius: 28, + paddingHorizontal: 10, + paddingVertical: 8, + backgroundColor: colors.surface, + borderWidth: StyleSheet.hairlineWidth, + borderColor: colors.separator, + shadowColor: '#000', + shadowOpacity: 0.07, + shadowRadius: 16, + shadowOffset: { width: 0, height: 4 }, + elevation: 3, + gap: 6, + }, + composerCardWithPills: { + borderRadius: 24, + paddingTop: 10, + }, + composerRow: { + flexDirection: 'row', + alignItems: 'flex-end', + gap: 10, + }, + plusCircle: { + width: 36, + height: 36, + borderRadius: 18, + backgroundColor: colors.grouped, + alignItems: 'center', + justifyContent: 'center', + }, + composerInput: { + flex: 1, + minHeight: 36, + maxHeight: 120, + paddingHorizontal: 2, + paddingVertical: 7, + fontSize: 15.5, + lineHeight: 21, + color: colors.ink, + backgroundColor: 'transparent', + }, + sendCircle: { + width: 36, + height: 36, + borderRadius: 18, + backgroundColor: colors.ink, + alignItems: 'center', + justifyContent: 'center', + }, + sendCircleDisabled: { + opacity: 0.22, + }, + stopCircle: { + width: 36, + height: 36, + borderRadius: 18, + backgroundColor: colors.ink, + alignItems: 'center', + justifyContent: 'center', + }, + earlierTop: { + alignItems: 'center', + justifyContent: 'center', + paddingVertical: 6, + }, + earlierPill: { + height: 28, + paddingHorizontal: 12, + borderRadius: radius.pill, + backgroundColor: colors.surfaceStrong, + borderWidth: StyleSheet.hairlineWidth, + borderColor: colors.separator, + alignItems: 'center', + justifyContent: 'center', + }, + earlierPillText: { + ...type.caption, + fontSize: 12, + color: colors.muted, + }, + headerBar: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-between', + paddingHorizontal: 14, + paddingBottom: 8, + }, + headerSide: { + width: 44, + height: 44, + alignItems: 'center', + justifyContent: 'center', + }, + headerSideChip: { + width: 42, + height: 42, + borderRadius: 21, + backgroundColor: colors.surface, + borderWidth: StyleSheet.hairlineWidth, + borderColor: colors.separator, + shadowColor: '#000', + shadowOpacity: 0.06, + shadowRadius: 10, + shadowOffset: { width: 0, height: 2 }, + elevation: 2, + alignItems: 'center', + justifyContent: 'center', + }, + headerPill: { + flexDirection: 'row', + alignItems: 'center', + gap: 8, + height: 42, + maxWidth: '72%', + paddingLeft: 8, + paddingRight: 16, + borderRadius: radius.pill, + backgroundColor: colors.surface, + borderWidth: StyleSheet.hairlineWidth, + borderColor: colors.separator, + shadowColor: '#000', + shadowOpacity: 0.06, + shadowRadius: 12, + shadowOffset: { width: 0, height: 3 }, + elevation: 2, + }, + headerPillName: { + ...type.bodyStrong, + fontSize: 15.5, + fontWeight: '600', + color: colors.ink, + flexShrink: 1, + }, + headerPillGoalCount: { + ...type.caption, + fontSize: 11.5, + color: colors.muted, + paddingHorizontal: 6, + paddingVertical: 1, + borderRadius: radius.pill, + backgroundColor: colors.surfaceStrong, + }, + draft: { flex: 1, maxHeight: 140, borderRadius: radius.xl, backgroundColor: colors.surfaceStrong, borderWidth: 0 }, + tableRow: { flexDirection: 'row', borderBottomWidth: StyleSheet.hairlineWidth, borderColor: colors.border }, + cell: { width: 140, padding: spacing.xs, color: colors.ink }, +})