@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.css
CHANGED
|
@@ -694,6 +694,9 @@
|
|
|
694
694
|
.right-1 {
|
|
695
695
|
right: 0.25rem;
|
|
696
696
|
}
|
|
697
|
+
.right-3 {
|
|
698
|
+
right: 0.75rem;
|
|
699
|
+
}
|
|
697
700
|
.start-12 {
|
|
698
701
|
inset-inline-start: 3rem;
|
|
699
702
|
}
|
|
@@ -703,6 +706,9 @@
|
|
|
703
706
|
.top-1 {
|
|
704
707
|
top: 0.25rem;
|
|
705
708
|
}
|
|
709
|
+
.top-3 {
|
|
710
|
+
top: 0.75rem;
|
|
711
|
+
}
|
|
706
712
|
.z-0 {
|
|
707
713
|
z-index: 0;
|
|
708
714
|
}
|
|
@@ -734,6 +740,10 @@
|
|
|
734
740
|
margin-top: 1rem;
|
|
735
741
|
margin-bottom: 1rem;
|
|
736
742
|
}
|
|
743
|
+
.my-5 {
|
|
744
|
+
margin-top: 1.25rem;
|
|
745
|
+
margin-bottom: 1.25rem;
|
|
746
|
+
}
|
|
737
747
|
.my-8 {
|
|
738
748
|
margin-top: 2rem;
|
|
739
749
|
margin-bottom: 2rem;
|
|
@@ -762,6 +772,12 @@
|
|
|
762
772
|
.mt-1 {
|
|
763
773
|
margin-top: 0.25rem;
|
|
764
774
|
}
|
|
775
|
+
.line-clamp-2 {
|
|
776
|
+
overflow: hidden;
|
|
777
|
+
display: -webkit-box;
|
|
778
|
+
-webkit-box-orient: vertical;
|
|
779
|
+
-webkit-line-clamp: 2;
|
|
780
|
+
}
|
|
765
781
|
.block {
|
|
766
782
|
display: block;
|
|
767
783
|
}
|
|
@@ -801,6 +817,9 @@
|
|
|
801
817
|
.h-8 {
|
|
802
818
|
height: 2rem;
|
|
803
819
|
}
|
|
820
|
+
.h-96 {
|
|
821
|
+
height: 24rem;
|
|
822
|
+
}
|
|
804
823
|
.h-\[23px\] {
|
|
805
824
|
height: 23px;
|
|
806
825
|
}
|
|
@@ -883,6 +902,10 @@
|
|
|
883
902
|
.flex-shrink-0 {
|
|
884
903
|
flex-shrink: 0;
|
|
885
904
|
}
|
|
905
|
+
.-translate-y-1 {
|
|
906
|
+
--tw-translate-y: -0.25rem;
|
|
907
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
908
|
+
}
|
|
886
909
|
.translate-x-3 {
|
|
887
910
|
--tw-translate-x: 0.75rem;
|
|
888
911
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -971,6 +994,9 @@
|
|
|
971
994
|
.gap-2 {
|
|
972
995
|
gap: 0.5rem;
|
|
973
996
|
}
|
|
997
|
+
.gap-3 {
|
|
998
|
+
gap: 0.75rem;
|
|
999
|
+
}
|
|
974
1000
|
.gap-4 {
|
|
975
1001
|
gap: 1rem;
|
|
976
1002
|
}
|
|
@@ -1079,6 +1105,10 @@
|
|
|
1079
1105
|
.border-transparent {
|
|
1080
1106
|
border-color: transparent;
|
|
1081
1107
|
}
|
|
1108
|
+
.border-b-gray-200 {
|
|
1109
|
+
--tw-border-opacity: 1;
|
|
1110
|
+
border-bottom-color: rgb(229 231 235 / var(--tw-border-opacity));
|
|
1111
|
+
}
|
|
1082
1112
|
.border-b-me-gray-300 {
|
|
1083
1113
|
--tw-border-opacity: 1;
|
|
1084
1114
|
border-bottom-color: rgb(217 217 217 / var(--tw-border-opacity));
|
|
@@ -1105,6 +1135,10 @@
|
|
|
1105
1135
|
--tw-bg-opacity: 1;
|
|
1106
1136
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1107
1137
|
}
|
|
1138
|
+
.bg-gray-200 {
|
|
1139
|
+
--tw-bg-opacity: 1;
|
|
1140
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
1141
|
+
}
|
|
1108
1142
|
.bg-me-gray-100 {
|
|
1109
1143
|
--tw-bg-opacity: 1;
|
|
1110
1144
|
background-color: rgb(245 245 245 / var(--tw-bg-opacity));
|
|
@@ -1210,6 +1244,9 @@
|
|
|
1210
1244
|
.pt-3 {
|
|
1211
1245
|
padding-top: 0.75rem;
|
|
1212
1246
|
}
|
|
1247
|
+
.text-left {
|
|
1248
|
+
text-align: left;
|
|
1249
|
+
}
|
|
1213
1250
|
.text-center {
|
|
1214
1251
|
text-align: center;
|
|
1215
1252
|
}
|
|
@@ -1279,6 +1316,10 @@
|
|
|
1279
1316
|
--tw-text-opacity: 1;
|
|
1280
1317
|
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1281
1318
|
}
|
|
1319
|
+
.text-gray-600 {
|
|
1320
|
+
--tw-text-opacity: 1;
|
|
1321
|
+
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
1322
|
+
}
|
|
1282
1323
|
.text-gray-900 {
|
|
1283
1324
|
--tw-text-opacity: 1;
|
|
1284
1325
|
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
@@ -1308,6 +1349,9 @@
|
|
|
1308
1349
|
.opacity-50 {
|
|
1309
1350
|
opacity: 0.5;
|
|
1310
1351
|
}
|
|
1352
|
+
.opacity-70 {
|
|
1353
|
+
opacity: 0.7;
|
|
1354
|
+
}
|
|
1311
1355
|
.opacity-90 {
|
|
1312
1356
|
opacity: 0.9;
|
|
1313
1357
|
}
|
|
@@ -1374,6 +1418,14 @@
|
|
|
1374
1418
|
--tw-ring-opacity: 1;
|
|
1375
1419
|
--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity));
|
|
1376
1420
|
}
|
|
1421
|
+
.ring-me-gray-500 {
|
|
1422
|
+
--tw-ring-opacity: 1;
|
|
1423
|
+
--tw-ring-color: rgb(161 161 161 / var(--tw-ring-opacity));
|
|
1424
|
+
}
|
|
1425
|
+
.ring-me-primary-100 {
|
|
1426
|
+
--tw-ring-opacity: 1;
|
|
1427
|
+
--tw-ring-color: rgb(241 214 229 / var(--tw-ring-opacity));
|
|
1428
|
+
}
|
|
1377
1429
|
.ring-me-primary-500 {
|
|
1378
1430
|
--tw-ring-opacity: 1;
|
|
1379
1431
|
--tw-ring-color: rgb(184 76 116 / var(--tw-ring-opacity));
|
|
@@ -1458,6 +1510,10 @@
|
|
|
1458
1510
|
--grid-item--min-width: 120px;
|
|
1459
1511
|
--total-gap-width: 1.5rem;
|
|
1460
1512
|
}
|
|
1513
|
+
div[data-floating-ui-portal] {
|
|
1514
|
+
z-index: 505;
|
|
1515
|
+
position: relative;
|
|
1516
|
+
}
|
|
1461
1517
|
.grid-lg,
|
|
1462
1518
|
.grid-md,
|
|
1463
1519
|
.grid-sm {
|
|
@@ -1621,6 +1677,14 @@ div.mdxeditor-popup-container > *[role=dialog] {
|
|
|
1621
1677
|
var(--tw-ring-shadow),
|
|
1622
1678
|
var(--tw-shadow, 0 0 #0000);
|
|
1623
1679
|
}
|
|
1680
|
+
.hover\:ring-2:hover {
|
|
1681
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1682
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1683
|
+
box-shadow:
|
|
1684
|
+
var(--tw-ring-offset-shadow),
|
|
1685
|
+
var(--tw-ring-shadow),
|
|
1686
|
+
var(--tw-shadow, 0 0 #0000);
|
|
1687
|
+
}
|
|
1624
1688
|
.focus\:border-me-primary-500:focus {
|
|
1625
1689
|
--tw-border-opacity: 1;
|
|
1626
1690
|
border-color: rgb(184 76 116 / var(--tw-border-opacity));
|
|
@@ -1661,9 +1725,37 @@ div.mdxeditor-popup-container > *[role=dialog] {
|
|
|
1661
1725
|
--tw-border-opacity: 1;
|
|
1662
1726
|
border-color: rgb(137 44 78 / var(--tw-border-opacity));
|
|
1663
1727
|
}
|
|
1728
|
+
.data-\[active\]\:border-b-me-primary-500[data-active] {
|
|
1729
|
+
--tw-border-opacity: 1;
|
|
1730
|
+
border-bottom-color: rgb(184 76 116 / var(--tw-border-opacity));
|
|
1731
|
+
}
|
|
1732
|
+
.data-\[active\]\:bg-gray-200[data-active] {
|
|
1733
|
+
--tw-bg-opacity: 1;
|
|
1734
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
1735
|
+
}
|
|
1736
|
+
.data-\[selected\]\:bg-me-primary-100[data-selected] {
|
|
1737
|
+
--tw-bg-opacity: 1;
|
|
1738
|
+
background-color: rgb(241 214 229 / var(--tw-bg-opacity));
|
|
1739
|
+
}
|
|
1740
|
+
.data-\[active\]\:text-me-primary-500[data-active] {
|
|
1741
|
+
--tw-text-opacity: 1;
|
|
1742
|
+
color: rgb(184 76 116 / var(--tw-text-opacity));
|
|
1743
|
+
}
|
|
1664
1744
|
.data-\[visible\]\:opacity-100[data-visible] {
|
|
1665
1745
|
opacity: 1;
|
|
1666
1746
|
}
|
|
1747
|
+
.data-\[selected\]\:ring-2[data-selected] {
|
|
1748
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1749
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1750
|
+
box-shadow:
|
|
1751
|
+
var(--tw-ring-offset-shadow),
|
|
1752
|
+
var(--tw-ring-shadow),
|
|
1753
|
+
var(--tw-shadow, 0 0 #0000);
|
|
1754
|
+
}
|
|
1755
|
+
.data-\[selected\]\:ring-me-primary-500[data-selected] {
|
|
1756
|
+
--tw-ring-opacity: 1;
|
|
1757
|
+
--tw-ring-color: rgb(184 76 116 / var(--tw-ring-opacity));
|
|
1758
|
+
}
|
|
1667
1759
|
.prose-a\:text-me-primary-500 :is(:where(a):not(:where([class~=not-prose], [class~=not-prose] *))) {
|
|
1668
1760
|
--tw-text-opacity: 1;
|
|
1669
1761
|
color: rgb(184 76 116 / var(--tw-text-opacity));
|
|
@@ -1677,11 +1769,6 @@ div.mdxeditor-popup-container > *[role=dialog] {
|
|
|
1677
1769
|
.prose-ul\:list-disc :is(:where(ul):not(:where([class~=not-prose], [class~=not-prose] *))) {
|
|
1678
1770
|
list-style-type: disc;
|
|
1679
1771
|
}
|
|
1680
|
-
@media (min-width: 768px) {
|
|
1681
|
-
.md\:p-5 {
|
|
1682
|
-
padding: 1.25rem;
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
1772
|
.\[\&\>svg\]\:h-16 > svg {
|
|
1686
1773
|
height: 4rem;
|
|
1687
1774
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ButtonProps, TabsProps, TabListProps, TabProps, TabPanelProps, LabelProps } from 'react-aria-components';
|
|
3
3
|
import * as _floating_ui_react_dom from '@floating-ui/react-dom';
|
|
4
|
-
import { UseFloatingReturn } from '@floating-ui/react-dom';
|
|
4
|
+
import { UseFloatingReturn, Placement as Placement$1 } from '@floating-ui/react-dom';
|
|
5
|
+
import { UseInteractionsReturn, Placement } from '@floating-ui/react';
|
|
5
6
|
import * as React$1 from 'react';
|
|
6
7
|
import React__default, { ReactNode, SVGProps, ForwardedRef } from 'react';
|
|
7
|
-
import { UseInteractionsReturn, Placement } from '@floating-ui/react';
|
|
8
8
|
import { createHelper } from 'polygon-editor';
|
|
9
9
|
import { InternationalString } from '@iiif/presentation-3';
|
|
10
10
|
import { MDXEditorMethods, MDXEditorProps } from '@mdxeditor/editor';
|
|
11
11
|
import { TextualContentStrategy } from 'react-iiif-vault';
|
|
12
12
|
|
|
13
|
-
declare function ActionButton({ className, primary, center, children, ...props }: {
|
|
13
|
+
declare function ActionButton({ className, primary, center, large, children, ...props }: {
|
|
14
14
|
primary?: boolean;
|
|
15
15
|
center?: boolean;
|
|
16
|
+
large?: boolean;
|
|
16
17
|
} & ButtonProps): react_jsx_runtime.JSX.Element;
|
|
17
18
|
|
|
18
19
|
declare function Sidebar({ children }: {
|
|
@@ -88,9 +89,12 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.HTM
|
|
|
88
89
|
asChild?: boolean;
|
|
89
90
|
onPress?: any;
|
|
90
91
|
}, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
91
|
-
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement
|
|
92
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement> & {
|
|
93
|
+
root?: HTMLElement;
|
|
94
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
92
95
|
declare function DefaultTooltipContent(props: {
|
|
93
96
|
className?: string;
|
|
97
|
+
root?: HTMLElement;
|
|
94
98
|
children: React$1.ReactNode;
|
|
95
99
|
}): react_jsx_runtime.JSX.Element;
|
|
96
100
|
|
|
@@ -122,7 +126,10 @@ interface ModalProps {
|
|
|
122
126
|
children: React.ReactNode;
|
|
123
127
|
actions?: React.ReactNode;
|
|
124
128
|
}
|
|
125
|
-
declare function
|
|
129
|
+
declare function ModalBackSlot({ children }: {
|
|
130
|
+
children: React.ReactNode;
|
|
131
|
+
}): React$1.ReactPortal | null;
|
|
132
|
+
declare function Modal({ id, title, open, onClose, actions, children }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
126
133
|
|
|
127
134
|
declare function ControlButton({ children, className, ...props }: React.PropsWithChildren<React.ButtonHTMLAttributes<HTMLButtonElement>>): react_jsx_runtime.JSX.Element;
|
|
128
135
|
|
|
@@ -197,7 +204,7 @@ declare function SidebarTabs({ menu, menuId, selectedKey, onSelectionChange, }:
|
|
|
197
204
|
|
|
198
205
|
declare function MetadataContainer({ className, label, children, ...props }: {
|
|
199
206
|
label: InternationalString | null;
|
|
200
|
-
} & React.HTMLAttributes<
|
|
207
|
+
} & React.HTMLAttributes<HTMLFieldSetElement>): react_jsx_runtime.JSX.Element;
|
|
201
208
|
|
|
202
209
|
declare function EmptyState(props: {
|
|
203
210
|
children: React.ReactNode;
|
|
@@ -212,6 +219,7 @@ declare function MeRadioGroup({ className, ...props }: any): react_jsx_runtime.J
|
|
|
212
219
|
declare function MeRadio({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
213
220
|
declare function MeForm({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
214
221
|
declare function MeInput({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
222
|
+
declare function MeTextArea({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
215
223
|
declare function MeInputContainer({ horizontal, className, ...props }: React.HTMLProps<HTMLDivElement> & {
|
|
216
224
|
horizontal?: boolean;
|
|
217
225
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -222,6 +230,7 @@ declare const Form: {
|
|
|
222
230
|
InputContainer: typeof MeInputContainer;
|
|
223
231
|
RadioGroup: typeof MeRadioGroup;
|
|
224
232
|
Radio: typeof MeRadio;
|
|
233
|
+
TextArea: typeof MeTextArea;
|
|
225
234
|
};
|
|
226
235
|
|
|
227
236
|
declare function HTMLEditor({ value, onChange, disabled, }: {
|
|
@@ -234,12 +243,15 @@ declare function MDXEditor({ editorRef, ...props }: {
|
|
|
234
243
|
editorRef?: ForwardedRef<MDXEditorMethods> | null;
|
|
235
244
|
} & MDXEditorProps): react_jsx_runtime.JSX.Element;
|
|
236
245
|
|
|
237
|
-
declare function IconButton({ children, active, label, disabled, onPress, }: {
|
|
246
|
+
declare function IconButton({ children, active, label, disabled, onPress, root, className, placement, }: {
|
|
238
247
|
children: React.ReactNode;
|
|
239
248
|
onPress?: () => void;
|
|
249
|
+
className?: string;
|
|
240
250
|
active?: boolean;
|
|
241
251
|
disabled?: boolean;
|
|
242
252
|
label: string;
|
|
253
|
+
placement?: Placement$1;
|
|
254
|
+
root?: HTMLElement;
|
|
243
255
|
}): react_jsx_runtime.JSX.Element;
|
|
244
256
|
|
|
245
257
|
declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
@@ -251,6 +263,18 @@ declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
|
251
263
|
|
|
252
264
|
declare const HandleContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
253
265
|
|
|
266
|
+
declare function CollectionListItem({ isActive, onAction }: {
|
|
267
|
+
isActive: boolean;
|
|
268
|
+
onAction: () => void;
|
|
269
|
+
}): react_jsx_runtime.JSX.Element;
|
|
270
|
+
|
|
271
|
+
declare function ManifestListItem({ isActive, onAction }: {
|
|
272
|
+
isActive: boolean;
|
|
273
|
+
onAction: () => void;
|
|
274
|
+
}): react_jsx_runtime.JSX.Element;
|
|
275
|
+
|
|
276
|
+
declare function Spinner(props: React$1.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
277
|
+
|
|
254
278
|
declare function CreateCanvasIcon(): react_jsx_runtime.JSX.Element;
|
|
255
279
|
|
|
256
280
|
declare const AddImageIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -263,8 +287,23 @@ declare const HTMLIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JS
|
|
|
263
287
|
|
|
264
288
|
declare const IIIFBrowserIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
265
289
|
|
|
290
|
+
declare function InfoIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
291
|
+
title?: string;
|
|
292
|
+
titleId?: string;
|
|
293
|
+
}): react_jsx_runtime.JSX.Element;
|
|
294
|
+
|
|
295
|
+
declare function ListingIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
296
|
+
title?: string;
|
|
297
|
+
titleId?: string;
|
|
298
|
+
}): react_jsx_runtime.JSX.Element;
|
|
299
|
+
|
|
266
300
|
declare const YouTubeIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
267
301
|
|
|
302
|
+
declare function ListEditIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
303
|
+
title?: string;
|
|
304
|
+
titleId?: string;
|
|
305
|
+
}): react_jsx_runtime.JSX.Element;
|
|
306
|
+
|
|
268
307
|
declare const VideoIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
269
308
|
|
|
270
309
|
declare const AudioIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -286,6 +325,20 @@ declare function TextIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX
|
|
|
286
325
|
|
|
287
326
|
declare function MoreMenu(): react_jsx_runtime.JSX.Element;
|
|
288
327
|
|
|
328
|
+
declare function ManifestIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
329
|
+
|
|
330
|
+
declare function CollectionIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
331
|
+
|
|
332
|
+
declare function PreviewIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
333
|
+
|
|
334
|
+
declare function ImageListIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
335
|
+
|
|
336
|
+
declare function BackIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
337
|
+
|
|
338
|
+
declare function GridIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
339
|
+
|
|
340
|
+
declare function ScaledImageIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
341
|
+
|
|
289
342
|
interface ErrorMessageProps {
|
|
290
343
|
children: React__default.ReactNode;
|
|
291
344
|
small?: boolean;
|
|
@@ -315,4 +368,4 @@ interface IIIFMediaPlayerProps {
|
|
|
315
368
|
}
|
|
316
369
|
declare function IIIFMediaPlayer(props: IIIFMediaPlayerProps): react_jsx_runtime.JSX.Element;
|
|
317
370
|
|
|
318
|
-
export { ActionButton, AddIcon, AddImageIcon, AtlasBanner, AudioIcon, CanvasThumbnailGridItem, Card3D, ConfirmSelectionButton, ControlButton, CreateCanvasIcon, CreatorGrid, type CreatorGridItemProps, DefaultTooltipContent, DeleteForeverIcon, DownloadButton, DownloadIcon, EmptyCanvasIcon, EmptyState, ErrorMessage, Form, HTMLEditor, HTMLIcon, HandleContainer, IIIFBrowserIcon, IIIFLogo, IIIFMediaPlayer, type IIIFMediaPlayerProps, IconButton, ItemWithHandle, LazyThumbnail, MDXEditor, ManifestEditorLogo, ManifestOverviewEmptyState, MetadataContainer, Modal, type ModalProps, MoreMenu, OpaqueControls, PanelSideMenu, RenderTextualContent, Sidebar, SidebarContent, SidebarHeader, SidebarTabs, SvgControlBar, Tab, TabList, TabPanel, Tabs, TextIcon, ThumbnailGridContainer, Tooltip, TooltipContent, TooltipTrigger, VideoIcon, YouTubeIcon, createDownload, useFastList, useTooltip, useTooltipContext };
|
|
371
|
+
export { ActionButton, AddIcon, AddImageIcon, AtlasBanner, AudioIcon, BackIcon, CanvasThumbnailGridItem, Card3D, CollectionIcon, CollectionListItem, ConfirmSelectionButton, ControlButton, CreateCanvasIcon, CreatorGrid, type CreatorGridItemProps, DefaultTooltipContent, DeleteForeverIcon, DownloadButton, DownloadIcon, EmptyCanvasIcon, EmptyState, ErrorMessage, Form, GridIcon, HTMLEditor, HTMLIcon, HandleContainer, IIIFBrowserIcon, IIIFLogo, IIIFMediaPlayer, type IIIFMediaPlayerProps, IconButton, ImageListIcon, InfoIcon, ItemWithHandle, LazyThumbnail, ListEditIcon, ListingIcon, MDXEditor, ManifestEditorLogo, ManifestIcon, ManifestListItem, ManifestOverviewEmptyState, MetadataContainer, Modal, ModalBackSlot, type ModalProps, MoreMenu, OpaqueControls, PanelSideMenu, PreviewIcon, RenderTextualContent, ScaledImageIcon, Sidebar, SidebarContent, SidebarHeader, SidebarTabs, Spinner, SvgControlBar, Tab, TabList, TabPanel, Tabs, TextIcon, ThumbnailGridContainer, Tooltip, TooltipContent, TooltipTrigger, VideoIcon, YouTubeIcon, createDownload, useFastList, useTooltip, useTooltipContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ButtonProps, TabsProps, TabListProps, TabProps, TabPanelProps, LabelProps } from 'react-aria-components';
|
|
3
3
|
import * as _floating_ui_react_dom from '@floating-ui/react-dom';
|
|
4
|
-
import { UseFloatingReturn } from '@floating-ui/react-dom';
|
|
4
|
+
import { UseFloatingReturn, Placement as Placement$1 } from '@floating-ui/react-dom';
|
|
5
|
+
import { UseInteractionsReturn, Placement } from '@floating-ui/react';
|
|
5
6
|
import * as React$1 from 'react';
|
|
6
7
|
import React__default, { ReactNode, SVGProps, ForwardedRef } from 'react';
|
|
7
|
-
import { UseInteractionsReturn, Placement } from '@floating-ui/react';
|
|
8
8
|
import { createHelper } from 'polygon-editor';
|
|
9
9
|
import { InternationalString } from '@iiif/presentation-3';
|
|
10
10
|
import { MDXEditorMethods, MDXEditorProps } from '@mdxeditor/editor';
|
|
11
11
|
import { TextualContentStrategy } from 'react-iiif-vault';
|
|
12
12
|
|
|
13
|
-
declare function ActionButton({ className, primary, center, children, ...props }: {
|
|
13
|
+
declare function ActionButton({ className, primary, center, large, children, ...props }: {
|
|
14
14
|
primary?: boolean;
|
|
15
15
|
center?: boolean;
|
|
16
|
+
large?: boolean;
|
|
16
17
|
} & ButtonProps): react_jsx_runtime.JSX.Element;
|
|
17
18
|
|
|
18
19
|
declare function Sidebar({ children }: {
|
|
@@ -88,9 +89,12 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.HTM
|
|
|
88
89
|
asChild?: boolean;
|
|
89
90
|
onPress?: any;
|
|
90
91
|
}, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
91
|
-
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement
|
|
92
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement> & {
|
|
93
|
+
root?: HTMLElement;
|
|
94
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
92
95
|
declare function DefaultTooltipContent(props: {
|
|
93
96
|
className?: string;
|
|
97
|
+
root?: HTMLElement;
|
|
94
98
|
children: React$1.ReactNode;
|
|
95
99
|
}): react_jsx_runtime.JSX.Element;
|
|
96
100
|
|
|
@@ -122,7 +126,10 @@ interface ModalProps {
|
|
|
122
126
|
children: React.ReactNode;
|
|
123
127
|
actions?: React.ReactNode;
|
|
124
128
|
}
|
|
125
|
-
declare function
|
|
129
|
+
declare function ModalBackSlot({ children }: {
|
|
130
|
+
children: React.ReactNode;
|
|
131
|
+
}): React$1.ReactPortal | null;
|
|
132
|
+
declare function Modal({ id, title, open, onClose, actions, children }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
126
133
|
|
|
127
134
|
declare function ControlButton({ children, className, ...props }: React.PropsWithChildren<React.ButtonHTMLAttributes<HTMLButtonElement>>): react_jsx_runtime.JSX.Element;
|
|
128
135
|
|
|
@@ -197,7 +204,7 @@ declare function SidebarTabs({ menu, menuId, selectedKey, onSelectionChange, }:
|
|
|
197
204
|
|
|
198
205
|
declare function MetadataContainer({ className, label, children, ...props }: {
|
|
199
206
|
label: InternationalString | null;
|
|
200
|
-
} & React.HTMLAttributes<
|
|
207
|
+
} & React.HTMLAttributes<HTMLFieldSetElement>): react_jsx_runtime.JSX.Element;
|
|
201
208
|
|
|
202
209
|
declare function EmptyState(props: {
|
|
203
210
|
children: React.ReactNode;
|
|
@@ -212,6 +219,7 @@ declare function MeRadioGroup({ className, ...props }: any): react_jsx_runtime.J
|
|
|
212
219
|
declare function MeRadio({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
213
220
|
declare function MeForm({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
214
221
|
declare function MeInput({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
222
|
+
declare function MeTextArea({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
215
223
|
declare function MeInputContainer({ horizontal, className, ...props }: React.HTMLProps<HTMLDivElement> & {
|
|
216
224
|
horizontal?: boolean;
|
|
217
225
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -222,6 +230,7 @@ declare const Form: {
|
|
|
222
230
|
InputContainer: typeof MeInputContainer;
|
|
223
231
|
RadioGroup: typeof MeRadioGroup;
|
|
224
232
|
Radio: typeof MeRadio;
|
|
233
|
+
TextArea: typeof MeTextArea;
|
|
225
234
|
};
|
|
226
235
|
|
|
227
236
|
declare function HTMLEditor({ value, onChange, disabled, }: {
|
|
@@ -234,12 +243,15 @@ declare function MDXEditor({ editorRef, ...props }: {
|
|
|
234
243
|
editorRef?: ForwardedRef<MDXEditorMethods> | null;
|
|
235
244
|
} & MDXEditorProps): react_jsx_runtime.JSX.Element;
|
|
236
245
|
|
|
237
|
-
declare function IconButton({ children, active, label, disabled, onPress, }: {
|
|
246
|
+
declare function IconButton({ children, active, label, disabled, onPress, root, className, placement, }: {
|
|
238
247
|
children: React.ReactNode;
|
|
239
248
|
onPress?: () => void;
|
|
249
|
+
className?: string;
|
|
240
250
|
active?: boolean;
|
|
241
251
|
disabled?: boolean;
|
|
242
252
|
label: string;
|
|
253
|
+
placement?: Placement$1;
|
|
254
|
+
root?: HTMLElement;
|
|
243
255
|
}): react_jsx_runtime.JSX.Element;
|
|
244
256
|
|
|
245
257
|
declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
@@ -251,6 +263,18 @@ declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
|
251
263
|
|
|
252
264
|
declare const HandleContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
253
265
|
|
|
266
|
+
declare function CollectionListItem({ isActive, onAction }: {
|
|
267
|
+
isActive: boolean;
|
|
268
|
+
onAction: () => void;
|
|
269
|
+
}): react_jsx_runtime.JSX.Element;
|
|
270
|
+
|
|
271
|
+
declare function ManifestListItem({ isActive, onAction }: {
|
|
272
|
+
isActive: boolean;
|
|
273
|
+
onAction: () => void;
|
|
274
|
+
}): react_jsx_runtime.JSX.Element;
|
|
275
|
+
|
|
276
|
+
declare function Spinner(props: React$1.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
277
|
+
|
|
254
278
|
declare function CreateCanvasIcon(): react_jsx_runtime.JSX.Element;
|
|
255
279
|
|
|
256
280
|
declare const AddImageIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -263,8 +287,23 @@ declare const HTMLIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JS
|
|
|
263
287
|
|
|
264
288
|
declare const IIIFBrowserIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
265
289
|
|
|
290
|
+
declare function InfoIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
291
|
+
title?: string;
|
|
292
|
+
titleId?: string;
|
|
293
|
+
}): react_jsx_runtime.JSX.Element;
|
|
294
|
+
|
|
295
|
+
declare function ListingIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
296
|
+
title?: string;
|
|
297
|
+
titleId?: string;
|
|
298
|
+
}): react_jsx_runtime.JSX.Element;
|
|
299
|
+
|
|
266
300
|
declare const YouTubeIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
267
301
|
|
|
302
|
+
declare function ListEditIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
303
|
+
title?: string;
|
|
304
|
+
titleId?: string;
|
|
305
|
+
}): react_jsx_runtime.JSX.Element;
|
|
306
|
+
|
|
268
307
|
declare const VideoIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
269
308
|
|
|
270
309
|
declare const AudioIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -286,6 +325,20 @@ declare function TextIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX
|
|
|
286
325
|
|
|
287
326
|
declare function MoreMenu(): react_jsx_runtime.JSX.Element;
|
|
288
327
|
|
|
328
|
+
declare function ManifestIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
329
|
+
|
|
330
|
+
declare function CollectionIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
331
|
+
|
|
332
|
+
declare function PreviewIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
333
|
+
|
|
334
|
+
declare function ImageListIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
335
|
+
|
|
336
|
+
declare function BackIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
337
|
+
|
|
338
|
+
declare function GridIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
339
|
+
|
|
340
|
+
declare function ScaledImageIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
341
|
+
|
|
289
342
|
interface ErrorMessageProps {
|
|
290
343
|
children: React__default.ReactNode;
|
|
291
344
|
small?: boolean;
|
|
@@ -315,4 +368,4 @@ interface IIIFMediaPlayerProps {
|
|
|
315
368
|
}
|
|
316
369
|
declare function IIIFMediaPlayer(props: IIIFMediaPlayerProps): react_jsx_runtime.JSX.Element;
|
|
317
370
|
|
|
318
|
-
export { ActionButton, AddIcon, AddImageIcon, AtlasBanner, AudioIcon, CanvasThumbnailGridItem, Card3D, ConfirmSelectionButton, ControlButton, CreateCanvasIcon, CreatorGrid, type CreatorGridItemProps, DefaultTooltipContent, DeleteForeverIcon, DownloadButton, DownloadIcon, EmptyCanvasIcon, EmptyState, ErrorMessage, Form, HTMLEditor, HTMLIcon, HandleContainer, IIIFBrowserIcon, IIIFLogo, IIIFMediaPlayer, type IIIFMediaPlayerProps, IconButton, ItemWithHandle, LazyThumbnail, MDXEditor, ManifestEditorLogo, ManifestOverviewEmptyState, MetadataContainer, Modal, type ModalProps, MoreMenu, OpaqueControls, PanelSideMenu, RenderTextualContent, Sidebar, SidebarContent, SidebarHeader, SidebarTabs, SvgControlBar, Tab, TabList, TabPanel, Tabs, TextIcon, ThumbnailGridContainer, Tooltip, TooltipContent, TooltipTrigger, VideoIcon, YouTubeIcon, createDownload, useFastList, useTooltip, useTooltipContext };
|
|
371
|
+
export { ActionButton, AddIcon, AddImageIcon, AtlasBanner, AudioIcon, BackIcon, CanvasThumbnailGridItem, Card3D, CollectionIcon, CollectionListItem, ConfirmSelectionButton, ControlButton, CreateCanvasIcon, CreatorGrid, type CreatorGridItemProps, DefaultTooltipContent, DeleteForeverIcon, DownloadButton, DownloadIcon, EmptyCanvasIcon, EmptyState, ErrorMessage, Form, GridIcon, HTMLEditor, HTMLIcon, HandleContainer, IIIFBrowserIcon, IIIFLogo, IIIFMediaPlayer, type IIIFMediaPlayerProps, IconButton, ImageListIcon, InfoIcon, ItemWithHandle, LazyThumbnail, ListEditIcon, ListingIcon, MDXEditor, ManifestEditorLogo, ManifestIcon, ManifestListItem, ManifestOverviewEmptyState, MetadataContainer, Modal, ModalBackSlot, type ModalProps, MoreMenu, OpaqueControls, PanelSideMenu, PreviewIcon, RenderTextualContent, ScaledImageIcon, Sidebar, SidebarContent, SidebarHeader, SidebarTabs, Spinner, SvgControlBar, Tab, TabList, TabPanel, Tabs, TextIcon, ThumbnailGridContainer, Tooltip, TooltipContent, TooltipTrigger, VideoIcon, YouTubeIcon, createDownload, useFastList, useTooltip, useTooltipContext };
|