summaryrefslogtreecommitdiff
path: root/app_expo/components/form-row/form-row.presets.ts
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-23 15:24:35 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-23 15:24:35 +0200
commit356381d14cb1ff3cbd39c7e396dd14379336451b (patch)
treea03e9b2534600bde7b3b781411b5b03f8134904b /app_expo/components/form-row/form-row.presets.ts
parent7aa007f158a52b41494049a1202938fc97813ec1 (diff)
parent73308af061af5e17ac7d4a73fa027a2f303c70dd (diff)
resolving merge conflicts
Diffstat (limited to 'app_expo/components/form-row/form-row.presets.ts')
-rw-r--r--app_expo/components/form-row/form-row.presets.ts71
1 files changed, 0 insertions, 71 deletions
diff --git a/app_expo/components/form-row/form-row.presets.ts b/app_expo/components/form-row/form-row.presets.ts
deleted file mode 100644
index 0c796c2..0000000
--- a/app_expo/components/form-row/form-row.presets.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-import { ViewStyle } from 'react-native'
-import { color, spacing } from '../../theme'
-
-/**
- * The size of the border radius.
- */
-const RADIUS = 8
-
-/**
- * The default style of the container.
- */
-const ROOT: ViewStyle = {
- borderWidth: 1,
- borderColor: color.line,
- padding: spacing[2],
-}
-
-/**
- * What each of the presets look like.
- */
-export const PRESETS = {
- /**
- * Rounded borders on the the top only.
- */
- top: {
- ...ROOT,
- borderTopLeftRadius: RADIUS,
- borderTopRightRadius: RADIUS,
- borderBottomWidth: 0,
- },
- /**
- * No rounded borders.
- */
- middle: {
- ...ROOT,
- borderBottomWidth: 0,
- },
- /**
- * Rounded borders on the bottom.
- */
- bottom: {
- ...ROOT,
- borderBottomLeftRadius: RADIUS,
- borderBottomRightRadius: RADIUS,
- },
- /**
- * Rounded borders everywhere.
- */
- soloRound: {
- ...ROOT,
- borderRadius: RADIUS,
- },
- /**
- * Straight borders everywhere.
- */
- soloStraight: {
- ...ROOT,
- },
- /**
- * Transparent borders useful to keep things lined up.
- */
- clear: {
- ...ROOT,
- borderColor: color.transparent,
- },
-}
-
-/**
- * The names of the presets supported by FormRow.
- */
-export type FormRowPresets = keyof typeof PRESETS