File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7- ## [ 1.0.1] - 2019-06-17
7+ ## [ 1.0.1] - 2019-06-??
88### Changed
99- Fixed dependencies in ` package.json `
10+ - Added new typescript defs (` bootstrap-switch-button-react.d.ts ` )
1011
1112## [ 1.0.0] - 2019-04-03
1213### Added
Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
2+
3+ export type Colors =
4+ | "primary"
5+ | "secondary"
6+ | "success"
7+ | "danger"
8+ | "warning"
9+ | "info"
10+ | "light"
11+ | "dark" ;
12+
13+ export type ColorsOutline =
14+ | "outline-primary"
15+ | "outline-secondary"
16+ | "outline-success"
17+ | "outline-danger"
18+ | "outline-warning"
19+ | "outline-info"
20+ | "outline-light"
21+ | "outline-dark" ;
22+
23+ interface BootstrapSwitchButtonProps {
24+ /**
25+ * Function to call when the SwitchButton is changed
26+ */
27+ onChange ?: ( checked : boolean ) => void ;
28+ checked ?: boolean ;
29+ onlabel ?: string ;
30+ offlabel ?: string ;
31+ offstyle ?: Colors | ColorsOutline ;
32+ onstyle ?: Colors | ColorsOutline ;
33+ style ?: string ;
34+ }
35+
36+ declare class BootstrapSwitchButton extends React . Component <
37+ BootstrapSwitchButtonProps
38+ > { }
39+
40+ export default BootstrapSwitchButton ;
You can’t perform that action at this time.
0 commit comments