Skip to content

Commit 9e7e879

Browse files
committed
Merge pull request #63 from chandu0101/0.3-prepare
Prepare for 0.3.0-release
2 parents c280afb + 1b0af98 commit 9e7e879

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,32 @@ MuiMenu(value = "value": String | js.Array[String])
5656
```
5757
This will be [fixed](https://github.com/scala-js/scala-js/pull/2069) in scala-js version 0.6.6
5858

59+
Another related issue is if a prop has type `js.UndefOr[ReactNode]` and you pass
60+
a `String`, you need to import `materialui.StringToReactNodeU` to make that work.
61+
5962
#### Material-ui has two incompatible menu implementations
6063

61-
old: `require('material-ui/menu/menu'')`
62-
new: `require('material-ui/menus/menu'')`
64+
old: `require('material-ui/menu/menu')`
65+
new: `require('material-ui/menus/menu')`
6366

6467
The new menu is the one documented on [material-ui](http://www.material-ui.com), while
65-
if you `require('material-ui'')` you will get the old.
68+
if you `require('material-ui')` you will get the old.
6669

67-
We changed to the new version for scalajs-react-components 0.2.
68-
Check [index.js](demo/bundles/material-ui.js) to see how to specify the new one.
70+
We changed to the new version for scalajs-react-components 0.2.0.
71+
Check [material-ui.js](demo/bundles/material-ui.js) to see how to specify the new one.
6972

7073
This problem will be gone in material-ui 0.14.
7174

7275
## Setup
7376

7477
#### SBT
78+
Add these dependencies to you sbt build file
7579
```scala
76-
// add this line to your build.sbt
77-
libraryDependencies += "com.github.chandu0101.scalajs-react-components" %%% "core" % "0.2.0"
80+
libraryDependencies ++= Seq(
81+
"com.github.japgolly.scalajs-react" %%% "core" % "0.10.3",
82+
"com.github.japgolly.scalajs-react" %%% "extra" % "0.10.3",
83+
"com.github.chandu0101.scalajs-react-components" %%% "core" % "0.3.0"
84+
)
7885
```
7986

8087
#### ScalaCSS

doc/CHANGELOG_0.3.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
0.3.0
2+
* Remove accidental dependency upon utest for production code
3+
* Bumped scalajs-react to 0.10.3
4+
* Made MuiSpacings and MuiPalette easier to use to specify theme
5+
* Added Svg icons

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object Build extends Build {
1717
_.enablePlugins(ScalaJSPlugin)
1818
.settings(
1919
organization := "com.github.chandu0101.scalajs-react-components",
20-
version := "0.2.1-SNAPSHOT",
20+
version := "0.3.0-SNAPSHOT",
2121
homepage := Some(url("https://github.com/chandu0101/scalajs-react-components")),
2222
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")),
2323
scalaVersion := Scala211,

0 commit comments

Comments
 (0)