plataforma-fundacao-componentes 2.23.16 → 2.23.17
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 -1
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -9882,7 +9882,7 @@ 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
|
|
9885
|
+
.calendar-month-day:hover {
|
|
9886
9886
|
cursor: pointer; }
|
|
9887
9887
|
|
|
9888
9888
|
.calendar-month-day:not(.pocket) {
|
package/dist/index.js
CHANGED
|
@@ -9315,7 +9315,7 @@ function FileUpload(props) {
|
|
|
9315
9315
|
return React__default.createElement("div", {
|
|
9316
9316
|
className: rootClassName$2f + "-outer"
|
|
9317
9317
|
}, !props.hideTopLabel && React__default.createElement("div", {
|
|
9318
|
-
className: getMergedClassNames([rootClassName$2f + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
9318
|
+
className: getMergedClassNames([rootClassName$2f + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : '', 'nunito'])
|
|
9319
9319
|
}, props.topLabel), React__default.createElement("div", {
|
|
9320
9320
|
id: id,
|
|
9321
9321
|
className: getMergedClassNames([rootClassName$2f, props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
@@ -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$eventos2, _props$eventos3, _props$eventos4, _props$eventos4$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,11 +13273,9 @@ 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:
|
|
13276
|
+
className: classNames,
|
|
13277
13277
|
onClick: function onClick(evt) {
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
if (((_props$eventos2 = props.eventos) === null || _props$eventos2 === void 0 ? void 0 : _props$eventos2.length) > 2 && typeof props.onDateClick === 'function') {
|
|
13278
|
+
if (typeof props.onDateClick === 'function') {
|
|
13281
13279
|
props.onDateClick(props.day, evt);
|
|
13282
13280
|
evt.stopPropagation();
|
|
13283
13281
|
}
|
|
@@ -13292,12 +13290,12 @@ function CalendarMonthDay(props) {
|
|
|
13292
13290
|
}
|
|
13293
13291
|
}
|
|
13294
13292
|
}, React__default.createElement(Notification, {
|
|
13295
|
-
count: props.pocket ? (_props$
|
|
13293
|
+
count: props.pocket ? (_props$eventos = props.eventos) === null || _props$eventos === void 0 ? void 0 : _props$eventos.length : 0,
|
|
13296
13294
|
type: props.disabled ? exports.NotificationType.Disabled : exports.NotificationType.Primary,
|
|
13297
13295
|
verticalOuter: 11,
|
|
13298
13296
|
horizontalOuter: 14
|
|
13299
|
-
}, getTwoNumbersIfNotTen(props.day.getDate()))), React__default.createElement("div", null, !props.pocket && props.showPlusIcon && Boolean(props.eventos) && ((_props$
|
|
13300
|
-
num: ((_props$
|
|
13297
|
+
}, getTwoNumbersIfNotTen(props.day.getDate()))), React__default.createElement("div", null, !props.pocket && props.showPlusIcon && Boolean(props.eventos) && ((_props$eventos2 = props.eventos) === null || _props$eventos2 === void 0 ? void 0 : _props$eventos2.length) > 2 ? React__default.createElement(CalendarChip$1, {
|
|
13298
|
+
num: ((_props$eventos3 = props.eventos) === null || _props$eventos3 === void 0 ? void 0 : _props$eventos3.length) - 2,
|
|
13301
13299
|
onClick: function onClick(evt) {
|
|
13302
13300
|
if (typeof props.onPlusButtonClick === 'function') {
|
|
13303
13301
|
props.onPlusButtonClick(props.day, evt);
|
|
@@ -13307,7 +13305,7 @@ function CalendarMonthDay(props) {
|
|
|
13307
13305
|
disabled: props.disabled
|
|
13308
13306
|
}) : undefined)), !props.pocket ? React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
|
13309
13307
|
className: rootClassName$32 + "-eventos"
|
|
13310
|
-
}, (_props$
|
|
13308
|
+
}, (_props$eventos4 = props.eventos) === null || _props$eventos4 === void 0 ? void 0 : (_props$eventos4$slice = _props$eventos4.slice(0, 2)) === null || _props$eventos4$slice === void 0 ? void 0 : _props$eventos4$slice.map(function (e) {
|
|
13311
13309
|
return React__default.createElement(CalendarEvent$1, Object.assign({
|
|
13312
13310
|
key: e.id
|
|
13313
13311
|
}, e, {
|
|
@@ -13441,7 +13439,7 @@ Calendar.defaultProps = {
|
|
|
13441
13439
|
loading: false,
|
|
13442
13440
|
disabledNextMonth: true,
|
|
13443
13441
|
disabledPrevMonth: true,
|
|
13444
|
-
disabledPrevAddButton:
|
|
13442
|
+
disabledPrevAddButton: false,
|
|
13445
13443
|
highlightWeekends: true,
|
|
13446
13444
|
showAddButton: true,
|
|
13447
13445
|
showPlusIcon: true,
|