Skip to content

Commit 36dc6e8

Browse files
committed
Copying over published react-selectize code to abandon livescript.
1 parent 670e51f commit 36dc6e8

112 files changed

Lines changed: 4191 additions & 13604 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveralls.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

.npmignore

Lines changed: 0 additions & 17 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# React Selectize
22

3+
## 3.0.1 / 5th January 2021
4+
* copied over published code to abandon livescript.
5+
36
## 3.0.1 / 29th July 2017
47
* fix peer dependencies react-transition-group@1.1.2 instead of the latest version
58

@@ -36,7 +39,7 @@
3639
* made the text in search field selectable
3740

3841
## v0.8.1 / 19th February 2016
39-
* added `cancelKeyboardEventOnSelection` prop
42+
* added `cancelKeyboardEventOnSelection` prop
4043

4144
## v0.8.0 / 15th February 2016
4245
* added hideResetButton prop thanks [@marchbnr](https://github.com/marchbnr)
@@ -65,7 +68,7 @@
6568
* bower support (using npmcdn)
6669

6770
## v0.7.0 / 7th February 2016
68-
* umd build
71+
* umd build
6972
* added `theme` prop, 3 built-in themes (default, bootstrap3 & material)
7073
* **Breaking Change**: moved index.css from `src/` directory to `themes` & `dist` directory
7174
* fixed issues with `search` & `open` props
@@ -83,7 +86,7 @@
8386
* added `autofocus` prop, that will automatically toggle the dropdown on load
8487
* removed the requirement for passing callback as the last argument to on-*-change props
8588
* fixed many `focus` & `blur` related issues
86-
* **Breaking Change** replaced `on-enter` prop with `on-keyboard-selection-failed`
89+
* **Breaking Change** replaced `on-enter` prop with `on-keyboard-selection-failed`
8790

8891
## v0.5.3 / 27th January 2016
8992
* introduced `name` & `serialize` props for form serialization
@@ -100,7 +103,7 @@
100103
* close dropdown when nothing is selected on pressing the return key
101104
* namespaced css classes (*Breaking Change*) :
102105

103-
> `.dropdown-transition` div is only used if any one (or both) of `transition-enter`, `transition-leave` props is / are specified,
106+
> `.dropdown-transition` div is only used if any one (or both) of `transition-enter`, `transition-leave` props is / are specified,
104107
before the `.dropdown` div was always being wrapped in `.dropdown-transition` even if animation was not required.
105108

106109
| Before | Now |
@@ -208,4 +211,4 @@ before the `.dropdown` div was always being wrapped in `.dropdown-transition` ev
208211

209212
## v0.1.1 / 11th September 2015
210213
* added `highlightFirstSelectableOption` method to both the SimpleSelect & the MultiSelect components.
211-
* changed filterOptions signature for SimpleSelect from `[Item] -> Item -> String -> [Item]` to `[Item]-> String -> [Item]`
214+
* changed filterOptions signature for SimpleSelect from `[Item] -> Item -> String -> [Item]` to `[Item]-> String -> [Item]`

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
[![npm version](https://badge.fury.io/js/react-selectize.svg)](https://badge.fury.io/js/react-selectize)
2-
[![Build Status](https://travis-ci.org/furqanZafar/react-selectize.svg?branch=develop)](https://travis-ci.org/furqanZafar/react-selectize)
3-
[![Coverage Status](https://coveralls.io/repos/furqanZafar/react-selectize/badge.svg?branch=develop&service=github)](https://coveralls.io/github/furqanZafar/react-selectize?branch=develop)
1+
# React Selectize2
42

5-
# React Selectize
6-
`ReactSelectize` is a stateless Select component for ReactJS, that provides a platform for the more developer friendly `SimpleSelect` & `MultiSelect` components.
3+
This is a fork of the now stale and abandoned https://github.com/furqanZafar/react-selectize.
4+
5+
I copied over the latest published source code from npm and have abandoned livescript.
6+
7+
`ReactSelectize` is a stateless Select component for ReactJS, that provides a platform for the more developer friendly `SimpleSelect` & `MultiSelect` components.
78

89
Both `SimpleSelect` & `MultiSelect` have been designed to work as drop in replacement for the built-in `React.DOM.Select` component.
910

@@ -13,12 +14,12 @@ styles & features inspired by [React Select](http://jedwatson.github.io/react-se
1314

1415
[![](http://i.imgsafe.co/rQmogzn.gif)](http://furqanZafar.github.io/react-selectize/)
1516

16-
- [Changelog](CHANGELOG.md) (last updated on 29th July 2017)
17+
- [Changelog](CHANGELOG.md)
1718
- [API Reference](API.md)
1819

1920

2021
# Motivation
21-
* existing components do not behave like built-in React.DOM.* components.
22+
* existing components do not behave like built-in React.DOM.* components.
2223
* existing components [synchronize props with state](http://facebook.github.io/react/tips/props-in-getInitialState-as-anti-pattern.html) an anti pattern, which makes them prone to bugs & difficult for contributers to push new features without breaking something else.
2324
* more features.
2425

@@ -100,7 +101,7 @@ to include the default styles add the following import statement to your stylus
100101

101102
<!-- THEMES (default, bootstrap3, material) -->
102103
<link rel="stylesheet" href="https://unpkg.com/react-selectize@3.0.1/dist/index.min.css"/>
103-
104+
104105
</head>
105106
<body>
106107
<div id="mount-node"></div>
@@ -109,9 +110,9 @@ to include the default styles add the following import statement to your stylus
109110
React.createElement(reactSelectize.SimpleSelect, {
110111
style: {width: 300},
111112
tether: true,
112-
placeholder: "Select fruit",
113+
placeholder: "Select fruit",
113114
options: [{label: "apple", value: "apple"}, {label: "banana", value: "banana"}]
114-
}),
115+
}),
115116
document.getElementById("mount-node")
116117
);
117118
</script>
@@ -154,7 +155,7 @@ MultiSelect = create-factory MultiSelect
154155
.
155156
.
156157
.
157-
SimpleSelect do
158+
SimpleSelect do
158159
placeholder: 'Select a fruit'
159160
options: <[apple mango orange banana]> |> map ~> label: it, value: it
160161
on-value-change: (value) ~>
@@ -186,7 +187,7 @@ onValueChange = {function(value){
186187
self.setState({selectedValue: value});
187188
}}
188189
search = {state.search}
189-
onSearchChange = {function(value){
190+
onSearchChange = {function(value){
190191
self.setState({search: value});
191192
}}
192193
```
@@ -196,10 +197,10 @@ onSearchChange = {function(value){
196197
// assuming the type of our option object is:
197198
// {firstName :: String, lastName :: String, age :: Int}
198199
uid = {function(item){
199-
return item.firstName + item.lastName;
200+
return item.firstName + item.lastName;
200201
}}
201202
```
202-
the `uid` function is used internally for performance optimization.
203+
the `uid` function is used internally for performance optimization.
203204

204205
## Development
205206
* `npm install`

bower.json

Lines changed: 0 additions & 40 deletions
This file was deleted.

gulpfile.ls

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)