UNPKG

3.66 kBTypeScriptView Raw
1/**
2 * Copyright 2020 Inrupt Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal in
6 * the Software without restriction, including without limitation the rights to use,
7 * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8 * Software, and to permit persons to whom the Software is furnished to do so,
9 * subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 */
21import { Styles, StyleSheet } from "jss";
22import { CreatePrismThemeOptions, PrismTheme, ThemeConfiguration } from "./theme";
23import actionButton from "./actionButton";
24import actionMenu from "./actionMenu";
25import appLayout from "./appLayout";
26import avatar from "./avatar";
27import avatarGroup from "./avatarGroup";
28import backToNav from "./backToNav";
29import badge from "./badge";
30import breadcrumb from "./breadcrumb";
31import button from "./button";
32import container from "./container";
33import content from "./content";
34import drawer from "./drawer";
35import drawerContainer from "./drawerContainer";
36import fluidGrid from "./fluidGrid";
37import footer from "./footer";
38import form from "./form";
39import header from "./header";
40import headerBanner from "./headerBanner";
41import headerToolbar from "./HeaderToolbar";
42import hero from "./hero";
43import icons from "./icons";
44import image from "./image";
45import input from "./input";
46import mainNav from "./mainNav";
47import message from "./message";
48import loadingIndicator from "./loadingIndicator";
49import pageHeader from "./pageHeader";
50import select from "./select";
51import staticGrid from "./staticGrid";
52import table from "./table";
53import textarea from "./textarea";
54import typography from "./typography";
55import userMenu from "./userMenu";
56import { PatternConfiguration } from "./patterns";
57export { IconSetType } from "./icon";
58export type { IconSetConfiguration } from "./icon";
59export type { PatternConfiguration } from "./patterns";
60export { bem, useBem } from "./styles";
61export { actionButton, actionMenu, appLayout, avatar, avatarGroup, backToNav, badge, breadcrumb, button, container, content, drawer, drawerContainer, staticGrid, fluidGrid, footer, form, header, headerBanner, headerToolbar, hero, icons, input, image, mainNav, message, loadingIndicator, pageHeader, select, table, textarea, typography, userMenu, };
62export declare function createTheme(configuration: ThemeConfiguration, options?: Partial<CreatePrismThemeOptions>, ...args: object[]): PrismTheme;
63interface CreateStyleSheetOptions {
64 insertionPoint?: HTMLElement;
65}
66export declare function createStylesheet(themeConfig: ThemeConfiguration, patternsToLoad?: string[], options?: CreateStyleSheetOptions): StyleSheet;
67export declare function createStyles(theme: PrismTheme, patternsToLoad: string[], customStyles?: Styles): Styles;
68export declare function getPatterns(): Array<PatternConfiguration>;
69export type { IconStyles } from "./icon";
70export type { ThemeIcons, ThemeConfiguration, PrismTheme } from "./theme";