1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | import { Action } from "./action.js";
|
13 | import { FlexComponentBase } from "./models.js";
|
14 | export type FlexButton = FlexComponentBase & {
|
15 | type: "button";
|
16 | |
17 |
|
18 | flex?: number;
|
19 | |
20 |
|
21 | color?: string;
|
22 | |
23 |
|
24 | style?: FlexButton.StyleEnum;
|
25 | |
26 |
|
27 | action: Action;
|
28 | |
29 |
|
30 | gravity?: FlexButton.GravityEnum;
|
31 | |
32 |
|
33 | margin?: string;
|
34 | |
35 |
|
36 | position?: FlexButton.PositionEnum;
|
37 | |
38 |
|
39 | offsetTop?: string;
|
40 | |
41 |
|
42 | offsetBottom?: string;
|
43 | |
44 |
|
45 | offsetStart?: string;
|
46 | |
47 |
|
48 | offsetEnd?: string;
|
49 | |
50 |
|
51 | height?: FlexButton.HeightEnum;
|
52 | |
53 |
|
54 | adjustMode?: FlexButton.AdjustModeEnum;
|
55 | |
56 |
|
57 | scaling?: boolean;
|
58 | };
|
59 | export declare namespace FlexButton {
|
60 | type StyleEnum = "primary" | "secondary" | "link";
|
61 | type GravityEnum = "top" | "bottom" | "center";
|
62 | type PositionEnum = "relative" | "absolute";
|
63 | type HeightEnum = "md" | "sm";
|
64 | type AdjustModeEnum = "shrink-to-fit";
|
65 | }
|
66 |
|
\ | No newline at end of file |