Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredge committed Jan 30, 2024
1 parent b15340f commit 3824539
Show file tree
Hide file tree
Showing 28 changed files with 3,676 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
1 change: 0 additions & 1 deletion README.md

This file was deleted.

96 changes: 96 additions & 0 deletions packages/components/dist/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/components/dist/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions packages/components/dist/index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import React from 'react';

declare const RunningH1: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH2: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH3: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH4: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH5: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH6: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;

declare const PageTop: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const CurrentPageTop: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const PageBottom: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const PageBreak: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const NoBreak: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const FloatBottom: (props: any) => React.JSX.Element;

declare const PageNumber: () => React.JSX.Element;
declare const TotalPages: () => React.JSX.Element;

declare const formatters: {
date: (language: string, options: Intl.DateTimeFormatOptions) => (date: string) => string;
raw: () => (value: string) => string;
};
interface Frontmatter {
[key: string]: any;
}
declare const Frontmatter: ({ field, placeholder, formatter, optional, }: {
field: string;
placeholder?: string | undefined;
formatter?: ((value: string) => string) | undefined;
optional?: boolean | undefined;
}) => string;
declare const FrontmatterProvider: ({ frontmatter, children, }: {
frontmatter: Frontmatter;
children: React.ReactNode;
}) => React.JSX.Element;
declare const useFrontmatter: (field: string) => any;

/**
* Creates an automatically numbered footnote.
*/
declare const Footnote: ({ children, ...props }: {
/**
* The text to display in the footnote. This can be rich text.
*/
children: React.ReactNode;
}) => React.JSX.Element;

type SigTypes = "sender" | "signer" | `signer${number}`;

declare const Signature: ({ company, representative, tag, }: {
company?: string | undefined;
representative?: string | undefined;
tag: SigTypes;
}) => React.JSX.Element;

declare const TrackBox: ({ children, tag, ...props }: React.HTMLAttributes<HTMLDivElement> & {
children?: React.ReactNode;
tag: string;
}) => React.JSX.Element;

export { CurrentPageTop, FloatBottom, Footnote, Frontmatter, FrontmatterProvider, NoBreak, PageBottom, PageBreak, PageNumber, PageTop, RunningH1, RunningH2, RunningH3, RunningH4, RunningH5, RunningH6, Signature, TotalPages, TrackBox, formatters, useFrontmatter };
80 changes: 80 additions & 0 deletions packages/components/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import React from 'react';

declare const RunningH1: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH2: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH3: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH4: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH5: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;
declare const RunningH6: ({ before, after }: {
before?: string | undefined;
after?: string | undefined;
}) => React.JSX.Element;

declare const PageTop: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const CurrentPageTop: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const PageBottom: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const PageBreak: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const NoBreak: (props: React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
declare const FloatBottom: (props: any) => React.JSX.Element;

declare const PageNumber: () => React.JSX.Element;
declare const TotalPages: () => React.JSX.Element;

declare const formatters: {
date: (language: string, options: Intl.DateTimeFormatOptions) => (date: string) => string;
raw: () => (value: string) => string;
};
interface Frontmatter {
[key: string]: any;
}
declare const Frontmatter: ({ field, placeholder, formatter, optional, }: {
field: string;
placeholder?: string | undefined;
formatter?: ((value: string) => string) | undefined;
optional?: boolean | undefined;
}) => string;
declare const FrontmatterProvider: ({ frontmatter, children, }: {
frontmatter: Frontmatter;
children: React.ReactNode;
}) => React.JSX.Element;
declare const useFrontmatter: (field: string) => any;

/**
* Creates an automatically numbered footnote.
*/
declare const Footnote: ({ children, ...props }: {
/**
* The text to display in the footnote. This can be rich text.
*/
children: React.ReactNode;
}) => React.JSX.Element;

type SigTypes = "sender" | "signer" | `signer${number}`;

declare const Signature: ({ company, representative, tag, }: {
company?: string | undefined;
representative?: string | undefined;
tag: SigTypes;
}) => React.JSX.Element;

declare const TrackBox: ({ children, tag, ...props }: React.HTMLAttributes<HTMLDivElement> & {
children?: React.ReactNode;
tag: string;
}) => React.JSX.Element;

export { CurrentPageTop, FloatBottom, Footnote, Frontmatter, FrontmatterProvider, NoBreak, PageBottom, PageBreak, PageNumber, PageTop, RunningH1, RunningH2, RunningH3, RunningH4, RunningH5, RunningH6, Signature, TotalPages, TrackBox, formatters, useFrontmatter };
Loading

0 comments on commit 3824539

Please sign in to comment.