Major feature migration from dt-shopify-storefront into the design system: - Card system: per-card color modes (normal/emphasis/warning/success/other), progress bars, full-bleed card body (card-body-flush), image bevel clip-paths, and visible structural borders at bevel corners - Badge system: dt-card-badge with position-aware offsets for cards vs media frames - Media frames: dt-bevel-media with inner surface fill, image clipping, and "MISSING MEDIA" placeholder for empty containers - Interactive bevel buttons: dt-btn with hover/selected states and pulse animation - Menu items: dt-menu-item with active states and level indentation - Animations: scale-in, fade-in, slide-up, pulse, ping, spin keyframes - Feature legend: CSS grid for product feature icons with state colors - Scrollbar styling for DT brand - New @dangerousthings/react package wrapping web CSS components - New @dangerousthings/tailwind-preset package - New @dangerousthings/hex-background package - Desktop showcase rewritten in React with Tailwind CSS - Mobile showcase updated with new screens (animations, filters, advanced cards) - Tokens: added mode color tokens, RGB variants, and selected-state tokens Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
88 lines
3.0 KiB
TypeScript
88 lines
3.0 KiB
TypeScript
/**
|
|
* @anthropic-dangerous-things/react-native-theme
|
|
*
|
|
* Dangerous Things design system for React Native with React Native Paper.
|
|
* Cyberpunk aesthetic with high-contrast neon colors.
|
|
*/
|
|
|
|
// Theme exports
|
|
export { DTColors, getColor } from './theme/colors';
|
|
export type { DTColorKey } from './theme/colors';
|
|
|
|
export {
|
|
DTTypography,
|
|
DTFonts,
|
|
DTFontWeights,
|
|
} from './theme/typography';
|
|
export type { DTTypographyKey } from './theme/typography';
|
|
|
|
export {
|
|
DTDarkTheme,
|
|
DTExtendedDarkTheme,
|
|
usePaperTheme,
|
|
} from './theme/paperTheme';
|
|
export type { DTExtendedTheme } from './theme/paperTheme';
|
|
|
|
export { DTThemeProvider, useDTTheme } from './theme/DTThemeProvider';
|
|
|
|
// Shared utilities
|
|
export type { DTVariant } from './utils/variantColors';
|
|
export { getVariantColor } from './utils/variantColors';
|
|
export { buildBeveledRectPath } from './utils/bevelPaths';
|
|
export { useComponentLayout } from './utils/useComponentLayout';
|
|
export { useScaleIn, usePulse } from './utils/animations';
|
|
|
|
// Component exports — existing
|
|
export { DTCard, DTCardClipPath } from './components/DTCard';
|
|
export { DTButton } from './components/DTButton';
|
|
export { DTChip } from './components/DTChip';
|
|
export { DTLabel, DTLabelClipPath } from './components/DTLabel';
|
|
|
|
// Component exports — form primitives
|
|
export { DTTextInput } from './components/DTTextInput';
|
|
export { DTCheckbox } from './components/DTCheckbox';
|
|
export { DTSwitch } from './components/DTSwitch';
|
|
export { DTRadioGroup, DTRadioOption } from './components/DTRadioGroup';
|
|
export { DTQuantityStepper } from './components/DTQuantityStepper';
|
|
|
|
// Component exports — layout & containers
|
|
export { DTProgressBar } from './components/DTProgressBar';
|
|
export { DTMediaFrame } from './components/DTMediaFrame';
|
|
export { DTAccordion } from './components/DTAccordion';
|
|
export type { DTAccordionSection } from './components/DTAccordion';
|
|
|
|
// Component exports — positioning & animation containers
|
|
export { DTBadgeOverlay } from './components/DTBadgeOverlay';
|
|
export { DTStaggerContainer } from './components/DTStaggerContainer';
|
|
|
|
// Component exports — complex interactive
|
|
export { DTModal } from './components/DTModal';
|
|
export { DTDrawer } from './components/DTDrawer';
|
|
export { DTGallery } from './components/DTGallery';
|
|
export type { DTGalleryItem } from './components/DTGallery';
|
|
export { DTSearchInput } from './components/DTSearchInput';
|
|
|
|
// Component exports — filter & feature
|
|
export { DTFeatureLegend } from './components/DTFeatureLegend';
|
|
export type { DTFeatureItem } from './components/DTFeatureLegend';
|
|
export { DTMobileFilterOverlay } from './components/DTMobileFilterOverlay';
|
|
|
|
// Component exports — navigation & decorative
|
|
export { DTMenu, DTMenuDropdown } from './components/DTMenu';
|
|
export type { DTMenuItem } from './components/DTMenu';
|
|
export { DTHexagon } from './components/DTHexagon';
|
|
|
|
// Re-export commonly used Paper components for convenience
|
|
export {
|
|
Text,
|
|
Surface,
|
|
IconButton,
|
|
ActivityIndicator,
|
|
Divider,
|
|
List,
|
|
Portal,
|
|
Modal,
|
|
Snackbar,
|
|
TextInput,
|
|
} from 'react-native-paper';
|