Commit Graph

822 Commits (1a9fe2476265a0fe5c19013fff5e014160e94bf2)

Author SHA1 Message Date
Javi Velasco 8b2316e947 Improve layout for calendar in firefox 2015-12-19 14:08:30 +01:00
Peter Fern 58e4e1e46c Replace `overflow-y: scroll` with `overflow-y: auto`
A number of components used `overflow-y`: scroll, which forces
scrollbars to be always visible. To work around this, `commons.scss` hid
webkit scrollbars globally. There are two problems with this: on
non-webkit browsers, scrollbars are visible even when they are
unnecessary; and scrollbars are hidden in webkit browsers, even on
elements where they may be desirable.

Instead, we use `overflow-y: auto`, and hide webkit scrollbars on
specific components when necessary.  Unfortunately, this requires using
element selectors, but this is the trade-off for better supporting
non-webkit browsers and allowing scrollbars on regular elements (like
body).

Fixes #218
2015-12-19 14:08:30 +01:00
avijohnson ffa5044e20 Add maxLength attribute to input component 2015-12-16 14:25:01 -08:00
Javi Velasco 0daca7e09e Merge pull request #212 from pdf/card_media_variable_height
Allow CardMedia to have flexible height per documentation
2015-12-16 07:36:29 +01:00
Peter Fern ae3f4a51aa Allow CardMedia to have flexible height per documentation
The documentation for CardMedia specifies that if the `aspectRatio`
property is not set, the media will have a flexible height.  The
existing implementation did not provide this, and would instead always
render with a height of `0`, effectively hiding the element.

This change should bring the component into line with the documentation.
2015-12-16 10:28:07 +11:00
Jackie Li 5ed9184c12 handle mouse leave in IconButton like Button does, fixes #208 2015-12-15 17:07:41 +00:00
Javi Velasco 211d542b7f Add animated auto transition from hours to minutes in TimePicker 2015-12-12 11:35:31 +01:00
Javi Velasco a88868a5fa Fixes #203 2015-12-11 19:20:58 +01:00
Javi Velasco 85ff089e46 Update switch examples 2015-12-11 19:11:55 +01:00
Javi Velasco b963be79ea Better styles for navigation. Fixes #205 2015-12-11 18:53:37 +01:00
Javi Velasco b5b3fe2488 Merge branch 'master' into dev
* master:
  Remove opacity prop from Overlay and add invisible. Fixes #183, #178
  0.13.4 release
2015-12-11 18:01:33 +01:00
Javi Velasco 312ec91fcc Remove opacity prop from Overlay and add invisible. Fixes #183, #178 2015-12-11 18:01:24 +01:00
Javi Velasco 9e3ad3b88c Fixes #182 2015-12-08 00:05:36 +01:00
Javi Velasco fe5f0f8071 Merge pull request #201 from react-toolbox/ripple-decorator
Ripple decorator
2015-12-07 23:57:59 +01:00
aeickhoff b63d9da0c2 Prevent avatar from getting squeezed
If caption or legend of a list item with an avatar are very long it got squeezed, because it was allowed to shrink in its flex container.
2015-12-07 16:32:05 +01:00
Javi Velasco 1139fa6a62 Move Ripple main to Decorator approach 2015-12-07 02:34:12 +01:00
Javi Velasco 947c22d752 Use ripple decorator in menus 2015-12-07 02:25:58 +01:00
Javi Velasco b5606ebb15 Use ripple decorator in switch 2015-12-07 02:14:10 +01:00
Javi Velasco fa76723ffd Use ripple decorator in Radio buttons 2015-12-07 01:40:59 +01:00
Javi Velasco 4c986e4f3c Remove unused css in calendar 2015-12-07 01:14:10 +01:00
Javi Velasco 8edf492334 Use RippleDecorator in ListItem 2015-12-07 01:13:59 +01:00
Javi Velasco a2e504f8f2 Remove ripple loading mixin 2015-12-07 00:47:07 +01:00
Javi Velasco 5afbaf5c74 Currying Ripple Decorator 2015-12-07 00:46:00 +01:00
Javi Velasco 43df57ab9d Use RippleDecorator in IconButton 2015-12-07 00:27:13 +01:00
Javi Velasco 8076f35739 Merge branch 'master' into ripple-decorator
* master:
  Fix ListSubHeader case
  Rename ListSubheader.jsx to ListSubHeader.jsx
  Input was missing html5 type property
2015-12-06 14:35:31 +01:00
Javi Velasco 6d7204db53 Add ripple decorator and use it in button and checkbox 2015-12-06 14:35:10 +01:00
Aleš Jiránek cc6e3fbdc6 Fix ListSubHeader case 2015-12-05 13:43:06 +01:00
Aleš Jiránek 1189e309c5 Rename ListSubheader.jsx to ListSubHeader.jsx 2015-12-05 13:36:35 +01:00
Cem Turan 89b41f3663 Input was missing html5 type property 2015-12-05 10:49:29 +01:00
Matt Brookes cfad0eae81 Typo 2015-12-03 20:52:37 +00:00
Javi Velasco 27b7bef158 Fix typos in input examples and update example in input readme 2015-12-03 20:44:23 +01:00
Jakub Wojtczak 0e13ae0740 Fix ripple positioning when page is scrolled 2015-12-03 14:54:45 +01:00
Javi Velasco c8246f5c3b Fix checkbox readme 2015-12-03 01:00:59 +01:00
Javi Velasco 22bd7504f1 Fix timepicker example 2015-12-03 00:56:18 +01:00
Javi Velasco 26d7b8a6e8 Add missing default to some globals 2015-12-03 00:50:02 +01:00
Javi Velasco 083586304b Fixes #180 2015-12-03 00:48:32 +01:00
David Hayes 9b0e50e747 Change capitalization to match the filesystem exactly. 2015-12-02 15:24:22 -06:00
Javi Velasco 64b87d013a Remove font import from globals 2015-11-29 19:04:20 +01:00
Javi Velasco a1a854663d Update FontIcon docs 2015-11-29 19:01:22 +01:00
Javi Velasco f2738a0e11 Small changes in card readme 2015-11-29 18:41:52 +01:00
Javi Velasco d0e4135d0b Better touch ripple handling 2015-11-29 12:40:09 +01:00
Javi Velasco 1c57370651 New approach for Tooltips 2015-11-29 12:39:55 +01:00
Javi Velasco de921b0438 Make label red in case of error for Input 2015-11-29 01:31:40 +01:00
Javi Velasco f23a3c691f Fixes in Input component 2015-11-29 01:25:21 +01:00
Javi Velasco 5248f87468 Delete loading prop from buttons 2015-11-28 20:34:07 +01:00
Javi Velasco 2e0b9fcb5c Merge with master 2015-11-28 20:26:11 +01:00
Javi Velasco da0f1a631e Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00
Javi Velasco db43b1948e Use ClassNames in Tooltip 2015-11-28 20:21:52 +01:00
Javi Velasco 35f8f12ae6 Use ClassNames in Tabs and rename files 2015-11-28 20:19:42 +01:00
Javi Velasco c5d0d153b4 Use ClassNames in TableRow 2015-11-28 20:17:55 +01:00
Javi Velasco 95162002de Use ClassNames in Snackbar 2015-11-28 20:15:26 +01:00
Javi Velasco e328ffc5dd Use ClassNames in Slider 2015-11-28 20:03:08 +01:00
Javi Velasco 3b1e1f0b6e Use ClassNames in Radio 2015-11-28 19:54:45 +01:00
Javi Velasco 5a002b4712 Fix icons in icon menu example 2015-11-28 19:47:11 +01:00
Javi Velasco 215936f856 Use ClassNames in ProgressBar 2015-11-28 16:17:11 +01:00
Javi Velasco 7367964c86 Capitalize list component filename 2015-11-28 16:08:20 +01:00
Javi Velasco 794a385835 Use ClassNames in Menu 2015-11-28 16:08:00 +01:00
Javi Velasco edcb7f5244 Use ClassNames in ListItemCheckbox 2015-11-28 16:04:09 +01:00
Javi Velasco 2b9c615af6 Bugfix: rename with-legend class to withLegend 2015-11-28 16:01:38 +01:00
Javi Velasco 3d9b92164c Rename list to List and use ClassNames in ListItem 2015-11-28 15:58:51 +01:00
Javi Velasco bf726ba088 Use Classnames in Link 2015-11-28 15:55:09 +01:00
Javi Velasco ad916fba6d Remove flex attributes styling 2015-11-28 15:49:29 +01:00
Javi Velasco 1370e2a2c9 Use ClassNames in Dropdown 2015-11-28 15:39:09 +01:00
Javi Velasco ee45186d9a Use ClassNames in Drawer 2015-11-28 15:32:58 +01:00
Javi Velasco 9286e1caa1 Use ClassNames in Dialog component 2015-11-28 15:31:04 +01:00
Javi Velasco fdeccdad02 Use ClassNames in CalendarDay 2015-11-28 13:55:25 +01:00
Javi Velasco eb8b83d6b3 Pass scss lint 2015-11-28 13:47:56 +01:00
Javi Velasco 50544ab413 Use ClassNames in Checkbox component 2015-11-28 13:42:17 +01:00
Javi Velasco 387afcf6fd Remove unneeded ripple dependency in calendar 2015-11-28 13:36:22 +01:00
Javi Velasco b249d58313 Add avatar to docs 2015-11-27 22:27:06 +01:00
Javi Velasco cdd7d773be Improve Avatar validation 2015-11-27 22:17:35 +01:00
Javi Velasco a830c935a1 Better avatar component 2015-11-27 22:09:18 +01:00
Javi Velasco bf68c83ea7 Allow img as children for avatar 2015-11-27 18:32:19 +01:00
Javi Velasco 4affcc8636 Merge branch 'deep-restructure' of github.com:soyjavi/react-toolbox into deep-restructure
* 'deep-restructure' of github.com:soyjavi/react-toolbox:
  Using the new interface for all form fields components.
  New interface for onChange event (value, event)
  New interface for onChange event (value, event)
2015-11-26 01:54:00 +01:00
Javi Velasco 2106d0ee41 Complete implementation for Avatar 2015-11-26 01:53:42 +01:00
Javi Velasco c9061e27e1 Use classNames in Autocomplete 2015-11-25 20:35:56 +01:00
Javi Velasco db30db8e02 Refactor app and app_bar 2015-11-25 20:30:28 +01:00
Javi Velasco ba70d60cbd Move card sizes to rem units 2015-11-25 20:15:44 +01:00
@soyjavi e9001c5473 Using the new interface for all form fields components. 2015-11-25 21:01:18 +07:00
@soyjavi 51ca0fab20 New interface for onChange event (value, event) 2015-11-25 20:56:12 +07:00
@soyjavi 0837999d08 New interface for onChange event (value, event) 2015-11-25 20:48:29 +07:00
@soyjavi ee17dcf7aa New interface for onChange event (value, event) 2015-11-25 17:44:55 +07:00
@soyjavi e9566d0e59 New interface for onChange event (value, event) 2015-11-25 17:40:14 +07:00
@soyjavi 05ec7a3227 New interface for onChange event (key, value, event) 2015-11-25 17:33:17 +07:00
@soyjavi d7bd4f5e58 New interface for onChange event (value, event) 2015-11-25 17:31:59 +07:00
@soyjavi 9b1cb72e7c New interface for onChange event (value, event) 2015-11-25 17:28:36 +07:00
@soyjavi fd0e565013 New interface for onChange event (value, event) 2015-11-25 17:24:06 +07:00
@soyjavi 4d52011580 Fixed typo 2015-11-25 11:57:26 +07:00
@soyjavi 9de67a44bf First version of stateless form 2015-11-25 11:26:33 +07:00
@soyjavi b190ecc857 No abbr... 2015-11-25 09:59:12 +07:00
andmilj 87cf774a37 changing months in datepicker (Firefox) is failing as event object is undefined 2015-11-24 23:46:31 +01:00
Javi Velasco c42b3c614c Use IconButton in IconMenu 2015-11-24 23:03:27 +01:00
Javi Velasco 2e414e9443 Use IconButton in Calendar 2015-11-24 22:58:50 +01:00
Javi Velasco 69521f878f Finish IconButton 2015-11-24 22:18:00 +01:00
Javi Velasco 6495af36bd Update babel-eslint to latest version 2015-11-24 20:26:10 +01:00
Miguel Ping 726a7772ee Fix array check on autocomplete 2015-11-24 12:59:19 +00:00
Nathan Marks 2117354b3f Fixed docs component scope error and added card example 2015-11-24 00:53:00 -05:00
Javi Velasco 9769bfb51e Extract IconButton and small fixes 2015-11-24 00:29:02 +01:00
Javi Velasco 395ce5be46 Pass linter errors for button 2015-11-23 20:38:50 +01:00
Javi Velasco 61ac76c630 Adapt avatar to current linter constraints 2015-11-23 20:37:22 +01:00
Javi Velasco 6a644a4bcb Remove extra lines 2015-11-23 20:35:02 +01:00
Javi Velasco 52b8723e89 Adapt cards codestyle to the current constraints 2015-11-23 20:34:07 +01:00
Nathan Marks 987feb8a02 Working on card documentation 2015-11-22 23:19:26 -05:00
Nathan Marks 4ceee8d0dc Added script to auto add component definitions to bottom of readme 2015-11-22 21:43:15 -05:00
Nathan Marks f3d047e820 Remove jsx extension from component index files, replace with js 2015-11-22 17:49:46 -05:00
Nathan Marks 6206e70183 Moved updated fonticon to new file 2015-11-22 17:41:00 -05:00
Nathan Marks c9e3663f56 Removed font icon style dependency, fixes #151 2015-11-22 17:39:27 -05:00
Nathan Marks c65ab37b57 Rebased branch on deep-restructure 2015-11-22 17:33:44 -05:00
Nathan Marks eea0c0e61e Removed old file 2015-11-22 17:32:30 -05:00
Nathan Marks 38e9dd314b Added additional examples in spec 2015-11-22 17:32:09 -05:00
Nathan Marks 6d9f9aa8db Rebasing with master 2015-11-22 17:30:26 -05:00
Nathan Marks e1b04a206a Remove classnames decorator 2015-11-22 17:28:28 -05:00
Nathan Marks dba68e72a5 Added <Avatar> component as required by the card title component 2015-11-22 17:28:28 -05:00
Nathan Marks 37199c22e6 Started card overhaul 2015-11-22 17:25:26 -05:00
Javi Velasco 598d80564b Rename lists subcomponents and little fixes 2015-11-22 22:28:24 +01:00
Javi Velasco ceb2ce4c7a Reorganize pickers 2015-11-22 22:13:27 +01:00
Javi Velasco cfebdb55f4 Rename most components index to actual components 2015-11-22 21:41:28 +01:00
Javi Velasco 1611b491fa Rename some components to new naming approach 2015-11-22 19:20:05 +01:00
Javi Velasco 7bc8721caa Merge pull request #125 from jonathanp/refactor-classname-generation
Proposal to change class list generation in components
2015-11-21 19:59:50 +01:00
jpersson f5134d256c Replace dependency `classnames-minimal` with `classnames` 2015-11-21 13:04:09 -05:00
Javi Velasco d468c9f1b3 Add floating label for pickers. Fixes #137 2015-11-21 14:46:24 +01:00
Javi Velasco 364e270da1 Better imports organization. Fixes #140 2015-11-21 14:26:17 +01:00
Javi Velasco fb2909640d Add selectable property to table. Fixes #145 2015-11-21 13:18:05 +01:00
Javi Velasco e8325e5122 Solve conflicts 2015-11-21 13:02:46 +01:00
Javi Velasco 1bfd44e60f Update eslint and plugins and add some rules to make it pass 2015-11-21 12:56:57 +01:00
Javi Velasco af05a71544 Merge and solve conflicts 2015-11-21 12:27:25 +01:00
Javi Velasco ac5501b9a5 Improve ripple performance. Fixes #142 2015-11-21 12:23:24 +01:00
@soyjavi ef6bd0899d New property delay in milliseconds. 2015-11-21 11:27:33 +07:00
@soyjavi 7fc2617fa9 Use milliseconds for timeout. 2015-11-21 11:24:14 +07:00
Javi Velasco f6840de8ea Use scale for ripple instead of width and height 2015-11-20 13:10:11 +01:00
Javi Velasco 0d5310d0ec Use normal overflow on rounded buttons 2015-11-20 00:26:36 +01:00
Enzo Martin 6d4ae47168 Fix straggling ) 2015-11-19 23:41:41 +01:00
Javi Velasco 63a0c489c8 Add touch ripple for buttons 2015-11-19 23:27:21 +01:00
Javi Velasco bd236e172b Add touch support for ripple 2015-11-19 23:27:21 +01:00
Javi Velasco 1193e99d3d Auto import base in commons file 2015-11-19 23:27:21 +01:00
jpersson e76cec03f0 Merge branch 'master' into refactor-classname-generation 2015-11-19 14:26:09 -05:00
Javi Velasco 7841b430d6 Add touch ripple for buttons 2015-11-19 20:13:47 +01:00
Javi Velasco 1ab45dbe5b Add touch support for ripple 2015-11-19 20:13:14 +01:00
Javi Velasco 2fc419f0cd Auto import base in commons file 2015-11-19 17:03:14 +01:00
Enzo Martin addc7f312b Remove all `unquote` calls
- Use SASS RGBA directly when modifying the opacity
2015-11-19 12:21:51 +01:00
Enzo Martin dd8a176af7 Define all colors as RGB
- Remove the need to use `unquote` and makes all variables be actual color values that can be manipulated as expected with SASS
2015-11-19 12:21:36 +01:00
Stan 1cf41fe8de [autocomplete] Fix #134 2015-11-19 11:02:10 +01:00
Javi Velasco 9905403b97 Do not include commons in app wrapper 2015-11-19 00:49:39 +01:00
Javi Velasco b12bf6e7e0 Add hack to allow overflow hidden with border radio in old webkit 2015-11-18 22:53:30 +01:00
Javi Velasco 64baf5db63 Change scale3d property to scale in radio button 2015-11-18 22:43:20 +01:00
Javi Velasco 1329cf94e4 Merge pull request #123 from shantp/master
Add scrollX/Y for components not wrapped in App
2015-11-18 10:01:42 +01:00
Javi Velasco 6c75479328 Remove section titles from tabs in tabs example 2015-11-18 09:59:56 +01:00
Javi Velasco e0a4168c79 Fix examples for tab 2015-11-18 09:57:46 +01:00
Javi Jiménez 5d34604d85 Merge pull request #126 from react-toolbox/input-maxlength
Input maxlength
2015-11-18 15:24:53 +07:00
@soyjavi 477b770edd New property 'maxLength' 2015-11-18 15:19:58 +07:00
jpersson 76a7e913ea Refactor class list generation in `Input` component 2015-11-17 20:28:25 -05:00
Javi Velasco 54ad233dd6 Fix scss linter errors and bugfix in snackbar 2015-11-18 01:15:07 +01:00
Javi Velasco 26cecdc23f Change button properties and support toggle icon buttons 2015-11-17 21:49:27 +01:00
Shant Parseghian 2bf510f42e Add scrollX/Y for components not wrapped in App 2015-11-17 11:39:26 -08:00
Javi Velasco 28e97c15ad Merge branch 'master' into button-enhancements
* master:
  Patch: Placeholder in <DatePicker>
  Bumped such as NPM Commands
  Revert "Added bumped to a npm command"
  Added bumped to a npm command
  removing UV_THREADPOOL_SIZE set, now executed from npm start script.
  adding cross-env command to npm start scripts for windows compatibility.
2015-11-17 18:41:55 +01:00
@soyjavi 98f2920bf4 Patch: Placeholder in <DatePicker> 2015-11-17 09:49:25 +07:00
Javi Velasco ab40974ea9 Adapt docs to new buttons 2015-11-17 00:45:20 +01:00
Javi Velasco 709cc3746e Use i tagname for icons 2015-11-16 21:55:32 +01:00
Javi Velasco 4707a26748 Allow children for buttons and use it as link where there is href prop 2015-11-16 21:55:21 +01:00
Javi Jiménez 73fb8f31df Merge pull request #116 from react-toolbox/datepicker
Datepicker
2015-11-17 00:42:15 +07:00
@soyjavi 0e54523fc1 New style for calendar (material design new spec) 2015-11-17 00:37:29 +07:00
@soyjavi 20d8834ccb force date when it's out of range 2015-11-17 00:02:32 +07:00
@soyjavi 0cacdf14ec Change examples for use new properties 'minDate' and 'maxDate' 2015-11-16 23:04:13 +07:00
@soyjavi f31dde202b Lock year like a change date (when it's out of range) 2015-11-16 22:54:05 +07:00
Javi Velasco c9e700f770 Enable App component to hold refs 2015-11-16 10:18:49 +01:00
@soyjavi 67e6a7ed8c New properties 'minDate' & 'maxDate' 2015-11-16 15:56:05 +07:00
Javi Velasco e7850c4668 Import globals in font icon to get the url config variable for the font 2015-11-15 22:10:05 +01:00
Javi Velasco 14ad835b3d Change quotes to pass linter rules 2015-11-15 22:06:52 +01:00
Javi Velasco 5fec753033 Merge 2015-11-15 22:05:26 +01:00
Javi Velasco c09f7c4ad7 Round ripple for floating buttons 2015-11-15 21:42:32 +01:00
Javi Velasco 37f1bf24a9 Minor fixes 2015-11-15 19:34:09 +01:00
Javi Velasco d840c44995 Merge 2015-11-15 19:27:47 +01:00
Javi Velasco 7e694b41eb Defer hiding in 500ms for tooltips 2015-11-15 18:31:01 +01:00
@soyjavi 69180726c5 Tooltip using a parent with relative position 2015-11-15 20:48:57 +07:00
@soyjavi 597d6fdf84 Not necesary overlay events 2015-11-15 20:42:16 +07:00
@soyjavi 8d0649aca0 Use <overlay> component for set the correct position in <dialog> components. 2015-11-15 14:13:10 +07:00
@soyjavi 17cc28d3a2 Set .active class only when component has a opacity > 0 2015-11-15 14:11:35 +07:00
@soyjavi bacb02b8e4 Get real height of parent 2015-11-15 12:13:05 +07:00
@soyjavi 9aca75a1d7 Now <Snackbar> uses internal component <overlay> (using its new property opacity) 2015-11-15 10:20:22 +07:00
@soyjavi 6cd6fd7340 Now opacity set by property 2015-11-15 10:17:07 +07:00
Javi Velasco 5fbe67b9ac Add react-toolbox attribute to dialog 2015-11-15 03:20:23 +01:00
Javi Velasco cadc3e2bc7 Use Overlay component in drawers 2015-11-14 22:00:35 +01:00
Javi Velasco 2c17688db1 Use new Overlay component in dialogs and dependencies 2015-11-14 21:51:33 +01:00
Javi Velasco 14c8cb5b20 Add Overlay component 2015-11-14 21:38:17 +01:00
Javi Velasco 272a37fd4c Stateless table component 2015-11-14 10:26:50 +01:00
Javi Velasco 832e01fe27 Move onActive to tab in tabs 2015-11-13 15:01:30 +01:00
Javi Velasco e15c421ff3 Rename active to index in tabs 😕 2015-11-13 10:04:21 +01:00
Javi Velasco 50b113b4d1 New and refactored stateless tabs 2015-11-13 01:01:27 +01:00
Javi Velasco d9153468e8 Add proper example in switch readme 2015-11-12 19:06:56 +01:00
Javi Velasco acdb2ca0f7 Add back onBlur and onFocus for Switch component 2015-11-12 19:02:21 +01:00
Javi Velasco 846699ad22 Remove not needed click handler in snackbar 2015-11-12 19:00:28 +01:00
Javi Velasco da004e9f46 Merge with master 2015-11-12 18:58:06 +01:00
Nathan Marks 9975b8d33e Removed babel-polyfill from docs and added ie11 polyfills to main component library 2015-11-12 10:48:42 -05:00
@soyjavi cbbf602552 Minor changes (help to read) 2015-11-12 12:03:24 +07:00
@soyjavi d37b3d536f Missing code in <Table> 2015-11-12 12:02:37 +07:00
@soyjavi c1c1a9a931 Pure <Switch> 2015-11-12 11:52:05 +07:00
@soyjavi d5294cc57a Pure <Snackbar> 2015-11-12 11:25:14 +07:00
Javi Velasco 1b6bb5f85b Fixes #72 and #97 2015-11-12 01:24:31 +01:00
Javi Velasco 30aedb411d Merge and solve conflicts 2015-11-12 01:20:02 +01:00
Javi Velasco 9096f8f428 Remove unused event variable in table component 2015-11-12 01:18:54 +01:00