-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
694 additions
and
25 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import { Alert as BSAlert } from 'bootstrap' | ||
import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component'; | ||
|
||
declare class Alert extends BSAlert {} | ||
declare class Alert extends BSAlert { | ||
/** | ||
* Static method which allows you to get the instance associated | ||
* with a DOM element. | ||
*/ | ||
static getInstance: GetInstanceFactory<Alert>; | ||
/** | ||
* Static method which allows you to get the modal instance associated with | ||
* a DOM element, or create a new one in case it wasn’t initialised | ||
*/ | ||
static getOrCreateInstance: GetOrCreateInstanceFactory< | ||
Alert | ||
>; | ||
|
||
} | ||
|
||
export { Alert } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
import { Button as BSButton } from 'bootstrap' | ||
import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component'; | ||
|
||
declare class Button extends BSButton {} | ||
declare class Button extends BSButton { | ||
/** | ||
* Static method which allows you to get the instance associated | ||
* with a DOM element. | ||
*/ | ||
static getInstance: GetInstanceFactory<Button>; | ||
/** | ||
* Static method which allows you to get the modal instance associated with | ||
* a DOM element, or create a new one in case it wasn’t initialised | ||
*/ | ||
static getOrCreateInstance: GetOrCreateInstanceFactory<Button>; | ||
} | ||
|
||
export { Button } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
import { Carousel as BSCarousel } from 'bootstrap' | ||
import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component'; | ||
|
||
declare class Carousel extends BSCarousel {} | ||
declare class Carousel extends BSCarousel { | ||
/** | ||
* Static method which allows you to get the instance associated | ||
* with a DOM element. | ||
*/ | ||
static getInstance: GetInstanceFactory<Carousel>; | ||
/** | ||
* Static method which allows you to get the modal instance associated with | ||
* a DOM element, or create a new one in case it wasn’t initialised | ||
*/ | ||
static getOrCreateInstance: GetOrCreateInstanceFactory< | ||
Carousel | ||
>; | ||
} | ||
|
||
export { Carousel } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
import { Collapse as BSCollapse } from 'bootstrap' | ||
import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component'; | ||
|
||
declare class Collapse extends BSCollapse {} | ||
declare class Collapse extends BSCollapse { | ||
/** | ||
* Static method which allows you to get the instance associated | ||
* with a DOM element. | ||
*/ | ||
static getInstance: GetInstanceFactory<Collapse>; | ||
/** | ||
* Static method which allows you to get the modal instance associated with | ||
* a DOM element, or create a new one in case it wasn’t initialised | ||
*/ | ||
static getOrCreateInstance: GetOrCreateInstanceFactory< | ||
Collapse, Partial<BSCollapse.Options> | ||
>; | ||
} | ||
|
||
export { Collapse } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import { Dropdown as BSDropdown } from 'bootstrap' | ||
import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component'; | ||
|
||
declare class Dropdown extends BSDropdown {} | ||
declare class Dropdown extends BSDropdown { | ||
/** | ||
* Static method which allows you to get the instance associated | ||
* with a DOM element. | ||
*/ | ||
static getInstance: GetInstanceFactory<Dropdown>; | ||
/** | ||
* Static method which allows you to get the modal instance associated with | ||
* a DOM element, or create a new one in case it wasn’t initialised | ||
*/ | ||
static getOrCreateInstance: GetOrCreateInstanceFactory< | ||
Dropdown, Partial<BSDropdown.Options> | ||
>; | ||
|
||
} | ||
|
||
export { Dropdown } |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.