@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.
- package/README.md +6 -2
- package/ceteicean.js +46 -0
- package/dist/cjs/index.js +4433 -101
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ApiDoc/ApiDoc.stories.d.ts +3 -1
- package/dist/cjs/types/components/AuthorInfo/AuthorInfo.d.ts +7 -0
- package/dist/cjs/types/components/AuthorInfo/AuthorInfo.stories.d.ts +10 -0
- package/dist/cjs/types/components/AuthorInfo/AuthorInfo.test.d.ts +1 -0
- package/dist/cjs/types/components/AuthorInfo/index.d.ts +1 -0
- package/dist/cjs/types/components/Navigation/NavBar.stories.d.ts +4 -2
- package/dist/cjs/types/components/Navigation/NavItem.stories.d.ts +4 -2
- package/dist/cjs/types/components/Navigation/NavMenu.stories.d.ts +4 -2
- package/dist/cjs/types/components/TEIText/TEIText.d.ts +14 -0
- package/dist/cjs/types/components/TEIText/TEIText.stories.d.ts +10 -0
- package/dist/cjs/types/components/TEIText/index.d.ts +1 -0
- package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +9 -2
- package/dist/cjs/types/components/index.d.ts +2 -1
- package/dist/esm/index.js +4434 -103
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ApiDoc/ApiDoc.stories.d.ts +3 -1
- package/dist/esm/types/components/AuthorInfo/AuthorInfo.d.ts +7 -0
- package/dist/esm/types/components/AuthorInfo/AuthorInfo.stories.d.ts +10 -0
- package/dist/esm/types/components/AuthorInfo/AuthorInfo.test.d.ts +1 -0
- package/dist/esm/types/components/AuthorInfo/index.d.ts +1 -0
- package/dist/esm/types/components/Navigation/NavBar.stories.d.ts +4 -2
- package/dist/esm/types/components/Navigation/NavItem.stories.d.ts +4 -2
- package/dist/esm/types/components/Navigation/NavMenu.stories.d.ts +4 -2
- package/dist/esm/types/components/TEIText/TEIText.d.ts +14 -0
- package/dist/esm/types/components/TEIText/TEIText.stories.d.ts +10 -0
- package/dist/esm/types/components/TEIText/index.d.ts +1 -0
- package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +9 -2
- package/dist/esm/types/components/index.d.ts +2 -1
- package/dist/index.d.ts +35 -18
- package/package.json +15 -11
- package/tailwind.js +2 -1
|
@@ -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 {};
|
|
@@ -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/
|
|
7
|
+
decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
|
|
8
8
|
parameters: {
|
|
9
9
|
reactRouter: {
|
|
10
|
-
|
|
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/
|
|
7
|
+
decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
|
|
8
8
|
parameters: {
|
|
9
9
|
reactRouter: {
|
|
10
|
-
|
|
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/
|
|
7
|
+
decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
|
|
8
8
|
parameters: {
|
|
9
9
|
reactRouter: {
|
|
10
|
-
|
|
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/
|
|
7
|
+
decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
|
|
8
8
|
parameters: {
|
|
9
9
|
reactRouter: {
|
|
10
|
-
|
|
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
|
|
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';
|