@manifest-editor/components 1.3.1 → 1.4.0
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.cjs +409 -150
- package/dist/index.css +92 -5
- package/dist/index.d.cts +61 -8
- package/dist/index.d.ts +61 -8
- package/dist/index.js +417 -163
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -36,8 +36,11 @@ __export(src_exports, {
|
|
|
36
36
|
AddImageIcon: () => AddImageIcon,
|
|
37
37
|
AtlasBanner: () => AtlasBanner,
|
|
38
38
|
AudioIcon: () => AudioIcon,
|
|
39
|
+
BackIcon: () => BackIcon,
|
|
39
40
|
CanvasThumbnailGridItem: () => CanvasThumbnailGridItem,
|
|
40
41
|
Card3D: () => Card3D,
|
|
42
|
+
CollectionIcon: () => CollectionIcon,
|
|
43
|
+
CollectionListItem: () => CollectionListItem,
|
|
41
44
|
ConfirmSelectionButton: () => ConfirmSelectionButton,
|
|
42
45
|
ControlButton: () => ControlButton,
|
|
43
46
|
CreateCanvasIcon: () => CreateCanvasIcon,
|
|
@@ -50,6 +53,7 @@ __export(src_exports, {
|
|
|
50
53
|
EmptyState: () => EmptyState,
|
|
51
54
|
ErrorMessage: () => ErrorMessage,
|
|
52
55
|
Form: () => Form,
|
|
56
|
+
GridIcon: () => GridIcon,
|
|
53
57
|
HTMLEditor: () => HTMLEditor,
|
|
54
58
|
HTMLIcon: () => HTMLIcon,
|
|
55
59
|
HandleContainer: () => HandleContainer,
|
|
@@ -57,21 +61,31 @@ __export(src_exports, {
|
|
|
57
61
|
IIIFLogo: () => IIIFLogo,
|
|
58
62
|
IIIFMediaPlayer: () => IIIFMediaPlayer,
|
|
59
63
|
IconButton: () => IconButton,
|
|
64
|
+
ImageListIcon: () => ImageListIcon,
|
|
65
|
+
InfoIcon: () => InfoIcon,
|
|
60
66
|
ItemWithHandle: () => ItemWithHandle,
|
|
61
67
|
LazyThumbnail: () => LazyThumbnail,
|
|
68
|
+
ListEditIcon: () => ListEditIcon,
|
|
69
|
+
ListingIcon: () => ListingIcon,
|
|
62
70
|
MDXEditor: () => MDXEditor,
|
|
63
71
|
ManifestEditorLogo: () => ManifestEditorLogo,
|
|
72
|
+
ManifestIcon: () => ManifestIcon,
|
|
73
|
+
ManifestListItem: () => ManifestListItem,
|
|
64
74
|
ManifestOverviewEmptyState: () => ManifestOverviewEmptyState,
|
|
65
75
|
MetadataContainer: () => MetadataContainer,
|
|
66
76
|
Modal: () => Modal,
|
|
77
|
+
ModalBackSlot: () => ModalBackSlot,
|
|
67
78
|
MoreMenu: () => MoreMenu2,
|
|
68
79
|
OpaqueControls: () => OpaqueControls,
|
|
69
80
|
PanelSideMenu: () => PanelSideMenu,
|
|
81
|
+
PreviewIcon: () => PreviewIcon,
|
|
70
82
|
RenderTextualContent: () => RenderTextualContent,
|
|
83
|
+
ScaledImageIcon: () => ScaledImageIcon,
|
|
71
84
|
Sidebar: () => Sidebar,
|
|
72
85
|
SidebarContent: () => SidebarContent,
|
|
73
86
|
SidebarHeader: () => SidebarHeader,
|
|
74
87
|
SidebarTabs: () => SidebarTabs,
|
|
88
|
+
Spinner: () => Spinner,
|
|
75
89
|
SvgControlBar: () => SvgControlBar,
|
|
76
90
|
Tab: () => Tab,
|
|
77
91
|
TabList: () => TabList,
|
|
@@ -94,32 +108,27 @@ var import_dist = require("iiif-browser/dist/index.css");
|
|
|
94
108
|
|
|
95
109
|
// src/ActionButton.tsx
|
|
96
110
|
var import_react_aria_components = require("react-aria-components");
|
|
97
|
-
|
|
98
|
-
// src/utils.ts
|
|
99
|
-
var import_clsx = require("clsx");
|
|
100
111
|
var import_tailwind_merge = require("tailwind-merge");
|
|
101
|
-
var cn = (...inputs) => {
|
|
102
|
-
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
// src/ActionButton.tsx
|
|
106
112
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
107
113
|
function ActionButton({
|
|
108
114
|
className: className2,
|
|
109
115
|
primary,
|
|
110
116
|
center,
|
|
117
|
+
large,
|
|
111
118
|
children,
|
|
112
119
|
...props
|
|
113
120
|
}) {
|
|
114
121
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
115
122
|
import_react_aria_components.Button,
|
|
116
123
|
{
|
|
117
|
-
className:
|
|
124
|
+
className: (t) => (0, import_tailwind_merge.twMerge)(
|
|
118
125
|
//
|
|
119
|
-
"border-none flex gap-1 items-center
|
|
126
|
+
"border-none flex gap-1 items-center bg-gray-100 text-me-primary-500 text-sm rounded hover:bg-gray-200",
|
|
120
127
|
primary ? "bg-me-primary-500 text-white hover:bg-me-primary-600" : "",
|
|
121
128
|
center ? "place-content-center" : "",
|
|
122
|
-
|
|
129
|
+
large ? "px-4 py-2" : "px-2 py-1",
|
|
130
|
+
t.isDisabled ? "opacity-70 cursor-not-allowed pointer-events-none" : "",
|
|
131
|
+
typeof className2 === "string" ? className2 : className2?.(t)
|
|
123
132
|
),
|
|
124
133
|
...props,
|
|
125
134
|
children
|
|
@@ -127,11 +136,18 @@ function ActionButton({
|
|
|
127
136
|
);
|
|
128
137
|
}
|
|
129
138
|
|
|
139
|
+
// src/utils.ts
|
|
140
|
+
var import_clsx = require("clsx");
|
|
141
|
+
var import_tailwind_merge2 = require("tailwind-merge");
|
|
142
|
+
var cn = (...inputs) => {
|
|
143
|
+
return (0, import_tailwind_merge2.twMerge)((0, import_clsx.clsx)(inputs));
|
|
144
|
+
};
|
|
145
|
+
|
|
130
146
|
// src/Tooltip.tsx
|
|
131
|
-
var React = __toESM(require("react"), 1);
|
|
132
147
|
var import_react = require("@floating-ui/react");
|
|
148
|
+
var React = __toESM(require("react"), 1);
|
|
133
149
|
var import_react_aria_components2 = require("react-aria-components");
|
|
134
|
-
var
|
|
150
|
+
var import_tailwind_merge3 = require("tailwind-merge");
|
|
135
151
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
136
152
|
function useTooltip({
|
|
137
153
|
initialOpen = false,
|
|
@@ -186,10 +202,7 @@ var useTooltipContext = () => {
|
|
|
186
202
|
}
|
|
187
203
|
return context;
|
|
188
204
|
};
|
|
189
|
-
function Tooltip({
|
|
190
|
-
children,
|
|
191
|
-
...options
|
|
192
|
-
}) {
|
|
205
|
+
function Tooltip({ children, ...options }) {
|
|
193
206
|
const tooltip = useTooltip(options);
|
|
194
207
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TooltipContext.Provider, { value: tooltip, children });
|
|
195
208
|
}
|
|
@@ -218,12 +231,12 @@ var TooltipTrigger = React.forwardRef(function TooltipTrigger2({ children, asChi
|
|
|
218
231
|
}
|
|
219
232
|
);
|
|
220
233
|
});
|
|
221
|
-
var TooltipContent = React.forwardRef(function TooltipContent2({ style, ...props }, propRef) {
|
|
234
|
+
var TooltipContent = React.forwardRef(function TooltipContent2({ style, root, ...props }, propRef) {
|
|
222
235
|
const context = useTooltipContext();
|
|
223
236
|
const ref = (0, import_react.useMergeRefs)([context.refs.setFloating, propRef]);
|
|
224
237
|
if (!context.open)
|
|
225
238
|
return null;
|
|
226
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react.FloatingPortal, { root, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
227
240
|
"div",
|
|
228
241
|
{
|
|
229
242
|
ref,
|
|
@@ -239,10 +252,8 @@ function DefaultTooltipContent(props) {
|
|
|
239
252
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
240
253
|
TooltipContent,
|
|
241
254
|
{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
props.className
|
|
245
|
-
),
|
|
255
|
+
root: props.root,
|
|
256
|
+
className: (0, import_tailwind_merge3.twMerge)("bg-me-gray-900 text-white text-sm px-3 py-2 rounded opacity-90 z-50", props.className),
|
|
246
257
|
children: props.children
|
|
247
258
|
}
|
|
248
259
|
);
|
|
@@ -303,7 +314,7 @@ function PanelSideMenuItem(props) {
|
|
|
303
314
|
onMouseDown: props.onClick,
|
|
304
315
|
children: [
|
|
305
316
|
props.icon,
|
|
306
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipContent, { className: "bg-me-gray-900 text-white text-sm px-3 py-2 rounded
|
|
317
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipContent, { className: "bg-me-gray-900 text-white text-sm px-3 py-2 rounded opacity-90 z-50", children: props.label })
|
|
307
318
|
]
|
|
308
319
|
}
|
|
309
320
|
) }) });
|
|
@@ -340,7 +351,7 @@ function ThumbnailGridContainer(props) {
|
|
|
340
351
|
var import_react2 = require("react");
|
|
341
352
|
var import_react_iiif_vault = require("react-iiif-vault");
|
|
342
353
|
var import_react_lazy_load_image_component = require("react-lazy-load-image-component");
|
|
343
|
-
var
|
|
354
|
+
var import_tailwind_merge4 = require("tailwind-merge");
|
|
344
355
|
|
|
345
356
|
// src/Spinner.tsx
|
|
346
357
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
@@ -450,7 +461,7 @@ function LazyThumbnailInner({
|
|
|
450
461
|
!thumbnail?.id || isLoading ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
451
462
|
"div",
|
|
452
463
|
{
|
|
453
|
-
className: (0,
|
|
464
|
+
className: (0, import_tailwind_merge4.twMerge)(
|
|
454
465
|
"absolute inset-0 flex items-center justify-center bg-me-gray-100 text-2xl z-10",
|
|
455
466
|
fade && "animate-fadeIn"
|
|
456
467
|
),
|
|
@@ -482,7 +493,7 @@ function CanvasLabel(props) {
|
|
|
482
493
|
|
|
483
494
|
// src/Card3D.tsx
|
|
484
495
|
var import_react3 = require("react");
|
|
485
|
-
var
|
|
496
|
+
var import_tailwind_merge5 = require("tailwind-merge");
|
|
486
497
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
487
498
|
function Card3D({
|
|
488
499
|
className: className2,
|
|
@@ -558,7 +569,7 @@ function Card3D({
|
|
|
558
569
|
"div",
|
|
559
570
|
{
|
|
560
571
|
ref: outer,
|
|
561
|
-
className: (0,
|
|
572
|
+
className: (0, import_tailwind_merge5.twMerge)(
|
|
562
573
|
//
|
|
563
574
|
"relative transition-all hover:duration-50",
|
|
564
575
|
shouldTranslate && "hover:shadow-xl",
|
|
@@ -604,63 +615,49 @@ function CanvasThumbnailGridItem(props) {
|
|
|
604
615
|
|
|
605
616
|
// src/Modal.tsx
|
|
606
617
|
var import_react4 = require("@headlessui/react");
|
|
618
|
+
var import_react_dom = require("react-dom");
|
|
607
619
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
608
|
-
function
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
import_react4.
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center justify-between p-4 md:p-5 rounded-t-lg sticky top-0 bg-white", children: [
|
|
633
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react4.DialogTitle, { className: "text-xl font-semibold text-gray-900 ", children: title }),
|
|
634
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react4.CloseButton, { className: "text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center", children: [
|
|
635
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
636
|
-
"svg",
|
|
620
|
+
function ModalBackSlot({ children }) {
|
|
621
|
+
const element = document.getElementById("modal-back-slot");
|
|
622
|
+
if (!element)
|
|
623
|
+
return null;
|
|
624
|
+
return (0, import_react_dom.createPortal)(children, element);
|
|
625
|
+
}
|
|
626
|
+
function Modal({ id, title, open = true, onClose, actions, children }) {
|
|
627
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react4.Dialog, { open, onClose, id, className: "relative z-[500]", children: [
|
|
628
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: `fixed inset-0 bg-black/30 animate-fadeIn z-[501]`, "aria-hidden": "true" }),
|
|
629
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "fixed inset-0 flex w-screen items-center justify-center p-4 z-[502]", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "relative p-4 w-full max-w-4xl max-h-full", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react4.DialogPanel, { className: "relative bg-white rounded-lg overflow-hidden shadow-2xl max-h-[80vh] flex flex-col", children: [
|
|
630
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center justify-between gap-3 p-4 rounded-t-lg sticky top-0 bg-white", children: [
|
|
631
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { id: "modal-back-slot" }),
|
|
632
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react4.DialogTitle, { className: "text-xl font-semibold text-gray-900 ", children: title }),
|
|
633
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react4.CloseButton, { className: "text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center", children: [
|
|
634
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
635
|
+
"svg",
|
|
636
|
+
{
|
|
637
|
+
className: "w-3 h-3",
|
|
638
|
+
"aria-hidden": "true",
|
|
639
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
640
|
+
fill: "none",
|
|
641
|
+
viewBox: "0 0 14 14",
|
|
642
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
643
|
+
"path",
|
|
637
644
|
{
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
644
|
-
"path",
|
|
645
|
-
{
|
|
646
|
-
stroke: "currentColor",
|
|
647
|
-
strokeLinecap: "round",
|
|
648
|
-
strokeLinejoin: "round",
|
|
649
|
-
strokeWidth: "2",
|
|
650
|
-
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
651
|
-
}
|
|
652
|
-
)
|
|
645
|
+
stroke: "currentColor",
|
|
646
|
+
strokeLinecap: "round",
|
|
647
|
+
strokeLinejoin: "round",
|
|
648
|
+
strokeWidth: "2",
|
|
649
|
+
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
653
650
|
}
|
|
654
|
-
)
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}
|
|
663
|
-
) });
|
|
651
|
+
)
|
|
652
|
+
}
|
|
653
|
+
),
|
|
654
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "sr-only", children: "Close" })
|
|
655
|
+
] })
|
|
656
|
+
] }),
|
|
657
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex-1 min-h-0 overflow-y-auto flex flex-col", children }),
|
|
658
|
+
actions ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex items-center p-4 border-t border-gray-200 rounded-b justify-end", children: actions }) : null
|
|
659
|
+
] }) }) })
|
|
660
|
+
] }) });
|
|
664
661
|
}
|
|
665
662
|
|
|
666
663
|
// src/ControlButton.tsx
|
|
@@ -762,7 +759,7 @@ function TabPanel({ className: className2, children, ...props }) {
|
|
|
762
759
|
|
|
763
760
|
// src/CreatorGrid.tsx
|
|
764
761
|
var import_react_aria_components4 = require("react-aria-components");
|
|
765
|
-
var
|
|
762
|
+
var import_tailwind_merge6 = require("tailwind-merge");
|
|
766
763
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
767
764
|
function CreatorGrid(props) {
|
|
768
765
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
@@ -783,7 +780,7 @@ function CreatorGridItem(props) {
|
|
|
783
780
|
{
|
|
784
781
|
id: props.id,
|
|
785
782
|
onAction: props.onClick,
|
|
786
|
-
className: ($s) => (0,
|
|
783
|
+
className: ($s) => (0, import_tailwind_merge6.twMerge)(
|
|
787
784
|
"bg-white p-2 border-me-gray-300 rounded-md border hover:border-me-primary-500",
|
|
788
785
|
$s.isFocused && "border-me-primary-500 outline-me-primary-500 outline-2"
|
|
789
786
|
),
|
|
@@ -1105,7 +1102,7 @@ function ManifestOverviewEmptyState({ onCreate, canCreate }) {
|
|
|
1105
1102
|
var import_react6 = require("react");
|
|
1106
1103
|
var import_react_aria_components7 = require("react-aria-components");
|
|
1107
1104
|
var import_collections = require("@react-aria/collections");
|
|
1108
|
-
var
|
|
1105
|
+
var import_react_dom2 = require("react-dom");
|
|
1109
1106
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1110
1107
|
function SidebarTabs({
|
|
1111
1108
|
menu,
|
|
@@ -1205,7 +1202,7 @@ function SidebarTabs({
|
|
|
1205
1202
|
},
|
|
1206
1203
|
menuId
|
|
1207
1204
|
),
|
|
1208
|
-
hiddenMenu && hidden > 0 ? (0,
|
|
1205
|
+
hiddenMenu && hidden > 0 ? (0, import_react_dom2.createPortal)(
|
|
1209
1206
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1210
1207
|
MoreMenu,
|
|
1211
1208
|
{
|
|
@@ -1265,7 +1262,7 @@ function MetadataContainer({
|
|
|
1265
1262
|
...props
|
|
1266
1263
|
}) {
|
|
1267
1264
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1268
|
-
"
|
|
1265
|
+
"fieldset",
|
|
1269
1266
|
{
|
|
1270
1267
|
className: cn(
|
|
1271
1268
|
"hover:ring ring-gray-200 focus-within:ring-me-primary-500 focus-within:ring p-2 rounded mb-2",
|
|
@@ -1393,6 +1390,20 @@ function MeInput({ className: className2, ...props }) {
|
|
|
1393
1390
|
}
|
|
1394
1391
|
);
|
|
1395
1392
|
}
|
|
1393
|
+
function MeTextArea({ className: className2, ...props }) {
|
|
1394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1395
|
+
import_react_aria_components8.TextArea,
|
|
1396
|
+
{
|
|
1397
|
+
className: cn(
|
|
1398
|
+
//
|
|
1399
|
+
"p-2 bg-me-gray-100 border-b border-b-me-gray-500",
|
|
1400
|
+
"focus:ring-0 outline-0 focus:border-me-primary-500 focus:bg-[#ECEEF5]",
|
|
1401
|
+
className2
|
|
1402
|
+
),
|
|
1403
|
+
...props
|
|
1404
|
+
}
|
|
1405
|
+
);
|
|
1406
|
+
}
|
|
1396
1407
|
function MeInputContainer({
|
|
1397
1408
|
horizontal,
|
|
1398
1409
|
className: className2,
|
|
@@ -1417,7 +1428,8 @@ var Form = {
|
|
|
1417
1428
|
Label: MeLabel,
|
|
1418
1429
|
InputContainer: MeInputContainer,
|
|
1419
1430
|
RadioGroup: MeRadioGroup,
|
|
1420
|
-
Radio: MeRadio
|
|
1431
|
+
Radio: MeRadio,
|
|
1432
|
+
TextArea: MeTextArea
|
|
1421
1433
|
};
|
|
1422
1434
|
|
|
1423
1435
|
// src/HTMLEditor.tsx
|
|
@@ -1524,27 +1536,31 @@ function HTMLEditor({
|
|
|
1524
1536
|
}
|
|
1525
1537
|
|
|
1526
1538
|
// src/IconButton.tsx
|
|
1527
|
-
var
|
|
1539
|
+
var import_tailwind_merge7 = require("tailwind-merge");
|
|
1528
1540
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1529
1541
|
function IconButton({
|
|
1530
1542
|
children,
|
|
1531
1543
|
active,
|
|
1532
1544
|
label,
|
|
1533
1545
|
disabled,
|
|
1534
|
-
onPress
|
|
1546
|
+
onPress,
|
|
1547
|
+
root,
|
|
1548
|
+
className: className2,
|
|
1549
|
+
placement = "top"
|
|
1535
1550
|
}) {
|
|
1536
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Tooltip, { placement
|
|
1551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Tooltip, { placement, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
1537
1552
|
TooltipTrigger,
|
|
1538
1553
|
{
|
|
1539
1554
|
onClick: onPress,
|
|
1540
|
-
className: (0,
|
|
1555
|
+
className: (0, import_tailwind_merge7.twMerge)(
|
|
1541
1556
|
"rounded flex items-center bg-white justify-center p-2 hover:bg-gray-100 text-2xl",
|
|
1542
1557
|
active ? "bg-me-primary-500 bg-opacity-40 hover:bg-opacity-70 hover:bg-me-primary-500" : "",
|
|
1543
|
-
disabled ? "opacity-50 pointer-events-none" : ""
|
|
1558
|
+
disabled ? "opacity-50 pointer-events-none" : "",
|
|
1559
|
+
className2
|
|
1544
1560
|
),
|
|
1545
1561
|
children: [
|
|
1546
1562
|
children,
|
|
1547
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DefaultTooltipContent, { className: "translate-x-3", children: label })
|
|
1563
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DefaultTooltipContent, { root, className: "translate-x-3 z-50", children: label })
|
|
1548
1564
|
]
|
|
1549
1565
|
}
|
|
1550
1566
|
) });
|
|
@@ -1585,12 +1601,116 @@ var HandleContainer = (0, import_react9.forwardRef)(function HandleContainer2({
|
|
|
1585
1601
|
);
|
|
1586
1602
|
});
|
|
1587
1603
|
|
|
1588
|
-
// src/
|
|
1604
|
+
// src/CollectionListItem.tsx
|
|
1605
|
+
var import_react_aria_components9 = require("react-aria-components");
|
|
1606
|
+
var import_react_iiif_vault6 = require("react-iiif-vault");
|
|
1607
|
+
|
|
1608
|
+
// src/icons/CollectionIcon.tsx
|
|
1589
1609
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1610
|
+
function CollectionIcon(props) {
|
|
1611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1612
|
+
"svg",
|
|
1613
|
+
{
|
|
1614
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1615
|
+
width: "1em",
|
|
1616
|
+
height: "1em",
|
|
1617
|
+
viewBox: "0 -960 960 960",
|
|
1618
|
+
"aria-label": "collection",
|
|
1619
|
+
role: "img",
|
|
1620
|
+
...props,
|
|
1621
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1622
|
+
"path",
|
|
1623
|
+
{
|
|
1624
|
+
d: "M320-320h480v-480h-80v280l-100-60-100 60v-280H320v480Zm0 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Zm360-720h200-200Zm-200 0h480-480Z",
|
|
1625
|
+
fill: "currentColor"
|
|
1626
|
+
}
|
|
1627
|
+
)
|
|
1628
|
+
}
|
|
1629
|
+
);
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
// src/CollectionListItem.tsx
|
|
1633
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1634
|
+
function CollectionListItem({ isActive, onAction }) {
|
|
1635
|
+
const collection = (0, import_react_iiif_vault6.useCollection)({});
|
|
1636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
1637
|
+
import_react_aria_components9.Button,
|
|
1638
|
+
{
|
|
1639
|
+
className: "border-b-2 border-b-gray-200 flex p-2 gap-3 text-left truncate items-center w-full hover:bg-gray-100 data-[active]:bg-gray-200 data-[active]:border-b-me-primary-500",
|
|
1640
|
+
onPress: onAction,
|
|
1641
|
+
"data-active": isActive || void 0,
|
|
1642
|
+
children: [
|
|
1643
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1644
|
+
CollectionIcon,
|
|
1645
|
+
{
|
|
1646
|
+
"data-active": isActive || void 0,
|
|
1647
|
+
className: "flex-shrink-0 text-2xl data-[active]:text-me-primary-500 text-gray-400"
|
|
1648
|
+
}
|
|
1649
|
+
),
|
|
1650
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_iiif_vault6.LocaleString, { children: collection?.label })
|
|
1651
|
+
]
|
|
1652
|
+
}
|
|
1653
|
+
);
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
// src/ManifestListItem.tsx
|
|
1657
|
+
var import_react_aria_components10 = require("react-aria-components");
|
|
1658
|
+
var import_react_iiif_vault7 = require("react-iiif-vault");
|
|
1659
|
+
|
|
1660
|
+
// src/icons/ManifestIcon.tsx
|
|
1661
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1662
|
+
function ManifestIcon(props) {
|
|
1663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1664
|
+
"svg",
|
|
1665
|
+
{
|
|
1666
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1667
|
+
width: "1em",
|
|
1668
|
+
height: "1em",
|
|
1669
|
+
viewBox: "20 -910 960 960",
|
|
1670
|
+
"aria-label": "manifest",
|
|
1671
|
+
role: "img",
|
|
1672
|
+
...props,
|
|
1673
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1674
|
+
"path",
|
|
1675
|
+
{
|
|
1676
|
+
d: "M480-160q-48-38-104-59t-116-21q-42 0-82.5 11T100-198q-21 11-40.5-1T40-234v-482q0-11 5.5-21T62-752q46-24 96-36t102-12q58 0 113.5 15T480-740v484q51-32 107-48t113-16q36 0 70.5 6t69.5 18v-480q15 5 29.5 10.5T898-752q11 5 16.5 15t5.5 21v482q0 23-19.5 35t-40.5 1q-37-20-77.5-31T700-240q-60 0-116 21t-104 59Zm80-200v-380l200-200v400L560-360Zm-160 65v-396q-33-14-68.5-21.5T260-720q-37 0-72 7t-68 21v397q35-13 69.5-19t70.5-6q36 0 70.5 6t69.5 19Zm0 0v-396 396Z",
|
|
1677
|
+
fill: "currentColor"
|
|
1678
|
+
}
|
|
1679
|
+
)
|
|
1680
|
+
}
|
|
1681
|
+
);
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
// src/ManifestListItem.tsx
|
|
1685
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1686
|
+
function ManifestListItem({ isActive, onAction }) {
|
|
1687
|
+
const manifest = (0, import_react_iiif_vault7.useManifest)();
|
|
1688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
1689
|
+
import_react_aria_components10.Button,
|
|
1690
|
+
{
|
|
1691
|
+
className: "border-b-2 border-b-gray-200 flex p-2 gap-3 text-left truncate items-center w-full hover:bg-gray-100 data-[active]:bg-gray-200 data-[active]:border-b-me-primary-500",
|
|
1692
|
+
onPress: onAction,
|
|
1693
|
+
"data-active": isActive || void 0,
|
|
1694
|
+
children: [
|
|
1695
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
1696
|
+
ManifestIcon,
|
|
1697
|
+
{
|
|
1698
|
+
"data-active": isActive || void 0,
|
|
1699
|
+
className: "flex-shrink-0 text-2xl data-[active]:text-me-primary-500 text-gray-400"
|
|
1700
|
+
}
|
|
1701
|
+
),
|
|
1702
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_iiif_vault7.LocaleString, { children: manifest?.label })
|
|
1703
|
+
]
|
|
1704
|
+
}
|
|
1705
|
+
);
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
// src/icons/CreateCanvasIcon.tsx
|
|
1709
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1590
1710
|
function CreateCanvasIcon() {
|
|
1591
|
-
return /* @__PURE__ */ (0,
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1593
|
-
/* @__PURE__ */ (0,
|
|
1711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", viewBox: "0 0 24 24", width: "24", children: [
|
|
1712
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
1713
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1594
1714
|
"path",
|
|
1595
1715
|
{
|
|
1596
1716
|
d: "M13 11h-2v3H8v2h3v3h2v-3h3v-2h-3zm1-9H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z",
|
|
@@ -1601,8 +1721,8 @@ function CreateCanvasIcon() {
|
|
|
1601
1721
|
}
|
|
1602
1722
|
|
|
1603
1723
|
// src/icons/AddImageIcon.tsx
|
|
1604
|
-
var
|
|
1605
|
-
var AddImageIcon = (props) => /* @__PURE__ */ (0,
|
|
1724
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1725
|
+
var AddImageIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#5f6368", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
1606
1726
|
"path",
|
|
1607
1727
|
{
|
|
1608
1728
|
d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h360v80H200v560h560v-360h80v360q0 33-23.5 56.5T760-120H200Zm480-480v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80ZM240-280h480L570-480 450-320l-90-120-120 160Zm-40-480v560-560Z",
|
|
@@ -1611,8 +1731,8 @@ var AddImageIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg
|
|
|
1611
1731
|
) });
|
|
1612
1732
|
|
|
1613
1733
|
// src/icons/IIIFLogo.tsx
|
|
1614
|
-
var
|
|
1615
|
-
var IIIFLogo = ({ mono = true, ...props }) => /* @__PURE__ */ (0,
|
|
1734
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1735
|
+
var IIIFLogo = ({ mono = true, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
1616
1736
|
"svg",
|
|
1617
1737
|
{
|
|
1618
1738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1622,7 +1742,7 @@ var IIIFLogo = ({ mono = true, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
1622
1742
|
...props,
|
|
1623
1743
|
viewBox: "0 0 493.36 441.333",
|
|
1624
1744
|
children: [
|
|
1625
|
-
/* @__PURE__ */ (0,
|
|
1745
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
1626
1746
|
"path",
|
|
1627
1747
|
{
|
|
1628
1748
|
d: "m65.242 2178.75 710-263.75-1.25-1900-708.75 261.25v1902.5m738.903 461.34c81.441-240.91-26.473-436.2-241.04-436.2-214.558 0-454.511 195.29-535.953 436.2-81.433 240.89 26.48 436.18 241.039 436.18 214.567 0 454.512-195.29 535.954-436.18",
|
|
@@ -1635,7 +1755,7 @@ var IIIFLogo = ({ mono = true, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
1635
1755
|
transform: "matrix(.13333 0 0 -.13333 0 441.333)"
|
|
1636
1756
|
}
|
|
1637
1757
|
),
|
|
1638
|
-
/* @__PURE__ */ (0,
|
|
1758
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
1639
1759
|
"path",
|
|
1640
1760
|
{
|
|
1641
1761
|
d: "M1678.58 2178.75 968.578 1915l1.25-1900 708.752 261.25v1902.5m-743.498 461.34c-81.437-240.91 26.477-436.2 241.038-436.2 214.56 0 454.51 195.29 535.96 436.2 81.43 240.89-26.48 436.18-241.04 436.18-214.57 0-454.52-195.29-535.958-436.18",
|
|
@@ -1648,7 +1768,7 @@ var IIIFLogo = ({ mono = true, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
1648
1768
|
transform: "matrix(.13333 0 0 -.13333 0 441.333)"
|
|
1649
1769
|
}
|
|
1650
1770
|
),
|
|
1651
|
-
/* @__PURE__ */ (0,
|
|
1771
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
1652
1772
|
"path",
|
|
1653
1773
|
{
|
|
1654
1774
|
d: "m1860.24 2178.75 710-263.75-1.25-1900-708.75 261.25v1902.5m743.5 461.34c81.45-240.91-26.47-436.2-241.03-436.2-214.58 0-454.52 195.29-535.96 436.2-81.44 240.89 26.48 436.18 241.03 436.18 214.57 0 454.51-195.29 535.96-436.18",
|
|
@@ -1661,7 +1781,7 @@ var IIIFLogo = ({ mono = true, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
1661
1781
|
transform: "matrix(.13333 0 0 -.13333 0 441.333)"
|
|
1662
1782
|
}
|
|
1663
1783
|
),
|
|
1664
|
-
/* @__PURE__ */ (0,
|
|
1784
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
1665
1785
|
"path",
|
|
1666
1786
|
{
|
|
1667
1787
|
d: "M3700.24 3310v-652.5s-230 90-257.5-142.5c-2.5-247.5 0-336.25 0-336.25l257.5 83.75V1690l-258.61-92.5v-1335L2735.24 0v2360s-15 850 965 950",
|
|
@@ -1679,8 +1799,8 @@ var IIIFLogo = ({ mono = true, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
1679
1799
|
);
|
|
1680
1800
|
|
|
1681
1801
|
// src/icons/HTMLIcon.tsx
|
|
1682
|
-
var
|
|
1683
|
-
var HTMLIcon = (props) => /* @__PURE__ */ (0,
|
|
1802
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1803
|
+
var HTMLIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#5f6368", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1684
1804
|
"path",
|
|
1685
1805
|
{
|
|
1686
1806
|
d: "M0-360v-240h60v80h80v-80h60v240h-60v-100H60v100H0Zm310 0v-180h-70v-60h200v60h-70v180h-60Zm170 0v-200q0-17 11.5-28.5T520-600h180q17 0 28.5 11.5T740-560v200h-60v-180h-40v140h-60v-140h-40v180h-60Zm320 0v-240h60v180h100v60H800Z",
|
|
@@ -1689,8 +1809,8 @@ var HTMLIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", {
|
|
|
1689
1809
|
) });
|
|
1690
1810
|
|
|
1691
1811
|
// src/icons/IIIFBrowserIcon.tsx
|
|
1692
|
-
var
|
|
1693
|
-
var IIIFBrowserIcon = (props) => /* @__PURE__ */ (0,
|
|
1812
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
1813
|
+
var IIIFBrowserIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#5f6368", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
1694
1814
|
"path",
|
|
1695
1815
|
{
|
|
1696
1816
|
d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h200v80H200v560h560v-214l80 80v134q0 33-23.5 56.5T760-120H200Zm40-160 120-160 90 120 120-160 150 200H240Zm622-144L738-548q-21 14-45 21t-51 7q-74 0-126-52.5T464-700q0-75 52.5-127.5T644-880q75 0 127.5 52.5T824-700q0 27-8 52t-20 46l122 122-56 56ZM644-600q42 0 71-29t29-71q0-42-29-71t-71-29q-42 0-71 29t-29 71q0 42 29 71t71 29Z",
|
|
@@ -1698,9 +1818,59 @@ var IIIFBrowserIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("
|
|
|
1698
1818
|
}
|
|
1699
1819
|
) });
|
|
1700
1820
|
|
|
1821
|
+
// src/icons/InfoIcon.tsx
|
|
1822
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
1823
|
+
function InfoIcon({ title, titleId, ...props }) {
|
|
1824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", "aria-labelledby": titleId, ...props, children: [
|
|
1825
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("title", { id: titleId, children: title }) : null,
|
|
1826
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
1827
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
1828
|
+
"path",
|
|
1829
|
+
{
|
|
1830
|
+
d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",
|
|
1831
|
+
fill: "currentColor"
|
|
1832
|
+
}
|
|
1833
|
+
)
|
|
1834
|
+
] });
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
// src/icons/ListingIcon.tsx
|
|
1838
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
1839
|
+
function ListingIcon({
|
|
1840
|
+
title,
|
|
1841
|
+
titleId,
|
|
1842
|
+
...props
|
|
1843
|
+
}) {
|
|
1844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
1845
|
+
"svg",
|
|
1846
|
+
{
|
|
1847
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1848
|
+
viewBox: "0 0 24 24",
|
|
1849
|
+
width: "1em",
|
|
1850
|
+
height: "1em",
|
|
1851
|
+
"aria-labelledby": titleId,
|
|
1852
|
+
...props,
|
|
1853
|
+
children: [
|
|
1854
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("title", { id: titleId, children: title }) : null,
|
|
1855
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("g", { fill: "none", children: [
|
|
1856
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M0 0h24v24H0V0z" }),
|
|
1857
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M0 0h24v24H0V0z", opacity: ".87" })
|
|
1858
|
+
] }),
|
|
1859
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1860
|
+
"path",
|
|
1861
|
+
{
|
|
1862
|
+
d: "M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z",
|
|
1863
|
+
fill: "currentColor"
|
|
1864
|
+
}
|
|
1865
|
+
)
|
|
1866
|
+
]
|
|
1867
|
+
}
|
|
1868
|
+
);
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1701
1871
|
// src/icons/YouTubeIcon.tsx
|
|
1702
|
-
var
|
|
1703
|
-
var YouTubeIcon = (props) => /* @__PURE__ */ (0,
|
|
1872
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
1873
|
+
var YouTubeIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#5f6368", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
1704
1874
|
"path",
|
|
1705
1875
|
{
|
|
1706
1876
|
d: "M616-242q-27 1-51.5 1.5t-43.5.5h-41q-71 0-133-2-53-2-104.5-5.5T168-257q-26-7-45-26t-26-45q-6-23-9.5-56T82-447q-2-36-2-73t2-73q2-30 5.5-63t9.5-56q7-26 26-45t45-26q23-6 74.5-9.5T347-798q62-2 133-2t133 2q53 2 104.5 5.5T792-783q26 7 45 26t26 45q6 23 9.5 56t5.5 63q2 36 2 73v17q-19-8-39-12.5t-41-4.5q-83 0-141.5 58.5T600-320q0 21 4 40.5t12 37.5ZM400-400l208-120-208-120v240Zm360 200v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z",
|
|
@@ -1708,9 +1878,34 @@ var YouTubeIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("svg"
|
|
|
1708
1878
|
}
|
|
1709
1879
|
) });
|
|
1710
1880
|
|
|
1881
|
+
// src/icons/ListEditIcon.tsx
|
|
1882
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
1883
|
+
function ListEditIcon({
|
|
1884
|
+
title,
|
|
1885
|
+
titleId,
|
|
1886
|
+
...props
|
|
1887
|
+
}) {
|
|
1888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
1889
|
+
"svg",
|
|
1890
|
+
{
|
|
1891
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1892
|
+
height: "24",
|
|
1893
|
+
viewBox: "0 0 24 24",
|
|
1894
|
+
width: "24",
|
|
1895
|
+
"aria-labelledby": titleId,
|
|
1896
|
+
...props,
|
|
1897
|
+
children: [
|
|
1898
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("title", { id: titleId, children: title }) : null,
|
|
1899
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
1900
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z" })
|
|
1901
|
+
]
|
|
1902
|
+
}
|
|
1903
|
+
);
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1711
1906
|
// src/icons/VideoIcon.tsx
|
|
1712
|
-
var
|
|
1713
|
-
var VideoIcon = (props) => /* @__PURE__ */ (0,
|
|
1907
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
1908
|
+
var VideoIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#5f6368", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
1714
1909
|
"path",
|
|
1715
1910
|
{
|
|
1716
1911
|
d: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h480q33 0 56.5 23.5T720-720v180l160-160v440L720-420v180q0 33-23.5 56.5T640-160H160Zm0-80h480v-480H160v480Zm0 0v-480 480Z",
|
|
@@ -1719,8 +1914,8 @@ var VideoIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg",
|
|
|
1719
1914
|
) });
|
|
1720
1915
|
|
|
1721
1916
|
// src/icons/AudioIcon.tsx
|
|
1722
|
-
var
|
|
1723
|
-
var AudioIcon = (props) => /* @__PURE__ */ (0,
|
|
1917
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
1918
|
+
var AudioIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#5f6368", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
1724
1919
|
"path",
|
|
1725
1920
|
{
|
|
1726
1921
|
d: "M480-400q-50 0-85-35t-35-85v-240q0-50 35-85t85-35q50 0 85 35t35 85v240q0 50-35 85t-85 35Zm0-240Zm-40 520v-123q-104-14-172-93t-68-184h80q0 83 58.5 141.5T480-320q83 0 141.5-58.5T680-520h80q0 105-68 184t-172 93v123h-80Zm40-360q17 0 28.5-11.5T520-520v-240q0-17-11.5-28.5T480-800q-17 0-28.5 11.5T440-760v240q0 17 11.5 28.5T480-480Z",
|
|
@@ -1729,8 +1924,8 @@ var AudioIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("svg",
|
|
|
1729
1924
|
) });
|
|
1730
1925
|
|
|
1731
1926
|
// src/icons/EmptyCanvasIcon.tsx
|
|
1732
|
-
var
|
|
1733
|
-
var EmptyCanvasIcon = (props) => /* @__PURE__ */ (0,
|
|
1927
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
1928
|
+
var EmptyCanvasIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#5f6368", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
1734
1929
|
"path",
|
|
1735
1930
|
{
|
|
1736
1931
|
d: "M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z",
|
|
@@ -1739,14 +1934,14 @@ var EmptyCanvasIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("
|
|
|
1739
1934
|
) });
|
|
1740
1935
|
|
|
1741
1936
|
// src/icons/AddIcon.tsx
|
|
1742
|
-
var
|
|
1937
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
1743
1938
|
function AddIcon({
|
|
1744
1939
|
className: className2,
|
|
1745
1940
|
inline,
|
|
1746
1941
|
height = 16,
|
|
1747
1942
|
color = "black"
|
|
1748
1943
|
}) {
|
|
1749
|
-
return /* @__PURE__ */ (0,
|
|
1944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
1750
1945
|
"svg",
|
|
1751
1946
|
{
|
|
1752
1947
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1757,17 +1952,17 @@ function AddIcon({
|
|
|
1757
1952
|
style: { verticalAlign: inline ? "bottom" : void 0 },
|
|
1758
1953
|
className: className2,
|
|
1759
1954
|
children: [
|
|
1760
|
-
/* @__PURE__ */ (0,
|
|
1761
|
-
/* @__PURE__ */ (0,
|
|
1955
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
1956
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z", fill: "currentColor" })
|
|
1762
1957
|
]
|
|
1763
1958
|
}
|
|
1764
1959
|
);
|
|
1765
1960
|
}
|
|
1766
1961
|
|
|
1767
1962
|
// src/icons/MoreMenu.tsx
|
|
1768
|
-
var
|
|
1963
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
1769
1964
|
function MoreMenu2() {
|
|
1770
|
-
return /* @__PURE__ */ (0,
|
|
1965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
1771
1966
|
"svg",
|
|
1772
1967
|
{
|
|
1773
1968
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1775,8 +1970,8 @@ function MoreMenu2() {
|
|
|
1775
1970
|
viewBox: "0 0 24 24",
|
|
1776
1971
|
width: "1em",
|
|
1777
1972
|
children: [
|
|
1778
|
-
/* @__PURE__ */ (0,
|
|
1779
|
-
/* @__PURE__ */ (0,
|
|
1973
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
1974
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
1780
1975
|
"path",
|
|
1781
1976
|
{
|
|
1782
1977
|
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
|
|
@@ -1788,14 +1983,78 @@ function MoreMenu2() {
|
|
|
1788
1983
|
);
|
|
1789
1984
|
}
|
|
1790
1985
|
|
|
1986
|
+
// src/icons/PreviewIcon.tsx
|
|
1987
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
1988
|
+
function PreviewIcon(props) {
|
|
1989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
1990
|
+
"path",
|
|
1991
|
+
{
|
|
1992
|
+
fill: "currentColor",
|
|
1993
|
+
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3"
|
|
1994
|
+
}
|
|
1995
|
+
) });
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
// src/icons/ImageListIcon.tsx
|
|
1999
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2000
|
+
function ImageListIcon(props) {
|
|
2001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2002
|
+
"path",
|
|
2003
|
+
{
|
|
2004
|
+
fill: "currentColor",
|
|
2005
|
+
d: "M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1M11 17l2.5-3.15L15.29 16l2.5-3.22L21 17z"
|
|
2006
|
+
}
|
|
2007
|
+
) });
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
// src/icons/BackIcon.tsx
|
|
2011
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2012
|
+
function BackIcon(props) {
|
|
2013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { fill: "currentColor", d: "M20 11H7.83l5.59-5.59L12 4l-8 8l8 8l1.41-1.41L7.83 13H20z" }) });
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
// src/icons/GridIcon.tsx
|
|
2017
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2018
|
+
function GridIcon(props) {
|
|
2019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props, children: [
|
|
2020
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2021
|
+
"path",
|
|
2022
|
+
{
|
|
2023
|
+
fill: "currentColor",
|
|
2024
|
+
d: "M10 10h4v4h-4zm0 6h4v4h-4zM4 4h4v4H4zm0 6h4v4H4zm0 6h4v4H4zM16 4h4v4h-4zm0 6h4v4h-4zm0 6h4v4h-4zM10 4h4v4h-4z",
|
|
2025
|
+
opacity: ".3"
|
|
2026
|
+
}
|
|
2027
|
+
),
|
|
2028
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2029
|
+
"path",
|
|
2030
|
+
{
|
|
2031
|
+
fill: "currentColor",
|
|
2032
|
+
d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z"
|
|
2033
|
+
}
|
|
2034
|
+
)
|
|
2035
|
+
] });
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
// src/icons/ScaledImageIcon.tsx
|
|
2039
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
2040
|
+
function ScaledImageIcon(props) {
|
|
2041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
2042
|
+
"path",
|
|
2043
|
+
{
|
|
2044
|
+
fill: "currentColor",
|
|
2045
|
+
d: "M21 15h2v2h-2zm0-4h2v2h-2zm2 8h-2v2c1 0 2-1 2-2M13 3h2v2h-2zm8 4h2v2h-2zm0-4v2h2c0-1-1-2-2-2M1 7h2v2H1zm16-4h2v2h-2zm0 16h2v2h-2zM3 3C2 3 1 4 1 5h2zm6 0h2v2H9zM5 3h2v2H5zm-4 8v8c0 1.1.9 2 2 2h12V11zm2 8l2.5-3.21l1.79 2.15l2.5-3.22L13 19z"
|
|
2046
|
+
}
|
|
2047
|
+
) });
|
|
2048
|
+
}
|
|
2049
|
+
|
|
1791
2050
|
// src/ErrorMessage.tsx
|
|
1792
|
-
var
|
|
1793
|
-
var
|
|
2051
|
+
var import_tailwind_merge8 = require("tailwind-merge");
|
|
2052
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
1794
2053
|
function ErrorMessage({ children, small = false, className: className2 }) {
|
|
1795
|
-
return /* @__PURE__ */ (0,
|
|
2054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
1796
2055
|
"div",
|
|
1797
2056
|
{
|
|
1798
|
-
className: (0,
|
|
2057
|
+
className: (0, import_tailwind_merge8.twMerge)(
|
|
1799
2058
|
"bg-red-500 text-white",
|
|
1800
2059
|
"border-1 drop-shadow border-red-700 w-full rounded-md py-2 px-4 leading-[1.9em] flex items-center",
|
|
1801
2060
|
"has-[a]:text-white",
|
|
@@ -1829,9 +2088,9 @@ function useFastList(list, firstRender = 24) {
|
|
|
1829
2088
|
|
|
1830
2089
|
// src/RenderTextualContent.tsx
|
|
1831
2090
|
var import_react11 = require("react");
|
|
1832
|
-
var
|
|
1833
|
-
var
|
|
1834
|
-
var
|
|
2091
|
+
var import_react_aria_components11 = require("react-aria-components");
|
|
2092
|
+
var import_react_iiif_vault8 = require("react-iiif-vault");
|
|
2093
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
1835
2094
|
function RenderTextualContent(props) {
|
|
1836
2095
|
const languages = props.strategy.items.map(
|
|
1837
2096
|
(item) => Object.keys(item.text)[0]
|
|
@@ -1840,10 +2099,10 @@ function RenderTextualContent(props) {
|
|
|
1840
2099
|
const selected = props.strategy.items.find(
|
|
1841
2100
|
(item) => Object.keys(item.text)[0] === langauge
|
|
1842
2101
|
);
|
|
1843
|
-
return /* @__PURE__ */ (0,
|
|
1844
|
-
/* @__PURE__ */ (0,
|
|
1845
|
-
return /* @__PURE__ */ (0,
|
|
1846
|
-
|
|
2102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "overflow-y-auto bg-white shadow", children: [
|
|
2103
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex gap-2 border-b", children: languages.map((language) => {
|
|
2104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
2105
|
+
import_react_aria_components11.Button,
|
|
1847
2106
|
{
|
|
1848
2107
|
className: `py-1 px-3 ${langauge === language ? "bg-me-500 text-white" : "bg-white text-black"}`,
|
|
1849
2108
|
onPress: () => setLanguage(language),
|
|
@@ -1852,11 +2111,11 @@ function RenderTextualContent(props) {
|
|
|
1852
2111
|
language
|
|
1853
2112
|
);
|
|
1854
2113
|
}) }),
|
|
1855
|
-
/* @__PURE__ */ (0,
|
|
1856
|
-
|
|
2114
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "p-4 prose", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
2115
|
+
import_react_iiif_vault8.LocaleString,
|
|
1857
2116
|
{
|
|
1858
2117
|
enableDangerouslySetInnerHTML: true,
|
|
1859
|
-
defaultText: /* @__PURE__ */ (0,
|
|
2118
|
+
defaultText: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-gray-500 my-8", children: "No content available" }),
|
|
1860
2119
|
children: selected?.text
|
|
1861
2120
|
}
|
|
1862
2121
|
) })
|
|
@@ -1872,13 +2131,13 @@ var import_react12 = require("@vidstack/react");
|
|
|
1872
2131
|
var import_default = require("@vidstack/react/player/layouts/default");
|
|
1873
2132
|
var import_helpers = require("@iiif/helpers");
|
|
1874
2133
|
var import_react13 = require("react");
|
|
1875
|
-
var
|
|
2134
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
1876
2135
|
function IIIFMediaPlayer(props) {
|
|
1877
2136
|
const mediaPlayer = (0, import_react13.useRef)(null);
|
|
1878
2137
|
const captions = props.captions || [];
|
|
1879
2138
|
const language = props.language;
|
|
1880
2139
|
const timeRef = (0, import_react13.useRef)(props.startTime || 0);
|
|
1881
|
-
return /* @__PURE__ */ (0,
|
|
2140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
1882
2141
|
import_react12.MediaPlayer,
|
|
1883
2142
|
{
|
|
1884
2143
|
onTimeUpdate: (time) => {
|
|
@@ -1899,9 +2158,9 @@ function IIIFMediaPlayer(props) {
|
|
|
1899
2158
|
type: props.media.format
|
|
1900
2159
|
}
|
|
1901
2160
|
],
|
|
1902
|
-
children: /* @__PURE__ */ (0,
|
|
2161
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react12.MediaProvider, { className: "w-full h-full [&>video]:w-full [&>video]:h-full [&>video]:object-contain", children: [
|
|
1903
2162
|
captions.map((caption) => {
|
|
1904
|
-
return /* @__PURE__ */ (0,
|
|
2163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
1905
2164
|
import_react12.Track,
|
|
1906
2165
|
{
|
|
1907
2166
|
src: caption.id,
|
|
@@ -1913,15 +2172,15 @@ function IIIFMediaPlayer(props) {
|
|
|
1913
2172
|
caption.id
|
|
1914
2173
|
);
|
|
1915
2174
|
}),
|
|
1916
|
-
props.poster ? /* @__PURE__ */ (0,
|
|
2175
|
+
props.poster ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
1917
2176
|
import_react12.Poster,
|
|
1918
2177
|
{
|
|
1919
2178
|
className: "absolute inset-0 bg-black block h-full w-full opacity-0 transition-opacity data-[visible]:opacity-100 object-contain",
|
|
1920
2179
|
src: props.poster
|
|
1921
2180
|
}
|
|
1922
2181
|
) : null,
|
|
1923
|
-
/* @__PURE__ */ (0,
|
|
1924
|
-
/* @__PURE__ */ (0,
|
|
2182
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Gestures, {}),
|
|
2183
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
1925
2184
|
import_default.DefaultVideoLayout,
|
|
1926
2185
|
{
|
|
1927
2186
|
className: "z-1",
|
|
@@ -1934,8 +2193,8 @@ function IIIFMediaPlayer(props) {
|
|
|
1934
2193
|
);
|
|
1935
2194
|
}
|
|
1936
2195
|
function Gestures() {
|
|
1937
|
-
return /* @__PURE__ */ (0,
|
|
1938
|
-
/* @__PURE__ */ (0,
|
|
2196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
2197
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
1939
2198
|
import_react12.Gesture,
|
|
1940
2199
|
{
|
|
1941
2200
|
className: "pointer-coarse:hidden absolute top-0 start-12 bottom-20 right-0 -z-1 block",
|
|
@@ -1943,6 +2202,6 @@ function Gestures() {
|
|
|
1943
2202
|
action: "toggle:paused"
|
|
1944
2203
|
}
|
|
1945
2204
|
),
|
|
1946
|
-
/* @__PURE__ */ (0,
|
|
2205
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react12.Gesture, { className: "absolute inset-0 z-0 block h-full w-full", event: "dblpointerup", action: "toggle:fullscreen" })
|
|
1947
2206
|
] });
|
|
1948
2207
|
}
|