plataforma-fundacao-componentes 2.23.15 → 2.23.16
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.css +1 -3
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -9882,10 +9882,8 @@ nav.component-tabs {
|
|
|
9882
9882
|
box-shadow: 0 0 0 2px inset #d7e6c8; }
|
|
9883
9883
|
.calendar-month-day.today.disabled .calendar-month-day-day {
|
|
9884
9884
|
opacity: 0.4; }
|
|
9885
|
-
.calendar-month-day:hover {
|
|
9885
|
+
.calendar-month-day.pointer-cursor:hover {
|
|
9886
9886
|
cursor: pointer; }
|
|
9887
|
-
.calendar-month-day.default-cursor {
|
|
9888
|
-
cursor: default; }
|
|
9889
9887
|
|
|
9890
9888
|
.calendar-month-day:not(.pocket) {
|
|
9891
9889
|
height: 125px;
|
package/dist/index.js
CHANGED
|
@@ -13265,7 +13265,7 @@ var CalendarChip$1 = React.memo(CalendarChip);
|
|
|
13265
13265
|
var rootClassName$32 = 'calendar-month-day';
|
|
13266
13266
|
|
|
13267
13267
|
function CalendarMonthDay(props) {
|
|
13268
|
-
var _props$eventos, _props$
|
|
13268
|
+
var _props$eventos, _props$eventos3, _props$eventos4, _props$eventos5, _props$eventos6, _props$eventos6$slice;
|
|
13269
13269
|
|
|
13270
13270
|
var classNames = React.useMemo(function () {
|
|
13271
13271
|
return getMergedClassNames([rootClassName$32, props.pocket ? 'pocket' : '', props.isToday ? 'today' : '', props.disabled ? 'disabled' : '', props.highlightWeekends && (props.day.getDay() === 0 || props.day.getDay() === 6) ? 'highlight' : '']);
|
|
@@ -13273,9 +13273,11 @@ function CalendarMonthDay(props) {
|
|
|
13273
13273
|
var date = new Date();
|
|
13274
13274
|
date.setDate(date.getDate() - 1);
|
|
13275
13275
|
return React__default.createElement("div", {
|
|
13276
|
-
className: classNames,
|
|
13276
|
+
className: getMergedClassNames([classNames, ((_props$eventos = props.eventos) === null || _props$eventos === void 0 ? void 0 : _props$eventos.length) > 2 ? 'pointer-cursor' : undefined]),
|
|
13277
13277
|
onClick: function onClick(evt) {
|
|
13278
|
-
|
|
13278
|
+
var _props$eventos2;
|
|
13279
|
+
|
|
13280
|
+
if (((_props$eventos2 = props.eventos) === null || _props$eventos2 === void 0 ? void 0 : _props$eventos2.length) > 2 && typeof props.onDateClick === 'function') {
|
|
13279
13281
|
props.onDateClick(props.day, evt);
|
|
13280
13282
|
evt.stopPropagation();
|
|
13281
13283
|
}
|
|
@@ -13290,12 +13292,12 @@ function CalendarMonthDay(props) {
|
|
|
13290
13292
|
}
|
|
13291
13293
|
}
|
|
13292
13294
|
}, React__default.createElement(Notification, {
|
|
13293
|
-
count: props.pocket ? (_props$
|
|
13295
|
+
count: props.pocket ? (_props$eventos3 = props.eventos) === null || _props$eventos3 === void 0 ? void 0 : _props$eventos3.length : 0,
|
|
13294
13296
|
type: props.disabled ? exports.NotificationType.Disabled : exports.NotificationType.Primary,
|
|
13295
13297
|
verticalOuter: 11,
|
|
13296
13298
|
horizontalOuter: 14
|
|
13297
|
-
}, getTwoNumbersIfNotTen(props.day.getDate()))), React__default.createElement("div", null, !props.pocket && props.showPlusIcon && Boolean(props.eventos) && ((_props$
|
|
13298
|
-
num: ((_props$
|
|
13299
|
+
}, getTwoNumbersIfNotTen(props.day.getDate()))), React__default.createElement("div", null, !props.pocket && props.showPlusIcon && Boolean(props.eventos) && ((_props$eventos4 = props.eventos) === null || _props$eventos4 === void 0 ? void 0 : _props$eventos4.length) > 2 ? React__default.createElement(CalendarChip$1, {
|
|
13300
|
+
num: ((_props$eventos5 = props.eventos) === null || _props$eventos5 === void 0 ? void 0 : _props$eventos5.length) - 2,
|
|
13299
13301
|
onClick: function onClick(evt) {
|
|
13300
13302
|
if (typeof props.onPlusButtonClick === 'function') {
|
|
13301
13303
|
props.onPlusButtonClick(props.day, evt);
|
|
@@ -13305,7 +13307,7 @@ function CalendarMonthDay(props) {
|
|
|
13305
13307
|
disabled: props.disabled
|
|
13306
13308
|
}) : undefined)), !props.pocket ? React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
13307
13309
|
className: rootClassName$32 + "-eventos"
|
|
13308
|
-
}, (_props$
|
|
13310
|
+
}, (_props$eventos6 = props.eventos) === null || _props$eventos6 === void 0 ? void 0 : (_props$eventos6$slice = _props$eventos6.slice(0, 2)) === null || _props$eventos6$slice === void 0 ? void 0 : _props$eventos6$slice.map(function (e) {
|
|
13309
13311
|
return React__default.createElement(CalendarEvent$1, Object.assign({
|
|
13310
13312
|
key: e.id
|
|
13311
13313
|
}, e, {
|
|
@@ -13350,7 +13352,7 @@ function CalendarDays(props) {
|
|
|
13350
13352
|
}, days.map(function (d) {
|
|
13351
13353
|
var _props$eventos;
|
|
13352
13354
|
|
|
13353
|
-
var k = "" + d.getFullYear() + getTwoNumbersIfNotTen(d.getMonth()) + getTwoNumbersIfNotTen(d.getDate());
|
|
13355
|
+
var k = "" + d.getFullYear() + getTwoNumbersIfNotTen(d.getMonth() + 1) + getTwoNumbersIfNotTen(d.getDate());
|
|
13354
13356
|
var eventos = (_props$eventos = props.eventos) === null || _props$eventos === void 0 ? void 0 : _props$eventos.get(k);
|
|
13355
13357
|
return React__default.createElement(CalendarMonthDay$1, {
|
|
13356
13358
|
pocket: props.pocket,
|