Commit Graph

1631 Commits (master)

Author SHA1 Message Date
Rubén Moya 72dfd21463
Merge pull request #1670 from alejandrofdiaz/dev
#1669 ListItem component theme prop extends ListItemTextTheme.
2018-01-23 18:20:14 +01:00
Rubén Moya f75fd26207
Merge pull request #1689 from velveret/autocomplete-autofocus
Allow autoFocus on Autocomplete component
2018-01-23 18:19:35 +01:00
Rubén Moya 5cbcb48cc7
Merge pull request #1683 from rubenmoya/1673-avatar-title
Add title to <Avatar /> image
2018-01-23 18:18:52 +01:00
Rubén Moya 3f1472567e
Merge pull request #1737 from rndevfx/window-requestAnimationFrame
Use window.requestAnimationFrame in Tabs.js
2018-01-23 18:18:29 +01:00
Rubén Moya 2a6b62cd81
Merge pull request #1755 from pablolmiranda/fixes-tooltip-for-button
Tooltip for disabled button
2018-01-23 18:17:39 +01:00
Rubén Moya a714a02dc7
Merge pull request #1758 from rubenmoya/update-new-domain
Update URLs to new .io domain
2018-01-23 18:17:10 +01:00
Rubén Moya 1ce99adb47
Merge pull request #1764 from vikaskyadav/patch-1
small typo error corrected.
2018-01-23 18:16:01 +01:00
Rubén Moya f462f7dd43
Merge pull request #1766 from jakerichan/input-element-variables
Update defaults in input component config.css
2018-01-23 18:15:32 +01:00
Rubén Moya b76196ff99
Merge pull request #1778 from bilalkosker/dev
onchange
2018-01-23 18:15:05 +01:00
Rubén Moya 30d6c4a766
Merge pull request #1780 from clurdish/dev
Enable onKeyDown and onKeyUp props on Autocomplete component
2018-01-23 18:14:44 +01:00
Rubén Moya a91c04b73e
Merge pull request #1793 from 3af/patch-2
Add missing Input import
2018-01-23 18:13:59 +01:00
Rubén Moya 4b93b0fe8e
Merge pull request #1682 from rubenmoya/1639-fix-input-border-firefox
Remove box-shadow on required inputs
2018-01-23 18:03:44 +01:00
3af 51a335b9d4
Add missing Input import
I ordered imports in alphabetical order.

Fixes #1792
2018-01-23 10:56:51 +01:00
3af 40aa354b16
TypeScript: snack-bar label accepts element
Reflect changes made in code for https://github.com/react-toolbox/react-toolbox/issues/819
2018-01-03 11:08:14 +01:00
Landon Petzoldt b79c3da04d Update Autocomplete TypeScript declaration file and readme with key callbacks 2017-12-21 14:16:49 -06:00
Landon Petzoldt 2c92c37080 Enable onKeyDown and onKeyUp props on Autocomplete component 2017-12-21 13:43:37 -06:00
bilalkosker 4d64c73872
onchange
On change added
2017-12-20 16:52:10 +03:00
Mohammed Erraysy 4347125901 Add onEscKeyDown and onOverlayClick fallbacks 2017-12-12 14:13:59 +00:00
Mohammed Erraysy 3d42ef975f Fix arrows updating issue when children change 2017-11-29 10:38:14 +00:00
Jake Richan 25172c5f15 update defaults in input component config.css
Use color-text variable for label and border color. This seems like an intuitive default since the default background is transparent. Also, the input element needs the option to set a custom color value, otherwise setting a custom background is limited to what works with the overall text-color.
2017-11-27 15:58:49 -07:00
Vikas Kumar Yadav f78c084380
small typo error corrected. 2017-11-23 13:07:09 +05:30
Pablo Lacerda de Miranda 028663062f adds a span wrapper to the component button in case of its disabled and have mouse enter and mouse leave events 2017-11-16 10:40:39 -08:00
rubenmoya b0a7533e7c Update URLs to new .io domain 2017-11-16 19:11:31 +01:00
Richard Nespithal bc05c693d6
Use window.requestAnimationFrame in Tabs.js
Call requestAnimationFrame on window object to fix headless testing
with jsdom without hacking around by defining global vars
2017-11-02 17:37:06 +01:00
Oleg Stepura 71341d9448 Fix travis 2017-10-02 15:55:51 +02:00
Oleg Stepura 17a175b074 Merge branch 'dev' into table-ckeckbox-spacing 2017-10-02 15:54:47 +02:00
Oleg Stepura 32e40967ab Fix travis 2017-10-02 15:48:38 +02:00
Oleg Stepura 75243c1966 Merge branch 'dev' into table-selected-hover 2017-10-02 15:44:04 +02:00
Brian Merlob ced94a4bb0 Upgrade react-transition-group 2017-09-29 17:22:39 -07:00
Vicky Lai a8280917fb Allow autoFocus on Autocomplete component 2017-09-21 12:53:42 -07:00
Lucas Nascimento b381db4054 Fix compatibility with typescript 2.4+ (#1615)
* Added a generic props interface to share with other components

* use the new DrawerCommonProps interface

* use the new DrawerCommonProps interface

* Fix compatibility with Typescript 2.3+
2017-09-21 00:16:38 +02:00
rubenmoya f815fb5db4 Add title to <Avatar /> image 2017-09-18 20:02:40 +02:00
rubenmoya 14eb6cae8d Remove box-shadow on required inputs 2017-09-18 19:57:40 +02:00
Alejandro Frías 11c3fb1e28 ListItem component theme prop extends ListItemTextTheme. 2017-09-05 11:26:12 +02:00
Rasmus Eneman 6d43f884fd Fix lint issue (#1624)
As the lint fails on dev Travis marks the build as failing for all new PRs, this fixes that.
2017-09-01 17:54:15 +02:00
Paweł Rychlik 4ca6747bfc Update readme for Autocomplete (#1657)
According to the source, the accepted values for `direction` are `"auto" | "up" | "down"`.
8e2b688954/components/autocomplete/Autocomplete.d.ts (L54)
2017-09-01 17:53:16 +02:00
Shawn Erquhart 071a4d3c71 Add `multiple` property to `BrowseButton` (#1656) 2017-09-01 17:52:57 +02:00
Panjie Setiawan Wicaksono 91cb46db84 Typescript definitions validation (#1163)
* initial attempt to validate ts definitions

* ignore .vscode

* Add other spect & some fixes:

- Add target prop to Button
- Add value prop to MenuItem
- Make label optional in Tab
- Improve Tooltip types

* Add tsc validation to travis

* fix typo in travis build step
2017-09-01 17:51:41 +02:00
Adam 8b7fc07f82 Portal: Fix Invalid "style" PropType (#1664)
* Fix bad prop.

(cherry picked from commit 7d54ca0a30b6238195a9cfd6da19e8fa94655ae5)

* fix prop-type.

(cherry picked from commit f48a0e2881f6541e4acd4e9f7610bda629b0fcc8)
2017-09-01 17:43:03 +02:00
Adam Henson 0103d955b0 IconMenu: active prop (#1662). 2017-08-28 00:00:21 -04:00
Adam Henson bf790d7b86 IconMenu: active prop (#1662). more tests. 2017-08-27 23:47:09 -04:00
adamhenson 74bd2dc77b IconMenu: active prop (#1662). 2017-08-27 19:10:01 -04:00
adamhenson 0f51c06c3b IconMenu: active prop (fixes #1662). 2017-08-27 17:17:53 -04:00
Zander Otavka 47d2f1893f Fix mixed up type definitions for Dropdown
`valueKey` and `labelKey` were listed as theme props.  What's worse, `valueKey` was marked as required, when in fact it should not be present at all on the theme.
2017-08-12 15:54:50 -07:00
Paul Sastrasinh 31fac7b779 fix: of -> or in documentation 2017-08-11 10:54:03 -04:00
Oleg Stepura b660bcc2e1 Make checkbox centered between table edge and next column start 2017-08-09 15:21:17 +02:00
Oleg Stepura d9a0d7eee3 Add transition to hover effect in list items 2017-08-09 13:54:34 +02:00
Oleg Stepura a46f0956c5 Disabled input should be dashed not dotted 2017-08-09 12:55:09 +02:00
Oleg Stepura 889e9ca088 Use hover effect on selected table row as well 2017-08-09 12:40:58 +02:00
Oleg Stepura 4670098d20 Make checkbox border color according to spec 2017-08-09 12:27:02 +02:00
Javi Velasco 61228b10db Merge branch 'dev' of github.com:soyjavi/react-toolbox into dev
* 'dev' of github.com:soyjavi/react-toolbox: (24 commits)
  Fix bug where dropdowns don't close (#1548)
  Fix Mobile Safari issues. (#1282)
  Feature/tabs a11y (#1513)
  Add default export TypeScript type to IconButton (#1577)
  Add variables for the App Bar's font size and weight. (#1518)
  Change tab style for ripple to work with Tabs (#1519)
  Issue 1459: Replace onClick handler in Dropdown component to onMouseDown (#1521)
  Event passed for Radiogroup (#1544)
  Add `accept` property to `BrowseButton` (#1533)
  Fix typescript bindings. (#1564)
  fixed browser button fires onChange event  twice (#1557)
  Made role on input field a property (#1553)
  Add workaround to `is-component-of-type` for `react-hot-loader@^3` (#1569)
  Docs/Install: Fix typos, clarify language (#1566)
  Add ThemeProvider Typescript type (#1576)
  Apply padding 0 to everything but buttons in ListItemAction (#1571)
  Do not show scrollbar on autocomplete component IE11 (#1515)
  Fix date-picker animation in IE11 (#1586)
  solve #1444 and #1359. (#1587)
  Remove discord link in README.md (#1593)
  ...
2017-08-08 19:16:44 +02:00
Javi Velasco 2eb27c71a8 Remove max-height from dialog along with hidden overflow 2017-08-08 18:52:52 +02:00
Tobias Andersen 13520e3111 Fix bug where dropdowns don't close (#1548) 2017-08-02 18:34:52 +02:00
Izak Filmalter e15ee8ee05 Fix Mobile Safari issues. (#1282)
* Add $input-icon-right-space var to add the correct spacing to the input based on Material Spec.

https://material.io/guidelines/components/text-fields.html#text-fields-s
ingle-line-text-field

* Fix Mobile Safari Issues.

Remove added border-radius for inputs from Safari. Fix `Object.entries
is not a function` for autocomplete.

* Remove new line.

* Add callback functions to slider for when slider starts being dragged, and when it stops.
2017-08-02 18:31:46 +02:00
Connor Schlesiger 94f649363a Feature/tabs a11y (#1513)
* Update tabs for a11y

* Use transition for background and set a11y for tab content

* Remove unneccessary tabIndex from tab content

* Fix lint issues
2017-08-02 18:30:41 +02:00
Rasmus Eneman 79e031e149 Add default export TypeScript type to IconButton (#1577) 2017-08-02 18:29:19 +02:00
Jared Tarnasky f93040ee4d Add variables for the App Bar's font size and weight. (#1518)
Add variables for the App Bar's font size and weight and align the defaults to Google's Material Design specs, which say "Across form factors, text that appears in the app bar should use the Title style, Medium 20sp." (see https://material.io/guidelines/style/typography.html).
2017-08-02 18:29:04 +02:00
Osmel Mora cd6a130bac Change tab style for ripple to work with Tabs (#1519)
* Change tab style for ripple to work

Changing element position to relative and overflow hidden.

* Changing CSS props order
2017-08-02 18:28:39 +02:00
Patrick Torpey 736f23eaa5 Issue 1459: Replace onClick handler in Dropdown component to onMouseDown (#1521) 2017-08-02 18:27:14 +02:00
Nilansh Arora 6fd1421143 Event passed for Radiogroup (#1544) 2017-08-02 18:26:34 +02:00
Daniel Barreiro 934ffd2000 Add `accept` property to `BrowseButton` (#1533)
* Corresponds to `accept` attribute on `<input type="file"`
* Allows defining which type of files are to be listed
* Defaults to `*/*` which means all MIME types

Not documented nor tested in the original, it remains so.
2017-08-02 18:26:20 +02:00
Ingo Bürk de69a1414f Fix typescript bindings. (#1564)
This has been overlooked in PR #1407.
2017-08-02 18:25:45 +02:00
Nicolas Jiang c1a2dba4b4 fixed browser button fires onChange event twice (#1557) 2017-08-02 18:25:19 +02:00
Jonas Knutsen fc9c1802c7 Made role on input field a property (#1553) 2017-08-02 18:22:05 +02:00
Tom Chen 431abb1bde Add workaround to `is-component-of-type` for `react-hot-loader@^3` (#1569) 2017-08-02 18:19:53 +02:00
Rasmus Eneman 7403d5d2d8 Add ThemeProvider Typescript type (#1576) 2017-08-02 18:18:51 +02:00
Rubén Moya f44833a5dc Apply padding 0 to everything but buttons in ListItemAction (#1571) 2017-08-02 18:17:17 +02:00
Kristoffer Rene Eckhoff f8f528cbcd Do not show scrollbar on autocomplete component IE11 (#1515)
Scrollbars are shown on the autocomplete component in IE11.

It is not possible to use the scrollbar after it appears which confuses my users.

I am not sure IE implementations are wanted, but this in any case disables the scrollbar so that the autocomplete looks more like in chrome.
2017-08-02 18:15:55 +02:00
AlexPrinz 54d0cb5c62 Fix date-picker animation in IE11 (#1586) 2017-08-02 18:14:23 +02:00
the1900 843b88a311 solve #1444 and #1359. (#1587)
* update webpack config to make "Basic usage" work.

I use webpack version 2.6 and new configure syntax rather than 1.x.

When I follow the instruction on `readme.md`. It always failed on *Basic Usage* with the message below.
``` bash
ERROR in ./~/css-loader?{"modules":false,"importLoaders":1,"localIdentName":"[name]--[local]--[hash:base64:8]"}!./~/postcss-loader/lib!./~/react-toolbox/lib/button/theme.css
  Module build failed: Error: composition is only allowed when selector is single :local class name not in ".raised", ".raised" is weird
```

So I figured out what's wrong and update `reame.md` to notify others.

* edit multiple number.

According to docs, the width is larger than 320px and if the device is mobile than 280px. To follow this specification It should be 5, not 4.
2017-08-02 18:13:48 +02:00
Robin Larson fb5d0e1ffc requestAnimationFrame will only trigger if the browser window is visible. If the browser tab is put to the background, requestAnimationFrame will trigger when the tab returned to the foreground. When the Tabs Component is removed from the DOM when in the background, the requestAnimationFrame must be canceled to prevent attempting to use a unmounted Component. (#1604) 2017-08-02 18:11:37 +02:00
TeoMatthew df175e7f0d fix #1611 (#1612)
Added correct proptypes on `ListItemLayout` and updated documentation for ListItem's fields `legend` and `caption`.
2017-08-02 18:08:28 +02:00
Pablo Lacerda de Miranda 0e299a65b1 allows the Portal HOC root element to receive a style props. This allows coordinate runtime positioning of the portal element using top/left/bottom/right values (#1502) 2017-07-13 20:43:14 +02:00
Nathan Miranda 6290cf5ab2 Added label to InputTheme interface (#1501) 2017-07-13 20:29:33 +02:00
Javi Velasco 8304c1ec2e Merge branch 'dev' of github.com:soyjavi/react-toolbox into dev
* 'dev' of github.com:soyjavi/react-toolbox:
  ListItem legend may be a node as well (#1496)
  Allow pass inverse to IconMenu (#1490)
  Fix media queries panel height calculations (#1467)
  Allow to change FontIcon for Tab by passing it into the factory (#1439)
  Added required?: boolean; (#1491)
2017-07-13 20:28:09 +02:00
Javi Velasco 7db3e34350 Avoid undefined className when ProgressBar mode is determinate 2017-07-13 20:27:50 +02:00
Oleg Stepura a6eb5c53f3 ListItem legend may be a node as well (#1496)
Currently it works, but produces a warning by react typechecking
2017-07-13 20:20:33 +02:00
kobanyan 4722904d25 Allow pass inverse to IconMenu (#1490) 2017-07-13 20:19:16 +02:00
Aris Plakias 4a13ff2541 Fix media queries panel height calculations (#1467) 2017-07-13 20:18:00 +02:00
Ankur Patel d6bdf2008e Allow to change FontIcon for Tab by passing it into the factory (#1439) 2017-07-13 20:03:34 +02:00
Miguel San Segundo 27caadb182 Added required?: boolean; (#1491) 2017-05-29 13:46:38 +02:00
Javi Velasco 9a9396fa0b Fix tests 2017-05-24 10:38:04 +02:00
Javi Velasco be80e0bb85 Update dependencies 2017-05-23 13:04:55 +02:00
Gabriel Villenave 2981da4094 Updated dependencies (#1448) 2017-05-22 18:30:39 +02:00
Daniel Barreiro 9619d85916 Fixes #1452 (#1454)
* Fixes #1452

Avoid using .bind within the render method of components.

* Fixed JS comment into proper JSX comment
2017-05-22 18:28:16 +02:00
Brian Gates f90958d53c Update readme.md (#1478)
Fixed typo.
2017-05-22 18:26:56 +02:00
Kiko Beats 06cbc41f3b Fix AppBar doc (#1407) 2017-05-09 17:02:33 +02:00
Brock Wills ae09770cd4 Importing PropTypes from prop-types rather than react (#1413) 2017-04-17 16:14:17 +02:00
ismail-codar e572dd7a96 Update DatePicker.d.ts (#1411)
Type fixing.
2017-04-17 09:50:41 +02:00
Javi Velasco 56a730e516 Small fixes 2017-04-06 10:28:44 +02:00
Kiko Beats 50049275d5
Merge branch 'dev' into patch-1 2017-04-06 10:16:05 +02:00
priecint 991a430ca2 Fix TableCell definition (#1386)
As per source (https://github.com/react-toolbox/react-toolbox/blob/dev/components/table/TableCell.js#L7) `sorted` accepts lower-case strings but the TypeScript definition uses upper-case. So there is either error from TS (`TS2322:Type 'string' is not assignable to type '"ASC" | "DESC"'`) or React (`Warning: Failed prop type: Invalid prop `sorted` of value `ASC` supplied to `ThemedTableCell`, expected one of ["asc","desc"].`).
2017-04-06 09:52:54 +02:00
Kiko Beats 4ef719ad32
Update AppBar.js 2017-04-06 09:49:25 +02:00
Kiko Beats cd3fefc838 Add possibility to render component as AppBar title 2017-04-04 23:54:04 +02:00
Austin Peterson 3dde4c4cda Dev dialog overflow (#1303)
* dialog overflow option

* fixing out of order

* expected overlay to become before transition
2017-04-02 14:17:14 +02:00
Lucas Nascimento 0bd575fdac feat(slider): add buffer prop to Slider (#1317) 2017-04-02 14:16:09 +02:00
Raphael Guastaferro b75214c792 Autocomplete accepting suggestionMatch none (#1289) 2017-04-02 14:15:26 +02:00
codeaid 4ff1cc9734 Added missing onKey(Down|Up) input property definitions (#1318) 2017-04-02 14:13:16 +02:00
Mikko Matilainen da85a69e52 Fix allowCreate in Autocomplete when value prop is an object (#1334) 2017-04-02 14:12:48 +02:00
rainie 73bf3be741 Fix error in events.js transitionEventNamesFor method (#1294) 2017-04-02 14:12:07 +02:00