import { merge } from 'lodash-es' import { JSX, mergeProps } from 'solid-js' import { Hue, useColorPicker, withColorPicker } from '../_common' import SliderPointer from './SliderPointer' import SliderSwatches from './SliderSwatches' export type SliderPickerProps = { pointer?: typeof SliderPointer styles?: Record className?: string } const Slider = (_props: SliderPickerProps) => { const props = mergeProps( { pointer: SliderPointer, styles: {}, className: '', }, _props, ) const { colors, changeColor } = useColorPicker() const styles = merge, Record>( { hue: { height: '12px', position: 'relative', }, Hue: { 'border-radius': '2px', }, }, props.styles, ) return (
) } export default withColorPicker(Slider)