Commit Graph

120 Commits (master)

Author SHA1 Message Date
Rubén Moya a59af9a67f
Merge pull request #1814 from react-toolbox/update-v2-react16
Update v2 to React 16
2018-03-03 11:57:48 +01:00
Rubén Moya 7f64a43246
Merge pull request #1773 from merraysy/merraysy-timepicker-dismiss-issue
Fix TimePicker dismiss issue
2018-02-27 11:42:48 +01:00
Mohammed Erraysy 286c3f792e Revert "Fix arrows updating issue when children change"
This reverts commit 3d42ef975f.
2018-02-26 17:29:58 +00:00
rubenmoya f0067083df Fix eslint errors 2018-02-20 22:26:44 +01:00
rubenmoya c510029923 Update tests to use Enzyme 3 2018-02-20 21:00:47 +01:00
Rubén Moya e87ffb9df7
Merge pull request #1768 from merraysy/dev
Fix arrows updating issue when children change
2018-01-24 16:37:21 +01:00
Mohammed Erraysy 3d42ef975f Fix arrows updating issue when children change 2017-11-29 10:38:14 +00: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
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
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
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
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
Ankur Patel d6bdf2008e Allow to change FontIcon for Tab by passing it into the factory (#1439) 2017-07-13 20:03:34 +02:00
Brock Wills ae09770cd4 Importing PropTypes from prop-types rather than react (#1413) 2017-04-17 16:14:17 +02:00
Rubén Moya 5de4e7391c Tabs pointer not being updated (#1224) (#1325)
* Fixes #1224

* add jest setup file to mock requestAnimationFrame

* fix duplicated jest config
2017-04-02 14:08:25 +02:00
Javi Velasco b48c17d1ad Use Jest 🃏 and upgrade Webpack and other dependencies 2017-02-06 09:53:31 +01:00
Javi Velasco 9d6ec1eedd Update dependencies and linter (#1180) 2017-01-26 18:05:32 +01:00
Javi Velasco bc18e56065 Import TabTheme interface at Tabs TS definition 2017-01-26 12:30:10 +01:00
Javi Velasco 2224eb6cd0 Use isComponentOfType in Tabs. Fixes #1155 2017-01-24 11:51:30 +01:00
Javi Velasco 792f8acc42 Add ripple for Tabs. Fixes #377 2017-01-21 13:03:38 +01:00
Javi Velasco badc0cb277 Merge branch 'dev' of github.com:soyjavi/react-toolbox into dev
* 'dev' of github.com:soyjavi/react-toolbox:
  Restructure typescript definitions (#1114)
  Enable dynamic source for single value Autocomplete (#1120)
  Add suggestionMatch option to disable filtering (#1122)
  Expose onEscKeyDown on Drawer component (#1150)
  Add inverse to <MenuIcon /> (#1147)
  Added proper type definitions for dialog actions so typescript users can pass on props to the generated buttons (#1098)
  Remove diacritic signs in query and suggestions (#1115)
  Update Button README.md (#1081)
  feat(a11y): add alt attribute to set alternative text for the icon or image (#1102)
  Add backers and Sponsors (#1137)
2017-01-18 11:03:30 +01:00
Javi Velasco 7e26773c6d Fixes #1127 2017-01-18 10:56:03 +01:00
Panjie Setiawan Wicaksono f365724ee8 Restructure typescript definitions (#1114)
* ts: restructure typescript definitions

- Add each raw components  types
- Update layout props to the new layout implementation
- Add table definitions
- Add HOC types

* fix ListItem typescript definition

* add themr identifiers definitions

* simplify React.ReactNode properties

* React.ReactNode | string => React.ReactNode is already indirectly type aliased to string
2017-01-18 08:37:37 +01:00
Raul Matei 78895c0e18 Fix right arrow appearing when window is re-sized 2017-01-11 19:45:46 +01:00
Javi Velasco c87461615f Fixes #1085 2017-01-10 19:14:55 +01:00
Javi Velasco 81acda7162 Migrate styles to PostCSS (#666)
* Add postcss-next postcss-include and reporter

* Add stylelint

* Add CSS colors

* Add CSS custom media queries

* Use dashes for CSS colors

* Add base CSS variables

* Remove AppBar SASS dependency from spec page

* Migrate AppBar style to PostCSS

* Migrate Avatar style to PostCSS

* Migrate Ripple style to PostCSS

* Remove unneeded media CSS import in Avatar

* Add shadows to CSS variables

* Migrate Button style to PostCSS

* Update webpack test config and linting from npm

* Migrate Input style to PostCSS

* Add missing input config variables for Dropdown and Autocomplete

* Migrate Chip style to PostCSS

* Migrate Autocomplete style to PostCSS

* Migrate Dropdown style to PostCSS

* Migrate animations to PostCSS

* Migrate Card style to PostCSS

* Migrate Checkbox style to PostCSS

* Migrate DataPicker style to PostCSS

* Migrate Dialog style to PostCSS

* Migrate Drawer style to PostCSS

* Add postcss-mixins and postcss-each

* Migrate Layout style to PostCSS

* Fix bug in button theme

* Bugfix in avatar css

* Add some missing nesting notations

* Migrate Link style to PostCSS

* Migrate List style to PostCSS

* Migrate Menu style to PostCSS

* Migrate Navigation style to PostCSS

* Migrate Overlay style to PostCSS

* Migrate ProgressBar style to PostCSS

* Migrate Radio style to PostCSS

* Migrate Slider style to PostCSS

* Migrate Snackbar style to PostCSS

* Migrate Switch style to PostCSS

* Migrate Table style to PostCSS

* Migrate Tabs style to PostCSS

* Migrate TimePicker to PostCSS

* Migrate Tooltip styles to PostCSS

* Update webpack config for testing and tests

* Migrate commons to PostCSS

* Remove sass from main project

* Bye from docs to sass

* Build with CSS

* Remove unneded deps for sass in docs subproject

* Fix tests

* use 4p shadow in AppBar as spec indicates

* Fixed typo in list/config.css

* Fix tests

* Fix linter errors

* Latest build

* Release 2.0.0-beta.0

* Remove sass lint

* fixes old sass var in css config

* Update linter

* New Table implementation

* Fix old sass var in list/config.css

See da0c47041e.

* Remove normalize.css from commons.css

* Update dependencies

* Latest build

* Input ready to accept visible hint

* Prepare slider and progress to be disabled

* Render Snackbar using Portal

* Refactor Dialog, Drawer and Overlay to be used in Layout

* Add inner layer to AppBar

* New layout

* Use Layout in spec

* Latest build

* remove layout playground example

* add smTablet and lgTablet to NavDrawer in Layout readme

* add default prop className to Layout, NavDrawer and Sidebar

* fix css linter errors in card and slider

* Typings for Table component

* Add missing Drawer identifier

* Update lib build

* Adds onQueryChange callback property to Autocomplete

The onQueryChange callback is called when the value of the query changes in Autocomplete.
It is called with the new query value.

* Fix #966

* Fix #965

* Fixes #976

* Updated css-related dependencies

Removed usages of `addDependencyTo` since it's deprecated and not needed anymore.
See https://github.com/postcss/postcss-import#adddependencyto

* Enabled HMR for styles by disabling extracting them to a CSS file

* Remove lib from repo

* Remove lib

* Fixes #1021

* Build using Gulp

* Export ThemeProvider from react-css-themr

* Add CHANGELOG to release command

* Release 2.0.0-beta.1

* Remove immutability helper

* Update dependencies

* Fix Tooltip trying to render after it's been unmounted

* Fixes #1038

* Release 2.0.0-beta.2

* Add ramda, refactor utils and remove slide animation modules

* Remove separate slide animations modules

* Remove box-sizing reset and body rule

* Remove commons.css

* Release 2.0.0-beta.4

* Update dependencies

* Fixes #1061

* More aggresive guard condition for multiple autocomplete

* Fix typeof check in isBrowser function

* Fixes an issue when specs are opened with browsers that do not support Object.entries().

* Import from ramda using the 'import XXX from "ramda/src/XXX"' pattern so that bundle sizes will be smaller for not including the whole ramda package.

* Fix #1032

* Fix tests

* Update yarn.lock

* Fixes #1064
2017-01-05 02:42:18 +01:00
Javi Velasco e2be2a34f6 Merge pull request #1070 from katzoo/update-typings
update typings to 1.3.3
2016-12-23 09:25:43 +01:00
katzoo ca8e4c6c1d fix few missing propTypes 2016-12-19 20:39:07 +01:00
katzoo b5e0c6207e update typings to 1.3.3 2016-12-19 20:13:36 +01:00
Javi Velasco 941e41d6d0 Fix #939 2016-11-24 08:58:25 +01:00
Javi Velasco b6610cd3b3 Merge pull request #952 from anotherpit/patch-1
Add Tabs' `inverse` and `hideMode` props in d.ts
2016-11-22 16:40:49 +01:00
Javi Velasco 9a1b7d54f3 Remove unneeded timeouts from Tabs 2016-11-22 09:47:28 +01:00
Javi Velasco ad0bcc33d5 Inject and use FontIcon and minor rendering changes for Tabs 2016-11-22 09:45:47 +01:00
Javi Velasco b529e04f75 Merge 2016-11-22 08:51:35 +01:00
Parmesh Krishen d49817003f Implementing tab pagination per material design specifications. 2016-11-20 17:52:22 -06:00
Pit 001a87181f Add Tabs' `inverse` and `hideMode` props in d.ts 2016-11-11 00:45:15 +03:00
Antti Ahti df81465350 Update Google URLs 2016-11-06 21:18:36 +02:00
Javi Velasco f4f5ae885e Fix #814 2016-10-06 20:21:50 +02:00
Javi Velasco 199befece3 Change active tab display to flex 2016-09-05 22:36:24 +02:00
Javi Velasco a0ab5a3815 Merge branch 'dev' of github.com:soyjavi/react-toolbox into dev
* 'dev' of github.com:soyjavi/react-toolbox:
  Adding hideMode to Tabs
2016-09-03 12:23:49 +02:00
Javi Velasco 518b2f48ed Merge pull request #751 from abhirao/tab_hide_modes
Adding hideMode to Tabs
2016-09-03 12:09:09 +02:00
Javi Velasco 3b9a6aed5f Merge branch 'dev' of github.com:soyjavi/react-toolbox into dev
* 'dev' of github.com:soyjavi/react-toolbox:
  Import React namespace, fix problem with @types
  Fixed errors for Typescript 2.0.2
  Added ability to navigate calendar with keyboard
2016-09-03 12:05:18 +02:00
Javi Velasco a8bfcf1ad9 Merge pull request #752 from normano64/typescript-2.0.2
Fixed errors for Typescript 2.0.2
2016-09-03 11:55:56 +02:00
Javi Velasco 6a488b3e21 Better tabs with icons 2016-09-03 11:48:05 +02:00
Per Bergqwist def8643a0a Import React namespace, fix problem with @types 2016-09-02 09:18:33 +02:00
Per Bergqwist 34313b823e Fixed errors for Typescript 2.0.2 2016-08-31 08:41:16 +02:00
Abhi Rao 8e0b64f852 Adding hideMode to Tabs
- Defaulting to `unmounted` - not mounting inactive tabs. `display` mode will mount inactive tabs but keep them hidden.
- Closes #709
2016-08-30 15:08:22 -05:00
Alex Cornejo 5c2406d2e5 add tab icons.
This adds the possibility of specifying an icon to use in the tab
headers. You can specify either a label only, icon only or both.

https://material.google.com/components/tabs.html#tabs-usage
2016-08-28 16:15:35 -07:00
Ron Derksen 908ad72533 Merge branch 'dev' into theme-tab-sub-components 2016-08-23 14:53:10 +02:00
Ron Derksen b220c70729 Theme is now passed on to tab subcomponents 2016-08-23 14:47:35 +02:00