@sunggang/ui-lib 0.1.71 → 0.1.72
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/index.esm.js +10 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -89236,6 +89236,14 @@ moment.locale("zh-tw");
|
|
|
89236
89236
|
var localizer$1 = moment$2(moment);
|
|
89237
89237
|
function BigCalender(props) {
|
|
89238
89238
|
var events = props.events, handleSelectEvent = props.handleSelectEvent, CustomEventEl = props.CustomEventEl, handleNavigate = props.handleNavigate, handleView = props.handleView;
|
|
89239
|
+
var eventPropGetter = function(event) {
|
|
89240
|
+
var backgroundColor = (event === null || event === void 0 ? void 0 : event.color) || "#2389e1";
|
|
89241
|
+
return {
|
|
89242
|
+
style: {
|
|
89243
|
+
backgroundColor: backgroundColor
|
|
89244
|
+
}
|
|
89245
|
+
};
|
|
89246
|
+
};
|
|
89239
89247
|
return /*#__PURE__*/ jsx(Calendar$1, {
|
|
89240
89248
|
localizer: localizer$1,
|
|
89241
89249
|
events: events,
|
|
@@ -89251,6 +89259,7 @@ function BigCalender(props) {
|
|
|
89251
89259
|
components: {
|
|
89252
89260
|
event: CustomEventEl
|
|
89253
89261
|
},
|
|
89262
|
+
eventPropGetter: eventPropGetter,
|
|
89254
89263
|
messages: {
|
|
89255
89264
|
next: /*#__PURE__*/ jsx("div", {
|
|
89256
89265
|
className: "flex items-center h-6",
|
|
@@ -92242,7 +92251,7 @@ function DnDCalendar(props) {
|
|
|
92242
92251
|
setEvents
|
|
92243
92252
|
]);
|
|
92244
92253
|
var eventPropGetter = function(event) {
|
|
92245
|
-
var backgroundColor = event.color || "#2389e1";
|
|
92254
|
+
var backgroundColor = (event === null || event === void 0 ? void 0 : event.color) || "#2389e1";
|
|
92246
92255
|
return {
|
|
92247
92256
|
style: {
|
|
92248
92257
|
backgroundColor: backgroundColor
|