@dracor/react 0.8.0 → 0.9.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 (35) hide show
  1. package/README.md +6 -2
  2. package/ceteicean.js +46 -0
  3. package/dist/cjs/index.js +4433 -101
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/types/components/ApiDoc/ApiDoc.stories.d.ts +3 -1
  6. package/dist/cjs/types/components/AuthorInfo/AuthorInfo.d.ts +7 -0
  7. package/dist/cjs/types/components/AuthorInfo/AuthorInfo.stories.d.ts +10 -0
  8. package/dist/cjs/types/components/AuthorInfo/AuthorInfo.test.d.ts +1 -0
  9. package/dist/cjs/types/components/AuthorInfo/index.d.ts +1 -0
  10. package/dist/cjs/types/components/Navigation/NavBar.stories.d.ts +4 -2
  11. package/dist/cjs/types/components/Navigation/NavItem.stories.d.ts +4 -2
  12. package/dist/cjs/types/components/Navigation/NavMenu.stories.d.ts +4 -2
  13. package/dist/cjs/types/components/TEIText/TEIText.d.ts +14 -0
  14. package/dist/cjs/types/components/TEIText/TEIText.stories.d.ts +10 -0
  15. package/dist/cjs/types/components/TEIText/index.d.ts +1 -0
  16. package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +9 -2
  17. package/dist/cjs/types/components/index.d.ts +2 -1
  18. package/dist/esm/index.js +4434 -103
  19. package/dist/esm/index.js.map +1 -1
  20. package/dist/esm/types/components/ApiDoc/ApiDoc.stories.d.ts +3 -1
  21. package/dist/esm/types/components/AuthorInfo/AuthorInfo.d.ts +7 -0
  22. package/dist/esm/types/components/AuthorInfo/AuthorInfo.stories.d.ts +10 -0
  23. package/dist/esm/types/components/AuthorInfo/AuthorInfo.test.d.ts +1 -0
  24. package/dist/esm/types/components/AuthorInfo/index.d.ts +1 -0
  25. package/dist/esm/types/components/Navigation/NavBar.stories.d.ts +4 -2
  26. package/dist/esm/types/components/Navigation/NavItem.stories.d.ts +4 -2
  27. package/dist/esm/types/components/Navigation/NavMenu.stories.d.ts +4 -2
  28. package/dist/esm/types/components/TEIText/TEIText.d.ts +14 -0
  29. package/dist/esm/types/components/TEIText/TEIText.stories.d.ts +10 -0
  30. package/dist/esm/types/components/TEIText/index.d.ts +1 -0
  31. package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +9 -2
  32. package/dist/esm/types/components/index.d.ts +2 -1
  33. package/dist/index.d.ts +35 -18
  34. package/package.json +15 -11
  35. package/tailwind.js +2 -1
@@ -10,7 +10,9 @@ declare const meta: {
10
10
  }>) => import("react/jsx-runtime").JSX.Element)[];
11
11
  parameters: {
12
12
  reactRouter: {
13
- routePath: string;
13
+ routing: {
14
+ path: string;
15
+ };
14
16
  };
15
17
  };
16
18
  };
@@ -0,0 +1,7 @@
1
+ export interface Props {
2
+ wikidataId: string;
3
+ name?: string;
4
+ birthLabel?: string;
5
+ deathLabel?: string;
6
+ }
7
+ export default function AuthorInfo({ wikidataId, name: fullname, birthLabel, deathLabel }: Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import AuthorInfo from './AuthorInfo';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof AuthorInfo;
6
+ tags: string[];
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const Shakespeare: Story;
@@ -0,0 +1 @@
1
+ export { default } from './AuthorInfo';
@@ -4,10 +4,12 @@ declare const meta: {
4
4
  title: string;
5
5
  component: typeof NavBar;
6
6
  tags: string[];
7
- decorators: import("@storybook/preview-api/dist/storybook-channel-mock-a19cd233").M[];
7
+ decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
8
8
  parameters: {
9
9
  reactRouter: {
10
- routePath: string;
10
+ routing: {
11
+ path: string;
12
+ };
11
13
  };
12
14
  };
13
15
  argTypes: {
@@ -4,10 +4,12 @@ declare const meta: {
4
4
  title: string;
5
5
  component: typeof NavItem;
6
6
  tags: string[];
7
- decorators: import("@storybook/preview-api/dist/storybook-channel-mock-a19cd233").M[];
7
+ decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
8
8
  parameters: {
9
9
  reactRouter: {
10
- routePath: string;
10
+ routing: {
11
+ path: string;
12
+ };
11
13
  };
12
14
  };
13
15
  };
@@ -4,10 +4,12 @@ declare const meta: {
4
4
  title: string;
5
5
  component: typeof NavMenu;
6
6
  tags: string[];
7
- decorators: import("@storybook/preview-api/dist/storybook-channel-mock-a19cd233").M[];
7
+ decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
8
8
  parameters: {
9
9
  reactRouter: {
10
- routePath: string;
10
+ routing: {
11
+ path: string;
12
+ };
11
13
  };
12
14
  };
13
15
  };
@@ -0,0 +1,14 @@
1
+ export interface Props {
2
+ /**
3
+ * URL to a TEI document
4
+ */
5
+ url: string;
6
+ }
7
+ /**
8
+ * Component rendering a TEI document using [CETEIcean](https://github.com/TEIC/CETEIcean)
9
+ *
10
+ * Styling of the TEI elements is supported via the `ceteicean` tailwindcss
11
+ * plugin. Add `require('@dracor/react/ceteicean')` to the plugins array of your
12
+ * tailwind.config.js.
13
+ */
14
+ export default function TEIText({ url }: Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import TEIText from './TEIText';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof TEIText;
6
+ tags: string[];
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const MobyDick: Story;
@@ -0,0 +1 @@
1
+ export { default } from './TEIText';
@@ -4,10 +4,17 @@ declare const meta: {
4
4
  title: string;
5
5
  component: typeof Tabs;
6
6
  tags: string[];
7
- decorators: import("@storybook/preview-api/dist/storybook-channel-mock-a19cd233").M[];
7
+ decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
8
8
  parameters: {
9
9
  reactRouter: {
10
- routePath: string;
10
+ location: {
11
+ pathParams: {
12
+ page: string;
13
+ };
14
+ };
15
+ routing: {
16
+ path: string;
17
+ };
11
18
  };
12
19
  };
13
20
  };
@@ -1,4 +1,4 @@
1
- export { default as ApiDoc } from './ApiDoc';
1
+ export { default as AuthorInfo } from './AuthorInfo';
2
2
  export { default as Authors } from './Authors';
3
3
  export { default as DebouncedInput } from './DebouncedInput';
4
4
  export { default as IdCopy } from './IdCopy';
@@ -6,4 +6,5 @@ export { default as IdLink } from './IdLink';
6
6
  export { default as NavBar } from './Navigation';
7
7
  export { default as Table } from './Table';
8
8
  export { default as Tabs } from './Tabs';
9
+ export { default as TEIText } from './TEIText';
9
10
  export { default as Years } from './Years';