@canopy-iiif/app 1.8.13 → 1.8.15
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/package.json +1 -1
- package/ui/dist/index.mjs +54 -44
- package/ui/dist/index.mjs.map +2 -2
- package/ui/dist/server.mjs +54 -44
- package/ui/dist/server.mjs.map +2 -2
- package/ui/styles/base/_heading.scss +2 -2
- package/ui/styles/components/_bibliography.scss +1 -1
- package/ui/styles/components/_buttons.scss +1 -1
- package/ui/styles/components/_diagram.scss +1 -1
- package/ui/styles/components/_gallery.scss +61 -93
- package/ui/styles/components/_image-story.scss +1 -1
- package/ui/styles/components/_interstitial-hero.scss +3 -3
- package/ui/styles/components/_map.scss +5 -5
- package/ui/styles/components/_metadata-index.scss +1 -1
- package/ui/styles/components/_nav-tree.scss +1 -1
- package/ui/styles/components/_referenced-items.scss +1 -1
- package/ui/styles/components/_sub-navigation.scss +3 -3
- package/ui/styles/components/_timeline.scss +4 -4
- package/ui/styles/components/iiif/_viewer.scss +2 -2
- package/ui/styles/components/modal/_modal.scss +1 -1
- package/ui/styles/components/search/_filters.scss +1 -1
- package/ui/styles/components/search/_results.scss +2 -2
- package/ui/styles/index.css +80 -96
package/package.json
CHANGED
package/ui/dist/index.mjs
CHANGED
|
@@ -47578,8 +47578,19 @@ var INLINE_SCRIPT = `(() => {
|
|
|
47578
47578
|
const navOptions = optionNodes ? Array.prototype.slice.call(optionNodes) : [];
|
|
47579
47579
|
if (!navOptions.length) return;
|
|
47580
47580
|
nav.setAttribute('data-canopy-gallery-nav-bound', '1');
|
|
47581
|
-
const
|
|
47582
|
-
const
|
|
47581
|
+
const navModal = nav.closest('[data-canopy-gallery-modal]');
|
|
47582
|
+
const prevBtn =
|
|
47583
|
+
nav.querySelector('[data-canopy-gallery-nav-prev]') ||
|
|
47584
|
+
(navModal &&
|
|
47585
|
+
navModal.querySelector(
|
|
47586
|
+
'.canopy-gallery__modal-panel [data-canopy-gallery-nav-prev]'
|
|
47587
|
+
));
|
|
47588
|
+
const nextBtn =
|
|
47589
|
+
nav.querySelector('[data-canopy-gallery-nav-next]') ||
|
|
47590
|
+
(navModal &&
|
|
47591
|
+
navModal.querySelector(
|
|
47592
|
+
'.canopy-gallery__modal-panel [data-canopy-gallery-nav-next]'
|
|
47593
|
+
));
|
|
47583
47594
|
|
|
47584
47595
|
function updateButtons() {
|
|
47585
47596
|
if (prevBtn) prevBtn.disabled = false;
|
|
@@ -47988,7 +47999,7 @@ function GalleryModal({ item, closeTargetId, navItems, navGroupName }) {
|
|
|
47988
47999
|
"data-canopy-gallery-modal": "true",
|
|
47989
48000
|
"data-canopy-gallery-close": closeTargetId
|
|
47990
48001
|
},
|
|
47991
|
-
/* @__PURE__ */ React40.createElement("div", { className: "canopy-gallery__modal-scrim" }, /* @__PURE__ */ React40.createElement("div", { className: "canopy-gallery__modal-
|
|
48002
|
+
/* @__PURE__ */ React40.createElement("div", { className: "canopy-gallery__modal-scrim" }, /* @__PURE__ */ React40.createElement("div", { className: "canopy-gallery__modal-actions" }, /* @__PURE__ */ React40.createElement(
|
|
47992
48003
|
GalleryThumbnailNav,
|
|
47993
48004
|
{
|
|
47994
48005
|
items: navItems,
|
|
@@ -48002,8 +48013,44 @@ function GalleryModal({ item, closeTargetId, navItems, navGroupName }) {
|
|
|
48002
48013
|
href: `#${closeTargetId}`,
|
|
48003
48014
|
"aria-label": `Close popup for ${modalTitle}`
|
|
48004
48015
|
},
|
|
48005
|
-
"
|
|
48006
|
-
)), /* @__PURE__ */ React40.createElement("
|
|
48016
|
+
"X"
|
|
48017
|
+
)), /* @__PURE__ */ React40.createElement("div", { className: "canopy-gallery__modal-panel" }, /* @__PURE__ */ React40.createElement(
|
|
48018
|
+
"button",
|
|
48019
|
+
{
|
|
48020
|
+
type: "button",
|
|
48021
|
+
className: "canopy-gallery__nav-button canopy-gallery__nav-button--prev",
|
|
48022
|
+
"aria-label": "Scroll left through gallery thumbnails",
|
|
48023
|
+
"data-canopy-gallery-nav-prev": "true"
|
|
48024
|
+
},
|
|
48025
|
+
/* @__PURE__ */ React40.createElement(
|
|
48026
|
+
"span",
|
|
48027
|
+
{
|
|
48028
|
+
className: "canopy-gallery__nav-button-icon",
|
|
48029
|
+
"aria-hidden": "true",
|
|
48030
|
+
role: "presentation"
|
|
48031
|
+
},
|
|
48032
|
+
"<"
|
|
48033
|
+
),
|
|
48034
|
+
/* @__PURE__ */ React40.createElement("span", { className: "canopy-gallery__visually-hidden" }, "Previous item")
|
|
48035
|
+
), /* @__PURE__ */ React40.createElement(
|
|
48036
|
+
"button",
|
|
48037
|
+
{
|
|
48038
|
+
type: "button",
|
|
48039
|
+
className: "canopy-gallery__nav-button canopy-gallery__nav-button--next",
|
|
48040
|
+
"aria-label": "Scroll right through gallery thumbnails",
|
|
48041
|
+
"data-canopy-gallery-nav-next": "true"
|
|
48042
|
+
},
|
|
48043
|
+
/* @__PURE__ */ React40.createElement(
|
|
48044
|
+
"span",
|
|
48045
|
+
{
|
|
48046
|
+
className: "canopy-gallery__nav-button-icon",
|
|
48047
|
+
"aria-hidden": "true",
|
|
48048
|
+
role: "presentation"
|
|
48049
|
+
},
|
|
48050
|
+
">"
|
|
48051
|
+
),
|
|
48052
|
+
/* @__PURE__ */ React40.createElement("span", { className: "canopy-gallery__visually-hidden" }, "Next item")
|
|
48053
|
+
), /* @__PURE__ */ React40.createElement("header", { className: "canopy-gallery__modal-header" }, /* @__PURE__ */ React40.createElement("div", { className: "canopy-gallery__modal-text" }, kicker ? /* @__PURE__ */ React40.createElement("p", { className: "canopy-gallery__modal-kicker" }, kicker) : null, /* @__PURE__ */ React40.createElement("h3", { id: modalTitleId, className: "canopy-gallery__modal-title" }, modalTitle), summary ? /* @__PURE__ */ React40.createElement(
|
|
48007
48054
|
"p",
|
|
48008
48055
|
{
|
|
48009
48056
|
id: modalDescriptionId || void 0,
|
|
@@ -48013,7 +48060,7 @@ function GalleryModal({ item, closeTargetId, navItems, navGroupName }) {
|
|
|
48013
48060
|
) : null, renderMetaList(
|
|
48014
48061
|
props.meta,
|
|
48015
48062
|
"canopy-gallery__meta canopy-gallery__meta--modal"
|
|
48016
|
-
)
|
|
48063
|
+
), manifests && manifests.length ? manifests.map((manifest) => /* @__PURE__ */ React40.createElement("a", { key: manifest.id || manifest.href, href: manifest.href }, manifest.title || manifest.href)) : null)), /* @__PURE__ */ React40.createElement("div", { className: "canopy-gallery__modal-body" }, props.children)))
|
|
48017
48064
|
);
|
|
48018
48065
|
}
|
|
48019
48066
|
function GalleryFigure({ item }) {
|
|
@@ -48103,44 +48150,7 @@ function GalleryThumbnailNav({ items, activeModalId, groupName }) {
|
|
|
48103
48150
|
);
|
|
48104
48151
|
})
|
|
48105
48152
|
)
|
|
48106
|
-
)
|
|
48107
|
-
/* @__PURE__ */ React40.createElement("div", { className: "canopy-gallery__nav-controls" }, /* @__PURE__ */ React40.createElement(
|
|
48108
|
-
"button",
|
|
48109
|
-
{
|
|
48110
|
-
type: "button",
|
|
48111
|
-
className: "canopy-gallery__nav-button canopy-gallery__nav-button--prev",
|
|
48112
|
-
"aria-label": "Scroll left through gallery thumbnails",
|
|
48113
|
-
"data-canopy-gallery-nav-prev": "true"
|
|
48114
|
-
},
|
|
48115
|
-
/* @__PURE__ */ React40.createElement(
|
|
48116
|
-
"span",
|
|
48117
|
-
{
|
|
48118
|
-
className: "canopy-gallery__nav-button-icon",
|
|
48119
|
-
"aria-hidden": "true",
|
|
48120
|
-
role: "presentation"
|
|
48121
|
-
},
|
|
48122
|
-
"<"
|
|
48123
|
-
),
|
|
48124
|
-
/* @__PURE__ */ React40.createElement("span", { className: "canopy-gallery__visually-hidden" }, "Previous item")
|
|
48125
|
-
), /* @__PURE__ */ React40.createElement(
|
|
48126
|
-
"button",
|
|
48127
|
-
{
|
|
48128
|
-
type: "button",
|
|
48129
|
-
className: "canopy-gallery__nav-button canopy-gallery__nav-button--next",
|
|
48130
|
-
"aria-label": "Scroll right through gallery thumbnails",
|
|
48131
|
-
"data-canopy-gallery-nav-next": "true"
|
|
48132
|
-
},
|
|
48133
|
-
/* @__PURE__ */ React40.createElement(
|
|
48134
|
-
"span",
|
|
48135
|
-
{
|
|
48136
|
-
className: "canopy-gallery__nav-button-icon",
|
|
48137
|
-
"aria-hidden": "true",
|
|
48138
|
-
role: "presentation"
|
|
48139
|
-
},
|
|
48140
|
-
">"
|
|
48141
|
-
),
|
|
48142
|
-
/* @__PURE__ */ React40.createElement("span", { className: "canopy-gallery__visually-hidden" }, "Next item")
|
|
48143
|
-
))
|
|
48153
|
+
)
|
|
48144
48154
|
);
|
|
48145
48155
|
}
|
|
48146
48156
|
function GalleryContent({ children, flex = false }) {
|