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.modern.js
CHANGED
|
@@ -9335,7 +9335,7 @@ function FileUpload(props) {
|
|
|
9335
9335
|
return React.createElement("div", {
|
|
9336
9336
|
className: rootClassName$2f + "-outer"
|
|
9337
9337
|
}, !props.hideTopLabel && React.createElement("div", {
|
|
9338
|
-
className: getMergedClassNames([rootClassName$2f + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
9338
|
+
className: getMergedClassNames([rootClassName$2f + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : '', 'nunito'])
|
|
9339
9339
|
}, props.topLabel), React.createElement("div", {
|
|
9340
9340
|
id: id,
|
|
9341
9341
|
className: getMergedClassNames([rootClassName$2f, props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
@@ -13291,7 +13291,7 @@ var CalendarChip$1 = memo(CalendarChip);
|
|
|
13291
13291
|
var rootClassName$32 = 'calendar-month-day';
|
|
13292
13292
|
|
|
13293
13293
|
function CalendarMonthDay(props) {
|
|
13294
|
-
var _props$eventos, _props$
|
|
13294
|
+
var _props$eventos, _props$eventos2, _props$eventos3, _props$eventos4, _props$eventos4$slice;
|
|
13295
13295
|
|
|
13296
13296
|
var classNames = useMemo(function () {
|
|
13297
13297
|
return getMergedClassNames([rootClassName$32, props.pocket ? 'pocket' : '', props.isToday ? 'today' : '', props.disabled ? 'disabled' : '', props.highlightWeekends && (props.day.getDay() === 0 || props.day.getDay() === 6) ? 'highlight' : '']);
|
|
@@ -13299,11 +13299,9 @@ function CalendarMonthDay(props) {
|
|
|
13299
13299
|
var date = new Date();
|
|
13300
13300
|
date.setDate(date.getDate() - 1);
|
|
13301
13301
|
return React.createElement("div", {
|
|
13302
|
-
className:
|
|
13302
|
+
className: classNames,
|
|
13303
13303
|
onClick: function onClick(evt) {
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
if (((_props$eventos2 = props.eventos) === null || _props$eventos2 === void 0 ? void 0 : _props$eventos2.length) > 2 && typeof props.onDateClick === 'function') {
|
|
13304
|
+
if (typeof props.onDateClick === 'function') {
|
|
13307
13305
|
props.onDateClick(props.day, evt);
|
|
13308
13306
|
evt.stopPropagation();
|
|
13309
13307
|
}
|
|
@@ -13318,12 +13316,12 @@ function CalendarMonthDay(props) {
|
|
|
13318
13316
|
}
|
|
13319
13317
|
}
|
|
13320
13318
|
}, React.createElement(Notification, {
|
|
13321
|
-
count: props.pocket ? (_props$
|
|
13319
|
+
count: props.pocket ? (_props$eventos = props.eventos) === null || _props$eventos === void 0 ? void 0 : _props$eventos.length : 0,
|
|
13322
13320
|
type: props.disabled ? NotificationType.Disabled : NotificationType.Primary,
|
|
13323
13321
|
verticalOuter: 11,
|
|
13324
13322
|
horizontalOuter: 14
|
|
13325
|
-
}, getTwoNumbersIfNotTen(props.day.getDate()))), React.createElement("div", null, !props.pocket && props.showPlusIcon && Boolean(props.eventos) && ((_props$
|
|
13326
|
-
num: ((_props$
|
|
13323
|
+
}, getTwoNumbersIfNotTen(props.day.getDate()))), React.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.createElement(CalendarChip$1, {
|
|
13324
|
+
num: ((_props$eventos3 = props.eventos) === null || _props$eventos3 === void 0 ? void 0 : _props$eventos3.length) - 2,
|
|
13327
13325
|
onClick: function onClick(evt) {
|
|
13328
13326
|
if (typeof props.onPlusButtonClick === 'function') {
|
|
13329
13327
|
props.onPlusButtonClick(props.day, evt);
|
|
@@ -13333,7 +13331,7 @@ function CalendarMonthDay(props) {
|
|
|
13333
13331
|
disabled: props.disabled
|
|
13334
13332
|
}) : undefined)), !props.pocket ? React.createElement(Fragment$1, null, React.createElement("div", {
|
|
13335
13333
|
className: rootClassName$32 + "-eventos"
|
|
13336
|
-
}, (_props$
|
|
13334
|
+
}, (_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) {
|
|
13337
13335
|
return React.createElement(CalendarEvent$1, Object.assign({
|
|
13338
13336
|
key: e.id
|
|
13339
13337
|
}, e, {
|
|
@@ -13467,7 +13465,7 @@ Calendar.defaultProps = {
|
|
|
13467
13465
|
loading: false,
|
|
13468
13466
|
disabledNextMonth: true,
|
|
13469
13467
|
disabledPrevMonth: true,
|
|
13470
|
-
disabledPrevAddButton:
|
|
13468
|
+
disabledPrevAddButton: false,
|
|
13471
13469
|
highlightWeekends: true,
|
|
13472
13470
|
showAddButton: true,
|
|
13473
13471
|
showPlusIcon: true,
|