Commit Graph
102 Commits
Author SHA1 Message Date
Flosch 0304145998 Replace local Popper typings by popper.js dependency 2018-06-07 22:49:21 +02:00
Flosch 405abf22d4 Add CustomInput to AnyPropsExample and GenericPropsExample tests 2018-06-07 19:04:58 +02:00
Flosch 83315b7319 Fix CustomInput export typo 2018-06-06 16:45:57 +02:00
Flosch 9afbbb00fb Correct tests 2018-06-06 16:26:42 +02:00
Flosch 14dc64eac5 [reactstrap] Bump to 6.0 2018-06-06 13:27:49 +02:00
Flosch 98ba0b7e2e [reactstrap] Add DropdownMenu persist and modifiers props 2018-06-06 13:27:49 +02:00
Flosch 7ea7631815 [reactstrap] Add setActiveFromChild prop 2018-06-06 13:26:27 +02:00
Flosch ccbd12e286 [reactstrap] Add borderless type to Table 2018-06-06 13:23:18 +02:00
Flosch c77275b10c [reactstrap] Add Typings for CustomInput 2018-06-06 13:20:41 +02:00
Benjamin LichtmanandGitHub aa9506e5a4 Merge pull request #26041 from Domino987/master
Add src to media in reactstrap
2018-05-31 15:51:40 -07:00
FaithForHumans 52a23c8c36 Errors missed by tslint 2018-05-29 16:04:53 -05:00
FaithForHumans be6be65e15 Updating tests 2018-05-29 15:58:05 -05:00
FaithForHumans d9ce205b57 Updating index file to export generics. 2018-05-29 15:57:55 -05:00
FaithForHumans ea78901bc6 Changing individual file to export as allowing any by extra prop by default. 2018-05-29 15:57:01 -05:00
FaithForHumans 1c012ab4f0 Replacing reactstrap components with generics. 2018-05-28 23:29:43 -05:00
Domino987andGitHub 9e99d7f1ab Add src to media 2018-05-25 21:10:36 +02:00
Sean Kelley ee05115ac7 Reactstrap: update types for innerRefs.
Refer to React's Ref<T> class instead. This way the types of the innerRef reflect
whatever the installed typings for React say a ref can be.
2018-05-21 14:10:14 -07:00
Sean Kelley 4563f43f69 Reactstrap: StatelessComponent -> Component where appropriate.
(See also #24846 for prior work.)

Update Reactstrap to declare components that aren't stateless functional components
as regular components. This allows consumers to use ref-related APIs, namely, the
`ref` prop and `forwardRef`.

Previously, Typescript would outright deny passing `ref`, and any attempts to use
`forwardRef` would cause very confusing type errors claiming that the component class
you were trying to refer to didn't exist (?!).

Note that many components actually are implemented as stateless components, and as such
their typings haven't been changed.

I found the list of components needing this update by checking out current master
of reactstrap (1d20d6d52c258428df39429e09c84b0ddcac76ee), then

```sh
cd src
rg 'extends (React.)?Component' -l | grep -v '__tests__'
```
2018-05-21 13:31:14 -07:00
Fábio PaivaandSheetal Nandi 232d7ea3fa Reactstrap - Remove myself as contributor to stop receiving notifications #25563 (#25585) 2018-05-07 13:21:56 -07:00
devjediandAndy fe2dca7edd Added missing "order" attribute to ColumnProps (#25336)
reactstrap supports the order attribute in the props of the <Col> component.
This was still missing from the types.
See: https://reactstrap.github.io/components/layout/
2018-05-03 09:54:57 -07:00
Florent SCHILDKNECHTandWesley Wigham 6a7b69883e [reactstrap] Correct FormGroups props typings (#25208) 2018-04-24 16:13:13 -07:00
Pat GaffneyandWesley Wigham 60f80dd6e2 reactstrap: Add Missing Prop Types (#25104)
* reactstrap: Add hideArrow PropType to <Popover/>

* reactstrap: Remove dropup prop in favor of direction for <Dropdown/>

* reactstrap: Update the version to 5.0 in index.d.ts header
2018-04-24 16:12:30 -07:00
Sean KelleyandMohamed Hegazy cdb3807edb reactstrap: Input from StatelessComponent to React.Component subclass (#24846)
* reactstrap: Input from StatelessComponent to ComponentClass

`Input` is a full React component (`ComponentClass`), not a stateless component. In particular, this change allows consumers to pass `ref` to it (not legal with `StatelessComponent`), which useful for e.g. calling `HTMLInputElement#focus()`.

* ComponentClasss -> extends React.Component
2018-04-12 09:59:44 -07:00
Armando AssunçãoandMohamed Hegazy 1f6b5b9e80 Reactstrap: updated props to Modal component (#24814) 2018-04-09 13:26:29 -07:00
Kræn HansenandGitHub dfbdf8c6c6 Removed myself as a maintainer
I was not contributing as much as I hoped for
2018-03-06 01:32:08 +01:00
Armando AguirreandGitHub 08a41eeaed Merge pull request #24042 from cynecx/reactstrap
[@types/reactstrap] Add missing valid prop to FormFeedback
2018-03-05 15:11:11 -08:00
Sami Mäki ca578cd348 Update navbar props and examples.
Updated and checked components: Navbar, NavbarBrand, NavbarToggler.
2018-03-05 11:36:46 +02:00
Sami Mäki e637f7eb20 Update navs props and examples.
Updated and checked components: Nav, NavItem, NavLink.
2018-03-05 11:36:46 +02:00
cynecx 9bab3c124d Add missing valid prop to FormFeedback 2018-03-02 22:35:11 +01:00
Ben Barber 86513e7b28 Added invalid to InputProps 2018-03-01 16:16:05 +00:00
Moe ElsharifandGitHub b2f965106c Update Input.d.ts 2018-02-16 14:26:29 +01:00
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel RosenwasserandGitHub 393eaf5b83 Merge pull request #23384 from FaithForHumans/reactstrap_extendsPatch
[Reactstrap] Adding extends HTMLAttributes to components.
2018-02-13 16:19:32 -08:00
Forbes LindesayandJohn Reilly 8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00
Daniel RosenwasserandGitHub e2096601c8 Merge pull request #23400 from timc13/patch-1
[reactstrap] add missing ModalProps
2018-02-10 10:36:03 -08:00
Ron BucktonandGitHub e8248b11bc Merge pull request #23385 from FaithForHumans/reactstrap_addonsUpdate
[reactstrap] v5 beta update changes.
2018-02-08 20:16:36 -08:00
AndyandGitHub bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Tim Chen 11b2623281 add myself to contributors 2018-02-03 18:47:26 -05:00
Tim Chen c9e511143d add missing ModalProps 2018-02-03 18:43:06 -05:00
FaithForHumans 8644f396ba Adding prepend/append for input group addons.
Removing old cardblock, inputgroupbutton, and navdropdown components.
Adding new InputGroupbuttonDropdown
2018-02-02 18:51:51 -06:00
FaithForHumans c4b1e53c5c Adding extends attributes to all components 2018-02-02 18:15:25 -06:00
Kræn HansenandAndy 5011030133 Renaming Input's size property to bsSize (#23219)
See
https://github.com/reactstrap/reactstrap/commit/cc2bd1386fbcaf20ad18ab9437a84ced1879d25e
2018-01-26 09:00:34 -08:00
paverboolandWesley Wigham d0ae43f17d "block" property of "Card" has been deprecated (#23032)
* "block" property of "Card" has been deprecated

* Add definition for v5 & remove from v4
2018-01-19 10:08:56 -08:00
AndyandGitHub 219dd6df82 Fix 'prefer-readonly' lint failures (#22819) 2018-01-10 14:59:37 -08:00
Kurt PrestonandMohamed Hegazy cea02f1111 [reactstrap] Don't declare "popper.js" module, prevent TypeScript conflict error (#22680)
* [reactstrap] Define Popper.js only internally

* [reactstrap] Switching 'declare namespace' to 'export as namespace'
2018-01-05 11:25:20 -08:00
afholdermanandMohamed Hegazy d6eafb8ea0 Add option functions to props (#22681) 2018-01-04 14:30:43 -08:00
Kurt PrestonandMohamed Hegazy 9c38485822 [reactstrap] Adding missing tag prop to Col definition (#22655) 2018-01-03 12:58:01 -08:00
Kurt PrestonandMohamed Hegazy 52bc966699 [@types/reactstrap] Adding carousel components, removing Tether (#22512)
* Adding full Popper.js definition to Reactstrap

* Reactstrap: Updating Dropdown definitions, removing Tether

* Reactstrap: Adding Carousel components and test
2018-01-03 11:42:29 -08:00
Mine StarksandGitHub 6f37e73632 Merge pull request #21876 from KurtPreston/reactstrap
Reactstrap: Updating Popover and Tooltip definitions
2017-12-14 08:24:26 -08:00
Kurt PrestonandKurt Preston e739200692 Updating Popover and Tooltip definitions 2017-12-08 23:40:11 -06:00