next-helios-fe 1.1.21 → 1.1.24
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.js +1 -1
- package/package.json +1 -1
- package/src/components/calendar/calendar/index.tsx +1 -1
- package/src/components/content-container/carousel.tsx +1 -1
- package/src/components/data-tree/index.tsx +1 -1
- package/src/components/dropdown/index.tsx +1 -1
- package/src/components/map/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ export const Carousel: React.FC<CarouselProps> = ({ children, options }) => {
|
|
|
17
17
|
<div className="h-full">
|
|
18
18
|
<Cr
|
|
19
19
|
slideInterval={options?.interval || 5000}
|
|
20
|
-
pauseOnHover={options?.pauseOnHover
|
|
20
|
+
pauseOnHover={options?.pauseOnHover ?? false}
|
|
21
21
|
>
|
|
22
22
|
{childrenList?.map((item, index) => {
|
|
23
23
|
return (
|
|
@@ -8,7 +8,7 @@ export interface DataTreeProps {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
const RecursiveComponent = ({ data, defaultExpanded }: any) => {
|
|
11
|
-
const [isExpanded, setIsExpanded] = useState(defaultExpanded
|
|
11
|
+
const [isExpanded, setIsExpanded] = useState(defaultExpanded ?? false);
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<div className="ps-3">
|
|
@@ -41,7 +41,7 @@ export const Dropdown: DropdownComponent = ({
|
|
|
41
41
|
label=""
|
|
42
42
|
className="px-1 rounded-md border-default bg-secondary-bg z-20"
|
|
43
43
|
placement={placement || "bottom-end"}
|
|
44
|
-
dismissOnClick={dismissOnClick
|
|
44
|
+
dismissOnClick={dismissOnClick ?? true}
|
|
45
45
|
theme={{
|
|
46
46
|
floating: {
|
|
47
47
|
header: "px-4 py-2 text-sm !text-default",
|
|
@@ -28,7 +28,7 @@ const ChangeView = ({ center, zoom }: any) => {
|
|
|
28
28
|
const SetViewOnClick = ({ animateRef }: any) => {
|
|
29
29
|
const map = useMapEvent("click", (e) => {
|
|
30
30
|
map.setView(e.latlng, map.getZoom(), {
|
|
31
|
-
animate: animateRef.current
|
|
31
|
+
animate: animateRef.current ?? false,
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
|