1 |
|
2 | import { ColorProps, DisplayProps, FontSizeProps, HeightProps, MaxHeightProps, MaxWidthProps, MinHeightProps, MinWidthProps, SpaceProps, WidthProps } from 'styled-system';
|
3 | import { Theme } from './theme';
|
4 | export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
5 | export { Theme } from './theme';
|
6 | export interface ThemedDefaultProps extends DefaultProps {
|
7 | theme: Theme;
|
8 | }
|
9 | export interface StyledSystemProps extends SpaceProps, FontSizeProps, ColorProps, WidthProps, MinWidthProps, MaxWidthProps, HeightProps, MinHeightProps, MaxHeightProps, DisplayProps {
|
10 | }
|
11 | export declare type ResponsiveStyle = string | number | Array<string | number>;
|
12 | export 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 | }
|
31 | export declare type PineDataType = 'Boolean' | 'Case Insensitive Text' | 'Date Time' | 'Date' | 'Enum' | 'Integer' | 'Real' | 'Short Text' | 'Text' | 'Time' | 'Semver Range' | 'Semver';
|
32 | export interface SchemaEntry {
|
33 | type: PineDataType;
|
34 | values?: string[];
|
35 | label?: string;
|
36 | }
|
37 | export interface Schema {
|
38 | [key: string]: SchemaEntry;
|
39 | }
|
40 | export 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 | }
|
52 | export interface SingleFilterView {
|
53 | id: string;
|
54 | name: string;
|
55 | scopeKey: string;
|
56 | rules: FilterRule[];
|
57 | }
|
58 | export interface FilterViewScope {
|
59 | key: string;
|
60 | scopeLabel?: string;
|
61 | title?: string;
|
62 | data: SingleFilterView[];
|
63 | }
|
64 | export 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 | }
|
74 | export interface ThemeColorSet {
|
75 | main: string;
|
76 | light: string;
|
77 | dark: string;
|
78 | }
|
79 | export interface WithSemilight {
|
80 | semilight: string;
|
81 | }
|
82 | export declare type ColorShade = keyof ThemeColorSet;
|
83 | export interface Shading {
|
84 | shade?: ColorShade;
|
85 | }
|
86 | export interface Sizing {
|
87 | emphasized?: boolean;
|
88 | }
|
89 | export declare type RenditionSystemProps = Tooltip & StyledSystemProps;
|
90 | export declare type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
|
91 | export 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 | }
|
99 | export interface Tooltip {
|
100 | tooltip?: string | TooltipProps;
|
101 | }
|