import * as React from 'react'; import { AudioPlayer, ProgressDots, ProgressTabs, Pagination, Pill, UserPill, Slider, BreadCrumbs, Toast, Spinner } from '../../src/ts/index'; class VariousView extends React.Component<{}, { currentStep?: number, currentPage?: number, breadcrumbPath?: string[], unchangingPath?: string[], currentTab?: number, sliderValue?: number }> { constructor(props: any) { super(props); this.state = { currentStep: 3, currentPage: 6, breadcrumbPath: ['Level 1', 'Level 2', 'Level 3', 'Level 4'], unchangingPath: ['Level 1', 'Level 2', 'Level 3', 'Level 4'], currentTab: 0, sliderValue: 2 }; } public onDotClick(i: number) { this.setState({ currentStep: i }); } public onPageClick(i: number) { this.setState({ currentPage: i }); } public onBreadcrumbClick(i: number) { const { breadcrumbPath } = this.state; this.setState({ breadcrumbPath: breadcrumbPath.slice(0, i + 1) }); } public onTabClick(tabIndex: number) { this.setState({ currentTab: tabIndex }); } public onChangeSlider(i: number) { this.setState({ sliderValue: i }); } public render() { const { currentStep, currentPage, breadcrumbPath, unchangingPath, currentTab, sliderValue } = this.state; const tabNames = ['Tab One', 'Tab Two', 'Tab Three', 'Tab Four']; return (