@manifest-editor/components 1.3.1 → 1.4.1
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 +646 -368
- package/dist/index.css +102 -5
- package/dist/index.d.cts +65 -8
- package/dist/index.d.ts +65 -8
- package/dist/index.js +605 -332
- 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,24 @@ 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
|
+
}
|
|
1688
|
+
.focus\:not-sr-only:focus {
|
|
1689
|
+
position: static;
|
|
1690
|
+
width: auto;
|
|
1691
|
+
height: auto;
|
|
1692
|
+
padding: 0;
|
|
1693
|
+
margin: 0;
|
|
1694
|
+
overflow: visible;
|
|
1695
|
+
clip: auto;
|
|
1696
|
+
white-space: normal;
|
|
1697
|
+
}
|
|
1624
1698
|
.focus\:border-me-primary-500:focus {
|
|
1625
1699
|
--tw-border-opacity: 1;
|
|
1626
1700
|
border-color: rgb(184 76 116 / var(--tw-border-opacity));
|
|
@@ -1661,9 +1735,37 @@ div.mdxeditor-popup-container > *[role=dialog] {
|
|
|
1661
1735
|
--tw-border-opacity: 1;
|
|
1662
1736
|
border-color: rgb(137 44 78 / var(--tw-border-opacity));
|
|
1663
1737
|
}
|
|
1738
|
+
.data-\[active\]\:border-b-me-primary-500[data-active] {
|
|
1739
|
+
--tw-border-opacity: 1;
|
|
1740
|
+
border-bottom-color: rgb(184 76 116 / var(--tw-border-opacity));
|
|
1741
|
+
}
|
|
1742
|
+
.data-\[active\]\:bg-gray-200[data-active] {
|
|
1743
|
+
--tw-bg-opacity: 1;
|
|
1744
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
1745
|
+
}
|
|
1746
|
+
.data-\[selected\]\:bg-me-primary-100[data-selected] {
|
|
1747
|
+
--tw-bg-opacity: 1;
|
|
1748
|
+
background-color: rgb(241 214 229 / var(--tw-bg-opacity));
|
|
1749
|
+
}
|
|
1750
|
+
.data-\[active\]\:text-me-primary-500[data-active] {
|
|
1751
|
+
--tw-text-opacity: 1;
|
|
1752
|
+
color: rgb(184 76 116 / var(--tw-text-opacity));
|
|
1753
|
+
}
|
|
1664
1754
|
.data-\[visible\]\:opacity-100[data-visible] {
|
|
1665
1755
|
opacity: 1;
|
|
1666
1756
|
}
|
|
1757
|
+
.data-\[selected\]\:ring-2[data-selected] {
|
|
1758
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1759
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1760
|
+
box-shadow:
|
|
1761
|
+
var(--tw-ring-offset-shadow),
|
|
1762
|
+
var(--tw-ring-shadow),
|
|
1763
|
+
var(--tw-shadow, 0 0 #0000);
|
|
1764
|
+
}
|
|
1765
|
+
.data-\[selected\]\:ring-me-primary-500[data-selected] {
|
|
1766
|
+
--tw-ring-opacity: 1;
|
|
1767
|
+
--tw-ring-color: rgb(184 76 116 / var(--tw-ring-opacity));
|
|
1768
|
+
}
|
|
1667
1769
|
.prose-a\:text-me-primary-500 :is(:where(a):not(:where([class~=not-prose], [class~=not-prose] *))) {
|
|
1668
1770
|
--tw-text-opacity: 1;
|
|
1669
1771
|
color: rgb(184 76 116 / var(--tw-text-opacity));
|
|
@@ -1677,11 +1779,6 @@ div.mdxeditor-popup-container > *[role=dialog] {
|
|
|
1677
1779
|
.prose-ul\:list-disc :is(:where(ul):not(:where([class~=not-prose], [class~=not-prose] *))) {
|
|
1678
1780
|
list-style-type: disc;
|
|
1679
1781
|
}
|
|
1680
|
-
@media (min-width: 768px) {
|
|
1681
|
-
.md\:p-5 {
|
|
1682
|
-
padding: 1.25rem;
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
1782
|
.\[\&\>svg\]\:h-16 > svg {
|
|
1686
1783
|
height: 4rem;
|
|
1687
1784
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
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
|
|
|
19
|
+
declare function AccessibilityButton({ className, children, ...props }: ButtonProps & {
|
|
20
|
+
className?: string;
|
|
21
|
+
}): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
18
23
|
declare function Sidebar({ children }: {
|
|
19
24
|
children: React.ReactNode;
|
|
20
25
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -88,9 +93,12 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.HTM
|
|
|
88
93
|
asChild?: boolean;
|
|
89
94
|
onPress?: any;
|
|
90
95
|
}, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
91
|
-
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement
|
|
96
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement> & {
|
|
97
|
+
root?: HTMLElement;
|
|
98
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
92
99
|
declare function DefaultTooltipContent(props: {
|
|
93
100
|
className?: string;
|
|
101
|
+
root?: HTMLElement;
|
|
94
102
|
children: React$1.ReactNode;
|
|
95
103
|
}): react_jsx_runtime.JSX.Element;
|
|
96
104
|
|
|
@@ -122,7 +130,10 @@ interface ModalProps {
|
|
|
122
130
|
children: React.ReactNode;
|
|
123
131
|
actions?: React.ReactNode;
|
|
124
132
|
}
|
|
125
|
-
declare function
|
|
133
|
+
declare function ModalBackSlot({ children }: {
|
|
134
|
+
children: React.ReactNode;
|
|
135
|
+
}): React$1.ReactPortal | null;
|
|
136
|
+
declare function Modal({ id, title, open, onClose, actions, children }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
126
137
|
|
|
127
138
|
declare function ControlButton({ children, className, ...props }: React.PropsWithChildren<React.ButtonHTMLAttributes<HTMLButtonElement>>): react_jsx_runtime.JSX.Element;
|
|
128
139
|
|
|
@@ -197,7 +208,7 @@ declare function SidebarTabs({ menu, menuId, selectedKey, onSelectionChange, }:
|
|
|
197
208
|
|
|
198
209
|
declare function MetadataContainer({ className, label, children, ...props }: {
|
|
199
210
|
label: InternationalString | null;
|
|
200
|
-
} & React.HTMLAttributes<
|
|
211
|
+
} & React.HTMLAttributes<HTMLFieldSetElement>): react_jsx_runtime.JSX.Element;
|
|
201
212
|
|
|
202
213
|
declare function EmptyState(props: {
|
|
203
214
|
children: React.ReactNode;
|
|
@@ -212,6 +223,7 @@ declare function MeRadioGroup({ className, ...props }: any): react_jsx_runtime.J
|
|
|
212
223
|
declare function MeRadio({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
213
224
|
declare function MeForm({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
214
225
|
declare function MeInput({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
226
|
+
declare function MeTextArea({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
215
227
|
declare function MeInputContainer({ horizontal, className, ...props }: React.HTMLProps<HTMLDivElement> & {
|
|
216
228
|
horizontal?: boolean;
|
|
217
229
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -222,6 +234,7 @@ declare const Form: {
|
|
|
222
234
|
InputContainer: typeof MeInputContainer;
|
|
223
235
|
RadioGroup: typeof MeRadioGroup;
|
|
224
236
|
Radio: typeof MeRadio;
|
|
237
|
+
TextArea: typeof MeTextArea;
|
|
225
238
|
};
|
|
226
239
|
|
|
227
240
|
declare function HTMLEditor({ value, onChange, disabled, }: {
|
|
@@ -234,12 +247,15 @@ declare function MDXEditor({ editorRef, ...props }: {
|
|
|
234
247
|
editorRef?: ForwardedRef<MDXEditorMethods> | null;
|
|
235
248
|
} & MDXEditorProps): react_jsx_runtime.JSX.Element;
|
|
236
249
|
|
|
237
|
-
declare function IconButton({ children, active, label, disabled, onPress, }: {
|
|
250
|
+
declare function IconButton({ children, active, label, disabled, onPress, root, className, placement, }: {
|
|
238
251
|
children: React.ReactNode;
|
|
239
252
|
onPress?: () => void;
|
|
253
|
+
className?: string;
|
|
240
254
|
active?: boolean;
|
|
241
255
|
disabled?: boolean;
|
|
242
256
|
label: string;
|
|
257
|
+
placement?: Placement$1;
|
|
258
|
+
root?: HTMLElement;
|
|
243
259
|
}): react_jsx_runtime.JSX.Element;
|
|
244
260
|
|
|
245
261
|
declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
@@ -251,6 +267,18 @@ declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
|
251
267
|
|
|
252
268
|
declare const HandleContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
253
269
|
|
|
270
|
+
declare function CollectionListItem({ isActive, onAction }: {
|
|
271
|
+
isActive: boolean;
|
|
272
|
+
onAction: () => void;
|
|
273
|
+
}): react_jsx_runtime.JSX.Element;
|
|
274
|
+
|
|
275
|
+
declare function ManifestListItem({ isActive, onAction }: {
|
|
276
|
+
isActive: boolean;
|
|
277
|
+
onAction: () => void;
|
|
278
|
+
}): react_jsx_runtime.JSX.Element;
|
|
279
|
+
|
|
280
|
+
declare function Spinner(props: React$1.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
281
|
+
|
|
254
282
|
declare function CreateCanvasIcon(): react_jsx_runtime.JSX.Element;
|
|
255
283
|
|
|
256
284
|
declare const AddImageIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -263,8 +291,23 @@ declare const HTMLIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JS
|
|
|
263
291
|
|
|
264
292
|
declare const IIIFBrowserIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
265
293
|
|
|
294
|
+
declare function InfoIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
295
|
+
title?: string;
|
|
296
|
+
titleId?: string;
|
|
297
|
+
}): react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
299
|
+
declare function ListingIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
300
|
+
title?: string;
|
|
301
|
+
titleId?: string;
|
|
302
|
+
}): react_jsx_runtime.JSX.Element;
|
|
303
|
+
|
|
266
304
|
declare const YouTubeIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
267
305
|
|
|
306
|
+
declare function ListEditIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
307
|
+
title?: string;
|
|
308
|
+
titleId?: string;
|
|
309
|
+
}): react_jsx_runtime.JSX.Element;
|
|
310
|
+
|
|
268
311
|
declare const VideoIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
269
312
|
|
|
270
313
|
declare const AudioIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -286,6 +329,20 @@ declare function TextIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX
|
|
|
286
329
|
|
|
287
330
|
declare function MoreMenu(): react_jsx_runtime.JSX.Element;
|
|
288
331
|
|
|
332
|
+
declare function ManifestIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
333
|
+
|
|
334
|
+
declare function CollectionIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
335
|
+
|
|
336
|
+
declare function PreviewIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
337
|
+
|
|
338
|
+
declare function ImageListIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
339
|
+
|
|
340
|
+
declare function BackIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
341
|
+
|
|
342
|
+
declare function GridIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
343
|
+
|
|
344
|
+
declare function ScaledImageIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
345
|
+
|
|
289
346
|
interface ErrorMessageProps {
|
|
290
347
|
children: React__default.ReactNode;
|
|
291
348
|
small?: boolean;
|
|
@@ -315,4 +372,4 @@ interface IIIFMediaPlayerProps {
|
|
|
315
372
|
}
|
|
316
373
|
declare function IIIFMediaPlayer(props: IIIFMediaPlayerProps): react_jsx_runtime.JSX.Element;
|
|
317
374
|
|
|
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 };
|
|
375
|
+
export { AccessibilityButton, 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,20 +1,25 @@
|
|
|
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
|
|
|
19
|
+
declare function AccessibilityButton({ className, children, ...props }: ButtonProps & {
|
|
20
|
+
className?: string;
|
|
21
|
+
}): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
18
23
|
declare function Sidebar({ children }: {
|
|
19
24
|
children: React.ReactNode;
|
|
20
25
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -88,9 +93,12 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.HTM
|
|
|
88
93
|
asChild?: boolean;
|
|
89
94
|
onPress?: any;
|
|
90
95
|
}, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
91
|
-
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement
|
|
96
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement> & {
|
|
97
|
+
root?: HTMLElement;
|
|
98
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
92
99
|
declare function DefaultTooltipContent(props: {
|
|
93
100
|
className?: string;
|
|
101
|
+
root?: HTMLElement;
|
|
94
102
|
children: React$1.ReactNode;
|
|
95
103
|
}): react_jsx_runtime.JSX.Element;
|
|
96
104
|
|
|
@@ -122,7 +130,10 @@ interface ModalProps {
|
|
|
122
130
|
children: React.ReactNode;
|
|
123
131
|
actions?: React.ReactNode;
|
|
124
132
|
}
|
|
125
|
-
declare function
|
|
133
|
+
declare function ModalBackSlot({ children }: {
|
|
134
|
+
children: React.ReactNode;
|
|
135
|
+
}): React$1.ReactPortal | null;
|
|
136
|
+
declare function Modal({ id, title, open, onClose, actions, children }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
126
137
|
|
|
127
138
|
declare function ControlButton({ children, className, ...props }: React.PropsWithChildren<React.ButtonHTMLAttributes<HTMLButtonElement>>): react_jsx_runtime.JSX.Element;
|
|
128
139
|
|
|
@@ -197,7 +208,7 @@ declare function SidebarTabs({ menu, menuId, selectedKey, onSelectionChange, }:
|
|
|
197
208
|
|
|
198
209
|
declare function MetadataContainer({ className, label, children, ...props }: {
|
|
199
210
|
label: InternationalString | null;
|
|
200
|
-
} & React.HTMLAttributes<
|
|
211
|
+
} & React.HTMLAttributes<HTMLFieldSetElement>): react_jsx_runtime.JSX.Element;
|
|
201
212
|
|
|
202
213
|
declare function EmptyState(props: {
|
|
203
214
|
children: React.ReactNode;
|
|
@@ -212,6 +223,7 @@ declare function MeRadioGroup({ className, ...props }: any): react_jsx_runtime.J
|
|
|
212
223
|
declare function MeRadio({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
213
224
|
declare function MeForm({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
214
225
|
declare function MeInput({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
226
|
+
declare function MeTextArea({ className, ...props }: any): react_jsx_runtime.JSX.Element;
|
|
215
227
|
declare function MeInputContainer({ horizontal, className, ...props }: React.HTMLProps<HTMLDivElement> & {
|
|
216
228
|
horizontal?: boolean;
|
|
217
229
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -222,6 +234,7 @@ declare const Form: {
|
|
|
222
234
|
InputContainer: typeof MeInputContainer;
|
|
223
235
|
RadioGroup: typeof MeRadioGroup;
|
|
224
236
|
Radio: typeof MeRadio;
|
|
237
|
+
TextArea: typeof MeTextArea;
|
|
225
238
|
};
|
|
226
239
|
|
|
227
240
|
declare function HTMLEditor({ value, onChange, disabled, }: {
|
|
@@ -234,12 +247,15 @@ declare function MDXEditor({ editorRef, ...props }: {
|
|
|
234
247
|
editorRef?: ForwardedRef<MDXEditorMethods> | null;
|
|
235
248
|
} & MDXEditorProps): react_jsx_runtime.JSX.Element;
|
|
236
249
|
|
|
237
|
-
declare function IconButton({ children, active, label, disabled, onPress, }: {
|
|
250
|
+
declare function IconButton({ children, active, label, disabled, onPress, root, className, placement, }: {
|
|
238
251
|
children: React.ReactNode;
|
|
239
252
|
onPress?: () => void;
|
|
253
|
+
className?: string;
|
|
240
254
|
active?: boolean;
|
|
241
255
|
disabled?: boolean;
|
|
242
256
|
label: string;
|
|
257
|
+
placement?: Placement$1;
|
|
258
|
+
root?: HTMLElement;
|
|
243
259
|
}): react_jsx_runtime.JSX.Element;
|
|
244
260
|
|
|
245
261
|
declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
@@ -251,6 +267,18 @@ declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
|
251
267
|
|
|
252
268
|
declare const HandleContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
253
269
|
|
|
270
|
+
declare function CollectionListItem({ isActive, onAction }: {
|
|
271
|
+
isActive: boolean;
|
|
272
|
+
onAction: () => void;
|
|
273
|
+
}): react_jsx_runtime.JSX.Element;
|
|
274
|
+
|
|
275
|
+
declare function ManifestListItem({ isActive, onAction }: {
|
|
276
|
+
isActive: boolean;
|
|
277
|
+
onAction: () => void;
|
|
278
|
+
}): react_jsx_runtime.JSX.Element;
|
|
279
|
+
|
|
280
|
+
declare function Spinner(props: React$1.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
281
|
+
|
|
254
282
|
declare function CreateCanvasIcon(): react_jsx_runtime.JSX.Element;
|
|
255
283
|
|
|
256
284
|
declare const AddImageIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -263,8 +291,23 @@ declare const HTMLIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JS
|
|
|
263
291
|
|
|
264
292
|
declare const IIIFBrowserIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
265
293
|
|
|
294
|
+
declare function InfoIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
295
|
+
title?: string;
|
|
296
|
+
titleId?: string;
|
|
297
|
+
}): react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
299
|
+
declare function ListingIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
300
|
+
title?: string;
|
|
301
|
+
titleId?: string;
|
|
302
|
+
}): react_jsx_runtime.JSX.Element;
|
|
303
|
+
|
|
266
304
|
declare const YouTubeIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
267
305
|
|
|
306
|
+
declare function ListEditIcon({ title, titleId, ...props }: SVGProps<SVGSVGElement> & {
|
|
307
|
+
title?: string;
|
|
308
|
+
titleId?: string;
|
|
309
|
+
}): react_jsx_runtime.JSX.Element;
|
|
310
|
+
|
|
268
311
|
declare const VideoIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
269
312
|
|
|
270
313
|
declare const AudioIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -286,6 +329,20 @@ declare function TextIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX
|
|
|
286
329
|
|
|
287
330
|
declare function MoreMenu(): react_jsx_runtime.JSX.Element;
|
|
288
331
|
|
|
332
|
+
declare function ManifestIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
333
|
+
|
|
334
|
+
declare function CollectionIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
335
|
+
|
|
336
|
+
declare function PreviewIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
337
|
+
|
|
338
|
+
declare function ImageListIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
339
|
+
|
|
340
|
+
declare function BackIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
341
|
+
|
|
342
|
+
declare function GridIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
343
|
+
|
|
344
|
+
declare function ScaledImageIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
345
|
+
|
|
289
346
|
interface ErrorMessageProps {
|
|
290
347
|
children: React__default.ReactNode;
|
|
291
348
|
small?: boolean;
|
|
@@ -315,4 +372,4 @@ interface IIIFMediaPlayerProps {
|
|
|
315
372
|
}
|
|
316
373
|
declare function IIIFMediaPlayer(props: IIIFMediaPlayerProps): react_jsx_runtime.JSX.Element;
|
|
317
374
|
|
|
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 };
|
|
375
|
+
export { AccessibilityButton, 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 };
|