ywana-core8 0.0.941 → 0.0.942

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.941",
3
+ "version": "0.0.942",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -13,11 +13,12 @@ const moment = extendMoment(Moment)
13
13
  */
14
14
  export const Calendar = (props) => {
15
15
 
16
- const { events = [], children, onChange } = props
16
+ const { events = [], children, onChange, onRange } = props
17
17
  const [range, setRange] = useState(props.range || "year")
18
18
 
19
19
  function onChangeRange(range) {
20
20
  setRange(range)
21
+ if (onRange) onRange(range)
21
22
  }
22
23
 
23
24
  return (