import { SliderComposition } from './styles' import { SliderProps as RNSliderProps } from '@miblanchard/react-native-slider/lib/types' import { InputBaseProps } from '../InputBase' import { ICSS, StyledProp } from '@codeleap/styles' import { NumberField } from '@codeleap/form' export type SliderProps = Partial> & Pick & { debounce?: number | null trackMarklabels?: string[] /** Pass `Record` to attach label text to each mark; pass the plain array form when marks are visual-only. */ trackMarks?: RNSliderProps['trackMarks'] | Record trackMarksClickable?: boolean labelClickable?: boolean trackMarkComponent?: React.ComponentType style?: StyledProp updateImmediately?: boolean field?: NumberField value?: number | number[] onValueChange?: (value: number | number[]) => void } export type TrackMarkProps = { index: number content?: string | React.ReactNode style?: ICSS | ICSS[] onPress?: () => void }