File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @slidy/react" ,
3- "version" : " 1.0 .0" ,
3+ "version" : " 1.1 .0" ,
44 "description" : " Simple, configurable & reusable carousel component built with ReactJS" ,
55 "main" : " dist/slidy.cjs" ,
66 "module" : " dist/slidy.mjs" ,
6464 "react" : " ^18.2.0" ,
6565 "react-dom" : " ^18.2.0"
6666 }
67- }
67+ }
Original file line number Diff line number Diff line change 11import { useSlidy } from '../Context' ;
2- import { clsx } from 'clsx' ;
32import { s } from '../../utils' ;
43import { execute , noop } from '@slidy/assets/scripts/utils' ;
54
@@ -47,9 +46,6 @@ const Progress: FC<Props> = (props) => {
4746 />
4847 < span className = { classNames [ 'progress-handle' ] } />
4948 </ div >
50- // <div className={clsx(classNames.progress, props.vertical && 'vertical')}>
51- // <span style={style} />
52- // </div>
5349 ) ;
5450} ;
5551
Original file line number Diff line number Diff line change @@ -241,8 +241,8 @@ const Slidy: FC<Partial<Options>> = ($props) => {
241241 value = { index + 1 }
242242 max = { length }
243243 vertical = { props . vertical }
244- onInput = { ( e ) => {
245- setIndex ( e . currentTarget ?. value - 1 ) ;
244+ onInput = { ( e : any ) => {
245+ setIndex ( e . currentTarget . valueAsNumber - 1 ) ;
246246 } }
247247 /> ) }
248248
You can’t perform that action at this time.
0 commit comments