import { StyleSheet } from 'react-native';
import { tv } from 'tailwind-variants';
import { combineStyles } from '../../helpers/theme/utils/combine-styles';
const portal = tv({
base: 'absolute inset-0 justify-center p-5',
});
/**
* Overlay style definition
*
* @note ANIMATED PROPERTIES (cannot be set via className):
* The following property is animated and cannot be overridden using Tailwind classes:
* - `opacity` - Animated for overlay show/hide transitions (idle: 0, open: 1, close: 0)
*
* To customize this property, use the `animation` prop on `Dialog.Overlay`:
* ```tsx
*
* ```
*
* To completely disable animated styles and apply your own via className or style prop,
* set `isAnimatedStyleActive={false}` on `Dialog.Overlay`.
*/
const overlay = tv({
base: 'absolute inset-0 bg-black/20',
});
/**
* Content style definition
*
* @note ANIMATED PROPERTIES (cannot be set via className):
* The following properties are animated and cannot be overridden using Tailwind classes:
* - `opacity` - Animated for content show/hide transitions (idle: 0, open: 1, close: 0)
* - `transform` (specifically `scale`) - Animated for content show/hide transitions (idle: 0.97, open: 1, close: 0.97)
*
* To customize these properties, use the `animation` prop on `Dialog.Content`:
* ```tsx
*
* ```
*
* To completely disable animated styles and apply your own via className or style prop,
* set `isAnimatedStyleActive={false}` on `Dialog.Content`.
*/
const content = tv({
base: 'bg-overlay rounded-3xl border border-border p-5',
});
const close = tv({
base: '',
});
const label = tv({
base: 'text-lg font-medium text-foreground',
});
const description = tv({
base: 'text-base text-muted',
});
const dialogStyles = combineStyles({
portal,
overlay,
content,
close,
label,
description,
});
export const styleSheet = StyleSheet.create({
contentContainer: {
borderCurve: 'continuous',
},
});
export default dialogStyles;