Skip to content

Releases: day8/re-com

v2.10.0

21 Dec 12:12
v2.10.0
27fd1b3
Compare
Choose a tag to compare

v2.9.0

10 Aug 23:18
v2.9.0
76cd760
Compare
Choose a tag to compare

2.5.0

12 Mar 03:50
Compare
Choose a tag to compare

Typeahead Fixes

  • Merged #196 (Add seq to treat empty suggestions as falsy) which fixes #195
  • Merged #194 (Fix tabbing over typeahead elements) which fixes #190

2.4.0

19 Dec 07:36
Compare
Choose a tag to compare

Changes

2.3.0

27 Nov 22:55
Compare
Choose a tag to compare

Changes

  • datepicker
    • It only supported the goog.date.UtcDateTime type for the :model, :minimum and :maximum args. Now it also supports the goog.date.Date type
    • :on-change now returns the same type that was passed in for :model
    • Arg documentation has been updated in the re-demo app
    • This introduces no breaking changes
  • Bumped to latest clj/cljs/reagent etc.
  • Added a new version of the p component (called p-span) to be more friendly with the latest version of React/Reagent which now dumps warning messages in DevTools when [:div] elements are placed within it. The [:p] has been replaced with a [:span]

2.2.0

05 Nov 01:00
Compare
Choose a tag to compare

Component Styling Improvements

  • Added more classes to the components for easier styling via CSS. Every component now has an "rc-" style at the root level. Also added some inner classes where useful. Classes were added in the following component modules:
    • buttons
    • datepicker
    • misc (checkbox, radio-button, slider, progress-bar)
    • modal-panel
    • popover
    • selection-list
    • text
    • typeahead
  • With the aim of having :class, :style and :attr args for all components:
    • popover-anchor-wrapper/content-wrapper/tooltip: added :class and :attr args
    • checkbox/radio-button: added :class arg
    • alert-list: added :alert-class and :alert-style args to style the alerts in the list and added rc-alert-list class
    • selection-list: added :class, :style and :attr args
    • tab components: added :class and :attr args
    • typeahead: added :attr arg

Other Changes

  • Added a generic close-button component and replaced the three custom ones in popover, alerts and the h-box demo. This is exposed publicly via the re-com.core/close-button
  • Allow nil to be passed for input-text model (converts to ""). Thanks p-himik for validation fn
  • Improved the argument docs to provide clarity for the :class, :style and :attr args for each component in regards to which part of the component they apply to
  • Merged #169 - Add :placeholder option for datepicker dropdown
  • Merged #171 - Parametrize color of the svg arrow (stroke attribute)
  • Merged #172 - Add missing closing bracket to sample code

Fixes

  • Merged #168 - Hides suggestions on blur; Added option to change model on every keystroke (this fixes #141 - Typeahead doesn't close when clicking outside)
  • Fixed #187 - How does input-text handle keyboard events in the :on-change function?

2.1.0

25 May 04:03
Compare
Choose a tag to compare

Potential Breaking Changes

  • Fixed #149 - When adding a :tooltip to a hyperlink the :label gets indented.
    • This bug also applied to hyperlink-href, md-circle-icon-button, md-icon-button and row-button so they are also fixed.
    • The fix involved wrapping the components in a [:div] with :display set to "inline-flex", changing the component hierarchy. It should only cause a breaking change in rare cases.
    • NOTE: This fix does have another positive effect - because all these components are now "display: inline-flex", they can be intermingled with text, rather than the hacky workarounds we were previously forced to use. See this commit in the demo for an example of the simplified code.
  • re-com.css has been modified so please grab this latest version for your code.

Changes

  • Merged #145 - Support async choices loading in single-dropdown. This adds a page to the demo app. It's the last one in the dropdown selector.
  • Merged #147 - Add support of reactive :minimum and :maximum to datepicker. The demo page has been modified so that the date selected in the from datepicker becomes the :minimum for the to datepicker. And the date selected in the to datepicker becomes the :maximum for the from datepicker.
  • Added a demo page for the [p] (i.e. paragraph) component.
  • Removed args from component outer functions that are not used in the outer function.
  • Reordered inner function args in components to include all args in the order they appear in the args-desc var.
  • Some other minor refactoring, including converting some type 2 components to type 1, removing some redundant code and other housekeeping.

Fixes

  • Fixed #130 - typeahead suggestions container shifts everything below it (with PR #140 - typeahead dropdown list doesn't shift content underneath anymore).
  • Fixed a bug in input-time, where various args (:on-change, :class, :style, :attr) were NOT included in the render function so remained as the original/stale version passed at creation.

2.0.0

02 Feb 05:12
Compare
Choose a tag to compare

Breaking Change

  • Fixed #137 - radio-button :on-change handler doesn't receive value argument.
  • The :on-change event was being passed a boolean value (just like checkbox) instead of the value passed in the :value arg.
  • Change made in this commit. Note that all occurrences of radio-button in the demo have been updated to use the passed value to demonstrate the correct way of using it.

Changes

  • Merged #139 - Add unit tests for some box and validate functions.
  • Replaced deprecated cemerick.cljs.test with cljs.test.
  • Bumped clojurescript to "1.9.456", core.async to "0.2.395", figwheel-sidecar to "0.5.9", figwheel to "0.5.9", devtools to "0.9.0", lein-cljsbuild to "1.1.5".

1.3.0

04 Jan 01:33
Compare
Choose a tag to compare

Changes

  • Merged #126 - added password input field
  • Merged #128 - Fixed typos in demo
  • Merged #134 - Updated Readme

Fixes

  • Merged #136 - Fix for when datepicker input model is nil
  • Fixed #129 - :on-context-menu missing in attr validation (also added many new attrs, events and styles)
  • Get around reagent 0.6.0 checkbox bug as reported here: reagent-project/reagent#264

1.2.0

02 Dec 04:46
Compare
Choose a tag to compare

Fixes

Fixed component arg validation code - it was using deref-or-value to extract values to be validated however, the act of doing this added any passed atoms/reactions to the watch list of the component causing it to update when they change.

This could cause different render behaviour between dev (where we validate) and prod (where we remove the validation code).

The problem was experienced in popover-content-wrapper with the position-injected atom which was not derefed there, however the dev-only validation caused it to be derefed and the popover sometimes rendered in different positions for dev vs. prod when :no-clip? was set.