Releases: day8/re-com
Releases · day8/re-com
v2.10.0
v2.9.0
2.5.0
2.4.0
Changes
datepicker
- Now supports custom date types, as long as they satisfy cljs-time.core/DateTimeProtocol
2.3.0
Changes
datepicker
- It only supported the
goog.date.UtcDateTime
type for the:model
,:minimum
and:maximum
args. Now it also supports thegoog.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
- It only supported the
- Bumped to latest clj/cljs/reagent etc.
- Added a new version of the
p
component (calledp-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
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 addedrc-alert-list
class - selection-list: added
:class
,:style
and:attr
args - tab components: added
:class
and:attr
args - typeahead: added
:attr
arg
- popover-anchor-wrapper/content-wrapper/tooltip: added
Other Changes
- Added a generic
close-button
component and replaced the three custom ones inpopover
,alerts
and theh-box
demo. This is exposed publicly via there-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
2.1.0
Potential Breaking Changes
- Fixed #149 - When adding a
:tooltip
to ahyperlink
the:label
gets indented.- This bug also applied to
hyperlink-href
,md-circle-icon-button
,md-icon-button
androw-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.
- This bug also applied to
re-com.css
has been modified so please grab this latest version for your code.- Here it is: re-com.css.
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
todatepicker
. 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
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 likecheckbox
) 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
withcljs.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
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
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.