@dracor/react 1.0.0 → 1.2.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/README.md +2 -0
- package/dist/Theme.d.ts +1 -1
- package/dist/components/ApiDoc/ApiDoc.d.ts +1 -1
- package/dist/components/AuthorInfo/AuthorInfo.d.ts +1 -1
- package/dist/components/Authors/Authors.d.ts +1 -1
- package/dist/components/Commit/Commit.d.ts +1 -1
- package/dist/components/DebouncedInput/DebouncedInput.d.ts +1 -1
- package/dist/components/DocPage/DocPage.d.ts +5 -1
- package/dist/components/DownloadButton/DownloadButton.d.ts +1 -1
- package/dist/components/IdCopy/IdCopy.d.ts +1 -1
- package/dist/components/IdLink/IdLink.d.ts +1 -1
- package/dist/components/LanguageMenu/LanguageMenu.d.ts +1 -1
- package/dist/components/Navigation/NavBar.d.ts +1 -1
- package/dist/components/Navigation/NavItem.d.ts +1 -1
- package/dist/components/Navigation/NavMenu.d.ts +1 -1
- package/dist/components/TEIText/TEIText.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Years/Years.d.ts +1 -1
- package/dist/components/icons/Bibtex.d.ts +1 -1
- package/dist/components/icons/Csv.d.ts +1 -1
- package/dist/components/icons/Dracor.d.ts +1 -1
- package/dist/components/icons/Ein.d.ts +1 -1
- package/dist/components/icons/Gexf.d.ts +1 -1
- package/dist/components/icons/Graphml.d.ts +1 -1
- package/dist/components/icons/Json.d.ts +1 -1
- package/dist/components/icons/Rdf.d.ts +1 -1
- package/dist/components/icons/Ris.d.ts +1 -1
- package/dist/components/icons/Tei.d.ts +1 -1
- package/dist/components/icons/Txt.d.ts +1 -1
- package/dist/einakter-gh.d.ts +1 -1
- package/dist/index.es.js +1255 -1521
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +35 -31
- package/src/dracor.css +67 -0
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# dracor-react
|
|
2
2
|
|
|
3
|
+
[](https://codecov.io/gh/dracor-org/dracor-react)
|
|
4
|
+
|
|
3
5
|
The _DraCor React Component Library_ provides reusable [react](https://react.dev)
|
|
4
6
|
components for various [DraCor](https://dracor.org) and related projects.
|
|
5
7
|
|
package/dist/Theme.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export interface Props {
|
|
|
5
5
|
deathLabel?: string;
|
|
6
6
|
unknownLabel?: string;
|
|
7
7
|
}
|
|
8
|
-
export default function AuthorInfo({ wikidataId, name: fullname, birthLabel, deathLabel, unknownLabel, }: Props): import("react
|
|
8
|
+
export default function AuthorInfo({ wikidataId, name: fullname, birthLabel, deathLabel, unknownLabel, }: Props): import("react").JSX.Element;
|
|
@@ -2,4 +2,4 @@ export default function DebouncedInput({ value: initialValue, onChange, debounce
|
|
|
2
2
|
value: string | number;
|
|
3
3
|
onChange: (value: string | number) => void;
|
|
4
4
|
debounce?: number;
|
|
5
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>): import("react
|
|
5
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>): import("react").JSX.Element;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { Components } from 'react-markdown';
|
|
2
|
+
import { PluggableList } from 'unified';
|
|
1
3
|
export interface Props {
|
|
2
4
|
url?: string;
|
|
3
5
|
match?: () => string | null;
|
|
6
|
+
components?: Components;
|
|
7
|
+
rehypePlugins?: PluggableList;
|
|
4
8
|
}
|
|
5
|
-
export default function DocPage({ url, match }: Props): import("react
|
|
9
|
+
export default function DocPage({ url, match, components, rehypePlugins, }: Props): import("react").JSX.Element;
|
|
@@ -19,4 +19,4 @@ export interface Props {
|
|
|
19
19
|
* The download button displays an icon for the supported file types. If the
|
|
20
20
|
* type is omitted the download file name is displayed as link text.
|
|
21
21
|
*/
|
|
22
|
-
export default function DownloadButton({ href, type, name }: Props): import("react
|
|
22
|
+
export default function DownloadButton({ href, type, name }: Props): import("react").JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface Props {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
icon?: 'ein' | 'dracor';
|
|
7
7
|
}
|
|
8
|
-
export default function IdCopy({ children, className, uri, prefix, icon, }: Props): import("react
|
|
8
|
+
export default function IdCopy({ children, className, uri, prefix, icon, }: Props): import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -4,4 +4,4 @@ export interface Props {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
children: string;
|
|
6
6
|
}
|
|
7
|
-
export default function IdLink({ showLabel, children, className }: Props): import("react
|
|
7
|
+
export default function IdLink({ showLabel, children, className }: Props): import("react").JSX.Element;
|
|
@@ -3,4 +3,4 @@ export interface Props {
|
|
|
3
3
|
current?: string;
|
|
4
4
|
onSelect: (lang: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export default function LanguageMenu({ languages, current, onSelect, }: Props): import("react
|
|
6
|
+
export default function LanguageMenu({ languages, current, onSelect, }: Props): import("react").JSX.Element;
|
|
@@ -12,4 +12,4 @@ export interface NavBarProps {
|
|
|
12
12
|
navItems?: (NavItemProps | NavMenuProps)[];
|
|
13
13
|
addItem?: JSX.Element;
|
|
14
14
|
}
|
|
15
|
-
export default function NavBar({ title, logo, logoClass, version, gitHubUrl, gitHubIcon, gitHubTitle, addItem, navItems, }: NavBarProps):
|
|
15
|
+
export default function NavBar({ title, logo, logoClass, version, gitHubUrl, gitHubIcon, gitHubTitle, addItem, navItems, }: NavBarProps): JSX.Element;
|
|
@@ -3,4 +3,4 @@ export type Props = LinkProps & {
|
|
|
3
3
|
label: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export default function NavItem({ label, to, params, href, className }: Props): import("react
|
|
6
|
+
export default function NavItem({ label, to, params, href, className }: Props): import("react").JSX.Element;
|
|
@@ -7,5 +7,5 @@ export interface Props {
|
|
|
7
7
|
items: Item[];
|
|
8
8
|
menuClass?: string;
|
|
9
9
|
}
|
|
10
|
-
export default function NavMenu({ label, items, menuClass }: Props): import("react
|
|
10
|
+
export default function NavMenu({ label, items, menuClass }: Props): import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -10,4 +10,4 @@ export interface Props {
|
|
|
10
10
|
* The DraCor Tailwind theme provides some styling for the TEI elements. Import
|
|
11
11
|
* the theme adding `@import "@dracor/react/dracor.css";` to your index.css.
|
|
12
12
|
*/
|
|
13
|
-
export default function TEIText({ url }: Props): import("react
|
|
13
|
+
export default function TEIText({ url }: Props): import("react").JSX.Element;
|
|
@@ -4,8 +4,8 @@ export interface Props<TData = unknown> {
|
|
|
4
4
|
columns: ColumnDef<TData>[];
|
|
5
5
|
defaultSort?: SortingState;
|
|
6
6
|
}
|
|
7
|
-
declare function Table<T>({ columns, data: initialData, defaultSort }: Props<T>): import("react
|
|
7
|
+
declare function Table<T>({ columns, data: initialData, defaultSort }: Props<T>): import("react").JSX.Element;
|
|
8
8
|
export default Table;
|
|
9
9
|
export declare function SortIndicator({ status }: {
|
|
10
10
|
status: false | SortDirection;
|
|
11
|
-
}): import("react
|
|
11
|
+
}): import("react").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export interface Props {
|
|
|
7
7
|
labelPremiered?: string;
|
|
8
8
|
labelPrinted?: string;
|
|
9
9
|
}
|
|
10
|
-
export default function Years({ written, premiere, print, locale, labelPremiered, labelPrinted, labelWritten, }: Props): import("react
|
|
10
|
+
export default function Years({ written, premiere, print, locale, labelPremiered, labelPrinted, labelWritten, }: Props): import("react").JSX.Element;
|
package/dist/einakter-gh.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const icon: import("react
|
|
1
|
+
declare const icon: import("react").JSX.Element;
|
|
2
2
|
export default icon;
|