diff --git a/src/ColorButton/ColorButton.tsx b/src/ColorButton/ColorButton.tsx index e933561..0a0083b 100644 --- a/src/ColorButton/ColorButton.tsx +++ b/src/ColorButton/ColorButton.tsx @@ -40,7 +40,7 @@ const ColorButton = ({ disabled, color, ...rest }: Props) => { /> 1 + i * 2); - if (['right', 'bottom'].includes(direction)) { + if (['right', 'down'].includes(direction)) { segmentSizes.reverse(); } const isHorizontal = ['left', 'right'].includes(direction); diff --git a/src/Icons/ChevronIcon.tsx b/src/Icons/ChevronIcon.tsx index 7caadcb..bf6b3e5 100644 --- a/src/Icons/ChevronIcon.tsx +++ b/src/Icons/ChevronIcon.tsx @@ -16,7 +16,7 @@ const pixelSize = 2; const ChevronIcon = ({ color, - direction = 'bottom', + direction = 'down', disabled = false, segments = 5, style = {}, @@ -27,7 +27,7 @@ const ChevronIcon = ({ const baseColor = color || theme.materialText; let segmentSizes = new Array(segments).fill(null).map((_, i) => 1 + i * 2); - if (['right', 'bottom'].includes(direction)) { + if (['right', 'down'].includes(direction)) { segmentSizes = segmentSizes.reverse(); } const isHorizontal = ['left', 'right'].includes(direction); diff --git a/src/List/ListAccordion.tsx b/src/List/ListAccordion.tsx index 658e362..baaeb69 100644 --- a/src/List/ListAccordion.tsx +++ b/src/List/ListAccordion.tsx @@ -83,13 +83,13 @@ const ListAccordion = ({ diff --git a/src/NumberInput/NumberInput.tsx b/src/NumberInput/NumberInput.tsx index 815a55b..f239c2d 100644 --- a/src/NumberInput/NumberInput.tsx +++ b/src/NumberInput/NumberInput.tsx @@ -5,7 +5,7 @@ import type { DimensionValue } from '../types'; import { blockSizes } from '../common/styles'; import { clamp } from '../common/utils'; -import { TextInput, Button, Text } from '..'; +import { TextInput, Button, ArrowIcon } from '..'; type Props = { defaultValue?: number; @@ -80,9 +80,11 @@ const NumberInput = ({ style={styles.button} testID='decrement' > - - - - + - - + - + ); diff --git a/src/ScrollView/ScrollView.tsx b/src/ScrollView/ScrollView.tsx index 34dd68a..5a7b382 100644 --- a/src/ScrollView/ScrollView.tsx +++ b/src/ScrollView/ScrollView.tsx @@ -182,7 +182,7 @@ const ScrollView = ({ style={[styles.scrollbarButton]} > @@ -229,7 +229,7 @@ const ScrollView = ({ style={[styles.scrollbarButton]} > diff --git a/src/Select/Select.tsx b/src/Select/Select.tsx index be040df..0ce0902 100644 --- a/src/Select/Select.tsx +++ b/src/Select/Select.tsx @@ -127,7 +127,7 @@ const Select = ({ >