@geowiki/design-system 0.16.16 → 0.16.18
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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -2
- package/dist/index.mjs +14 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1127,8 +1127,10 @@ interface Props$6 {
|
|
|
1127
1127
|
galleryItems: CarouselGalleryItemProps[];
|
|
1128
1128
|
orientation?: "horizontal" | "vertical";
|
|
1129
1129
|
allowZoom?: boolean;
|
|
1130
|
+
selectImageText?: string;
|
|
1130
1131
|
onHover?: (id: string) => void;
|
|
1131
1132
|
saveRotationChanges?: (base64: string | null, id?: any) => void;
|
|
1133
|
+
selectImage?: (id: string) => void;
|
|
1132
1134
|
}
|
|
1133
1135
|
declare const CarouselItemList: (props: Props$6) => React$1.JSX.Element;
|
|
1134
1136
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1127,8 +1127,10 @@ interface Props$6 {
|
|
|
1127
1127
|
galleryItems: CarouselGalleryItemProps[];
|
|
1128
1128
|
orientation?: "horizontal" | "vertical";
|
|
1129
1129
|
allowZoom?: boolean;
|
|
1130
|
+
selectImageText?: string;
|
|
1130
1131
|
onHover?: (id: string) => void;
|
|
1131
1132
|
saveRotationChanges?: (base64: string | null, id?: any) => void;
|
|
1133
|
+
selectImage?: (id: string) => void;
|
|
1132
1134
|
}
|
|
1133
1135
|
declare const CarouselItemList: (props: Props$6) => React$1.JSX.Element;
|
|
1134
1136
|
|
package/dist/index.js
CHANGED
|
@@ -7608,7 +7608,9 @@ var GalleryCarouselOpen = ({
|
|
|
7608
7608
|
open,
|
|
7609
7609
|
allowZoom,
|
|
7610
7610
|
setOpen,
|
|
7611
|
-
saveRotationChanges
|
|
7611
|
+
saveRotationChanges,
|
|
7612
|
+
selectImage,
|
|
7613
|
+
selectImageText
|
|
7612
7614
|
}) => {
|
|
7613
7615
|
const [defaultPhoto, setDefaultPhoto] = (0, import_react25.useState)(currentPhoto);
|
|
7614
7616
|
const [text, setDefaultText] = (0, import_react25.useState)("");
|
|
@@ -7801,6 +7803,14 @@ var GalleryCarouselOpen = ({
|
|
|
7801
7803
|
onClick: () => saveRotationChanges(generateBase64ofImage(), id),
|
|
7802
7804
|
children: "Save rotation changes"
|
|
7803
7805
|
}
|
|
7806
|
+
),
|
|
7807
|
+
selectImageText && selectImage && !defaultPhoto.imageUrl.includes(".mp4") && !defaultPhoto.imageUrl.includes(".mov") && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
7808
|
+
"div",
|
|
7809
|
+
{
|
|
7810
|
+
className: "z-40 text-white hover:cursor-pointer",
|
|
7811
|
+
onClick: () => selectImage(id),
|
|
7812
|
+
children: selectImageText
|
|
7813
|
+
}
|
|
7804
7814
|
)
|
|
7805
7815
|
] })
|
|
7806
7816
|
] }) })
|
|
@@ -7849,8 +7859,10 @@ var CarouselItemList = (props) => {
|
|
|
7849
7859
|
})),
|
|
7850
7860
|
open,
|
|
7851
7861
|
allowZoom: props.allowZoom,
|
|
7862
|
+
selectImageText: props.selectImageText,
|
|
7852
7863
|
setOpen,
|
|
7853
|
-
saveRotationChanges: props.saveRotationChanges
|
|
7864
|
+
saveRotationChanges: props.saveRotationChanges,
|
|
7865
|
+
selectImage: props.selectImage
|
|
7854
7866
|
}
|
|
7855
7867
|
)
|
|
7856
7868
|
] });
|
package/dist/index.mjs
CHANGED
|
@@ -7240,7 +7240,9 @@ var GalleryCarouselOpen = ({
|
|
|
7240
7240
|
open,
|
|
7241
7241
|
allowZoom,
|
|
7242
7242
|
setOpen,
|
|
7243
|
-
saveRotationChanges
|
|
7243
|
+
saveRotationChanges,
|
|
7244
|
+
selectImage,
|
|
7245
|
+
selectImageText
|
|
7244
7246
|
}) => {
|
|
7245
7247
|
const [defaultPhoto, setDefaultPhoto] = useState14(currentPhoto);
|
|
7246
7248
|
const [text, setDefaultText] = useState14("");
|
|
@@ -7433,6 +7435,14 @@ var GalleryCarouselOpen = ({
|
|
|
7433
7435
|
onClick: () => saveRotationChanges(generateBase64ofImage(), id),
|
|
7434
7436
|
children: "Save rotation changes"
|
|
7435
7437
|
}
|
|
7438
|
+
),
|
|
7439
|
+
selectImageText && selectImage && !defaultPhoto.imageUrl.includes(".mp4") && !defaultPhoto.imageUrl.includes(".mov") && /* @__PURE__ */ jsx133(
|
|
7440
|
+
"div",
|
|
7441
|
+
{
|
|
7442
|
+
className: "z-40 text-white hover:cursor-pointer",
|
|
7443
|
+
onClick: () => selectImage(id),
|
|
7444
|
+
children: selectImageText
|
|
7445
|
+
}
|
|
7436
7446
|
)
|
|
7437
7447
|
] })
|
|
7438
7448
|
] }) })
|
|
@@ -7481,8 +7491,10 @@ var CarouselItemList = (props) => {
|
|
|
7481
7491
|
})),
|
|
7482
7492
|
open,
|
|
7483
7493
|
allowZoom: props.allowZoom,
|
|
7494
|
+
selectImageText: props.selectImageText,
|
|
7484
7495
|
setOpen,
|
|
7485
|
-
saveRotationChanges: props.saveRotationChanges
|
|
7496
|
+
saveRotationChanges: props.saveRotationChanges,
|
|
7497
|
+
selectImage: props.selectImage
|
|
7486
7498
|
}
|
|
7487
7499
|
)
|
|
7488
7500
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geowiki/design-system",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.18",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": "^19.2.0",
|
|
17
17
|
"react-dom": "^19.2.0",
|
|
18
|
-
"@geowiki/core": "0.16.
|
|
18
|
+
"@geowiki/core": "0.16.18"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/react": "^19.2.14",
|