Glen Cheney
c742bfaefc
Upgrade rollup
5 years ago
Glen Cheney
4884e668d8
Upgrade ESLint and fix issues
6 years ago
Glen Cheney
0c8c350868
upgrade build dependencies
6 years ago
Glen Cheney
9320609da8
Rebuild with updated dependencies #245 . Remove some empty selectors.
6 years ago
Glen Cheney
b388dc5c54
Lazily test whether computed styles include padding #247
6 years ago
Glen Cheney
3be38c640d
Replace rollup-plugin-uglify with rollup-plugin-terser
6 years ago
Glen Cheney
29ee0fb6c9
Rebuild with new rollup deps.
6 years ago
Glen Cheney
f72f57d5c5
Fix misspelled delimiter option #215
6 years ago
Glen Cheney
925252330c
Fix new item animation when there is an active filter
...
fixes #198
6 years ago
Glen Cheney
7987a40c53
Allow custom sort function in sorter #197
6 years ago
Glen Cheney
463bac3da1
Update dependencies.
...
Swap babel-preset-es2015 for babel-preset-env
Update normalize.css
Use default autoprefixer browsers.
Fix misaligned filter search input.
6 years ago
Glen Cheney
068c8acf9f
Fix rounding error causing transitions not to end.
7 years ago
Glen Cheney
4c206db2d2
Update layout comments.
7 years ago
Esteban Marin
720abd3f33
fix doc example ( #186 )
...
* fix doc example
* remove whitespace
* dist
7 years ago
Glen Cheney
9b9d716ee8
Update generated files.
7 years ago
Glen Cheney
fba8422a8c
Greenkeeper/rollup plugin babel 3.0.2 ( #177 )
...
* chore(package): update rollup-plugin-babel to version 3.0.2
Closes #168
* Downgrade rollup to 0.48.0
https://github.com/rollup/rollup/issues/1595
* Update rollup config
7 years ago
Glen Cheney
08e5b4b5aa
Greenkeeper/eslint 4.4.0 ( #167 )
...
* chore(package): update eslint to version 4.4.0
Closes #163
* Fix lint errors. Update dev dependencies.
7 years ago
Glen Cheney
eaae5533ff
Round translate values by default.
7 years ago
Glen Cheney
a5543f16b2
Fix incorrect visible item count after `resetItems()`
7 years ago
Glen Cheney
d9d3f92943
Upgrade rollup version.
7 years ago
Glen Cheney
68fc6ae10a
Remove rounding of item positions. ref #10
...
If you want to round them still, subclass `Shuffle` and override the `getStylesForTransition()` method.
7 years ago
Glen Cheney
8a863fe75c
Fix add method with new `isHidden` property.
7 years ago
Glen Cheney
dc0fe37e18
Revert "transition everything".
...
That threw off calculations on resize. Now infer things to transition from the css object map.
7 years ago
Glen Cheney
3b9e140a53
Avoid requirement for scale properties being different.
...
This is done with the new `isHidden` property of ShuffleItem which is set by `_layout` and `_shrink` because the filter methods set `isVisible`.
Allow transitions on anything, not just transform and opacity.
JSDoc `Function` => `function`.
7 years ago
Glen Cheney
510f9de192
Change default easing to material design's "standard curve"
...
Was `ease`, now `cubic-bezier(0.4, 0.0, 0.2, 1)`
https://material.io/guidelines/motion/duration-easing.html#duration-easing-natural-easing-curves
7 years ago
Glen Cheney
46161c5a9f
Avoid animating new items' position during `add`.
...
Items now fade and scale in from their "final" position instead of transitioning from 0,0 to their "final" position. This looks much more natural.
Also reduced the maximum stagger delay to 150ms.
7 years ago
Glen Cheney
ded5ff2546
Add typings file.
7 years ago
Glen Cheney
15b3738d7b
Improve isCentered option. Add tests for it.
...
isCentered will now revert previously centered rows when a following row overlaps it.
7 years ago
Glen Cheney
d08e1e3e9d
Add `isCentered` option, which mostly works.
7 years ago
Glen Cheney
bc5d41902f
Add react demo. Add `resetItems()` method.
7 years ago
Glen Cheney
0b78b0727e
Use `aria-hidden` attribute. Make methods that use transforms `protected` so people can override them to support old browsers.
...
and some other minor changes.
7 years ago
Glen Cheney
619470c43b
Add flexbox grid demo.
7 years ago
Glen Cheney
a4740223aa
Run `layout` on page load. #147
7 years ago
Glen Cheney
57ded43991
Use TinyEmitter, expect ES6 environment. Change global export to `Shuffle`.
...
Replace array-uniq with Array.from/Set
Replace xtend with Object.assign
Remove custom-event-polyfill
Use Array.prototype.includes (ES7)
7 years ago
Glen Cheney
fbabe9182c
Update unsupported options for rollup-uglify.
7 years ago
Glen Cheney
4f95fba70b
Update filterMode option. Add tests for filterMode.
7 years ago
David Gallego Varela
8e769ce651
Add the option to filter element with more than one key to _doesPassF… ( #143 )
...
* Add the option to filter element with more than one key to _doesPassFilter the new option is this.options.filterMode and values Shuffle.filterMode.EXCLUSIVE or Shuffle.filterMode.ADDITIVE
* Package change for use with npm
* Error on package.json
* Merge branch 'master' of github.com:Vestride/Shuffle
* check travis errors
7 years ago
Glen Cheney
61c975ccf1
Replace JSHint and JSCS with ESLint
7 years ago
Glen Cheney
a56ccb3cd5
Replace webpack with rollup ( #138 )
7 years ago
Glen Cheney
407852eb72
Fix `before` styles not applied when the item didn’t move. Fixes #133
7 years ago
Glen Cheney
892b9329a0
Update webpack config for v2
7 years ago
Glen Cheney
13d3dacc77
Fix delimeter option #108
8 years ago
Glen Cheney
95c49edf9d
fix transition delay not being applied correct
8 years ago
Glen Cheney
ef1f1f1c88
Add `instance.group` back instead of changing the option object
8 years ago
Glen Cheney
790b957bc3
Use ES6 export for main file. Add index.js to export the `default` to module.exports
...
This would allow module bundlers like rollup to use jsnext:main and it'll all be ES6 import/exports
8 years ago
Glen Cheney
bd502f8437
Add `jsnext:main` field to package.json
8 years ago
Glen Cheney
e1ea20f7da
Replace Promise dependency with array-parallel package
8 years ago
Glen Cheney
7aa6461b4d
Move layout positioning logic to its own file.
8 years ago
Glen Cheney
fd330bd800
Use `files` instead of .npmignore
...
Update webpack, add .map files
8 years ago
Glen Cheney
99ed4e37fe
Add ability to customize styles. Rename filtered => visible and concealed => hidden.
...
Prefix shuffle item state classes.
Change ClassName => Classes because it's shorter.
8 years ago