Commit Graph

57 Commits (master)

Author SHA1 Message Date
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
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
Brock Wills ae09770cd4 Importing PropTypes from prop-types rather than react (#1413) 2017-04-17 16:14:17 +02:00
Javi Velasco 9d6ec1eedd Update dependencies and linter (#1180) 2017-01-26 18:05:32 +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
Rom Grk 65f812009a Expose onEscKeyDown on Drawer component (#1150) 2017-01-17 13:58:28 +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
katzoo b5e0c6207e update typings to 1.3.3 2016-12-19 20:13:36 +01:00
Antti Ahti df81465350 Update Google URLs 2016-11-06 21:18:36 +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
Per Bergqwist 213411ba55 Fixes for typescript definitions, typos etc. 2016-08-10 09:35:51 +02:00
Javi Velasco b226fcd258 Merge with dev 2016-07-24 13:17:16 +02:00
ixrock febf8b5237 get rid of declaration duplicates in components/ 2016-06-26 15:02:54 +03:00
Robert Parker f8c1a3fd0d Update typings to external modules (no more 'declare module ...') to get the definitions working automatically with npm 2016-06-07 15:00:41 -07:00
Javi Velasco 419f16f63f Plain SASS imports 🎨 2016-06-04 22:06:59 +02:00
Javi Velasco 73c115fac7 Better PropType syntax and delete required className api 2016-06-03 23:44:33 +02:00
Javi Velasco 3827ed3aab Autoinject Drawer theme 2016-05-29 12:54:29 +02:00
Javi Velasco f6d2d3f95d Migrate Drawer and Overlay to themr 2016-05-22 13:42:52 +02:00
Javi Velasco 0cb8d8bdb2 Get rid of jsx extensions 🔮 2016-04-10 21:23:04 +02:00
Javi Velasco 958cbb9539 Refactor Overlay into two components and make activable components render only when needed 2016-04-10 17:43:46 +02:00
Keren Chandran cdd6ee5f05 Merge branch 'dev' of https://github.com/react-toolbox/react-toolbox into update-docs
# Conflicts:
#	components/autocomplete/readme.md
#	components/dropdown/readme.md
2016-04-06 20:50:12 -04:00
Emil Öberg 37f8f4c992 Added !default to all config values as per #424
This way, all config values can be overridden with custom style
2016-04-02 00:47:39 +02:00
Keren Chandran 368335864c Fixed spacing on drawer readme 2016-03-25 10:16:59 -04: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
Javi Velasco 312ec91fcc Remove opacity prop from Overlay and add invisible. Fixes #183, #178 2015-12-11 18:01:24 +01:00
Javi Velasco da0f1a631e Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00
Javi Velasco ee45186d9a Use ClassNames in Drawer 2015-11-28 15:32:58 +01:00
Nathan Marks f3d047e820 Remove jsx extension from component index files, replace with js 2015-11-22 17:49:46 -05: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
Enzo Martin addc7f312b Remove all `unquote` calls
- Use SASS RGBA directly when modifying the opacity
2015-11-19 12:21:51 +01:00
Javi Velasco 26cecdc23f Change button properties and support toggle icon buttons 2015-11-17 21:49:27 +01:00
Javi Velasco cadc3e2bc7 Use Overlay component in drawers 2015-11-14 22:00:35 +01:00
Javi Velasco b61619b6a3 Merge master and solve conflicts 2015-11-11 10:28:01 +01:00
Javi Velasco 67ab8746a9 Proper import path for documentation files 2015-11-10 11:07:43 +01:00
Javi Velasco fa94c4e759 Pure drawer 2015-11-05 11:45:23 +01:00
Javi Velasco 7c87940c8f Improve markdown format 2015-10-31 21:55:12 +01:00
Javi Velasco 811bb7bfbb Add drawer documentation 2015-10-31 21:39:51 +01:00
Javi Velasco ba5432adfe Add a drawer panel with playground area 2015-10-30 00:49:46 +01:00
@soyjavi 2423d09a4f Rename component doc to readme.md 2015-10-28 22:09:09 +07:00
Javi Velasco 4a9d8cfa40 Improvements for build 2015-10-23 01:26:12 +02:00
Javi Velasco 7c43f935a1 Babel to stage 2 and remove decorators 2015-10-22 01:31:17 +02:00
Javi Velasco ec6e72bbd9 Resolve linter errors 2015-10-21 12:25:10 +02:00
ustccjw 6c278f25d0 use autobind-decorator 2015-10-21 14:13:24 +08:00
ustccjw 227727e860 fix conflict 2015-10-21 10:58:11 +08:00
Javi Velasco d2befec2ec Extract some variables from drawer sass 2015-10-21 01:10:32 +02:00
Javi Velasco 33a508ca0a Setup new file structure for sass files 2015-10-20 21:15:21 +02:00