Skip to content

Commit

Permalink
Version 5.11.12-0
Browse files Browse the repository at this point in the history
  • Loading branch information
arttuka committed Mar 8, 2023
1 parent 0ab1eb4 commit 4fc4b44
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 18 deletions.
31 changes: 21 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,24 @@

See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) for changes in MUI.

## 5.11.12-0

**[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.11.8-0...v5.11.12-0)**

- Update MUI to v5.11.12
- **BREAKING** Update `@mui/x-date-pickers` to v6.0.0. See [migration guide](https://mui.com/x/migration/migration-pickers-v5/).
- Fix handling of `Date` inputs in `cljs-time-adapter`
- Fix incorrect conversion of theme object in `reagent-mui.styles/theme-provider` ([#41](https://github.com/arttuka/reagent-material-ui/issue/41))
- Don't convert ref props in `reagent-mui.util/js->clj'`
- Support for Reagent 1.2.0 / React 18

## 5.11.8-0

**[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.10.1-0...v5.11.8-0)**

- Update MUI to v5.11.8
- Fix `cljs-time-adapter` bug with `date-range-picker-pro` (#44) and `calendar-picker` (#40)
- Add information regarding `date-picker` input rendering (#39)
- Fix `cljs-time-adapter` bug with `date-range-picker-pro` ([#44](https://github.com/arttuka/reagent-material-ui/issue/44)) and `calendar-picker` ([#40](https://github.com/arttuka/reagent-material-ui/pull/40))
- Add information regarding `date-picker` input rendering ([#39](https://github.com/arttuka/reagent-material-ui/issue/39))
- **BREAKING** `reagent-mui.material.switch-component` renamed to `reagent-mui.material.switch`
since reserved JS keywords aren't a problem anymore

Expand All @@ -22,7 +33,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG

**[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.6.2-0...v5.6.2-1)**

- Fix extern inference with Figwheel-Main (#35)
- Fix extern inference with Figwheel-Main ([#35](https://github.com/arttuka/reagent-material-ui/issue/35))

## 5.6.2-0

Expand All @@ -42,7 +53,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG
**[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.2.4-0...v5.4.3-0)**

- Update MUI to v5.4.3
- Use local timezone instead of UTC by default in `reagent-mui/cljs-time-adapter` (#30) @patapizza
- Use local timezone instead of UTC by default in `reagent-mui/cljs-time-adapter` ([#30](https://github.com/arttuka/reagent-material-ui/pull/30)) @patapizza
- Allow string as component in `reagent-mui.styles/styled`

## 5.2.4-0
Expand All @@ -51,8 +62,8 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG

- Update MUI to v5.2.4
- **BREAKING** Rename package `reagent-mui.core` to `reagent-mui.base` as in MUI
- Fix React key warnings on some icons (#27)
- Add support for MUI X Pro components (currently just DataGrid) (#25)
- Fix React key warnings on some icons ([#27](https://github.com/arttuka/reagent-material-ui/issue/27))
- Add support for MUI X Pro components (currently just DataGrid) ([#25](https://github.com/arttuka/reagent-material-ui/issue/25))

## 5.0.0-0

Expand All @@ -78,7 +89,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG
- Update Material UI to v5.0.0-beta.2
- Add components from `@material-ui/unstyled`
- Move functions from `@material-ui/core/styles` and `@material-ui/styles` to separate namespaces
- Fix default locale in `localization-provider` (#19) @alenkralj
- Fix default locale in `localization-provider` ([#19](https://github.com/arttuka/reagent-material-ui/pull/19)) @alenkralj

## 5.0.0-alpha.32-0

Expand All @@ -91,7 +102,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG
**[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.0.0-alpha.27-1...v5.0.0-alpha.29-0)**

- Update Material UI to v5.0.0-alpha.29
- Fix bug in `reagent-material-ui/js-clj'` when converting keys with non-keyword characters (#15) @adrsm108
- Fix bug in `reagent-material-ui/js-clj'` when converting keys with non-keyword characters ([#15](https://github.com/arttuka/reagent-material-ui/pull/15)) @adrsm108

## 5.0.0-alpha.27-1

Expand Down Expand Up @@ -129,7 +140,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG
- Update Material UI to v5.0.0-alpha.17
- **BREAKING** `material-ui-pickers` have been moved to `material-ui-lab`
- **BREAKING** `cljs-time-utils` has been renamed to `cljs-time-adapter` to use the same terminology as Material UI
- Added support for responsive font sizes (#9) @wkok
- Added support for responsive font sizes ([#9](https://github.com/arttuka/reagent-material-ui/pull/9)) @wkok
- Fix bug in `reagent-material-ui.core.text-field` when used as uncontrolled

## 5.0.0-alpha.15-0
Expand Down Expand Up @@ -166,7 +177,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG

**[compare](https://github.com/arttuka/reagent-material-ui/compare/v4.11.0-0...v4.11.0-1)**

- Enable pure shadow-cljs usage (fixes #2)
- Enable pure shadow-cljs usage ([#2](https://github.com/arttuka/reagent-material-ui/issue/2))

## 4.11.0-0

Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Their examples are very good. and this library tries to follow the original idea

To add MUI to an existing Reagent project, just add this library to your dependencies:
```
[arttuka/reagent-material-ui "5.11.8-0"]
[arttuka/reagent-material-ui "5.11.12-0"]
```

Most of the library is in the form of regular Reagent components. Each component is contained in a namespace that mirrors
Expand Down Expand Up @@ -59,14 +59,19 @@ If you want to use another date library, you can use [adapters from `@mui/x-date
To use npm dependencies with Figwheel Main, you need to exclude prebuilt JS files (React from CLJSJS and MUI from this library).
To do so, add these exclusions to your dependency. See the example project for working configuration.

[arttuka/reagent-material-ui "5.11.8-0" :exclusions [arttuka/reagent-material-ui-js]]
[arttuka/reagent-material-ui "5.11.12-0" :exclusions [arttuka/reagent-material-ui-js]]

#### MUI component names with shadow-cljs

The compiler used by shadow-cljs will remove local function names, causing most MUI component to
show as `Anonymous` in React Devtools. If you want to keep the names, add `:js-options {:anon-fn-naming-policy :unmapped}`
to your build in `shadow-cljs.edn`.

#### React 18

[Reagent v1.2.0](https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md#120-2023-02-16) has experimental
support for React 18. This library works with Reagent 1.2.0 / React 18. See example project.

### Common pitfalls in Reagent/React interop

* Some components want to have a React node as a prop. A Reagent component is not good enough and will just result in
Expand All @@ -93,9 +98,10 @@ The build process also includes `lein cljfmt`.

The project follows MUI's version numbering.

* Current `@mui/material` version: `5.11.8`
* Current `@mui/icons-material` version: `5.11.0`
* Current `@mui/lab` version: `5.0.0-alpha.119`
* Current `@mui/material` version: `5.11.12`
* Current `@mui/icons-material` version: `5.11.11`
* Current `@mui/lab` version: `5.0.0-alpha.122`
* Current `@mui/x-date-pickers` version: `6.0.0`

### License

Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(defproject arttuka/reagent-material-ui "5.11.8-0"
(defproject arttuka/reagent-material-ui "5.11.12-0"
:description "Reagent wrapper library for MUI (formerly Material UI) v5"
:url "https://github.com/arttuka/reagent-material-ui"
:license {:name "Eclipse Public License 2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[reagent "1.1.1"]
[com.andrewmcveigh/cljs-time "0.5.2"]
[camel-snake-kebab "0.4.3"]
[arttuka/reagent-material-ui-js "5.11.8-0"]]
[arttuka/reagent-material-ui-js "5.11.12-0"]]
:plugins [[lein-cljfmt "0.9.2"]
[lein-cljsbuild "1.1.8"]
[lein-doo "0.1.11"]]
Expand Down
2 changes: 1 addition & 1 deletion reagent-material-ui-js/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject arttuka/reagent-material-ui-js "5.11.8-0"
(defproject arttuka/reagent-material-ui-js "5.11.12-0"
:description "Packaged Javascript files for reagent-material-ui"
:url "https://github.com/arttuka/reagent-material-ui"
:license {:name "Eclipse Public License 2.0"
Expand Down

0 comments on commit 4fc4b44

Please sign in to comment.