phosphor-ui 0.3.39
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/LICENSE +21 -0
- package/README.md +267 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/styles/components.css +10743 -0
- package/dist/esm/ascii.d.ts +3 -0
- package/dist/esm/components/admin/AdminShell/AdminShell.d.ts +36 -0
- package/dist/esm/components/admin/AdminShell/index.d.ts +2 -0
- package/dist/esm/components/admin/ContentEditor/ContentEditor.d.ts +63 -0
- package/dist/esm/components/admin/ContentEditor/EditorShell.d.ts +15 -0
- package/dist/esm/components/admin/ContentEditor/PairListField.d.ts +11 -0
- package/dist/esm/components/admin/ContentEditor/RepeaterField.d.ts +16 -0
- package/dist/esm/components/admin/ContentEditor/StatusSelect.d.ts +7 -0
- package/dist/esm/components/admin/ContentEditor/TagInput.d.ts +11 -0
- package/dist/esm/components/admin/ContentEditor/index.d.ts +12 -0
- package/dist/esm/components/admin/CourseEditor/CourseEditor.d.ts +28 -0
- package/dist/esm/components/admin/CourseEditor/index.d.ts +2 -0
- package/dist/esm/components/admin/LessonEditor/LessonEditor.d.ts +27 -0
- package/dist/esm/components/admin/LessonEditor/index.d.ts +2 -0
- package/dist/esm/components/admin/NoteEditor/NoteEditor.d.ts +18 -0
- package/dist/esm/components/admin/NoteEditor/index.d.ts +2 -0
- package/dist/esm/components/admin/ProjectEditor/ProjectEditor.d.ts +26 -0
- package/dist/esm/components/admin/ProjectEditor/index.d.ts +2 -0
- package/dist/esm/components/admin/index.d.ts +6 -0
- package/dist/esm/components/atoms/Avatar/Avatar.d.ts +9 -0
- package/dist/esm/components/atoms/Avatar/index.d.ts +2 -0
- package/dist/esm/components/atoms/Badge/Badge.d.ts +9 -0
- package/dist/esm/components/atoms/Badge/index.d.ts +2 -0
- package/dist/esm/components/atoms/Button/Button.d.ts +23 -0
- package/dist/esm/components/atoms/Button/index.d.ts +2 -0
- package/dist/esm/components/atoms/Checkbox/Checkbox.d.ts +14 -0
- package/dist/esm/components/atoms/Checkbox/index.d.ts +2 -0
- package/dist/esm/components/atoms/DropdownMenu/DropdownMenu.d.ts +25 -0
- package/dist/esm/components/atoms/DropdownMenu/index.d.ts +2 -0
- package/dist/esm/components/atoms/Glyph/Glyph.d.ts +14 -0
- package/dist/esm/components/atoms/Glyph/index.d.ts +2 -0
- package/dist/esm/components/atoms/Headings/Headings.d.ts +17 -0
- package/dist/esm/components/atoms/Headings/index.d.ts +2 -0
- package/dist/esm/components/atoms/Hr/Hr.d.ts +2 -0
- package/dist/esm/components/atoms/Hr/index.d.ts +1 -0
- package/dist/esm/components/atoms/Input/Input.d.ts +41 -0
- package/dist/esm/components/atoms/Input/index.d.ts +2 -0
- package/dist/esm/components/atoms/Kbd/Kbd.d.ts +6 -0
- package/dist/esm/components/atoms/Kbd/index.d.ts +1 -0
- package/dist/esm/components/atoms/Link/Link.d.ts +7 -0
- package/dist/esm/components/atoms/Link/index.d.ts +2 -0
- package/dist/esm/components/atoms/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/esm/components/atoms/ProgressBar/index.d.ts +2 -0
- package/dist/esm/components/atoms/ReadingRail/ReadingRail.d.ts +5 -0
- package/dist/esm/components/atoms/ReadingRail/index.d.ts +1 -0
- package/dist/esm/components/atoms/StatPill/StatPill.d.ts +9 -0
- package/dist/esm/components/atoms/StatPill/index.d.ts +2 -0
- package/dist/esm/components/atoms/Tag/Tag.d.ts +18 -0
- package/dist/esm/components/atoms/Tag/index.d.ts +2 -0
- package/dist/esm/components/atoms/Text/Text.d.ts +18 -0
- package/dist/esm/components/atoms/Text/index.d.ts +2 -0
- package/dist/esm/components/atoms/index.d.ts +17 -0
- package/dist/esm/components/atoms/primitive.d.ts +7 -0
- package/dist/esm/components/content/ArticleList/ArticleList.d.ts +14 -0
- package/dist/esm/components/content/ArticleList/index.d.ts +1 -0
- package/dist/esm/components/content/CodeBlock/CodeBlock.d.ts +21 -0
- package/dist/esm/components/content/CodeBlock/index.d.ts +3 -0
- package/dist/esm/components/content/CodeBlock/phosphorTheme.d.ts +2 -0
- package/dist/esm/components/content/MdxComponents/MdxComponents.d.ts +16 -0
- package/dist/esm/components/content/MdxComponents/index.d.ts +2 -0
- package/dist/esm/components/content/PostFrontmatter/PostFrontmatter.d.ts +10 -0
- package/dist/esm/components/content/PostFrontmatter/index.d.ts +2 -0
- package/dist/esm/components/content/Prose/Prose.d.ts +7 -0
- package/dist/esm/components/content/Prose/index.d.ts +2 -0
- package/dist/esm/components/content/index.d.ts +6 -0
- package/dist/esm/components/index.d.ts +145 -0
- package/dist/esm/components/molecules/AuthorCard/AuthorCard.d.ts +13 -0
- package/dist/esm/components/molecules/AuthorCard/index.d.ts +2 -0
- package/dist/esm/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +13 -0
- package/dist/esm/components/molecules/Breadcrumbs/index.d.ts +2 -0
- package/dist/esm/components/molecules/Callout/Callout.d.ts +13 -0
- package/dist/esm/components/molecules/Callout/index.d.ts +2 -0
- package/dist/esm/components/molecules/CheckboxField/index.d.ts +2 -0
- package/dist/esm/components/molecules/CourseCard/index.d.ts +2 -0
- package/dist/esm/components/molecules/EmptyState/EmptyState.d.ts +16 -0
- package/dist/esm/components/molecules/EmptyState/index.d.ts +2 -0
- package/dist/esm/components/molecules/FeatureList/FeatureList.d.ts +16 -0
- package/dist/esm/components/molecules/FeatureList/index.d.ts +2 -0
- package/dist/esm/components/molecules/Field/Field.d.ts +25 -0
- package/dist/esm/components/molecules/Field/index.d.ts +2 -0
- package/dist/esm/components/molecules/FormField/Form.d.ts +38 -0
- package/dist/esm/components/molecules/FormField/FormField.d.ts +17 -0
- package/dist/esm/components/molecules/FormField/index.d.ts +4 -0
- package/dist/esm/components/molecules/HeaderNav/HeaderNav.d.ts +14 -0
- package/dist/esm/components/molecules/HeaderNav/index.d.ts +2 -0
- package/dist/esm/components/molecules/InputField/index.d.ts +2 -0
- package/dist/esm/components/molecules/LessonRow/LessonRow.d.ts +18 -0
- package/dist/esm/components/molecules/LessonRow/index.d.ts +2 -0
- package/dist/esm/components/molecules/List/List.d.ts +22 -0
- package/dist/esm/components/molecules/List/index.d.ts +2 -0
- package/dist/esm/components/molecules/LocaleSwitch/LocaleSwitch.d.ts +17 -0
- package/dist/esm/components/molecules/LocaleSwitch/index.d.ts +2 -0
- package/dist/esm/components/molecules/Modal/Modal.d.ts +25 -0
- package/dist/esm/components/molecules/Modal/index.d.ts +2 -0
- package/dist/esm/components/molecules/Pagination/Pagination.d.ts +17 -0
- package/dist/esm/components/molecules/Pagination/index.d.ts +2 -0
- package/dist/esm/components/molecules/PostFrontmatter/index.d.ts +2 -0
- package/dist/esm/components/molecules/PostMeta/PostMeta.d.ts +14 -0
- package/dist/esm/components/molecules/PostMeta/index.d.ts +2 -0
- package/dist/esm/components/molecules/PrereqList/PrereqList.d.ts +14 -0
- package/dist/esm/components/molecules/PrereqList/index.d.ts +2 -0
- package/dist/esm/components/molecules/SearchResult/SearchResult.d.ts +23 -0
- package/dist/esm/components/molecules/SearchResult/index.d.ts +2 -0
- package/dist/esm/components/molecules/Select/Select.d.ts +23 -0
- package/dist/esm/components/molecules/Select/index.d.ts +2 -0
- package/dist/esm/components/molecules/SelectField/index.d.ts +2 -0
- package/dist/esm/components/molecules/ShareBar/ShareBar.d.ts +12 -0
- package/dist/esm/components/molecules/ShareBar/index.d.ts +2 -0
- package/dist/esm/components/molecules/Stepper/Stepper.d.ts +26 -0
- package/dist/esm/components/molecules/Stepper/index.d.ts +2 -0
- package/dist/esm/components/molecules/TableOfContents/TableOfContents.d.ts +23 -0
- package/dist/esm/components/molecules/TableOfContents/index.d.ts +2 -0
- package/dist/esm/components/molecules/Tabs/Tabs.d.ts +21 -0
- package/dist/esm/components/molecules/Tabs/index.d.ts +2 -0
- package/dist/esm/components/molecules/TextareaField/index.d.ts +2 -0
- package/dist/esm/components/molecules/Timeline/Timeline.d.ts +14 -0
- package/dist/esm/components/molecules/Timeline/index.d.ts +2 -0
- package/dist/esm/components/molecules/Toast/Toast.d.ts +18 -0
- package/dist/esm/components/molecules/Toast/index.d.ts +2 -0
- package/dist/esm/components/molecules/Tooltip/Tooltip.d.ts +10 -0
- package/dist/esm/components/molecules/Tooltip/index.d.ts +2 -0
- package/dist/esm/components/molecules/index.d.ts +27 -0
- package/dist/esm/components/organisms/AsciiBanner/AsciiBanner.d.ts +21 -0
- package/dist/esm/components/organisms/AsciiBanner/index.d.ts +2 -0
- package/dist/esm/components/organisms/CourseCard/CourseCard.d.ts +24 -0
- package/dist/esm/components/organisms/CourseCard/index.d.ts +2 -0
- package/dist/esm/components/organisms/CrtShell/CrtShell.d.ts +10 -0
- package/dist/esm/components/organisms/CrtShell/index.d.ts +2 -0
- package/dist/esm/components/organisms/Exercise/Exercise.d.ts +15 -0
- package/dist/esm/components/organisms/Exercise/index.d.ts +2 -0
- package/dist/esm/components/organisms/Footer/Footer.d.ts +19 -0
- package/dist/esm/components/organisms/Footer/index.d.ts +2 -0
- package/dist/esm/components/organisms/Glyphs/Glyphs.d.ts +11 -0
- package/dist/esm/components/organisms/Glyphs/index.d.ts +4 -0
- package/dist/esm/components/organisms/Header/Header.d.ts +35 -0
- package/dist/esm/components/organisms/Header/index.d.ts +2 -0
- package/dist/esm/components/organisms/HeaderNav/index.d.ts +2 -0
- package/dist/esm/components/organisms/HeroFrame/HeroFrame.d.ts +42 -0
- package/dist/esm/components/organisms/HeroFrame/index.d.ts +2 -0
- package/dist/esm/components/organisms/LoginForm/LoginForm.d.ts +16 -0
- package/dist/esm/components/organisms/LoginForm/index.d.ts +2 -0
- package/dist/esm/components/organisms/ModuleAccordion/ModuleAccordion.d.ts +24 -0
- package/dist/esm/components/organisms/ModuleAccordion/index.d.ts +2 -0
- package/dist/esm/components/organisms/NerdTree/NerdTree.d.ts +29 -0
- package/dist/esm/components/organisms/NerdTree/index.d.ts +2 -0
- package/dist/esm/components/organisms/PdaWindow/PdaWindow.d.ts +8 -0
- package/dist/esm/components/organisms/PdaWindow/index.d.ts +2 -0
- package/dist/esm/components/organisms/PostHeader/PostHeader.d.ts +19 -0
- package/dist/esm/components/organisms/PostHeader/index.d.ts +2 -0
- package/dist/esm/components/organisms/PostListing/PostListing.d.ts +30 -0
- package/dist/esm/components/organisms/PostListing/index.d.ts +2 -0
- package/dist/esm/components/organisms/RelatedPosts/RelatedPosts.d.ts +15 -0
- package/dist/esm/components/organisms/RelatedPosts/index.d.ts +2 -0
- package/dist/esm/components/organisms/Search/Search.d.ts +17 -0
- package/dist/esm/components/organisms/Search/index.d.ts +2 -0
- package/dist/esm/components/organisms/SeriesNav/SeriesNav.d.ts +14 -0
- package/dist/esm/components/organisms/SeriesNav/index.d.ts +2 -0
- package/dist/esm/components/organisms/VideoPlayer/VideoPlayer.d.ts +24 -0
- package/dist/esm/components/organisms/VideoPlayer/index.d.ts +2 -0
- package/dist/esm/components/organisms/index.d.ts +19 -0
- package/dist/esm/components/pages/Post/index.d.ts +2 -0
- package/dist/esm/components/pages/index.d.ts +1 -0
- package/dist/esm/components/presets/SiteShell/index.d.ts +2 -0
- package/dist/esm/components/presets/index.d.ts +1 -0
- package/dist/esm/components/templates/Layout/Layout.d.ts +1786 -0
- package/dist/esm/components/templates/Layout/index.d.ts +2 -0
- package/dist/esm/components/templates/MainframeLayout/MainframeLayout.d.ts +39 -0
- package/dist/esm/components/templates/MainframeLayout/index.d.ts +2 -0
- package/dist/esm/components/templates/PostTemplate/Post.d.ts +30 -0
- package/dist/esm/components/templates/PostTemplate/index.d.ts +2 -0
- package/dist/esm/components/templates/SiteShell/SiteShell.d.ts +26 -0
- package/dist/esm/components/templates/SiteShell/index.d.ts +2 -0
- package/dist/esm/components/templates/index.d.ts +4 -0
- package/dist/esm/foundations/animation/index.d.ts +16 -0
- package/dist/esm/foundations/effects/index.d.ts +9 -0
- package/dist/esm/foundations/glyphs/catalog.d.ts +103 -0
- package/dist/esm/foundations/glyphs/index.d.ts +2 -0
- package/dist/esm/foundations/index.d.ts +8 -0
- package/dist/esm/foundations/mdx/index.d.ts +3 -0
- package/dist/esm/foundations/syntax/index.d.ts +1 -0
- package/dist/esm/foundations/tokens/index.d.ts +32 -0
- package/dist/esm/foundations/typography/index.d.ts +8 -0
- package/dist/esm/foundations/typography/variants.d.ts +3 -0
- package/dist/esm/foundations/utils/index.d.ts +1 -0
- package/dist/esm/foundations/utils/slug.d.ts +1 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/useHashRoute.d.ts +6 -0
- package/dist/esm/hooks/useReadingProgress.d.ts +4 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/styles/components.css +10743 -0
- package/dist/esm/utils/browser.d.ts +5 -0
- package/dist/esm/utils/classNames.d.ts +2 -0
- package/dist/styles/components.css +10743 -0
- package/dist/styles/fonts/bender/Bender-Black.woff +0 -0
- package/dist/styles/fonts/bender/Bender-BlackItalic.woff +0 -0
- package/dist/styles/fonts/bender/Bender-Bold.woff +0 -0
- package/dist/styles/fonts/bender/Bender-BoldItalic.woff +0 -0
- package/dist/styles/fonts/bender/Bender-Italic.woff +0 -0
- package/dist/styles/fonts/bender/Bender-Light.woff +0 -0
- package/dist/styles/fonts/bender/Bender-LightItalic.woff +0 -0
- package/dist/styles/fonts/bender/Bender.woff +0 -0
- package/dist/styles/fonts/vcr_osd_mono/VCR_OSD_MONO_1.001.ttf +0 -0
- package/dist/styles/fonts.css +73 -0
- package/dist/styles/global.css +486 -0
- package/dist/styles/phosphor.css +5 -0
- package/dist/styles/tokens.css +382 -0
- package/dist/styles/typography.css +193 -0
- package/package.json +145 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./Avatar";
|
|
2
|
+
export * from "./Badge";
|
|
3
|
+
export * from "./Button";
|
|
4
|
+
export * from "./Checkbox";
|
|
5
|
+
export * from "./DropdownMenu";
|
|
6
|
+
export * from "./Glyph";
|
|
7
|
+
export * from "./Headings";
|
|
8
|
+
export * from "./Hr";
|
|
9
|
+
export * from "./Input";
|
|
10
|
+
export * from "./Kbd";
|
|
11
|
+
export { default as Link } from "./Link";
|
|
12
|
+
export type { LinkProps } from "./Link";
|
|
13
|
+
export * from "./ProgressBar";
|
|
14
|
+
export * from "./ReadingRail";
|
|
15
|
+
export * from "./Tag";
|
|
16
|
+
export { default as Text } from "./Text";
|
|
17
|
+
export type { TextProps, TextVariant } from "./Text";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type DataAttributes = {
|
|
3
|
+
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
4
|
+
};
|
|
5
|
+
export declare function composeRefs<T>(...refs: Array<React.Ref<T> | undefined>): React.RefCallback<T>;
|
|
6
|
+
export declare function callAll<E>(...handlers: Array<((event: E) => void) | undefined>): (event: E) => void;
|
|
7
|
+
export declare function hasVisibleContent(value: React.ReactNode): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ArticleListItem {
|
|
3
|
+
id?: string;
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
meta?: React.ReactNode;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface ArticleListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
10
|
+
items: ArticleListItem[];
|
|
11
|
+
glyph?: React.ReactNode;
|
|
12
|
+
renderItem?: (item: ArticleListItem, index: number) => React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const ArticleList: React.FC<ArticleListProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ArticleList";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function codeToPhosphorHtml(code: string, lang?: string): Promise<string>;
|
|
3
|
+
export interface CodeBlockProps {
|
|
4
|
+
code: string;
|
|
5
|
+
lang?: string;
|
|
6
|
+
language?: string;
|
|
7
|
+
filename?: string;
|
|
8
|
+
/** Pre-rendered Shiki HTML (for SSR/SSG — skips client-side highlight). */
|
|
9
|
+
html?: string;
|
|
10
|
+
copyable?: boolean;
|
|
11
|
+
copyLabel?: React.ReactNode;
|
|
12
|
+
copiedLabel?: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
"aria-label"?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const CodeBlock: React.FC<CodeBlockProps>;
|
|
17
|
+
/** Utility: extract lang + raw code from a MDX <pre><code> element. */
|
|
18
|
+
export declare function extractMdxCode(children: React.ReactNode): {
|
|
19
|
+
code: string;
|
|
20
|
+
lang: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { MDXComponents as ProviderComponents } from "mdx/types.js";
|
|
3
|
+
import type { PostFrontmatterData } from "../../content/PostFrontmatter";
|
|
4
|
+
export declare const mdxComponents: ProviderComponents;
|
|
5
|
+
export type MdxComponents = typeof mdxComponents;
|
|
6
|
+
export interface PostBodyProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
rootClassName?: string;
|
|
10
|
+
components?: ProviderComponents;
|
|
11
|
+
frontmatter?: PostFrontmatterData;
|
|
12
|
+
frontmatterLabel?: React.ReactNode;
|
|
13
|
+
before?: React.ReactNode;
|
|
14
|
+
after?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const PostBody: React.FC<PostBodyProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type FrontmatterScalar = string | number | boolean;
|
|
3
|
+
export type FrontmatterValue = FrontmatterScalar | null | undefined | ReadonlyArray<FrontmatterScalar>;
|
|
4
|
+
export type PostFrontmatterData = Record<string, FrontmatterValue>;
|
|
5
|
+
export interface PostFrontmatterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
data: PostFrontmatterData;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
marker?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const PostFrontmatter: React.FC<PostFrontmatterProps>;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export { Button } from "./atoms/Button";
|
|
2
|
+
export type { ButtonProps, ButtonVariant, ButtonSize } from "./atoms/Button";
|
|
3
|
+
export { Badge } from "./atoms/Badge";
|
|
4
|
+
export type { BadgeProps, BadgeSize, BadgeTone } from "./atoms/Badge";
|
|
5
|
+
export { default as Link } from "./atoms/Link";
|
|
6
|
+
export type { LinkProps } from "./atoms/Link";
|
|
7
|
+
export { Callout, CalloutHeading } from "./molecules/Callout";
|
|
8
|
+
export type { CalloutProps, CalloutVariant } from "./molecules/Callout";
|
|
9
|
+
export { Input, InputControl, InputField, Textarea, TextareaControl, TextareaField, } from "./atoms/Input";
|
|
10
|
+
export type { InputControlProps, InputProps, InputSize, InputVariant, TextareaControlProps, TextareaProps, } from "./atoms/Input";
|
|
11
|
+
export { Tag } from "./atoms/Tag";
|
|
12
|
+
export type { TagProps } from "./atoms/Tag";
|
|
13
|
+
export { PdaWindow } from "./organisms/PdaWindow";
|
|
14
|
+
export type { PdaWindowProps } from "./organisms/PdaWindow";
|
|
15
|
+
export { PostListing, PostRow } from "./organisms/PostListing";
|
|
16
|
+
export type { PostListingProps, PostRowProps } from "./organisms/PostListing";
|
|
17
|
+
export { PostMeta } from "./molecules/PostMeta";
|
|
18
|
+
export type { PostMetaProps } from "./molecules/PostMeta";
|
|
19
|
+
export { PostFrontmatter } from "./content/PostFrontmatter";
|
|
20
|
+
export type { FrontmatterScalar, FrontmatterValue, PostFrontmatterData, PostFrontmatterProps, } from "./content/PostFrontmatter";
|
|
21
|
+
export { default as Text } from "./atoms/Text";
|
|
22
|
+
export type { TextAlign, TextProps, TextTone, TextTransform, TextVariant, } from "./atoms/Text";
|
|
23
|
+
export { default as Pagination } from "./molecules/Pagination";
|
|
24
|
+
export type { PaginationProps } from "./molecules/Pagination";
|
|
25
|
+
export { default as SearchResultList, SearchResult, } from "./molecules/SearchResult";
|
|
26
|
+
export type { SearchHit, SearchResultProps, SearchResultListProps, } from "./molecules/SearchResult";
|
|
27
|
+
export { Search } from "./organisms/Search";
|
|
28
|
+
export type { SearchProps } from "./organisms/Search";
|
|
29
|
+
export { CrtShell } from "./organisms/CrtShell";
|
|
30
|
+
export type { CrtShellProps } from "./organisms/CrtShell";
|
|
31
|
+
export { default as Prose } from "./content/Prose";
|
|
32
|
+
export type { ProseProps } from "./content/Prose";
|
|
33
|
+
export { ArticleList } from "./content/ArticleList";
|
|
34
|
+
export type { ArticleListItem, ArticleListProps } from "./content/ArticleList";
|
|
35
|
+
export { NerdTree } from "./organisms/NerdTree";
|
|
36
|
+
export type { NerdTreeProps, NerdTreeNode, NerdTreeDir, NerdTreeLeaf, } from "./organisms/NerdTree";
|
|
37
|
+
export { AsciiBanner } from "./organisms/AsciiBanner";
|
|
38
|
+
export type { AsciiBannerProps } from "./organisms/AsciiBanner";
|
|
39
|
+
export { HeaderNav } from "./molecules/HeaderNav";
|
|
40
|
+
export type { HeaderNavProps, HeaderNavLink, HeaderNavVariant, } from "./molecules/HeaderNav";
|
|
41
|
+
export { Checkbox, CheckboxControl, CheckboxField } from "./atoms/Checkbox";
|
|
42
|
+
export type { CheckboxControlProps, CheckboxProps } from "./atoms/Checkbox";
|
|
43
|
+
export { Select, SelectControl, SelectField } from "./molecules/Select";
|
|
44
|
+
export type { SelectControlProps, SelectOption, SelectProps, } from "./molecules/Select";
|
|
45
|
+
export { Tabs } from "./molecules/Tabs";
|
|
46
|
+
export type { TabItem, TabsProps } from "./molecules/Tabs";
|
|
47
|
+
export { Tooltip } from "./molecules/Tooltip";
|
|
48
|
+
export type { TooltipPlacement, TooltipProps } from "./molecules/Tooltip";
|
|
49
|
+
export { DropdownMenu } from "./atoms/DropdownMenu";
|
|
50
|
+
export type { DropdownMenuItem, DropdownMenuProps } from "./atoms/DropdownMenu";
|
|
51
|
+
export { Breadcrumbs } from "./molecules/Breadcrumbs";
|
|
52
|
+
export type { BreadcrumbItem, BreadcrumbsProps } from "./molecules/Breadcrumbs";
|
|
53
|
+
export { LocaleSwitch } from "./molecules/LocaleSwitch";
|
|
54
|
+
export type { LocaleSwitchItem, LocaleSwitchProps, LocaleSwitchSize, LocaleSwitchVariant, } from "./molecules/LocaleSwitch";
|
|
55
|
+
export { List } from "./molecules/List";
|
|
56
|
+
export type { ListDensity, ListItem, ListMarker, ListProps, ListVariant, } from "./molecules/List";
|
|
57
|
+
export { FeatureList, FeatureListItem } from "./molecules/FeatureList";
|
|
58
|
+
export type { FeatureListItemData, FeatureListItemProps, FeatureListProps, } from "./molecules/FeatureList";
|
|
59
|
+
export { PostHeader } from "./organisms/PostHeader";
|
|
60
|
+
export type { PostHeaderProps } from "./organisms/PostHeader";
|
|
61
|
+
export { Post, PostTemplate } from "./templates/PostTemplate";
|
|
62
|
+
export type { PostProps, PostTemplateProps } from "./templates/PostTemplate";
|
|
63
|
+
export { AdminLayout, ContextPanel, CourseLayout, MainContent, MainframeLayout, NerdTreeSidebar, PostLayout, WikiLayout, } from "./templates/MainframeLayout";
|
|
64
|
+
export type { ContextPanelProps, MainContentProps, MainframeLayoutProps, MainframeVariant, NerdTreeSidebarProps, } from "./templates/MainframeLayout";
|
|
65
|
+
export { CourseCard } from "./organisms/CourseCard";
|
|
66
|
+
export type { CourseCardProps } from "./organisms/CourseCard";
|
|
67
|
+
export { HeroFrame } from "./organisms/HeroFrame";
|
|
68
|
+
export type { HeroFrameProps } from "./organisms/HeroFrame";
|
|
69
|
+
export { default as Header } from "./organisms/Header";
|
|
70
|
+
export type { HeaderMobileLayout, HeaderProps, HeaderNavItem, HeaderLocale, HeaderVariant, } from "./organisms/Header";
|
|
71
|
+
export { Hr } from "./atoms/Hr";
|
|
72
|
+
export { Kbd } from "./atoms/Kbd";
|
|
73
|
+
export type { KbdProps, KbdVariant } from "./atoms/Kbd";
|
|
74
|
+
export { Cluster, Column, Container, Flex, Grid, Row, Stack, } from "./templates/Layout";
|
|
75
|
+
export type { ClusterProps, ColumnProps, ContainerProps, FlexProps, GridProps, LayoutGap, LayoutSpace, RowProps, StackProps, } from "./templates/Layout";
|
|
76
|
+
export { Glyph } from "./atoms/Glyph";
|
|
77
|
+
export type { GlyphName, GlyphProps, GlyphTone } from "./atoms/Glyph";
|
|
78
|
+
export { Glyphs, DEFAULT_GLYPHS } from "./organisms/Glyphs";
|
|
79
|
+
export type { GlyphsProps, GlyphItem } from "./organisms/Glyphs";
|
|
80
|
+
export { Heading, H1, H2, H3, H4, H5, H6 } from "./atoms/Headings";
|
|
81
|
+
export type { HeadingGlyphPosition, HeadingProps, HeadingLevel, } from "./atoms/Headings";
|
|
82
|
+
export { LessonRow, LessonList } from "./molecules/LessonRow";
|
|
83
|
+
export type { LessonRowProps, LessonState, LessonKind, LessonListProps, } from "./molecules/LessonRow";
|
|
84
|
+
export { ModuleAccordion } from "./organisms/ModuleAccordion";
|
|
85
|
+
export type { ModuleAccordionProps, ModuleLesson, } from "./organisms/ModuleAccordion";
|
|
86
|
+
export { PrereqList } from "./molecules/PrereqList";
|
|
87
|
+
export type { PrereqListProps, PrereqItem, PrereqStatus, } from "./molecules/PrereqList";
|
|
88
|
+
export { ProgressBar } from "./atoms/ProgressBar";
|
|
89
|
+
export type { ProgressBarProps } from "./atoms/ProgressBar";
|
|
90
|
+
export { ReadingRail } from "./atoms/ReadingRail";
|
|
91
|
+
export type { ReadingRailProps } from "./atoms/ReadingRail";
|
|
92
|
+
export { mdxComponents, PostBody } from "./content/MdxComponents";
|
|
93
|
+
export type { MdxComponents, PostBodyProps } from "./content/MdxComponents";
|
|
94
|
+
export { Footer } from "./organisms/Footer";
|
|
95
|
+
export type { FooterProps, FooterLink } from "./organisms/Footer";
|
|
96
|
+
export { Stepper, StepperFoot } from "./molecules/Stepper";
|
|
97
|
+
export type { StepperProps, StepperItem, StepperFootProps, StepperFootLink, } from "./molecules/Stepper";
|
|
98
|
+
export { TableOfContents } from "./molecules/TableOfContents";
|
|
99
|
+
export type { TableOfContentsProps, TocItem, } from "./molecules/TableOfContents";
|
|
100
|
+
export { VideoPlayer } from "./organisms/VideoPlayer";
|
|
101
|
+
export type { VideoPlayerProps, VideoSource } from "./organisms/VideoPlayer";
|
|
102
|
+
export { Exercise } from "./organisms/Exercise";
|
|
103
|
+
export type { ExerciseProps, ExerciseTask } from "./organisms/Exercise";
|
|
104
|
+
export { CodeBlock, codeToPhosphorHtml, extractMdxCode, phosphorTheme, } from "./content/CodeBlock";
|
|
105
|
+
export type { CodeBlockProps } from "./content/CodeBlock";
|
|
106
|
+
export { AuthorCard } from "./molecules/AuthorCard";
|
|
107
|
+
export type { AuthorCardProps, AuthorLink } from "./molecules/AuthorCard";
|
|
108
|
+
export { SeriesNav } from "./organisms/SeriesNav";
|
|
109
|
+
export type { SeriesNavProps, SeriesNavItem } from "./organisms/SeriesNav";
|
|
110
|
+
export { ShareBar } from "./molecules/ShareBar";
|
|
111
|
+
export type { ShareBarProps, ShareLink } from "./molecules/ShareBar";
|
|
112
|
+
export { RelatedPosts } from "./organisms/RelatedPosts";
|
|
113
|
+
export type { RelatedPostsProps, RelatedPost } from "./organisms/RelatedPosts";
|
|
114
|
+
export { StatPill } from "./atoms/StatPill";
|
|
115
|
+
export type { StatPillProps, StatPillColor } from "./atoms/StatPill";
|
|
116
|
+
export { Timeline } from "./molecules/Timeline";
|
|
117
|
+
export type { TimelineProps, TimelineItem, TimelineItemStatus, } from "./molecules/Timeline";
|
|
118
|
+
export { Avatar } from "./atoms/Avatar";
|
|
119
|
+
export type { AvatarProps, AvatarSize } from "./atoms/Avatar";
|
|
120
|
+
export { Modal, Drawer } from "./molecules/Modal";
|
|
121
|
+
export type { ModalProps, DrawerProps, DrawerSide } from "./molecules/Modal";
|
|
122
|
+
export { Toast, useToast } from "./molecules/Toast";
|
|
123
|
+
export type { ToastProps, ToastVariant } from "./molecules/Toast";
|
|
124
|
+
export { EmptyState } from "./molecules/EmptyState";
|
|
125
|
+
export type { EmptyStateProps } from "./molecules/EmptyState";
|
|
126
|
+
export { LoginForm } from "./organisms/LoginForm";
|
|
127
|
+
export type { LoginFormProps } from "./organisms/LoginForm";
|
|
128
|
+
export { Form, FormField, ContentStatusBadge } from "./molecules/FormField";
|
|
129
|
+
export type { FormProps, FormFieldConfig, FormFieldProps, ContentStatusBadgeProps, ContentStatus, } from "./molecules/FormField";
|
|
130
|
+
export { ControlFrame, Field, FieldError, FieldHint, FieldLabel, } from "./molecules/Field";
|
|
131
|
+
export type { ControlFrameProps, FieldErrorProps, FieldHintProps, FieldLabelProps, FieldProps, } from "./molecules/Field";
|
|
132
|
+
export { AdminShell } from "./admin/AdminShell";
|
|
133
|
+
export type { AdminShellProps, AdminNavItem, AdminUser, } from "./admin/AdminShell";
|
|
134
|
+
export { ContentEditor, EditorShell, PairListField, RepeaterField, StatusSelect, TagInput, } from "./admin/ContentEditor";
|
|
135
|
+
export type { ContentEditorProps, FieldSpec, EditorShellProps, PairListFieldProps, PairRow, PairColumn, ListRow, RepeaterFieldProps, StatusSelectProps, TagInputProps, } from "./admin/ContentEditor";
|
|
136
|
+
export { NoteEditor } from "./admin/NoteEditor";
|
|
137
|
+
export type { NoteEditorProps, NoteData } from "./admin/NoteEditor";
|
|
138
|
+
export { ProjectEditor } from "./admin/ProjectEditor";
|
|
139
|
+
export type { ProjectEditorProps, ProjectData, ProjectLink, } from "./admin/ProjectEditor";
|
|
140
|
+
export { CourseEditor } from "./admin/CourseEditor";
|
|
141
|
+
export type { CourseEditorProps, CourseData, CourseModule, } from "./admin/CourseEditor";
|
|
142
|
+
export { LessonEditor } from "./admin/LessonEditor";
|
|
143
|
+
export type { LessonEditorProps, LessonData, LessonResource, } from "./admin/LessonEditor";
|
|
144
|
+
export { SiteShell } from "./templates/SiteShell";
|
|
145
|
+
export type { SiteShellProps } from "./templates/SiteShell";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AuthorLink {
|
|
3
|
+
label: string;
|
|
4
|
+
href: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AuthorCardProps extends React.HTMLAttributes<HTMLElement> {
|
|
7
|
+
name: string;
|
|
8
|
+
role?: string;
|
|
9
|
+
bio?: React.ReactNode;
|
|
10
|
+
avatarSrc?: string;
|
|
11
|
+
links?: AuthorLink[];
|
|
12
|
+
}
|
|
13
|
+
export declare const AuthorCard: React.FC<AuthorCardProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface BreadcrumbItem {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
href?: string;
|
|
5
|
+
current?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface BreadcrumbsProps {
|
|
8
|
+
items: BreadcrumbItem[];
|
|
9
|
+
separator?: React.ReactNode;
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type CalloutVariant = "info" | "note" | "tip" | "success" | "warn" | "danger" | "quote" | "terminal";
|
|
3
|
+
export type CalloutSize = "sm" | "md" | "lg";
|
|
4
|
+
export interface CalloutProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
5
|
+
variant?: CalloutVariant;
|
|
6
|
+
size?: CalloutSize;
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
glyph?: React.ReactNode;
|
|
9
|
+
hideGlyph?: boolean;
|
|
10
|
+
actions?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Callout: React.FC<CalloutProps>;
|
|
13
|
+
export declare const CalloutHeading: React.FC<React.HTMLAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface EmptyStateAction {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
href?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
variant?: "primary" | "ghost";
|
|
7
|
+
}
|
|
8
|
+
export interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
9
|
+
glyph?: React.ReactNode;
|
|
10
|
+
title?: React.ReactNode;
|
|
11
|
+
body?: React.ReactNode;
|
|
12
|
+
action?: EmptyStateAction;
|
|
13
|
+
actions?: EmptyStateAction[];
|
|
14
|
+
status?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const EmptyState: React.FC<EmptyStateProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface FeatureListItemData {
|
|
3
|
+
id?: string;
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
body: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface FeatureListItemProps extends Omit<React.LiHTMLAttributes<HTMLLIElement>, "title"> {
|
|
8
|
+
title: React.ReactNode;
|
|
9
|
+
body: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface FeatureListProps extends Omit<React.HTMLAttributes<HTMLUListElement>, "children"> {
|
|
12
|
+
items: FeatureListItemData[];
|
|
13
|
+
renderItem?: (item: FeatureListItemData, index: number) => React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const FeatureListItem: React.ForwardRefExoticComponent<FeatureListItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
16
|
+
export declare const FeatureList: React.ForwardRefExoticComponent<FeatureListProps & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
label?: React.ReactNode;
|
|
4
|
+
hint?: React.ReactNode;
|
|
5
|
+
error?: React.ReactNode;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
htmlFor?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
controlClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FieldLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
12
|
+
required?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const FieldLabel: React.FC<FieldLabelProps>;
|
|
15
|
+
export interface FieldHintProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
16
|
+
}
|
|
17
|
+
export declare const FieldHint: React.FC<FieldHintProps>;
|
|
18
|
+
export interface FieldErrorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
19
|
+
}
|
|
20
|
+
export declare const FieldError: React.FC<FieldErrorProps>;
|
|
21
|
+
export interface ControlFrameProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
invalid?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const ControlFrame: React.FC<ControlFrameProps>;
|
|
25
|
+
export declare const Field: React.FC<FieldProps>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { InputControlProps, TextareaControlProps } from "../../atoms/Input";
|
|
3
|
+
import type { SelectControlProps, SelectOption } from "../Select";
|
|
4
|
+
type FormFieldBase = {
|
|
5
|
+
name: string;
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
hint?: React.ReactNode;
|
|
8
|
+
error?: React.ReactNode;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
fieldClassName?: string;
|
|
11
|
+
};
|
|
12
|
+
export type FormFieldConfig = (FormFieldBase & {
|
|
13
|
+
type?: "input";
|
|
14
|
+
inputProps?: Omit<InputControlProps, "id" | "name">;
|
|
15
|
+
}) | (FormFieldBase & {
|
|
16
|
+
type: "textarea";
|
|
17
|
+
textareaProps?: Omit<TextareaControlProps, "id" | "name">;
|
|
18
|
+
}) | (FormFieldBase & {
|
|
19
|
+
type: "select";
|
|
20
|
+
options: SelectOption[];
|
|
21
|
+
selectProps?: Omit<SelectControlProps, "id" | "name" | "options">;
|
|
22
|
+
}) | (FormFieldBase & {
|
|
23
|
+
type: "custom";
|
|
24
|
+
render: (field: FormFieldBase & {
|
|
25
|
+
id: string;
|
|
26
|
+
}) => React.ReactNode;
|
|
27
|
+
});
|
|
28
|
+
export interface FormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "title"> {
|
|
29
|
+
title?: React.ReactNode;
|
|
30
|
+
description?: React.ReactNode;
|
|
31
|
+
fields?: FormFieldConfig[];
|
|
32
|
+
actions?: React.ReactNode;
|
|
33
|
+
columns?: 1 | 2;
|
|
34
|
+
bodyClassName?: string;
|
|
35
|
+
actionsClassName?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<HTMLFormElement>>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface FormFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
hint?: React.ReactNode;
|
|
5
|
+
error?: React.ReactNode;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
htmlFor?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const FormField: React.FC<FormFieldProps>;
|
|
11
|
+
export type ContentStatus = "draft" | "published" | "archived";
|
|
12
|
+
export interface ContentStatusBadgeProps {
|
|
13
|
+
status: ContentStatus;
|
|
14
|
+
className?: string;
|
|
15
|
+
label?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const ContentStatusBadge: React.FC<ContentStatusBadgeProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface HeaderNavLink {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
href: string;
|
|
5
|
+
glyph?: React.ReactNode;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type HeaderNavVariant = "plain" | "tabs" | "command" | "mobile";
|
|
9
|
+
export interface HeaderNavProps extends React.HTMLAttributes<HTMLElement> {
|
|
10
|
+
items: HeaderNavLink[];
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
variant?: HeaderNavVariant;
|
|
13
|
+
}
|
|
14
|
+
export declare const HeaderNav: React.FC<HeaderNavProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type LessonState = "default" | "done" | "current" | "locked";
|
|
3
|
+
export type LessonKind = "read" | "video" | "lab" | "quiz" | "locked";
|
|
4
|
+
export interface LessonRowProps {
|
|
5
|
+
num: string;
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
length?: React.ReactNode;
|
|
8
|
+
kind?: LessonKind;
|
|
9
|
+
state?: LessonState;
|
|
10
|
+
href?: string;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export interface LessonListProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const LessonList: React.FC<LessonListProps>;
|
|
18
|
+
export declare const LessonRow: React.FC<LessonRowProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ListVariant = "plain" | "ruled" | "terminal";
|
|
3
|
+
export type ListMarker = "dot" | "dash" | "chevron" | "index" | "none";
|
|
4
|
+
export type ListDensity = "default" | "compact";
|
|
5
|
+
export interface ListItem {
|
|
6
|
+
id?: string;
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
meta?: React.ReactNode;
|
|
10
|
+
href?: string;
|
|
11
|
+
marker?: React.ReactNode;
|
|
12
|
+
action?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface ListProps extends Omit<React.HTMLAttributes<HTMLOListElement | HTMLUListElement>, "children"> {
|
|
15
|
+
items: ListItem[];
|
|
16
|
+
as?: "ul" | "ol";
|
|
17
|
+
variant?: ListVariant;
|
|
18
|
+
marker?: ListMarker;
|
|
19
|
+
density?: ListDensity;
|
|
20
|
+
renderItem?: (item: ListItem, index: number) => React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLOListElement | HTMLUListElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface LocaleSwitchItem {
|
|
3
|
+
code: string;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type LocaleSwitchVariant = "inline" | "segmented" | "terminal";
|
|
9
|
+
export type LocaleSwitchSize = "sm" | "md";
|
|
10
|
+
export interface LocaleSwitchProps extends React.HTMLAttributes<HTMLElement> {
|
|
11
|
+
locales: LocaleSwitchItem[];
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
variant?: LocaleSwitchVariant;
|
|
14
|
+
size?: LocaleSwitchSize;
|
|
15
|
+
showPrompt?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const LocaleSwitch: React.ForwardRefExoticComponent<LocaleSwitchProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type OverlayCommonProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
closeLabel?: string;
|
|
8
|
+
closeOnEscape?: boolean;
|
|
9
|
+
closeOnOverlayClick?: boolean;
|
|
10
|
+
footer?: React.ReactNode;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export interface ModalProps extends OverlayCommonProps {
|
|
15
|
+
overlayClassName?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
18
|
+
export type DrawerSide = "left" | "right";
|
|
19
|
+
export interface DrawerProps extends OverlayCommonProps {
|
|
20
|
+
side?: DrawerSide;
|
|
21
|
+
width?: string;
|
|
22
|
+
overlayClassName?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const Drawer: React.FC<DrawerProps>;
|
|
25
|
+
export {};
|