@utrecht/component-library-react 1.0.0-alpha.304 → 1.0.0-alpha.306

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.
@@ -974,13 +974,17 @@ var Calendar = function Calendar(_ref) {
974
974
  nextMonthButtonTitle = _ref$nextMonthButtonT === void 0 ? 'Next month' : _ref$nextMonthButtonT;
975
975
  var _useState = react.useState(currentDate || new Date()),
976
976
  _useState2 = _slicedToArray(_useState, 2),
977
- date = _useState2[0],
978
- setDate = _useState2[1];
979
- var calendar = createCalendar(date);
980
- var start = dateFns.startOfWeek(date, {
977
+ visibleMonth = _useState2[0],
978
+ setVisibleMonth = _useState2[1];
979
+ var _useState3 = react.useState(currentDate),
980
+ _useState4 = _slicedToArray(_useState3, 2),
981
+ selectedDate = _useState4[0],
982
+ setSelectedDate = _useState4[1];
983
+ var calendar = createCalendar(visibleMonth);
984
+ var start = dateFns.startOfWeek(visibleMonth, {
981
985
  weekStartsOn: 1
982
986
  });
983
- var end = dateFns.endOfWeek(date, {
987
+ var end = dateFns.endOfWeek(visibleMonth, {
984
988
  weekStartsOn: 1
985
989
  });
986
990
  var currentWeek = dateFns.eachDayOfInterval({
@@ -1023,10 +1027,10 @@ var Calendar = function Calendar(_ref) {
1023
1027
  title: nextYearButtonTitle
1024
1028
  }),
1025
1029
  onPreviousClick: function onPreviousClick() {
1026
- return setDate(dateFns.setYear(date, dateFns.getYear(date) - 1));
1030
+ return setVisibleMonth(dateFns.setYear(visibleMonth, dateFns.getYear(visibleMonth) - 1));
1027
1031
  },
1028
1032
  onNextClick: function onNextClick() {
1029
- return setDate(dateFns.addYears(date, 1));
1033
+ return setVisibleMonth(dateFns.addYears(visibleMonth, 1));
1030
1034
  },
1031
1035
  children: jsxRuntime.jsx(CalendarNavigationButtons, {
1032
1036
  previousIcon: jsxRuntime.jsx(IconArrowLeft, {
@@ -1036,14 +1040,14 @@ var Calendar = function Calendar(_ref) {
1036
1040
  title: nextMonthButtonTitle
1037
1041
  }),
1038
1042
  onPreviousClick: function onPreviousClick() {
1039
- return setDate(dateFns.setMonth(date, date.getMonth() - 1));
1043
+ return setVisibleMonth(dateFns.setMonth(visibleMonth, visibleMonth.getMonth() - 1));
1040
1044
  },
1041
1045
  onNextClick: function onNextClick() {
1042
- return setDate(dateFns.addMonths(date, 1));
1046
+ return setVisibleMonth(dateFns.addMonths(visibleMonth, 1));
1043
1047
  },
1044
1048
  children: jsxRuntime.jsx(CalendarNavigationLabel, {
1045
- dateTime: dateFns.format(date, 'yyyy-mm'),
1046
- children: dateFns.format(date, 'LLLL Y', {
1049
+ dateTime: dateFns.format(visibleMonth, 'yyyy-mm'),
1050
+ children: dateFns.format(visibleMonth, 'LLLL Y', {
1047
1051
  locale: locale$1
1048
1052
  })
1049
1053
  })
@@ -1070,17 +1074,20 @@ var Calendar = function Calendar(_ref) {
1070
1074
  children: week.map(function (day, index) {
1071
1075
  return jsxRuntime.jsx(CalendarTableDaysItemDay, {
1072
1076
  isToday: dateFns.isSameDay(day.date, Date.now()),
1073
- dayOutOfTheMonth: !dateFns.isSameMonth(day.date, date),
1077
+ dayOutOfTheMonth: !dateFns.isSameMonth(day.date, visibleMonth),
1074
1078
  onClick: function onClick() {
1075
- setDate(day.date);
1076
- onCalendarClick(dateFns.formatISO(day.date));
1079
+ setVisibleMonth(day.date);
1080
+ if (dateFns.isSameMonth(day.date, visibleMonth)) {
1081
+ setSelectedDate(day.date);
1082
+ onCalendarClick(dateFns.formatISO(day.date));
1083
+ }
1077
1084
  },
1078
1085
  "aria-label": dateFns.format(day.date, 'eeee dd LLLL Y', {
1079
1086
  locale: locale$1
1080
1087
  }),
1081
1088
  day: day.date.getDate().toString(),
1082
1089
  emphasis: day.emphasis,
1083
- selected: day.selected || dateFns.isSameDay(day.date, date),
1090
+ selected: day.selected || selectedDate && dateFns.isSameDay(day.date, selectedDate),
1084
1091
  disabled: day.disabled
1085
1092
  }, index);
1086
1093
  })
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -972,13 +972,17 @@ var Calendar = function Calendar(_ref) {
972
972
  nextMonthButtonTitle = _ref$nextMonthButtonT === void 0 ? 'Next month' : _ref$nextMonthButtonT;
973
973
  var _useState = useState(currentDate || new Date()),
974
974
  _useState2 = _slicedToArray(_useState, 2),
975
- date = _useState2[0],
976
- setDate = _useState2[1];
977
- var calendar = createCalendar(date);
978
- var start = startOfWeek(date, {
975
+ visibleMonth = _useState2[0],
976
+ setVisibleMonth = _useState2[1];
977
+ var _useState3 = useState(currentDate),
978
+ _useState4 = _slicedToArray(_useState3, 2),
979
+ selectedDate = _useState4[0],
980
+ setSelectedDate = _useState4[1];
981
+ var calendar = createCalendar(visibleMonth);
982
+ var start = startOfWeek(visibleMonth, {
979
983
  weekStartsOn: 1
980
984
  });
981
- var end = endOfWeek(date, {
985
+ var end = endOfWeek(visibleMonth, {
982
986
  weekStartsOn: 1
983
987
  });
984
988
  var currentWeek = eachDayOfInterval({
@@ -1021,10 +1025,10 @@ var Calendar = function Calendar(_ref) {
1021
1025
  title: nextYearButtonTitle
1022
1026
  }),
1023
1027
  onPreviousClick: function onPreviousClick() {
1024
- return setDate(setYear(date, getYear(date) - 1));
1028
+ return setVisibleMonth(setYear(visibleMonth, getYear(visibleMonth) - 1));
1025
1029
  },
1026
1030
  onNextClick: function onNextClick() {
1027
- return setDate(addYears(date, 1));
1031
+ return setVisibleMonth(addYears(visibleMonth, 1));
1028
1032
  },
1029
1033
  children: jsx(CalendarNavigationButtons, {
1030
1034
  previousIcon: jsx(IconArrowLeft, {
@@ -1034,14 +1038,14 @@ var Calendar = function Calendar(_ref) {
1034
1038
  title: nextMonthButtonTitle
1035
1039
  }),
1036
1040
  onPreviousClick: function onPreviousClick() {
1037
- return setDate(setMonth(date, date.getMonth() - 1));
1041
+ return setVisibleMonth(setMonth(visibleMonth, visibleMonth.getMonth() - 1));
1038
1042
  },
1039
1043
  onNextClick: function onNextClick() {
1040
- return setDate(addMonths(date, 1));
1044
+ return setVisibleMonth(addMonths(visibleMonth, 1));
1041
1045
  },
1042
1046
  children: jsx(CalendarNavigationLabel, {
1043
- dateTime: format(date, 'yyyy-mm'),
1044
- children: format(date, 'LLLL Y', {
1047
+ dateTime: format(visibleMonth, 'yyyy-mm'),
1048
+ children: format(visibleMonth, 'LLLL Y', {
1045
1049
  locale: locale
1046
1050
  })
1047
1051
  })
@@ -1068,17 +1072,20 @@ var Calendar = function Calendar(_ref) {
1068
1072
  children: week.map(function (day, index) {
1069
1073
  return jsx(CalendarTableDaysItemDay, {
1070
1074
  isToday: isSameDay(day.date, Date.now()),
1071
- dayOutOfTheMonth: !isSameMonth(day.date, date),
1075
+ dayOutOfTheMonth: !isSameMonth(day.date, visibleMonth),
1072
1076
  onClick: function onClick() {
1073
- setDate(day.date);
1074
- onCalendarClick(formatISO(day.date));
1077
+ setVisibleMonth(day.date);
1078
+ if (isSameMonth(day.date, visibleMonth)) {
1079
+ setSelectedDate(day.date);
1080
+ onCalendarClick(formatISO(day.date));
1081
+ }
1075
1082
  },
1076
1083
  "aria-label": format(day.date, 'eeee dd LLLL Y', {
1077
1084
  locale: locale
1078
1085
  }),
1079
1086
  day: day.date.getDate().toString(),
1080
1087
  emphasis: day.emphasis,
1081
- selected: day.selected || isSameDay(day.date, date),
1088
+ selected: day.selected || selectedDate && isSameDay(day.date, selectedDate),
1082
1089
  disabled: day.disabled
1083
1090
  }, index);
1084
1091
  })
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
package/dist/index.cjs.js CHANGED
@@ -911,13 +911,17 @@ var Calendar = function Calendar(_ref) {
911
911
  nextMonthButtonTitle = _ref$nextMonthButtonT === void 0 ? 'Next month' : _ref$nextMonthButtonT;
912
912
  var _useState = react.useState(currentDate || new Date()),
913
913
  _useState2 = _slicedToArray(_useState, 2),
914
- date = _useState2[0],
915
- setDate = _useState2[1];
916
- var calendar = createCalendar(date);
917
- var start = dateFns.startOfWeek(date, {
914
+ visibleMonth = _useState2[0],
915
+ setVisibleMonth = _useState2[1];
916
+ var _useState3 = react.useState(currentDate),
917
+ _useState4 = _slicedToArray(_useState3, 2),
918
+ selectedDate = _useState4[0],
919
+ setSelectedDate = _useState4[1];
920
+ var calendar = createCalendar(visibleMonth);
921
+ var start = dateFns.startOfWeek(visibleMonth, {
918
922
  weekStartsOn: 1
919
923
  });
920
- var end = dateFns.endOfWeek(date, {
924
+ var end = dateFns.endOfWeek(visibleMonth, {
921
925
  weekStartsOn: 1
922
926
  });
923
927
  var currentWeek = dateFns.eachDayOfInterval({
@@ -960,10 +964,10 @@ var Calendar = function Calendar(_ref) {
960
964
  title: nextYearButtonTitle
961
965
  }),
962
966
  onPreviousClick: function onPreviousClick() {
963
- return setDate(dateFns.setYear(date, dateFns.getYear(date) - 1));
967
+ return setVisibleMonth(dateFns.setYear(visibleMonth, dateFns.getYear(visibleMonth) - 1));
964
968
  },
965
969
  onNextClick: function onNextClick() {
966
- return setDate(dateFns.addYears(date, 1));
970
+ return setVisibleMonth(dateFns.addYears(visibleMonth, 1));
967
971
  },
968
972
  children: jsxRuntime.jsx(CalendarNavigationButtons, {
969
973
  previousIcon: jsxRuntime.jsx(IconArrowLeft, {
@@ -973,14 +977,14 @@ var Calendar = function Calendar(_ref) {
973
977
  title: nextMonthButtonTitle
974
978
  }),
975
979
  onPreviousClick: function onPreviousClick() {
976
- return setDate(dateFns.setMonth(date, date.getMonth() - 1));
980
+ return setVisibleMonth(dateFns.setMonth(visibleMonth, visibleMonth.getMonth() - 1));
977
981
  },
978
982
  onNextClick: function onNextClick() {
979
- return setDate(dateFns.addMonths(date, 1));
983
+ return setVisibleMonth(dateFns.addMonths(visibleMonth, 1));
980
984
  },
981
985
  children: jsxRuntime.jsx(CalendarNavigationLabel, {
982
- dateTime: dateFns.format(date, 'yyyy-mm'),
983
- children: dateFns.format(date, 'LLLL Y', {
986
+ dateTime: dateFns.format(visibleMonth, 'yyyy-mm'),
987
+ children: dateFns.format(visibleMonth, 'LLLL Y', {
984
988
  locale: locale$1
985
989
  })
986
990
  })
@@ -1007,17 +1011,20 @@ var Calendar = function Calendar(_ref) {
1007
1011
  children: week.map(function (day, index) {
1008
1012
  return jsxRuntime.jsx(CalendarTableDaysItemDay, {
1009
1013
  isToday: dateFns.isSameDay(day.date, Date.now()),
1010
- dayOutOfTheMonth: !dateFns.isSameMonth(day.date, date),
1014
+ dayOutOfTheMonth: !dateFns.isSameMonth(day.date, visibleMonth),
1011
1015
  onClick: function onClick() {
1012
- setDate(day.date);
1013
- onCalendarClick(dateFns.formatISO(day.date));
1016
+ setVisibleMonth(day.date);
1017
+ if (dateFns.isSameMonth(day.date, visibleMonth)) {
1018
+ setSelectedDate(day.date);
1019
+ onCalendarClick(dateFns.formatISO(day.date));
1020
+ }
1014
1021
  },
1015
1022
  "aria-label": dateFns.format(day.date, 'eeee dd LLLL Y', {
1016
1023
  locale: locale$1
1017
1024
  }),
1018
1025
  day: day.date.getDate().toString(),
1019
1026
  emphasis: day.emphasis,
1020
- selected: day.selected || dateFns.isSameDay(day.date, date),
1027
+ selected: day.selected || selectedDate && dateFns.isSameDay(day.date, selectedDate),
1021
1028
  disabled: day.disabled
1022
1029
  }, index);
1023
1030
  })
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.esm.js CHANGED
@@ -909,13 +909,17 @@ var Calendar = function Calendar(_ref) {
909
909
  nextMonthButtonTitle = _ref$nextMonthButtonT === void 0 ? 'Next month' : _ref$nextMonthButtonT;
910
910
  var _useState = useState(currentDate || new Date()),
911
911
  _useState2 = _slicedToArray(_useState, 2),
912
- date = _useState2[0],
913
- setDate = _useState2[1];
914
- var calendar = createCalendar(date);
915
- var start = startOfWeek(date, {
912
+ visibleMonth = _useState2[0],
913
+ setVisibleMonth = _useState2[1];
914
+ var _useState3 = useState(currentDate),
915
+ _useState4 = _slicedToArray(_useState3, 2),
916
+ selectedDate = _useState4[0],
917
+ setSelectedDate = _useState4[1];
918
+ var calendar = createCalendar(visibleMonth);
919
+ var start = startOfWeek(visibleMonth, {
916
920
  weekStartsOn: 1
917
921
  });
918
- var end = endOfWeek(date, {
922
+ var end = endOfWeek(visibleMonth, {
919
923
  weekStartsOn: 1
920
924
  });
921
925
  var currentWeek = eachDayOfInterval({
@@ -958,10 +962,10 @@ var Calendar = function Calendar(_ref) {
958
962
  title: nextYearButtonTitle
959
963
  }),
960
964
  onPreviousClick: function onPreviousClick() {
961
- return setDate(setYear(date, getYear(date) - 1));
965
+ return setVisibleMonth(setYear(visibleMonth, getYear(visibleMonth) - 1));
962
966
  },
963
967
  onNextClick: function onNextClick() {
964
- return setDate(addYears(date, 1));
968
+ return setVisibleMonth(addYears(visibleMonth, 1));
965
969
  },
966
970
  children: jsx(CalendarNavigationButtons, {
967
971
  previousIcon: jsx(IconArrowLeft, {
@@ -971,14 +975,14 @@ var Calendar = function Calendar(_ref) {
971
975
  title: nextMonthButtonTitle
972
976
  }),
973
977
  onPreviousClick: function onPreviousClick() {
974
- return setDate(setMonth(date, date.getMonth() - 1));
978
+ return setVisibleMonth(setMonth(visibleMonth, visibleMonth.getMonth() - 1));
975
979
  },
976
980
  onNextClick: function onNextClick() {
977
- return setDate(addMonths(date, 1));
981
+ return setVisibleMonth(addMonths(visibleMonth, 1));
978
982
  },
979
983
  children: jsx(CalendarNavigationLabel, {
980
- dateTime: format(date, 'yyyy-mm'),
981
- children: format(date, 'LLLL Y', {
984
+ dateTime: format(visibleMonth, 'yyyy-mm'),
985
+ children: format(visibleMonth, 'LLLL Y', {
982
986
  locale: locale
983
987
  })
984
988
  })
@@ -1005,17 +1009,20 @@ var Calendar = function Calendar(_ref) {
1005
1009
  children: week.map(function (day, index) {
1006
1010
  return jsx(CalendarTableDaysItemDay, {
1007
1011
  isToday: isSameDay(day.date, Date.now()),
1008
- dayOutOfTheMonth: !isSameMonth(day.date, date),
1012
+ dayOutOfTheMonth: !isSameMonth(day.date, visibleMonth),
1009
1013
  onClick: function onClick() {
1010
- setDate(day.date);
1011
- onCalendarClick(formatISO(day.date));
1014
+ setVisibleMonth(day.date);
1015
+ if (isSameMonth(day.date, visibleMonth)) {
1016
+ setSelectedDate(day.date);
1017
+ onCalendarClick(formatISO(day.date));
1018
+ }
1012
1019
  },
1013
1020
  "aria-label": format(day.date, 'eeee dd LLLL Y', {
1014
1021
  locale: locale
1015
1022
  }),
1016
1023
  day: day.date.getDate().toString(),
1017
1024
  emphasis: day.emphasis,
1018
- selected: day.selected || isSameDay(day.date, date),
1025
+ selected: day.selected || selectedDate && isSameDay(day.date, selectedDate),
1019
1026
  disabled: day.disabled
1020
1027
  }, index);
1021
1028
  })
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.304",
2
+ "version": "1.0.0-alpha.306",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -80,5 +80,5 @@
80
80
  "react": "16 - 18",
81
81
  "react-dom": "16 - 18"
82
82
  },
83
- "gitHead": "9892d9465f6307d43f593293eddfa1b7f5ca8d39"
83
+ "gitHead": "c24597c5c1f3b661a7b29661969e5b53c4a73164"
84
84
  }