Commit Graph

887 Commits (a4810d8e73b1f7313bf0c2437261de42388d7204)

Author SHA1 Message Date
Fred Guest 43bfd3f05b replace data-role with data-react-toolbox 2016-02-08 11:01:41 -08:00
Fred Guest 52f324d53a update Tab.jsx 2016-02-08 10:51:57 -08:00
Fred Guest 99b4fcac23 update Tabs.jsx 2016-02-08 10:48:31 -08:00
Fred Guest 413ddb7ca8 update Switch.jsx 2016-02-08 10:45:47 -08:00
Fred Guest dba62cf913 update RadioButton.jsx 2016-02-08 10:43:14 -08:00
Fred Guest 692ed24d6b update RadioGroup.jsx 2016-02-08 10:42:00 -08:00
Fred Guest 542528d435 update Menu.jsx 2016-02-08 10:36:42 -08:00
Fred Guest b898d7f854 update List.jsx 2016-02-08 10:35:29 -08:00
Fred Guest cacc7d9cab update Card.jsx 2016-02-08 10:32:37 -08:00
Anton Huck 7ad91897b2 allow app-bar height override 2016-02-07 19:51:04 +01:00
Fred Guest c0e0b5679c Use consistent data attributes
data-toolbox should be data-react-toolbox to be consistent with the rest of the components.
2016-02-06 00:35:08 -08:00
Javi Velasco 1db189d436 Merge pull request #280 from kagux/fix/avatar-docs
update avatar example to use `image` instead of `img` property
2016-01-28 00:27:51 +01:00
Boris Mikhaylov 32ff655fd3 removed commented out code 2016-01-27 11:22:38 +01:00
Boris Mikhaylov 14cbf9c877 if list item action defined onClick we stop click and mouse down
propagation
2016-01-27 11:21:03 +01:00
Boris Mikhaylov a2745c8c39 list item can be customized by passing in children commponents 2016-01-26 14:59:57 +01:00
Boris Mikhaylov a82595b613 added data-react-toolbox attribute to FontIcon 2016-01-26 14:58:51 +01:00
Boris Mikhaylov 0deee32dd3 pass through props in Ripple 2016-01-26 14:58:28 +01:00
Boris Mikhaylov 0e60fd2a5e update avatar example to use `image` instead of `img` property 2016-01-25 15:49:30 +01:00
Javi Velasco f16934c95e Fixes #270 2016-01-23 16:38:12 +01:00
Javi Velasco 7065ab6edb Merge pull request #274 from epilgrim/feature/custom-icons
Enabled passing components as icons in all the components
2016-01-23 16:01:34 +01:00
Javi Velasco d7e5aea79a Merge pull request #275 from epilgrim/feature/close_dropdown_on_click_outside_the_element
close dropdown when click event is triggered outside the component
2016-01-23 15:59:23 +01:00
Juan Peri 160fb47fb1 Removing event from dropdown when not active anymore 2016-01-23 09:42:56 +01:00
Javi Velasco 80b2abe11d Merge pull request #271 from kagux/feature/components-in-card-title
allow passing components to card title and subtitle
2016-01-22 22:13:52 +01:00
Javi Velasco 6831912903 Merge pull request #273 from kagux/feature/event-propagation
Feature/event propagation
2016-01-22 22:02:35 +01:00
Juan Peri 21a68606b1 close dropdown when click event is triggered outside the component 2016-01-22 18:06:32 +01:00
Juan Peri 80b5b7a891 Enabling passing components as icons in all the components 2016-01-22 17:18:59 +01:00
Boris Mikhaylov 485be5e05a fixed button test 2016-01-22 14:57:31 +01:00
Boris Mikhaylov 0a944994a1 propagate events in Tab 2016-01-22 14:49:06 +01:00
Boris Mikhaylov d92350ff3a propagate events in IconMenu 2016-01-22 14:45:45 +01:00
Boris Mikhaylov 9ce68aeceb propagate events in Dropdown 2016-01-22 14:43:33 +01:00
Boris Mikhaylov 39c7c6102f removed unused checkbox validations 2016-01-22 14:40:37 +01:00
Boris Mikhaylov 8dad57e456 propagate events in Button 2016-01-22 14:22:35 +01:00
Boris Mikhaylov a11d1527c2 propagate events in Tooltip 2016-01-22 14:20:22 +01:00
Boris Mikhaylov 678bd81745 export raw components 2016-01-22 14:12:53 +01:00
Boris Mikhaylov 08c0907a3c allow passing components to card title and subtitle 2016-01-22 13:31:55 +01:00
Juan Peri 998b5a44b7 Enable Element to behave as Icon 2016-01-20 00:01:20 +01:00
Raúl García 6eb58380c4 Add missing semicolons 2016-01-11 09:02:50 +01:00
Javi Velasco 3c6b7afcc1 Fixe autocomplete 2016-01-06 12:56:30 +01:00
Javi Velasco c5666f0ebb Merge branch 'dev' of https://github.com/karlmacklin/react-toolbox into karlmacklin-dev
* 'dev' of https://github.com/karlmacklin/react-toolbox:
  Revert "Added required normalize.css package to package.json"
  Allow Link to render Tooltips via children prop
  Added required normalize.css package to package.json
2016-01-06 02:16:19 +01:00
Karl Macklin 9da237834b Allow Link to render Tooltips via children prop 2016-01-05 23:32:38 +01:00
Javi Velasco f0d5f1999c Fixes for autocomplete and tests 2016-01-05 10:51:32 +01:00
Javi Velasco f35b87834f Merge branch 'dev' into Bartekus-babel-6-upgrade
* dev:
  fixing a typo for the List component
2016-01-05 10:39:32 +01:00
Dale Hille 3b3beaf89a fixing a typo for the List component 2015-12-31 14:15:34 -05:00
Araphel 25a9e65604 Replace transition-property to transition for Issue#230 2015-12-23 23:47:29 -07:00
Araphel f6047f880f Bebel 6 Integrated, Stage-0 added, React updated 2015-12-23 14:21:41 -07:00
Javi Velasco 055c6e37a9 Add ripple documentation 2015-12-20 19:18:31 +01:00
Javi Velasco 6cc95c5bc1 Bugfix in dropdown errored styling 2015-12-20 18:50:25 +01:00
Javi Velasco 086a0ae15d Fix icon for link demo 2015-12-20 18:48:17 +01:00
Javi Velasco b037994375 Fixes #157 2015-12-20 18:17:50 +01:00
Javi Velasco aead7f0a8f Add pickers classNames to customize appereance 2015-12-20 18:08:55 +01:00
Javi Velasco 2d931ce716 Fix scss-lint errors 2015-12-20 17:57:04 +01:00
Javi Velasco 515169dc36 Improve datepicker example 2015-12-20 17:55:34 +01:00
Javi Velasco 20d6787cb0 Add error field to timepicker 2015-12-20 17:52:01 +01:00
Javi Velasco 027fc12600 Add missing variable for chevron 2015-12-20 17:51:46 +01:00
Javi Velasco 3479f5b54e Add error field to date picker 2015-12-20 17:51:18 +01:00
Javi Velasco 802f50f4b3 Use full Toolbox input in autocomplete 2015-12-20 17:50:57 +01:00
Javi Velasco 2c7d308271 Use Input component in dropdowns and make it homogeneous 2015-12-20 17:01:02 +01:00
Javi Velasco f3bcbf9d3b Add react-toolbox attributes and className to DatePicker 2015-12-19 22:47:00 +01:00
Javi Velasco 60f55ebfef Fixes #188 2015-12-19 22:07:49 +01:00
Javi Velasco abcd097830 Fixes #214 2015-12-19 21:06:18 +01:00
Javi Velasco 4403003895 Add neutral prop to avoid to inherit neutral styles 2015-12-19 20:55:30 +01:00
Javi Velasco 2349d692ae Make level depend on className for buttons 2015-12-19 20:36:35 +01:00
Javi Velasco 5293585cf0 Remove unneded scroll-x hidden 2015-12-19 14:08:30 +01:00
Javi Velasco 40888bbb1d Change webkit scrollbar removal for a mixin 2015-12-19 14:08:30 +01:00
Javi Velasco da1c109068 Remove scrollbars in list items and remove unneeded overflows 2015-12-19 14:08:30 +01:00
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