@sunsama/event-calendar 0.2.7 → 0.2.8
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/lib/commonjs/components/all-day-events.js +0 -9
- package/lib/commonjs/components/all-day-events.js.map +1 -1
- package/lib/module/components/all-day-events.js +0 -9
- package/lib/module/components/all-day-events.js.map +1 -1
- package/lib/typescript/commonjs/components/all-day-events.d.ts.map +1 -1
- package/lib/typescript/module/components/all-day-events.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/all-day-events.tsx +0 -6
|
@@ -37,8 +37,6 @@ const AllDayEvents = /*#__PURE__*/(0, _react.memo)(() => {
|
|
|
37
37
|
}, [measuredHeight, originalHeight, showAllDayEvents]);
|
|
38
38
|
const allDayEvents = showAllDayEvents ? layout.allDayEventsLayout : layout.allDayEventsLayout.slice(0, maxAllDayEvents);
|
|
39
39
|
const restEventAmount = layout.allDayEventsLayout.length - allDayEvents.length;
|
|
40
|
-
|
|
41
|
-
// Called whenever the content inside changes layout
|
|
42
40
|
const onContentLayout = (0, _react.useCallback)(e => {
|
|
43
41
|
const {
|
|
44
42
|
height
|
|
@@ -48,21 +46,14 @@ const AllDayEvents = /*#__PURE__*/(0, _react.memo)(() => {
|
|
|
48
46
|
measuredHeight.value = height;
|
|
49
47
|
return;
|
|
50
48
|
}
|
|
51
|
-
|
|
52
|
-
// Animate from the old height to the new height
|
|
53
49
|
measuredHeight.value = (0, _reactNativeReanimated.withTiming)(height, {
|
|
54
50
|
duration: 250
|
|
55
51
|
});
|
|
56
52
|
}, [measuredHeight, originalHeight]);
|
|
57
|
-
|
|
58
|
-
// Apply the animated height to the wrapping container
|
|
59
53
|
const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
60
54
|
return {
|
|
61
|
-
// so children get clipped during animation
|
|
62
55
|
overflow: "hidden",
|
|
63
|
-
backgroundColor: "lightgrey",
|
|
64
56
|
minHeight: 1,
|
|
65
|
-
// This ensures the container’s height animates smoothly
|
|
66
57
|
height: measuredHeight.value
|
|
67
58
|
};
|
|
68
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_globals","_reactNative","_eventContainer","_interopRequireDefault","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","AllDayEvents","memo","layout","theme","maxAllDayEvents","useContext","ConfigProvider","showAllDayEvents","setShowAllDayEvents","useState","measuredHeight","useSharedValue","originalHeight","onPress","useCallback","newState","value","withTiming","duration","runOnJS","allDayEvents","allDayEventsLayout","slice","restEventAmount","length","onContentLayout","height","nativeEvent","animatedStyle","useAnimatedStyle","overflow","
|
|
1
|
+
{"version":3,"names":["_react","require","_globals","_reactNative","_eventContainer","_interopRequireDefault","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","AllDayEvents","memo","layout","theme","maxAllDayEvents","useContext","ConfigProvider","showAllDayEvents","setShowAllDayEvents","useState","measuredHeight","useSharedValue","originalHeight","onPress","useCallback","newState","value","withTiming","duration","runOnJS","allDayEvents","allDayEventsLayout","slice","restEventAmount","length","onContentLayout","height","nativeEvent","animatedStyle","useAnimatedStyle","overflow","minHeight","jsx","View","style","styles","container","allDayContainer","children","jsxs","eventContainer","allDayEventContainer","onLayout","map","allDayLayout","event","id","Pressable","moreContainer","allDayShowMoreContainer","Text","moreContainerText","allDayShowMoreText","_default","exports","StyleSheet","create","borderBottomWidth","hairlineWidth","borderColor","marginLeft","marginRight","borderLeftWidth","padding","fontSize","fontWeight","color"],"sourceRoot":"../../../src","sources":["components/all-day-events.tsx"],"mappings":";;;;;;AAAA,IAAAA,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AU,EAAE,MAAM;IAClBC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -30,8 +30,6 @@ const AllDayEvents = /*#__PURE__*/memo(() => {
|
|
|
30
30
|
}, [measuredHeight, originalHeight, showAllDayEvents]);
|
|
31
31
|
const allDayEvents = showAllDayEvents ? layout.allDayEventsLayout : layout.allDayEventsLayout.slice(0, maxAllDayEvents);
|
|
32
32
|
const restEventAmount = layout.allDayEventsLayout.length - allDayEvents.length;
|
|
33
|
-
|
|
34
|
-
// Called whenever the content inside changes layout
|
|
35
33
|
const onContentLayout = useCallback(e => {
|
|
36
34
|
const {
|
|
37
35
|
height
|
|
@@ -41,21 +39,14 @@ const AllDayEvents = /*#__PURE__*/memo(() => {
|
|
|
41
39
|
measuredHeight.value = height;
|
|
42
40
|
return;
|
|
43
41
|
}
|
|
44
|
-
|
|
45
|
-
// Animate from the old height to the new height
|
|
46
42
|
measuredHeight.value = withTiming(height, {
|
|
47
43
|
duration: 250
|
|
48
44
|
});
|
|
49
45
|
}, [measuredHeight, originalHeight]);
|
|
50
|
-
|
|
51
|
-
// Apply the animated height to the wrapping container
|
|
52
46
|
const animatedStyle = useAnimatedStyle(() => {
|
|
53
47
|
return {
|
|
54
|
-
// so children get clipped during animation
|
|
55
48
|
overflow: "hidden",
|
|
56
|
-
backgroundColor: "lightgrey",
|
|
57
49
|
minHeight: 1,
|
|
58
|
-
// This ensures the container’s height animates smoothly
|
|
59
50
|
height: measuredHeight.value
|
|
60
51
|
};
|
|
61
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useCallback","useContext","useState","ConfigProvider","StyleSheet","Text","View","EventContainer","Pressable","Animated","runOnJS","useAnimatedStyle","useSharedValue","withTiming","jsx","_jsx","jsxs","_jsxs","AllDayEvents","layout","theme","maxAllDayEvents","showAllDayEvents","setShowAllDayEvents","measuredHeight","originalHeight","onPress","newState","value","duration","allDayEvents","allDayEventsLayout","slice","restEventAmount","length","onContentLayout","e","height","nativeEvent","animatedStyle","overflow","
|
|
1
|
+
{"version":3,"names":["memo","useCallback","useContext","useState","ConfigProvider","StyleSheet","Text","View","EventContainer","Pressable","Animated","runOnJS","useAnimatedStyle","useSharedValue","withTiming","jsx","_jsx","jsxs","_jsxs","AllDayEvents","layout","theme","maxAllDayEvents","showAllDayEvents","setShowAllDayEvents","measuredHeight","originalHeight","onPress","newState","value","duration","allDayEvents","allDayEventsLayout","slice","restEventAmount","length","onContentLayout","e","height","nativeEvent","animatedStyle","overflow","minHeight","style","styles","container","allDayContainer","children","eventContainer","allDayEventContainer","onLayout","map","allDayLayout","event","id","moreContainer","allDayShowMoreContainer","moreContainerText","allDayShowMoreText","create","borderBottomWidth","hairlineWidth","borderColor","marginLeft","marginRight","borderLeftWidth","padding","fontSize","fontWeight","color"],"sourceRoot":"../../../src","sources":["components/all-day-events.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AAC/D,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAA4BC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACxE,OAAOC,cAAc,MAAM,kCAA+B;AAC1D,SAASC,SAAS,QAAQ,8BAA8B;AACxD,OAAOC,QAAQ,IACbC,OAAO,EACPC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGjC,MAAMC,YAAY,gBAAGnB,IAAI,CACvB,MAAM;EACJ,MAAM;IAAEoB,MAAM;IAAEC,KAAK;IAAEC;EAAgB,CAAC,GAAGpB,UAAU,CAACE,cAAc,CAAC;EACrE,MAAM,CAACmB,gBAAgB,EAAEC,mBAAmB,CAAC,GAAGrB,QAAQ,CAAC,KAAK,CAAC;EAE/D,MAAMsB,cAAc,GAAGZ,cAAc,CAAC,CAAC,CAAC;EACxC,MAAMa,c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B,EAAEvD,UAAU,CAACwD,aAAa;IAC3CC,WAAW,EAAE,OAAO;IACpBrB,QAAQ,EAAE;EACZ,CAAC;EACDO,cAAc,EAAE;IACde,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE,EAAE;IACfC,eAAe,EAAE5D,UAAU,CAACwD,aAAa;IACzCC,WAAW,EAAE;EACf,CAAC;EACDP,aAAa,EAAE;IACbW,OAAO,EAAE;EACX,CAAC;EACDT,iBAAiB,EAAE;IACjBU,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-day-events.d.ts","sourceRoot":"","sources":["../../../../src/components/all-day-events.tsx"],"names":[],"mappings":"AAaA,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"all-day-events.d.ts","sourceRoot":"","sources":["../../../../src/components/all-day-events.tsx"],"names":[],"mappings":"AAaA,QAAA,MAAM,YAAY,wEAsFjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-day-events.d.ts","sourceRoot":"","sources":["../../../../src/components/all-day-events.tsx"],"names":[],"mappings":"AAaA,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"all-day-events.d.ts","sourceRoot":"","sources":["../../../../src/components/all-day-events.tsx"],"names":[],"mappings":"AAaA,QAAA,MAAM,YAAY,wEAsFjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -43,7 +43,6 @@ const AllDayEvents = memo(
|
|
|
43
43
|
const restEventAmount =
|
|
44
44
|
layout.allDayEventsLayout.length - allDayEvents.length;
|
|
45
45
|
|
|
46
|
-
// Called whenever the content inside changes layout
|
|
47
46
|
const onContentLayout = useCallback(
|
|
48
47
|
(e: LayoutChangeEvent) => {
|
|
49
48
|
const { height } = e.nativeEvent.layout;
|
|
@@ -54,20 +53,15 @@ const AllDayEvents = memo(
|
|
|
54
53
|
return;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
// Animate from the old height to the new height
|
|
58
56
|
measuredHeight.value = withTiming(height, { duration: 250 });
|
|
59
57
|
},
|
|
60
58
|
[measuredHeight, originalHeight]
|
|
61
59
|
);
|
|
62
60
|
|
|
63
|
-
// Apply the animated height to the wrapping container
|
|
64
61
|
const animatedStyle = useAnimatedStyle(() => {
|
|
65
62
|
return {
|
|
66
|
-
// so children get clipped during animation
|
|
67
63
|
overflow: "hidden",
|
|
68
|
-
backgroundColor: "lightgrey",
|
|
69
64
|
minHeight: 1,
|
|
70
|
-
// This ensures the container’s height animates smoothly
|
|
71
65
|
height: measuredHeight.value,
|
|
72
66
|
};
|
|
73
67
|
});
|