UNPKG

3.1 kBTypeScriptView Raw
1/// <reference types="react" />
2import { ColorProps, DisplayProps, FontSizeProps, HeightProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, SpaceProps, WidthProps } from 'styled-system';
3import { Theme } from './theme';
4export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
5export { Theme } from './theme';
6export interface ThemedDefaultProps extends DefaultProps {
7 theme: Theme;
8}
9export interface StyledSystemProps extends SpaceProps, FontSizeProps, ColorProps, WidthProps, MinWidthProps, MaxWidthProps, HeightProps, MinHeightProps, MaxHeightProps, DisplayProps {
10}
11export declare type ResponsiveStyle = string | number | Array<string | number>;
12export interface DefaultProps extends React.DOMAttributes<HTMLElement> {
13 defaultChecked?: boolean;
14 defaultValue?: string | number | ReadonlyArray<string>;
15 suppressContentEditableWarning?: boolean;
16 accessKey?: string;
17 className?: string;
18 contentEditable?: boolean | 'inherit' | 'true' | 'false';
19 contextMenu?: string;
20 dir?: 'rtl';
21 draggable?: boolean | 'true' | 'false';
22 hidden?: boolean;
23 id?: string;
24 lang?: string;
25 slot?: string;
26 spellCheck?: boolean | 'true' | 'false';
27 style?: React.CSSProperties;
28 tabIndex?: number;
29 title?: string;
30}
31export declare type PineDataType = 'Boolean' | 'Case Insensitive Text' | 'Date Time' | 'Date' | 'Enum' | 'Integer' | 'Real' | 'Short Text' | 'Text' | 'Time' | 'Semver Range' | 'Semver';
32export interface SchemaEntry {
33 type: PineDataType;
34 values?: string[];
35 label?: string;
36}
37export interface Schema {
38 [key: string]: SchemaEntry;
39}
40export interface FilterRule {
41 availableOperators: Array<{
42 value: string;
43 label: string;
44 }>;
45 id: string;
46 label: string;
47 name: string;
48 operator: string;
49 type: string;
50 value: any;
51}
52export interface SingleFilterView {
53 id: string;
54 name: string;
55 scopeKey: string;
56 rules: FilterRule[];
57}
58export interface FilterViewScope {
59 key: string;
60 scopeLabel?: string;
61 title?: string;
62 data: SingleFilterView[];
63}
64export interface Coloring {
65 primary?: boolean;
66 secondary?: boolean;
67 tertiary?: boolean;
68 quartenary?: boolean;
69 danger?: boolean;
70 warning?: boolean;
71 success?: boolean;
72 info?: boolean;
73}
74export interface ThemeColorSet {
75 main: string;
76 light: string;
77 dark: string;
78}
79export interface WithSemilight {
80 semilight: string;
81}
82export declare type ColorShade = keyof ThemeColorSet;
83export interface Shading {
84 shade?: ColorShade;
85}
86export interface Sizing {
87 emphasized?: boolean;
88}
89export declare type RenditionSystemProps = Tooltip & StyledSystemProps;
90export declare type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
91export interface TooltipProps {
92 text: string;
93 trigger?: 'click' | 'hover';
94 placement?: TooltipPlacement;
95 containerStyle?: React.CSSProperties;
96 innerStyle?: React.CSSProperties;
97 arrowStyle?: React.CSSProperties;
98}
99export interface Tooltip {
100 tooltip?: string | TooltipProps;
101}