- Harness: kintex-mobile-dev agent + kintex-mobile-orchestrator skill (WISE mobile ref, Stitch-first design rule, dual app targets B2B/B2C) - design.md v2.1: full 84-screen inventory (web 51 / admin 10 / public 8 / mobile 15) with Stitch prompts incl. ticketing (SCR-P7/P8, M14/M15) - PLANNING v3.1: unified account + split signup tracks (2FA required for staff, light signup/guest for visitors), one codebase / two app targets - Deliverables: dev plan (21s), user/operator/developer guides (17/14/15s), program spec (44s, 65 programs, 8 flowcharts), DA (DB design 14s + table spec xlsx 35 tables/299 cols) - Benchmark: ticketing-app-benchmark.md (7 apps) -> IMPLEMENTATION_BACKLOG Phase F (14 items) - Stitch: 23 generated screens saved (mobile 10, admin 6, web core 5, ticket 2) - mobile/: Expo scaffold (SDK 51, expo-router, secure store JWT) - frontend: SCR-13~17 QA fixes, icons.tsx, kintexEvents, V10 seed migration - ci/: KINTEX CI logo assets Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
48 lines
1.2 KiB
TypeScript
48 lines
1.2 KiB
TypeScript
/*
|
|
* 카드 — 흰색 서피스 + 1px 테두리(그림자 최소, design.md §1-4 엘리베이션).
|
|
* accent: 'ai'면 좌측 4px 보라 액센트, 'status'면 좌측 4px 상태색.
|
|
*/
|
|
import React from 'react';
|
|
import { StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native';
|
|
import { colors, radius, spacing } from '../theme';
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
accent?: 'none' | 'ai' | 'warning' | 'error' | 'success';
|
|
style?: StyleProp<ViewStyle>;
|
|
}
|
|
|
|
const accentColor: Record<NonNullable<Props['accent']>, string | undefined> = {
|
|
none: undefined,
|
|
ai: colors.aiAccent,
|
|
warning: colors.warning,
|
|
error: colors.error,
|
|
success: colors.success,
|
|
};
|
|
|
|
export function Card({ children, accent = 'none', style }: Props) {
|
|
const left = accentColor[accent];
|
|
return (
|
|
<View
|
|
style={[
|
|
styles.card,
|
|
accent === 'ai' && { backgroundColor: colors.aiSurface },
|
|
left ? { borderLeftWidth: 4, borderLeftColor: left } : null,
|
|
style,
|
|
]}
|
|
>
|
|
{children}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
card: {
|
|
backgroundColor: colors.white,
|
|
borderWidth: 1,
|
|
borderColor: colors.neutral200,
|
|
borderRadius: radius.md,
|
|
padding: spacing.md,
|
|
},
|
|
});
|