x-runtime-lib 0.9.0 → 0.9.2
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/dist/element/_common/items/index.d.ts +0 -1
- package/dist/index.js +1763 -1746
- package/dist/types/protocol.d.ts +10 -9
- package/dist/utils/misc.d.ts +4 -0
- package/package.json +1 -1
package/dist/types/protocol.d.ts
CHANGED
|
@@ -11,15 +11,16 @@ export type ZItem = {
|
|
|
11
11
|
title: string;
|
|
12
12
|
};
|
|
13
13
|
type ZTypeBase = {
|
|
14
|
+
value: string;
|
|
14
15
|
title: string;
|
|
15
|
-
validator: (v:
|
|
16
|
+
validator: (v: unknown) => boolean;
|
|
16
17
|
};
|
|
17
18
|
type ZTypeWord = {
|
|
18
|
-
|
|
19
|
+
trait: 'word';
|
|
19
20
|
default: string;
|
|
20
21
|
} & ZTypeBase;
|
|
21
22
|
type ZTypePixel = {
|
|
22
|
-
|
|
23
|
+
trait: 'pixel';
|
|
23
24
|
precision?: number;
|
|
24
25
|
min?: number;
|
|
25
26
|
max?: number;
|
|
@@ -27,22 +28,22 @@ type ZTypePixel = {
|
|
|
27
28
|
default: string;
|
|
28
29
|
} & ZTypeBase;
|
|
29
30
|
type ZTypePercent = {
|
|
30
|
-
|
|
31
|
+
trait: 'percent';
|
|
31
32
|
precision?: number;
|
|
32
33
|
min?: number;
|
|
33
34
|
max?: number;
|
|
34
35
|
step?: number;
|
|
35
36
|
default: string;
|
|
36
37
|
} & ZTypeBase;
|
|
37
|
-
type
|
|
38
|
-
|
|
38
|
+
type ZTypeHexColor = {
|
|
39
|
+
trait: 'hexColor';
|
|
39
40
|
default: string;
|
|
40
41
|
} & ZTypeBase;
|
|
41
42
|
type ZTypeThemeColor = {
|
|
42
|
-
|
|
43
|
+
trait: 'themeColor';
|
|
43
44
|
default: string;
|
|
44
45
|
} & ZTypeBase;
|
|
45
|
-
export type ZType = ZTypeWord | ZTypePixel | ZTypePercent |
|
|
46
|
+
export type ZType = ZTypeWord | ZTypePixel | ZTypePercent | ZTypeHexColor | ZTypeThemeColor;
|
|
46
47
|
type ZPropertyBranch = {
|
|
47
48
|
key: string;
|
|
48
49
|
name: string;
|
|
@@ -79,7 +80,7 @@ type ZPropertySwitch = {
|
|
|
79
80
|
} & ZPropertyBase;
|
|
80
81
|
type ZPropertySelect = {
|
|
81
82
|
ui: 'select';
|
|
82
|
-
items: 'alignTabsItemsV1' | 'axisTypeItemsV1' | 'borderStyleItemsV1' | '
|
|
83
|
+
items: 'alignTabsItemsV1' | 'axisTypeItemsV1' | 'borderStyleItemsV1' | 'densityItemsV1' | 'directionItemsV1' | 'fieldVariantItemsV1' | 'flexCrossAlignItemsV1' | 'flexDirectionItemsV1' | 'flexMainAlignItemsV1' | 'flexWrapItemsV1' | 'fontWeightItemsV1' | 'sheetVariantItemsV1' | 'showTicksItemsV1' | 'sizeItemsV1' | 'textAlignItemsV1' | 'textDecorationItemsV1' | 'textEmphasisItemsV1' | 'textSizeItemsV1' | 'thumbLabelItemsV1' | 'timelineAlignItemsV1' | 'timelineDirectionItemsV1' | 'timelineSideItemsV1' | 'timelineTruncateLineItemsV1';
|
|
83
84
|
default: string;
|
|
84
85
|
} & ZPropertyBase;
|
|
85
86
|
type ZPropertyColorPicker = {
|
package/dist/utils/misc.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export declare function parsePixel(v: unknown): number | undefined;
|
|
|
4
4
|
export declare function isPercent(v: unknown): boolean;
|
|
5
5
|
export declare function parsePercent(v: unknown): number | undefined;
|
|
6
6
|
export declare function isHexColor(v: unknown): boolean;
|
|
7
|
+
export declare const themeColors: {
|
|
8
|
+
value: string;
|
|
9
|
+
title: string;
|
|
10
|
+
}[];
|
|
7
11
|
export declare function isThemeColor(v: unknown): boolean;
|
|
8
12
|
export declare const breakpoints: string[];
|
|
9
13
|
export declare const reverseBreakpoints: string[];
|