@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.
Files changed (37) hide show
  1. package/README.md +2 -0
  2. package/dist/Theme.d.ts +1 -1
  3. package/dist/components/ApiDoc/ApiDoc.d.ts +1 -1
  4. package/dist/components/AuthorInfo/AuthorInfo.d.ts +1 -1
  5. package/dist/components/Authors/Authors.d.ts +1 -1
  6. package/dist/components/Commit/Commit.d.ts +1 -1
  7. package/dist/components/DebouncedInput/DebouncedInput.d.ts +1 -1
  8. package/dist/components/DocPage/DocPage.d.ts +5 -1
  9. package/dist/components/DownloadButton/DownloadButton.d.ts +1 -1
  10. package/dist/components/IdCopy/IdCopy.d.ts +1 -1
  11. package/dist/components/IdLink/IdLink.d.ts +1 -1
  12. package/dist/components/LanguageMenu/LanguageMenu.d.ts +1 -1
  13. package/dist/components/Navigation/NavBar.d.ts +1 -1
  14. package/dist/components/Navigation/NavItem.d.ts +1 -1
  15. package/dist/components/Navigation/NavMenu.d.ts +1 -1
  16. package/dist/components/TEIText/TEIText.d.ts +1 -1
  17. package/dist/components/Table/Table.d.ts +2 -2
  18. package/dist/components/Tabs/Tabs.d.ts +1 -1
  19. package/dist/components/Years/Years.d.ts +1 -1
  20. package/dist/components/icons/Bibtex.d.ts +1 -1
  21. package/dist/components/icons/Csv.d.ts +1 -1
  22. package/dist/components/icons/Dracor.d.ts +1 -1
  23. package/dist/components/icons/Ein.d.ts +1 -1
  24. package/dist/components/icons/Gexf.d.ts +1 -1
  25. package/dist/components/icons/Graphml.d.ts +1 -1
  26. package/dist/components/icons/Json.d.ts +1 -1
  27. package/dist/components/icons/Rdf.d.ts +1 -1
  28. package/dist/components/icons/Ris.d.ts +1 -1
  29. package/dist/components/icons/Tei.d.ts +1 -1
  30. package/dist/components/icons/Txt.d.ts +1 -1
  31. package/dist/einakter-gh.d.ts +1 -1
  32. package/dist/index.es.js +1255 -1521
  33. package/dist/index.es.js.map +1 -1
  34. package/dist/index.umd.js +6 -6
  35. package/dist/index.umd.js.map +1 -1
  36. package/package.json +35 -31
  37. package/src/dracor.css +67 -0
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dracor-react
2
2
 
3
+ [![codecov](https://codecov.io/gh/dracor-org/dracor-react/graph/badge.svg)](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
@@ -9,4 +9,4 @@
9
9
  *
10
10
  * The following text demonstrates how this theme styles certain HTML elements.
11
11
  */
12
- export default function Theme(): import("react/jsx-runtime").JSX.Element;
12
+ export default function Theme(): import("react").JSX.Element;
@@ -23,4 +23,4 @@ export interface Props {
23
23
  * <ApiDoc url="/api.yaml" />
24
24
  * ```
25
25
  */
26
- export default function ApiDoc({ url, title }: Props): import("react/jsx-runtime").JSX.Element;
26
+ export default function ApiDoc({ url, title }: Props): import("react").JSX.Element;
@@ -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/jsx-runtime").JSX.Element;
8
+ export default function AuthorInfo({ wikidataId, name: fullname, birthLabel, deathLabel, unknownLabel, }: Props): import("react").JSX.Element;
@@ -6,5 +6,5 @@ interface Author {
6
6
  export interface Props {
7
7
  data: Author[];
8
8
  }
9
- declare const Authors: ({ data }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Authors: ({ data }: Props) => import("react").JSX.Element;
10
10
  export default Authors;
@@ -2,4 +2,4 @@ export interface Props {
2
2
  repo?: string;
3
3
  children: string;
4
4
  }
5
- export default function Commit({ repo, children }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export default function Commit({ repo, children }: 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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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): import("react/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
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/jsx-runtime").JSX.Element;
11
+ }): import("react").JSX.Element;
@@ -5,5 +5,5 @@ type TabData = LinkProps & {
5
5
  export interface Props {
6
6
  data: TabData[];
7
7
  }
8
- export default function Tabs({ data: tabs }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export default function Tabs({ data: tabs }: Props): import("react").JSX.Element;
9
9
  export {};
@@ -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/jsx-runtime").JSX.Element;
10
+ export default function Years({ written, premiere, print, locale, labelPremiered, labelPrinted, labelWritten, }: Props): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgBibtex: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgBibtex: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgBibtex;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgCsv: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgCsv: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgCsv;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgDracor: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgDracor: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgDracor;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgEin: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgEin: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgEin;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgGexf: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgGexf: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgGexf;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgGraphml: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgGraphml: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgGraphml;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgJson: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgJson: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgJson;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgRdf: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgRdf: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgRdf;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgRis: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgRis: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgRis;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgTei: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgTei: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgTei;
@@ -1,3 +1,3 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgTxt: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SvgTxt: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
3
3
  export default SvgTxt;
@@ -1,2 +1,2 @@
1
- declare const icon: import("react/jsx-runtime").JSX.Element;
1
+ declare const icon: import("react").JSX.Element;
2
2
  export default icon;