Skip to content

Releases: kwameopareasiedu/react-simple-widgets

v6.7.0 (Sep 16, 2022)

16 Sep 13:41
7aca281

Choose a tag to compare

Styled Components Integration

  • Integrated styled-components into all widgets
  • Moved global styles to separate import. This stops each widget from redeclaring global styles and CSS variables in the DOM, thus improving performance. The global styles need to be imported at the start of your React app as shown below:
import ReactDOM from "react-dom";
import { RSWGlobalStyle } from "react-simple-widgets/dist/style";
import App from "./app";
/* Other imports */

const root = document.getElementById("root");

ReactDOM.createRoot(root).render(
  <React.StrictMode>
    <RSWGlobalStyle />
    <App/>
  </React.StrictMode>
);

v6.6.1 (July 21, 2022)

21 Jul 02:32

Choose a tag to compare

  • Added optional emptyRowBuilder attribute to TableView which renders a message when the items list is empty.
  • Added optional onRowClick attribute to TableView which is called with the associated item and index when a table row is clicked.

v6.5.0 (July 8, 2022)

08 Jul 12:39

Choose a tag to compare

  • Changed return type of useQueryParams hook to an object with query parameters qp and functions to modify the query parameters addQp() and delQp() [BREAKING]
  • Fixed bug in useQueryParams causing additional parameters to overwrite existing parameters.

v6.4.0 (July 1, 2022)

01 Jul 16:33
a84ce18

Choose a tag to compare

Root Import Support

  • Added the main and typings entry to package.json which point to an index file exporting all built ES modules. This means both import statements will work out of the box:

    import { DialogProvider } from "react-simple-widgets"
    import { DialogProvider } from "react-simple-widgets/dist/dialog-provider"
  • Using ES modules adds dead-code elimination support (I.e. module bundlers can tree-shake this library) for lower app bundle sizes.

v6.3.0 (June 29, 2022)

30 Jun 00:02

Choose a tag to compare

  • Added optional mobileTableCols attribute to TableView which preserves the table view in mobile view if set. It also limits the number of columns to render in mobile view.
  • Updated default appearance of TableView.

v6.2.0 (June 27, 2022)

27 Jun 00:29

Choose a tag to compare

  • Added TagInput widget
  • Added TagField widget
  • Added helper.send(msg?) to DialogProvider widget which allows dialogs to send messages to the host without closing the dialog