react-better-html 1.1.175 → 1.1.176

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/dist/index.mjs CHANGED
@@ -6127,6 +6127,7 @@ function Calendar({ value, minDate, maxDate, onChange }) {
6127
6127
  days.map((day, index) => {
6128
6128
  const thisDayDate = new Date(currentYear, currentMonth, day);
6129
6129
  const isSelected = day !== void 0 && day === currentDate?.getDate() && currentMonth === currentDate.getMonth() && currentYear === currentDate.getFullYear();
6130
+ const isToday = thisDayDate.getDate() === (/* @__PURE__ */ new Date()).getDate() && thisDayDate.getMonth() === (/* @__PURE__ */ new Date()).getMonth() && thisDayDate.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear();
6130
6131
  const isWeekend = thisDayDate.getDay() === 6 || thisDayDate.getDay() === 0;
6131
6132
  const isDisabled = minDate && thisDayDate.getTime() < minDate.getTime() || maxDate && thisDayDate.getTime() > maxDate.getTime();
6132
6133
  return /* @__PURE__ */ jsxs12(
@@ -6138,7 +6139,8 @@ function Calendar({ value, minDate, maxDate, onChange }) {
6138
6139
  alignItems: "center",
6139
6140
  justifyContent: "center",
6140
6141
  backgroundColor: isSelected ? theme2.colors.primary : theme2.colors.backgroundContent,
6141
- filterHover: !isDisabled ? "brightness(0.9)" : void 0,
6142
+ filterHover: day && !isDisabled ? "brightness(0.9)" : void 0,
6143
+ border: `1px solid ${isToday ? theme2.colors.primary : theme2.colors.primary + "00"}`,
6142
6144
  borderRadius: theme2.styles.borderRadius / 2,
6143
6145
  padding: theme2.styles.space / 2,
6144
6146
  cursor: day ? !isDisabled ? "pointer" : "not-allowed" : void 0,