+ {this.dateItems.map(
+ ({ ts, inCurrentMonth, isCurrentDate }, index) => {
+ const disabled = !inCurrentMonth || isDateDisabled?.(ts) === true
+ return (
+
{
+ this.value = ts
+ this.monthTs = startOfMonth(ts).valueOf()
+ }}
+ >
+
+ {disabled ? (
+
+ {getDate(ts)}
+
+ ) : (
+
+ {getDate(ts)}
+
+ )}
+ {index < 7 && (
+
+ {format(ts, 'EEE', {
+ locale
+ })}
+
+ )}
+
+
+ )
+ }
+ )}
+