diff --git a/public/images/map-img.png b/public/images/map-img.png new file mode 100644 index 000000000..feb3dc919 Binary files /dev/null and b/public/images/map-img.png differ diff --git a/src/components/elements/Breadcrumbs/Breadcrumbs.tsx b/src/components/elements/Breadcrumbs/Breadcrumbs.tsx index f71c23028..9fe404f44 100644 --- a/src/components/elements/Breadcrumbs/Breadcrumbs.tsx +++ b/src/components/elements/Breadcrumbs/Breadcrumbs.tsx @@ -5,22 +5,26 @@ import LinkWrapper from "@/components/elements/LinkWrapper/LinkWrapper"; import Text from "@/components/elements/Text/Text"; import Icon, { IconNames } from "@/components/extensive/Icon/Icon"; import { History } from "@/context/routeHistory.provider"; +import { TextVariants } from "@/types/common"; export interface BreadcrumbsProps extends DetailedHTMLProps, HTMLDivElement> { links: (Omit & { path?: string })[]; + clasNameText?: string; + textVariant?: TextVariants; } -const Breadcrumbs = ({ className, links, ...props }: BreadcrumbsProps) => { +const Breadcrumbs = ({ className, links, clasNameText, textVariant, ...props }: BreadcrumbsProps) => { return (
{links.map((item, index) => ( diff --git a/src/components/elements/ImageGallery/ImageGalleryItem.tsx b/src/components/elements/ImageGallery/ImageGalleryItem.tsx index f65330757..46d9ddfc8 100644 --- a/src/components/elements/ImageGallery/ImageGalleryItem.tsx +++ b/src/components/elements/ImageGallery/ImageGalleryItem.tsx @@ -5,6 +5,9 @@ import { DetailedHTMLProps, FC, HTMLAttributes } from "react"; import { MenuItemProps } from "@/components/elements/Menu/Menu"; import Text from "@/components/elements/Text/Text"; import Icon, { IconNames } from "@/components/extensive/Icon/Icon"; +import { ModalId } from "@/components/extensive/Modal/ModalConst"; +import ModalImageDetails from "@/components/extensive/Modal/ModalImageDetails"; +import { useModalContext } from "@/context/modal.provider"; import ImageWithChildren from "../ImageWithChildren/ImageWithChildren"; import Menu from "../Menu/Menu"; @@ -28,12 +31,21 @@ export interface ImageGalleryItemProps extends DetailedHTMLProps = ({ data, onClickGalleryItem, onDelete, className, ...rest }) => { + const { openModal, closeModal } = useModalContext(); const t = useT(); const handleDelete = () => { onDelete?.(data.uuid); }; + const openMopdalImageDetail = () => { + openModal( + ModalId.MODAL_IMAGE_DETAIL, + closeModal(ModalId.MODAL_IMAGE_DETAIL)} />, + true + ); + }; + const galeryMenu: MenuItemProps[] = [ { id: "1", @@ -41,7 +53,8 @@ const ImageGalleryItem: FC = ({ data, onClickGalleryItem, {t("Edit Attributes")} - ) + ), + onClick: openMopdalImageDetail }, { id: "2", @@ -103,12 +116,15 @@ const ImageGalleryItem: FC = ({ data, onClickGalleryItem,
- - {data.label.split(":")[0]}:{data.label.split(":")[1]} + + {data.label.split(":")[0]}:{data.label.split(":")[1]} -
+
+
{data.subtitle && ( diff --git a/src/components/elements/ImageGallery/__snapshots__/ImageGallery.stories.storyshot b/src/components/elements/ImageGallery/__snapshots__/ImageGallery.stories.storyshot index f69bcec6a..4dcc86e6d 100644 --- a/src/components/elements/ImageGallery/__snapshots__/ImageGallery.stories.storyshot +++ b/src/components/elements/ImageGallery/__snapshots__/ImageGallery.stories.storyshot @@ -539,18 +539,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Quod distinctio reiciendis maxime enim et quidem. :

-
-
+
@@ -710,18 +711,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Blanditiis magnam quae labore vel dicta quasi qui. :

-
-
+
@@ -881,18 +883,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Aliquam quidem cupiditate reprehenderit incidunt. :

-
-
+
@@ -1060,18 +1063,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Doloremque quisquam hic pariatur in dolores reprehenderit illo. :

-
-
+
@@ -1231,18 +1235,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Dignissimos unde tempore modi aut ut. :

-
-
+
@@ -1410,18 +1415,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Fugit quod ullam cum natus expedita reprehenderit. :

-
-
+
@@ -1581,18 +1587,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Sit nobis unde numquam tenetur. :

-
-
+
@@ -1752,18 +1759,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Dolorum explicabo magnam ad qui ab reprehenderit dolor. :

-
-
+
@@ -1931,18 +1939,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Rerum hic laboriosam similique quidem molestias. :

-
-
+
@@ -2110,18 +2119,19 @@ exports[`Storyshots Components/Elements/ImageGallery Default 1`] = ` className="flex items-center justify-between gap-1" >

Odit quo ipsam cupiditate laborum qui. :

-
-
+
diff --git a/src/components/elements/ImageGallery/__snapshots__/ImageGalleryItem.stories.storyshot b/src/components/elements/ImageGallery/__snapshots__/ImageGalleryItem.stories.storyshot index d4f96a7a7..af03ddf73 100644 --- a/src/components/elements/ImageGallery/__snapshots__/ImageGalleryItem.stories.storyshot +++ b/src/components/elements/ImageGallery/__snapshots__/ImageGalleryItem.stories.storyshot @@ -150,18 +150,19 @@ exports[`Storyshots Components/Elements/Cards/ImageGalleryCard/Item Default 1`] className="flex items-center justify-between gap-1" >

Fugit deleniti hic optio totam beatae. :

-
-
+