@nurvus/ui 0.1.0-alpha.11 → 0.1.0-alpha.13
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 +20 -9
- package/dist/index.js +1 -1
- package/dist/nurvus.css +15 -0
- package/dist/respawn.js +2 -0
- package/dist/respawn.js.LICENSE.txt +5 -0
- package/dist/theme.js +1 -0
- package/dist/themes/all.css +231 -0
- package/dist/themes/apollo-white.css +33 -0
- package/dist/themes/apollo-white.json +52 -0
- package/dist/themes/arcane.css +33 -0
- package/dist/themes/arcane.json +52 -0
- package/dist/themes/dopamine.css +33 -0
- package/dist/themes/dopamine.json +52 -0
- package/dist/themes/nether-neon.css +33 -0
- package/dist/themes/nether-neon.json +52 -0
- package/dist/themes/nether.css +33 -0
- package/dist/themes/nether.json +52 -0
- package/dist/themes/outworld.css +33 -0
- package/dist/themes/outworld.json +52 -0
- package/dist/themes/roles.json +29 -0
- package/dist/themes/tokyo-neon.css +33 -0
- package/dist/themes/tokyo-neon.json +52 -0
- package/dist/types/components/Button/Button.d.ts +19 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +12 -0
- package/dist/types/components/FullPageModal/FullPageModal.d.ts +15 -0
- package/dist/types/components/HistoryList/HistoryList.d.ts +40 -0
- package/dist/types/components/Layout/Layout.d.ts +27 -0
- package/dist/types/components/Link/Link.d.ts +9 -0
- package/dist/types/components/Menu/Menu.d.ts +35 -0
- package/dist/types/components/NavList/NavList.d.ts +43 -0
- package/dist/types/components/Panel/Panel.d.ts +19 -0
- package/dist/types/components/Progress/Progress.d.ts +15 -0
- package/dist/types/components/Table/Table.d.ts +25 -0
- package/dist/types/components/Tag/Tag.d.ts +15 -0
- package/dist/types/components/Text/Text.d.ts +28 -0
- package/dist/types/components/Title/Title.d.ts +288 -0
- package/dist/types/constants.d.ts +5 -0
- package/dist/types/index.d.ts +32 -0
- package/dist/types/navList.d.ts +7 -0
- package/dist/types/respawn/Button.d.ts +16 -0
- package/dist/types/respawn/ButtonGroup.d.ts +8 -0
- package/dist/types/respawn/FullPageModal.d.ts +32 -0
- package/dist/types/respawn/HistoryList.d.ts +36 -0
- package/dist/types/respawn/Layout.d.ts +22 -0
- package/dist/types/respawn/Link.d.ts +12 -0
- package/dist/types/respawn/Menu.d.ts +33 -0
- package/dist/types/respawn/NavList.d.ts +43 -0
- package/dist/types/respawn/Panel.d.ts +15 -0
- package/dist/types/respawn/Progress.d.ts +15 -0
- package/dist/types/respawn/Table.d.ts +22 -0
- package/dist/types/respawn/Tag.d.ts +11 -0
- package/dist/types/respawn/Text.d.ts +19 -0
- package/dist/types/respawn/Title.d.ts +14 -0
- package/dist/types/respawn/index.d.ts +35 -0
- package/dist/types/respawn/spawn.d.ts +50 -0
- package/dist/types/respawn/update.d.ts +13 -0
- package/dist/types/spacing.d.ts +8 -0
- package/dist/types/theme.d.ts +32 -0
- package/dist/types/themes/index.d.ts +45 -0
- package/package.json +40 -12
- package/src/components/Button/Button.md +5 -5
- package/src/components/Button/Button.tsx +44 -0
- package/src/components/ButtonGroup/ButtonGroup.tsx +23 -0
- package/src/components/FullPageModal/FullPageModal.scss +9 -5
- package/src/components/FullPageModal/FullPageModal.tsx +74 -0
- package/src/components/HistoryList/{HistoryList.jsx → HistoryList.tsx} +45 -58
- package/src/components/Layout/Layout.md +4 -4
- package/src/components/Layout/Layout.scss +14 -47
- package/src/components/Layout/Layout.tsx +56 -0
- package/src/components/Link/Link.scss +9 -9
- package/src/components/Link/Link.tsx +23 -0
- package/src/components/Menu/Menu.tsx +90 -0
- package/src/components/NavList/NavList.md +39 -0
- package/src/components/NavList/NavList.scss +149 -0
- package/src/components/NavList/NavList.tsx +129 -0
- package/src/components/Panel/{Panel.jsx → Panel.tsx} +17 -26
- package/src/components/Progress/Progress.md +5 -5
- package/src/components/Progress/Progress.tsx +36 -0
- package/src/components/Table/Table.tsx +59 -0
- package/src/components/Tag/{Tag.jsx → Tag.tsx} +13 -18
- package/src/components/Text/Text.md +13 -0
- package/src/components/Text/Text.scss +6 -0
- package/src/components/Text/Text.tsx +54 -0
- package/src/components/Title/Title.tsx +42 -0
- package/src/constants.ts +6 -0
- package/src/css.ts +17 -0
- package/src/global.d.ts +3 -0
- package/src/index.ts +42 -0
- package/src/navList.ts +9 -0
- package/src/respawn/Button.ts +31 -0
- package/src/respawn/ButtonGroup.ts +19 -0
- package/src/respawn/FullPageModal.ts +125 -0
- package/src/respawn/HistoryList.ts +100 -0
- package/src/respawn/Layout.ts +44 -0
- package/src/respawn/Link.ts +24 -0
- package/src/respawn/Menu.ts +86 -0
- package/src/respawn/NavList.ts +126 -0
- package/src/respawn/Panel.ts +36 -0
- package/src/respawn/Progress.ts +29 -0
- package/src/respawn/Table.ts +54 -0
- package/src/respawn/Tag.ts +25 -0
- package/src/respawn/Text.ts +35 -0
- package/src/respawn/Title.ts +30 -0
- package/src/respawn/index.ts +59 -0
- package/src/respawn/spawn.ts +155 -0
- package/src/respawn/update.ts +49 -0
- package/src/spacing.ts +23 -0
- package/src/styles/theme.scss +6 -197
- package/src/styles/type.json +35 -5
- package/src/theme.ts +92 -0
- package/src/themes/css/all.css +231 -0
- package/src/themes/css/apollo-white.css +33 -0
- package/src/themes/css/arcane.css +33 -0
- package/src/themes/css/dopamine.css +33 -0
- package/src/themes/css/nether-neon.css +33 -0
- package/src/themes/css/nether.css +33 -0
- package/src/themes/css/outworld.css +33 -0
- package/src/themes/css/tokyo-neon.css +33 -0
- package/src/themes/index.ts +61 -0
- package/src/themes/roles.json +1 -1
- package/src/app.js +0 -29
- package/src/components/Button/Button.jsx +0 -59
- package/src/components/ButtonGroup/ButtonGroup.jsx +0 -28
- package/src/components/FullPageModal/FullPageModal.jsx +0 -106
- package/src/components/Layout/Layout.jsx +0 -68
- package/src/components/Link/Link.jsx +0 -39
- package/src/components/Menu/Menu.jsx +0 -120
- package/src/components/Progress/Progress.jsx +0 -56
- package/src/components/Table/Table.jsx +0 -94
- package/src/components/Text/Text.jsx +0 -54
- package/src/components/Title/Title.jsx +0 -48
- package/src/constants.js +0 -3
- package/src/index.js +0 -20
- package/src/theme.js +0 -64
- package/src/themes/index.js +0 -22
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface MenuItem {
|
|
3
|
+
/** What the row shows (unless itemRenderer draws it). */
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
/** Child rows, shown indented under this one. */
|
|
6
|
+
items?: MenuItem[];
|
|
7
|
+
/** Custom class name for this row. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Inline style for this row. */
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
/** Anything else your itemRenderer needs. */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export interface MenuProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
15
|
+
/** The rows to render; each can have child `items`. */
|
|
16
|
+
items?: MenuItem[];
|
|
17
|
+
/** The active row as a path of indexes, e.g. [2, 0] = the first child of the third row. */
|
|
18
|
+
activePath?: number[];
|
|
19
|
+
/** Draws a row's content instead of its label. */
|
|
20
|
+
itemRenderer?: (item: MenuItem) => React.ReactNode;
|
|
21
|
+
/** Called on a row click with the event and that row's path. */
|
|
22
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>, path: number[]) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Deepest level that still indents. Deeper rows stay at that indent, so the
|
|
25
|
+
* label keeps its room in a narrow panel.
|
|
26
|
+
*/
|
|
27
|
+
maxIndentDepth?: number;
|
|
28
|
+
/** Custom class name. */
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A nested list of rows, like a layers panel. Rows indent by depth, the
|
|
33
|
+
* active one is highlighted, and a click reports the row's path.
|
|
34
|
+
*/
|
|
35
|
+
export default function Menu({ activePath, className, itemRenderer, items, maxIndentDepth, onClick, children: _children, ...props }: MenuProps): React.ReactElement;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface NavListItem {
|
|
3
|
+
/** What the link says. */
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
/** Where it goes. The item whose href equals `current` is marked as the current page. */
|
|
6
|
+
href: string;
|
|
7
|
+
/** Draws a hairline above this item, to split a section into groups. */
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface NavListSection {
|
|
11
|
+
/** Stable id: names the section's open state and links its toggle to its list. Defaults to the title. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** The section heading. */
|
|
14
|
+
title: React.ReactNode;
|
|
15
|
+
/** Makes the heading a link too (e.g. to the section's overview page). */
|
|
16
|
+
href?: string;
|
|
17
|
+
/** The section's links. */
|
|
18
|
+
items: NavListItem[];
|
|
19
|
+
}
|
|
20
|
+
export interface NavListProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onToggle'> {
|
|
21
|
+
/** The sections, in order. */
|
|
22
|
+
sections: NavListSection[];
|
|
23
|
+
/** The href of the page being shown: its link is marked, and its section opens. */
|
|
24
|
+
current?: string;
|
|
25
|
+
/** Which sections start open: true (all), false (none) or a map of section id → open. Defaults to all. */
|
|
26
|
+
defaultOpen?: boolean | Record<string, boolean>;
|
|
27
|
+
/** Called when a section opens or closes (e.g. to remember it). */
|
|
28
|
+
onToggle?: (id: string, open: boolean) => void;
|
|
29
|
+
/** Called when any link is clicked, with its href (e.g. to close a drawer). */
|
|
30
|
+
onNavigate?: (href: string, event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
31
|
+
/** Accessible name of the navigation landmark. */
|
|
32
|
+
label?: string;
|
|
33
|
+
/** Prefix for the ids that link each toggle to its list. Defaults to "nav-list". */
|
|
34
|
+
id?: string;
|
|
35
|
+
/** Custom class name. */
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Site navigation: sections of links that open and close (an accordion, with
|
|
40
|
+
* a smooth animation), and the current page marked by a bar beside it.
|
|
41
|
+
* A section opens by itself when the current page is in it.
|
|
42
|
+
*/
|
|
43
|
+
export default function NavList({ sections, current, defaultOpen, onToggle, onNavigate, label, id, className, ...restProps }: NavListProps): React.ReactElement;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type PanelPadding = 'none' | 'small' | 'medium';
|
|
3
|
+
export interface PanelProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
|
|
4
|
+
/** Heading at the top of the panel. */
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
/** Footer line under a hairline, in caption type. */
|
|
7
|
+
caption?: React.ReactNode;
|
|
8
|
+
/** Inner spacing: none (e.g. a full-bleed image), small (12px) or medium (16px). */
|
|
9
|
+
padding?: PanelPadding;
|
|
10
|
+
/** The panel's content. */
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/** Custom class name. */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A card: the theme's surface, a hairline border and 12px corners, with an
|
|
17
|
+
* optional title and a caption footer. Use it to group related content.
|
|
18
|
+
*/
|
|
19
|
+
export default function Panel({ title, caption, padding, children, className, ...restProps }: PanelProps): React.ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ProgressSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export type ProgressStatus = 'active' | 'success' | 'warning' | 'critical';
|
|
4
|
+
export interface ProgressProps {
|
|
5
|
+
/** How far along, 0 to 100. */
|
|
6
|
+
percent?: number;
|
|
7
|
+
/** Bar height. */
|
|
8
|
+
size?: ProgressSize;
|
|
9
|
+
/** The bar color: active (accent), success, warning or critical (danger). */
|
|
10
|
+
status?: ProgressStatus;
|
|
11
|
+
/** Custom class name. */
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/** A progress bar. Use it to track progress! */
|
|
15
|
+
export default function Progress({ className, percent, size, status }: ProgressProps): React.ReactElement;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/** A row of data: any object. Its `key` (if any) keys the row. */
|
|
3
|
+
export type TableRow = Record<string, any>;
|
|
4
|
+
export interface TableColumn<Row extends TableRow = TableRow> extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'title'> {
|
|
5
|
+
/** Which field of each row this column shows. */
|
|
6
|
+
dataKey: string;
|
|
7
|
+
/** Header text. Defaults to the dataKey. */
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
/** Formats a cell: gets the value, the dataKey and the whole row. */
|
|
10
|
+
render?: (value: any, dataKey: string, row: Row) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface TableProps<Row extends TableRow = TableRow> {
|
|
13
|
+
/** The columns, in order. Any other column prop (e.g. style) goes on its `<th>` and `<td>`s. */
|
|
14
|
+
columns: TableColumn<Row>[];
|
|
15
|
+
/** The rows, in order. */
|
|
16
|
+
data: Row[];
|
|
17
|
+
/** Custom class name. */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A data table: one rounded frame, a tinted header row with sentence-case
|
|
22
|
+
* labels, hairlines between rows. Columns describe the fields; each can
|
|
23
|
+
* format its cells with `render`.
|
|
24
|
+
*/
|
|
25
|
+
export default function Table<Row extends TableRow = TableRow>({ className, columns, data }: TableProps<Row>): React.ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TagTone = 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** Color: neutral (muted text) or one of the theme's accent / status colors. */
|
|
5
|
+
tone?: TagTone;
|
|
6
|
+
/** The label. */
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Custom class name. */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A small pill for a status or label ("new", "preview", "demo"). The text and
|
|
13
|
+
* the border take the tone's theme color; the fill is a faint tint of it.
|
|
14
|
+
*/
|
|
15
|
+
export default function Tag({ tone, children, className, ...restProps }: TagProps): React.ReactElement;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TextVariant = 'display' | 'title' | 'body' | 'caption' | 'mono';
|
|
3
|
+
export type TextTone = 'default' | 'muted' | 'subtle';
|
|
4
|
+
export type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
5
|
+
export interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
/** The element to render: 'p' for a paragraph, 'span' inside a line, 'h1'…, 'label'. */
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
/**
|
|
9
|
+
* Type role: display (the one big headline), title (section headings),
|
|
10
|
+
* body (running text), caption (labels and notes), mono (values and code).
|
|
11
|
+
*/
|
|
12
|
+
variant?: TextVariant;
|
|
13
|
+
/** Text color from the theme: default (text), muted or subtle. */
|
|
14
|
+
tone?: TextTone;
|
|
15
|
+
/** Font weight, overriding the role's own: regular 400, medium 500, semibold 600, bold 700. */
|
|
16
|
+
weight?: TextWeight;
|
|
17
|
+
/** The text. */
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
/** Custom class name. */
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Text in one of the type roles (display, title, body, caption, mono). The
|
|
24
|
+
* sizes come from the `--nv-type-*` tokens, so every NURVUS page uses the same
|
|
25
|
+
* scale. Without a `variant` it inherits its parent's type. A paragraph is
|
|
26
|
+
* `<Text as="p" variant="body">`.
|
|
27
|
+
*/
|
|
28
|
+
export default function Text({ as: Element, variant, tone, weight, children, className, ...restProps }: TextProps): React.ReactElement;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TitleLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
export type TitleType = 'primary' | 'secondary';
|
|
4
|
+
export interface TitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
5
|
+
/** Heading level: 1 renders `<h1>` (24px) down to 6 (`<h6>`). */
|
|
6
|
+
level?: TitleLevel;
|
|
7
|
+
/** `primary` uses the theme's text color; `secondary` the muted one. */
|
|
8
|
+
type?: TitleType;
|
|
9
|
+
/** The heading text. */
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
/** Custom class name. */
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A heading, `<h1>` to `<h6>`, in the theme's text color. For the larger
|
|
16
|
+
* type roles (display, title, caption) use `Text` with a `variant`.
|
|
17
|
+
*/
|
|
18
|
+
export default function Title({ children, className, level, type, ...restProps }: TitleProps): React.DetailedReactHTMLElement<{
|
|
19
|
+
defaultChecked?: boolean | undefined;
|
|
20
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
21
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
22
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
23
|
+
accessKey?: string | undefined;
|
|
24
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
25
|
+
autoFocus?: boolean | undefined;
|
|
26
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
27
|
+
contextMenu?: string | undefined;
|
|
28
|
+
dir?: string | undefined;
|
|
29
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
30
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
31
|
+
hidden?: boolean | undefined;
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
lang?: string | undefined;
|
|
34
|
+
nonce?: string | undefined;
|
|
35
|
+
placeholder?: string | undefined;
|
|
36
|
+
slot?: string | undefined;
|
|
37
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
38
|
+
style?: React.CSSProperties | undefined;
|
|
39
|
+
tabIndex?: number | undefined;
|
|
40
|
+
title?: string | undefined;
|
|
41
|
+
translate?: "yes" | "no" | undefined;
|
|
42
|
+
radioGroup?: string | undefined;
|
|
43
|
+
role?: React.AriaRole | undefined;
|
|
44
|
+
about?: string | undefined;
|
|
45
|
+
content?: string | undefined;
|
|
46
|
+
datatype?: string | undefined;
|
|
47
|
+
inlist?: any;
|
|
48
|
+
prefix?: string | undefined;
|
|
49
|
+
property?: string | undefined;
|
|
50
|
+
rel?: string | undefined;
|
|
51
|
+
resource?: string | undefined;
|
|
52
|
+
rev?: string | undefined;
|
|
53
|
+
typeof?: string | undefined;
|
|
54
|
+
vocab?: string | undefined;
|
|
55
|
+
autoCorrect?: string | undefined;
|
|
56
|
+
autoSave?: string | undefined;
|
|
57
|
+
color?: string | undefined;
|
|
58
|
+
itemProp?: string | undefined;
|
|
59
|
+
itemScope?: boolean | undefined;
|
|
60
|
+
itemType?: string | undefined;
|
|
61
|
+
itemID?: string | undefined;
|
|
62
|
+
itemRef?: string | undefined;
|
|
63
|
+
results?: number | undefined;
|
|
64
|
+
security?: string | undefined;
|
|
65
|
+
unselectable?: "on" | "off" | undefined;
|
|
66
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
67
|
+
is?: string | undefined;
|
|
68
|
+
exportparts?: string | undefined;
|
|
69
|
+
part?: string | undefined;
|
|
70
|
+
"aria-activedescendant"?: string | undefined;
|
|
71
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
72
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
73
|
+
"aria-braillelabel"?: string | undefined;
|
|
74
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
75
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
76
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
77
|
+
"aria-colcount"?: number | undefined;
|
|
78
|
+
"aria-colindex"?: number | undefined;
|
|
79
|
+
"aria-colindextext"?: string | undefined;
|
|
80
|
+
"aria-colspan"?: number | undefined;
|
|
81
|
+
"aria-controls"?: string | undefined;
|
|
82
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
83
|
+
"aria-describedby"?: string | undefined;
|
|
84
|
+
"aria-description"?: string | undefined;
|
|
85
|
+
"aria-details"?: string | undefined;
|
|
86
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
87
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
88
|
+
"aria-errormessage"?: string | undefined;
|
|
89
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
90
|
+
"aria-flowto"?: string | undefined;
|
|
91
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
92
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
93
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
95
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
96
|
+
"aria-label"?: string | undefined;
|
|
97
|
+
"aria-labelledby"?: string | undefined;
|
|
98
|
+
"aria-level"?: number | undefined;
|
|
99
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
100
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
101
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
103
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
104
|
+
"aria-owns"?: string | undefined;
|
|
105
|
+
"aria-placeholder"?: string | undefined;
|
|
106
|
+
"aria-posinset"?: number | undefined;
|
|
107
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
108
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
109
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
110
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
111
|
+
"aria-roledescription"?: string | undefined;
|
|
112
|
+
"aria-rowcount"?: number | undefined;
|
|
113
|
+
"aria-rowindex"?: number | undefined;
|
|
114
|
+
"aria-rowindextext"?: string | undefined;
|
|
115
|
+
"aria-rowspan"?: number | undefined;
|
|
116
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
117
|
+
"aria-setsize"?: number | undefined;
|
|
118
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
119
|
+
"aria-valuemax"?: number | undefined;
|
|
120
|
+
"aria-valuemin"?: number | undefined;
|
|
121
|
+
"aria-valuenow"?: number | undefined;
|
|
122
|
+
"aria-valuetext"?: string | undefined;
|
|
123
|
+
dangerouslySetInnerHTML?: {
|
|
124
|
+
__html: string | TrustedHTML;
|
|
125
|
+
} | undefined;
|
|
126
|
+
onCopy?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
127
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
128
|
+
onCut?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
129
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
130
|
+
onPaste?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
131
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
132
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
133
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
134
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
135
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
136
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
137
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
138
|
+
onFocus?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
139
|
+
onFocusCapture?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
140
|
+
onBlur?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
141
|
+
onBlurCapture?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
142
|
+
onChange?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
143
|
+
onChangeCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
144
|
+
onBeforeInput?: React.InputEventHandler<HTMLHeadingElement> | undefined;
|
|
145
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
146
|
+
onInput?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
147
|
+
onInputCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
148
|
+
onReset?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
149
|
+
onResetCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
150
|
+
onSubmit?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
151
|
+
onSubmitCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
152
|
+
onInvalid?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
153
|
+
onInvalidCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
154
|
+
onLoad?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
155
|
+
onLoadCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
156
|
+
onError?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
157
|
+
onErrorCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
158
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
159
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
160
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
161
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
162
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
163
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
164
|
+
onAbort?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
165
|
+
onAbortCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
166
|
+
onCanPlay?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
167
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
168
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
169
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
170
|
+
onDurationChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
171
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
172
|
+
onEmptied?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
173
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
174
|
+
onEncrypted?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
175
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
176
|
+
onEnded?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
177
|
+
onEndedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
178
|
+
onLoadedData?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
179
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
180
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
181
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
182
|
+
onLoadStart?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
183
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
184
|
+
onPause?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
185
|
+
onPauseCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
186
|
+
onPlay?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
187
|
+
onPlayCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
188
|
+
onPlaying?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
189
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
190
|
+
onProgress?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
191
|
+
onProgressCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
192
|
+
onRateChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
193
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
194
|
+
onSeeked?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
195
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
196
|
+
onSeeking?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
197
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
198
|
+
onStalled?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
199
|
+
onStalledCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
200
|
+
onSuspend?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
201
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
202
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
203
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
204
|
+
onVolumeChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
205
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
206
|
+
onWaiting?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
207
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
208
|
+
onAuxClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
209
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
210
|
+
onClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
211
|
+
onClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
212
|
+
onContextMenu?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
213
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
214
|
+
onDoubleClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
215
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
216
|
+
onDrag?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
217
|
+
onDragCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
218
|
+
onDragEnd?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
219
|
+
onDragEndCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
220
|
+
onDragEnter?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
221
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
222
|
+
onDragExit?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
223
|
+
onDragExitCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
224
|
+
onDragLeave?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
225
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
226
|
+
onDragOver?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
227
|
+
onDragOverCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
228
|
+
onDragStart?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
229
|
+
onDragStartCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
230
|
+
onDrop?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
231
|
+
onDropCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
232
|
+
onMouseDown?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
233
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
234
|
+
onMouseEnter?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
235
|
+
onMouseLeave?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
236
|
+
onMouseMove?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
237
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
238
|
+
onMouseOut?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
239
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
240
|
+
onMouseOver?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
241
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
242
|
+
onMouseUp?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
243
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
244
|
+
onSelect?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
245
|
+
onSelectCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
246
|
+
onTouchCancel?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
247
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
248
|
+
onTouchEnd?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
249
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
250
|
+
onTouchMove?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
251
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
252
|
+
onTouchStart?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
253
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
254
|
+
onPointerDown?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
255
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
256
|
+
onPointerMove?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
257
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
258
|
+
onPointerUp?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
259
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
260
|
+
onPointerCancel?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
261
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
262
|
+
onPointerEnter?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
263
|
+
onPointerEnterCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
264
|
+
onPointerLeave?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
265
|
+
onPointerLeaveCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
266
|
+
onPointerOver?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
267
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
268
|
+
onPointerOut?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
269
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
270
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
271
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
272
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
273
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
274
|
+
onScroll?: React.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
275
|
+
onScrollCapture?: React.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
276
|
+
onWheel?: React.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
277
|
+
onWheelCapture?: React.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
278
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
279
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
280
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
281
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
282
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
283
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
284
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
285
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
286
|
+
className: string;
|
|
287
|
+
'data-type': TitleType;
|
|
288
|
+
}, HTMLElement>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { themes, DEFAULT_THEME, THEME_STORAGE_KEY, THEME_CHANGE_EVENT, getTheme, currentTheme, setTheme, initTheme, } from './theme';
|
|
2
|
+
export type { SetThemeOptions } from './theme';
|
|
3
|
+
export { roles as themeRoles } from './themes';
|
|
4
|
+
export type { Theme, ThemeRole, ThemeRoleInfo } from './themes';
|
|
5
|
+
export { default as Button } from './components/Button/Button';
|
|
6
|
+
export type { ButtonProps, ButtonSize, ButtonType } from './components/Button/Button';
|
|
7
|
+
export { default as ButtonGroup } from './components/ButtonGroup/ButtonGroup';
|
|
8
|
+
export type { ButtonGroupProps } from './components/ButtonGroup/ButtonGroup';
|
|
9
|
+
export { default as Link } from './components/Link/Link';
|
|
10
|
+
export type { LinkProps } from './components/Link/Link';
|
|
11
|
+
export { default as Progress } from './components/Progress/Progress';
|
|
12
|
+
export type { ProgressProps, ProgressSize, ProgressStatus } from './components/Progress/Progress';
|
|
13
|
+
export { default as Layout } from './components/Layout/Layout';
|
|
14
|
+
export type { LayoutProps, Spacing, LegacySpacing } from './components/Layout/Layout';
|
|
15
|
+
export { default as Menu } from './components/Menu/Menu';
|
|
16
|
+
export type { MenuProps, MenuItem } from './components/Menu/Menu';
|
|
17
|
+
export { default as NavList } from './components/NavList/NavList';
|
|
18
|
+
export type { NavListProps, NavListItem, NavListSection } from './components/NavList/NavList';
|
|
19
|
+
export { default as FullPageModal } from './components/FullPageModal/FullPageModal';
|
|
20
|
+
export type { FullPageModalProps } from './components/FullPageModal/FullPageModal';
|
|
21
|
+
export { default as HistoryList } from './components/HistoryList/HistoryList';
|
|
22
|
+
export type { HistoryListProps, HistoryStep } from './components/HistoryList/HistoryList';
|
|
23
|
+
export { default as Panel } from './components/Panel/Panel';
|
|
24
|
+
export type { PanelProps, PanelPadding } from './components/Panel/Panel';
|
|
25
|
+
export { default as Table } from './components/Table/Table';
|
|
26
|
+
export type { TableProps, TableColumn, TableRow } from './components/Table/Table';
|
|
27
|
+
export { default as Tag } from './components/Tag/Tag';
|
|
28
|
+
export type { TagProps, TagTone } from './components/Tag/Tag';
|
|
29
|
+
export { default as Text } from './components/Text/Text';
|
|
30
|
+
export type { TextProps, TextVariant, TextTone, TextWeight } from './components/Text/Text';
|
|
31
|
+
export { default as Title } from './components/Title/Title';
|
|
32
|
+
export type { TitleProps, TitleLevel, TitleType } from './components/Title/Title';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** A section's id: its own, or its title as a slug ("Get started" -> "get-started"). */
|
|
2
|
+
export declare const sectionId: (section: {
|
|
3
|
+
id?: string;
|
|
4
|
+
title: unknown;
|
|
5
|
+
}) => string;
|
|
6
|
+
/** Whether a section starts open: true / false for all, or a map of id -> open (missing = open). */
|
|
7
|
+
export declare const startsOpen: (defaultOpen: boolean | Record<string, boolean> | undefined, id: string) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Child, ElementProps, Listener } from './spawn';
|
|
2
|
+
import { NurvusElement } from './update';
|
|
3
|
+
export type ButtonSize = 'extra-large' | 'large' | 'medium' | 'small' | 'mini';
|
|
4
|
+
export type ButtonType = 'primary' | 'secondary';
|
|
5
|
+
export interface ButtonProps extends ElementProps {
|
|
6
|
+
/** Size of the button. */
|
|
7
|
+
size?: ButtonSize;
|
|
8
|
+
/** Look: primary (filled with the accent) or secondary (quiet). Not the HTML type attribute. */
|
|
9
|
+
type?: ButtonType;
|
|
10
|
+
/** Called on a click with the event and the button. */
|
|
11
|
+
onClick?: Listener<MouseEvent>;
|
|
12
|
+
/** Content to render inside the button. */
|
|
13
|
+
children?: Child;
|
|
14
|
+
}
|
|
15
|
+
/** A `<button>`. Any other prop (onClick, disabled, aria-*) goes on it. Same markup as the React Button. */
|
|
16
|
+
export default function Button(props?: ButtonProps): NurvusElement<HTMLButtonElement, ButtonProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Child, ElementProps } from './spawn';
|
|
2
|
+
import { NurvusElement } from './update';
|
|
3
|
+
export interface ButtonGroupProps extends ElementProps {
|
|
4
|
+
/** The Buttons to join. */
|
|
5
|
+
children?: Child;
|
|
6
|
+
}
|
|
7
|
+
/** Joins Buttons into one row: square corners where they meet, rounded at the two outer ends. */
|
|
8
|
+
export default function ButtonGroup(props?: ButtonGroupProps): NurvusElement<HTMLDivElement, ButtonGroupProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Child, ElementProps } from './spawn';
|
|
2
|
+
import { NurvusElement } from './update';
|
|
3
|
+
export interface FullPageModalProps extends ElementProps {
|
|
4
|
+
/** Shows the modal (animates in), or hides it (animates out). */
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
/** Title in the modal's header. */
|
|
7
|
+
title?: Child;
|
|
8
|
+
/** Buttons at the right of the header, e.g. Close. */
|
|
9
|
+
headerActions?: Child;
|
|
10
|
+
/** The modal's content. */
|
|
11
|
+
children?: Child;
|
|
12
|
+
/** Appends the modal to this element when it is made, e.g. document.body. */
|
|
13
|
+
mountEl?: Element;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Shows content over the whole screen. Returns the modal's outer element
|
|
17
|
+
* (`<div class="portal nurvus">`, the one React puts into `<body>` itself):
|
|
18
|
+
* mount it on document.body, or pass `mountEl: document.body`.
|
|
19
|
+
*
|
|
20
|
+
* const modal = FullPageModal({ title: 'Settings', mountEl: document.body, children: … });
|
|
21
|
+
* modal.update({ visible: true }); // animates in
|
|
22
|
+
* modal.update({ visible: false }); // animates out, then hides
|
|
23
|
+
*
|
|
24
|
+
* Unlike the other components, update() changes this element in place and
|
|
25
|
+
* returns the same one, so the in and out animations can run on it. The
|
|
26
|
+
* attributes go through the same steps as the React FullPageModal:
|
|
27
|
+
* closed portal data-visible="false", modal data-visible="false" (display: none), no mask
|
|
28
|
+
* opening portal "true", a mask, modal data-visible="true" data-animate="reveal-in"
|
|
29
|
+
* closing portal "false", mask and modal data-animate="reveal-out"
|
|
30
|
+
* closed after the out animation ends.
|
|
31
|
+
*/
|
|
32
|
+
export default function FullPageModal(props?: FullPageModalProps): NurvusElement<HTMLDivElement, FullPageModalProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Child, ElementProps } from './spawn';
|
|
2
|
+
import { NurvusElement } from './update';
|
|
3
|
+
export interface HistoryStep {
|
|
4
|
+
/** Unique id. */
|
|
5
|
+
id: string | number;
|
|
6
|
+
/** What the step did. */
|
|
7
|
+
label: Child;
|
|
8
|
+
/** A second line. */
|
|
9
|
+
detail?: Child;
|
|
10
|
+
/** When it happened, as a timestamp in ms. */
|
|
11
|
+
time?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface HistoryListProps extends ElementProps {
|
|
14
|
+
/** Every step, OLDEST first. */
|
|
15
|
+
steps: HistoryStep[];
|
|
16
|
+
/** How many steps are applied: step N (1-based) is current when N === index; 0 = everything undone. */
|
|
17
|
+
index: number;
|
|
18
|
+
/** Called with the step number to jump to (0 = the start row). */
|
|
19
|
+
onJump?: (step: number) => void;
|
|
20
|
+
/** Label of the bottom row, the state before any step. */
|
|
21
|
+
startLabel?: Child;
|
|
22
|
+
/** Second line of the bottom row. */
|
|
23
|
+
startDetail?: Child;
|
|
24
|
+
/** Formats a step's `time` for its row. Defaults to the locale time with seconds. */
|
|
25
|
+
formatTime?: (time: number) => Child;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Undo history as a list, newest first, with the current step marked. Like
|
|
29
|
+
* the React one it only shows what it is given: the app owns the history.
|
|
30
|
+
* A click calls onJump(step); the app then moves the current step with
|
|
31
|
+
* list.update({ index: step }).
|
|
32
|
+
*
|
|
33
|
+
* With no steps the React HistoryList renders nothing; this one returns an
|
|
34
|
+
* empty, hidden <ol> instead, so there is an element to update later.
|
|
35
|
+
*/
|
|
36
|
+
export default function HistoryList(props: HistoryListProps): NurvusElement<HTMLOListElement, HistoryListProps>;
|