@makeswift/prop-controllers 0.1.1 → 0.2.0-canary.1
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/index.cjs +494 -220
- package/dist/types/border copy/border.d.ts +2435 -0
- package/dist/types/border copy/border.d.ts.map +1 -0
- package/dist/types/border copy/border.test.d.ts +2 -0
- package/dist/types/border copy/border.test.d.ts.map +1 -0
- package/dist/types/border copy/index.d.ts +2 -0
- package/dist/types/border copy/index.d.ts.map +1 -0
- package/dist/types/date/checkbox.test.d.ts +2 -0
- package/dist/types/date/checkbox.test.d.ts.map +1 -0
- package/dist/types/date copy/date.d.ts +50 -0
- package/dist/types/date copy/date.d.ts.map +1 -0
- package/dist/types/date copy/date.test.d.ts +2 -0
- package/dist/types/date copy/date.test.d.ts.map +1 -0
- package/dist/types/date copy/index.d.ts +2 -0
- package/dist/types/date copy/index.d.ts.map +1 -0
- package/dist/types/deleted.d.ts +1 -0
- package/dist/types/deleted.d.ts.map +1 -0
- package/dist/types/deteted.d.ts +1 -0
- package/dist/types/deteted.d.ts.map +1 -0
- package/dist/types/element-id/date.d.ts +50 -0
- package/dist/types/element-id/date.d.ts.map +1 -0
- package/dist/types/element-id/date.test.d.ts +2 -0
- package/dist/types/element-id/date.test.d.ts.map +1 -0
- package/dist/types/element-id/element-id.d.ts +51 -0
- package/dist/types/element-id/element-id.d.ts.map +1 -0
- package/dist/types/element-id/element-id.test.d.ts +2 -0
- package/dist/types/element-id/element-id.test.d.ts.map +1 -0
- package/dist/types/element-id/index.d.ts +2 -0
- package/dist/types/element-id/index.d.ts.map +1 -0
- package/dist/types/font/border.d.ts +2435 -0
- package/dist/types/font/border.d.ts.map +1 -0
- package/dist/types/font/border.test.d.ts +2 -0
- package/dist/types/font/border.test.d.ts.map +1 -0
- package/dist/types/font/date.d.ts +50 -0
- package/dist/types/font/date.d.ts.map +1 -0
- package/dist/types/font/date.test.d.ts +2 -0
- package/dist/types/font/date.test.d.ts.map +1 -0
- package/dist/types/gap-x/text-style.d.ts +589 -0
- package/dist/types/gap-x/text-style.d.ts.map +1 -0
- package/dist/types/gap-x/text-style.test.d.ts +2 -0
- package/dist/types/gap-x/text-style.test.d.ts.map +1 -0
- package/dist/types/gap-x copy/gap-x.d.ts +177 -0
- package/dist/types/gap-x copy/gap-x.d.ts.map +1 -0
- package/dist/types/gap-x copy/gap-x.test.d.ts +2 -0
- package/dist/types/gap-x copy/gap-x.test.d.ts.map +1 -0
- package/dist/types/gap-x copy/index.d.ts +2 -0
- package/dist/types/gap-x copy/index.d.ts.map +1 -0
- package/dist/types/gap-y/gap-x.d.ts +177 -0
- package/dist/types/gap-y/gap-x.d.ts.map +1 -0
- package/dist/types/gap-y/gap-x.test.d.ts +2 -0
- package/dist/types/gap-y/gap-x.test.d.ts.map +1 -0
- package/dist/types/grid/grid.d.ts +548 -0
- package/dist/types/grid/grid.d.ts.map +1 -0
- package/dist/types/grid/grid.test.d.ts +2 -0
- package/dist/types/grid/grid.test.d.ts.map +1 -0
- package/dist/types/grid/index.d.ts +2 -0
- package/dist/types/grid/index.d.ts.map +1 -0
- package/dist/types/grid/table.d.ts +54 -0
- package/dist/types/grid/table.d.ts.map +1 -0
- package/dist/types/grid/table.test.d.ts +2 -0
- package/dist/types/grid/table.test.d.ts.map +1 -0
- package/dist/types/image/date.d.ts +50 -0
- package/dist/types/image/date.d.ts.map +1 -0
- package/dist/types/image/date.test.d.ts +2 -0
- package/dist/types/image/date.test.d.ts.map +1 -0
- package/dist/types/image/image.d.ts +267 -0
- package/dist/types/image/image.d.ts.map +1 -0
- package/dist/types/image/image.test.d.ts +2 -0
- package/dist/types/image/image.test.d.ts.map +1 -0
- package/dist/types/image/index.d.ts +2 -0
- package/dist/types/image/index.d.ts.map +1 -0
- package/dist/types/image copy/image.d.ts +267 -0
- package/dist/types/image copy/image.d.ts.map +1 -0
- package/dist/types/image copy/image.test.d.ts +2 -0
- package/dist/types/image copy/image.test.d.ts.map +1 -0
- package/dist/types/image copy/index.d.ts +2 -0
- package/dist/types/image copy/index.d.ts.map +1 -0
- package/dist/types/images/image.d.ts +267 -0
- package/dist/types/images/image.d.ts.map +1 -0
- package/dist/types/images/image.test.d.ts +2 -0
- package/dist/types/images/image.test.d.ts.map +1 -0
- package/dist/types/images/images.d.ts +61 -0
- package/dist/types/images/images.d.ts.map +1 -0
- package/dist/types/images/images.test.d.ts +2 -0
- package/dist/types/images/images.test.d.ts.map +1 -0
- package/dist/types/images/index.d.ts +2 -0
- package/dist/types/images/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/margin/border.d.ts +2435 -0
- package/dist/types/margin/border.d.ts.map +1 -0
- package/dist/types/margin/border.test.d.ts +2 -0
- package/dist/types/margin/border.test.d.ts.map +1 -0
- package/dist/types/margin copy/index.d.ts +2 -0
- package/dist/types/margin copy/index.d.ts.map +1 -0
- package/dist/types/margin copy/margin.d.ts +1026 -0
- package/dist/types/margin copy/margin.d.ts.map +1 -0
- package/dist/types/margin copy/margin.test.d.ts +2 -0
- package/dist/types/margin copy/margin.test.d.ts.map +1 -0
- package/dist/types/navigation-links/date.d.ts +50 -0
- package/dist/types/navigation-links/date.d.ts.map +1 -0
- package/dist/types/navigation-links/date.test.d.ts +2 -0
- package/dist/types/navigation-links/date.test.d.ts.map +1 -0
- package/dist/types/padding/margin.d.ts +1026 -0
- package/dist/types/padding/margin.d.ts.map +1 -0
- package/dist/types/padding/margin.test.d.ts +2 -0
- package/dist/types/padding/margin.test.d.ts.map +1 -0
- package/dist/types/padding copy/index.d.ts +2 -0
- package/dist/types/padding copy/index.d.ts.map +1 -0
- package/dist/types/padding copy/padding.d.ts +1026 -0
- package/dist/types/padding copy/padding.d.ts.map +1 -0
- package/dist/types/padding copy/padding.test.d.ts +2 -0
- package/dist/types/padding copy/padding.test.d.ts.map +1 -0
- package/dist/types/prop-controllers.d.ts +57 -5
- package/dist/types/prop-controllers.d.ts.map +1 -1
- package/dist/types/table/date.d.ts +50 -0
- package/dist/types/table/date.d.ts.map +1 -0
- package/dist/types/table/date.test.d.ts +2 -0
- package/dist/types/table/date.test.d.ts.map +1 -0
- package/dist/types/table copy/index.d.ts +2 -0
- package/dist/types/table copy/index.d.ts.map +1 -0
- package/dist/types/table copy/table.d.ts +54 -0
- package/dist/types/table copy/table.d.ts.map +1 -0
- package/dist/types/table copy/table.test.d.ts +2 -0
- package/dist/types/table copy/table.test.d.ts.map +1 -0
- package/dist/types/table-form-fields/date.d.ts +50 -0
- package/dist/types/table-form-fields/date.d.ts.map +1 -0
- package/dist/types/table-form-fields/date.test.d.ts +2 -0
- package/dist/types/table-form-fields/date.test.d.ts.map +1 -0
- package/dist/types/table-form-fields/index.d.ts +2 -0
- package/dist/types/table-form-fields/index.d.ts.map +1 -0
- package/dist/types/table-form-fields/table-form-fields.d.ts +633 -0
- package/dist/types/table-form-fields/table-form-fields.d.ts.map +1 -0
- package/dist/types/table-form-fields/table-form-fields.test.d.ts +2 -0
- package/dist/types/table-form-fields/table-form-fields.test.d.ts.map +1 -0
- package/dist/types/text-area/date.d.ts +50 -0
- package/dist/types/text-area/date.d.ts.map +1 -0
- package/dist/types/text-area/date.test.d.ts +2 -0
- package/dist/types/text-area/date.test.d.ts.map +1 -0
- package/dist/types/text-style/font.test.d.ts +2 -0
- package/dist/types/text-style/font.test.d.ts.map +1 -0
- package/dist/types/text-style copy/index.d.ts +2 -0
- package/dist/types/text-style copy/index.d.ts.map +1 -0
- package/dist/types/text-style copy/text-style.d.ts +589 -0
- package/dist/types/text-style copy/text-style.d.ts.map +1 -0
- package/dist/types/text-style copy/text-style.test.d.ts +2 -0
- package/dist/types/text-style copy/text-style.test.d.ts.map +1 -0
- package/dist/types/typeahead/date.d.ts +50 -0
- package/dist/types/typeahead/date.d.ts.map +1 -0
- package/dist/types/typeahead/date.test.d.ts +2 -0
- package/dist/types/typeahead/date.test.d.ts.map +1 -0
- package/dist/types/typeahead/index.d.ts +2 -0
- package/dist/types/typeahead/index.d.ts.map +1 -0
- package/dist/types/typeahead/typeahead.d.ts +50 -0
- package/dist/types/typeahead/typeahead.d.ts.map +1 -0
- package/dist/types/typeahead/typeahead.test.d.ts +2 -0
- package/dist/types/typeahead/typeahead.test.d.ts.map +1 -0
- package/dist/types/video/date.d.ts +50 -0
- package/dist/types/video/date.d.ts.map +1 -0
- package/dist/types/video/date.test.d.ts +2 -0
- package/dist/types/video/date.test.d.ts.map +1 -0
- package/dist/types/video/font.test.d.ts +2 -0
- package/dist/types/video/font.test.d.ts.map +1 -0
- package/dist/types/width/padding.d.ts +1026 -0
- package/dist/types/width/padding.d.ts.map +1 -0
- package/dist/types/width/padding.test.d.ts +2 -0
- package/dist/types/width/padding.test.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { Options, Types } from '../prop-controllers';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { GapData, ResponsiveGapData } from '../data';
|
|
4
|
+
declare const gapXPropControllerDataV0Schema: z.ZodArray<z.ZodObject<{
|
|
5
|
+
deviceId: z.ZodString;
|
|
6
|
+
value: z.ZodObject<{
|
|
7
|
+
value: z.ZodNumber;
|
|
8
|
+
unit: z.ZodLiteral<"px">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
value: number;
|
|
11
|
+
unit: "px";
|
|
12
|
+
}, {
|
|
13
|
+
value: number;
|
|
14
|
+
unit: "px";
|
|
15
|
+
}>;
|
|
16
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
17
|
+
value: {
|
|
18
|
+
value: number;
|
|
19
|
+
unit: "px";
|
|
20
|
+
};
|
|
21
|
+
deviceId: string;
|
|
22
|
+
}, {
|
|
23
|
+
value: {
|
|
24
|
+
value: number;
|
|
25
|
+
unit: "px";
|
|
26
|
+
};
|
|
27
|
+
deviceId: string;
|
|
28
|
+
}>, "many">;
|
|
29
|
+
export type GapXPropControllerDataV0 = z.infer<typeof gapXPropControllerDataV0Schema>;
|
|
30
|
+
export declare const GapXPropControllerDataV1Type = "prop-controllers::gap-x::v1";
|
|
31
|
+
declare const gapXPropControllerDataV1Schema: z.ZodObject<{
|
|
32
|
+
"@@makeswift/type": z.ZodLiteral<"prop-controllers::gap-x::v1">;
|
|
33
|
+
value: z.ZodArray<z.ZodObject<{
|
|
34
|
+
deviceId: z.ZodString;
|
|
35
|
+
value: z.ZodObject<{
|
|
36
|
+
value: z.ZodNumber;
|
|
37
|
+
unit: z.ZodLiteral<"px">;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
value: number;
|
|
40
|
+
unit: "px";
|
|
41
|
+
}, {
|
|
42
|
+
value: number;
|
|
43
|
+
unit: "px";
|
|
44
|
+
}>;
|
|
45
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
46
|
+
value: {
|
|
47
|
+
value: number;
|
|
48
|
+
unit: "px";
|
|
49
|
+
};
|
|
50
|
+
deviceId: string;
|
|
51
|
+
}, {
|
|
52
|
+
value: {
|
|
53
|
+
value: number;
|
|
54
|
+
unit: "px";
|
|
55
|
+
};
|
|
56
|
+
deviceId: string;
|
|
57
|
+
}>, "many">;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
value: {
|
|
60
|
+
value: {
|
|
61
|
+
value: number;
|
|
62
|
+
unit: "px";
|
|
63
|
+
};
|
|
64
|
+
deviceId: string;
|
|
65
|
+
}[];
|
|
66
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
|
67
|
+
}, {
|
|
68
|
+
value: {
|
|
69
|
+
value: {
|
|
70
|
+
value: number;
|
|
71
|
+
unit: "px";
|
|
72
|
+
};
|
|
73
|
+
deviceId: string;
|
|
74
|
+
}[];
|
|
75
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
|
76
|
+
}>;
|
|
77
|
+
export type GapXPropControllerDataV1 = z.infer<typeof gapXPropControllerDataV1Schema>;
|
|
78
|
+
export declare const gapXPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
79
|
+
deviceId: z.ZodString;
|
|
80
|
+
value: z.ZodObject<{
|
|
81
|
+
value: z.ZodNumber;
|
|
82
|
+
unit: z.ZodLiteral<"px">;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
value: number;
|
|
85
|
+
unit: "px";
|
|
86
|
+
}, {
|
|
87
|
+
value: number;
|
|
88
|
+
unit: "px";
|
|
89
|
+
}>;
|
|
90
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
91
|
+
value: {
|
|
92
|
+
value: number;
|
|
93
|
+
unit: "px";
|
|
94
|
+
};
|
|
95
|
+
deviceId: string;
|
|
96
|
+
}, {
|
|
97
|
+
value: {
|
|
98
|
+
value: number;
|
|
99
|
+
unit: "px";
|
|
100
|
+
};
|
|
101
|
+
deviceId: string;
|
|
102
|
+
}>, "many">, z.ZodObject<{
|
|
103
|
+
"@@makeswift/type": z.ZodLiteral<"prop-controllers::gap-x::v1">;
|
|
104
|
+
value: z.ZodArray<z.ZodObject<{
|
|
105
|
+
deviceId: z.ZodString;
|
|
106
|
+
value: z.ZodObject<{
|
|
107
|
+
value: z.ZodNumber;
|
|
108
|
+
unit: z.ZodLiteral<"px">;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
value: number;
|
|
111
|
+
unit: "px";
|
|
112
|
+
}, {
|
|
113
|
+
value: number;
|
|
114
|
+
unit: "px";
|
|
115
|
+
}>;
|
|
116
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
117
|
+
value: {
|
|
118
|
+
value: number;
|
|
119
|
+
unit: "px";
|
|
120
|
+
};
|
|
121
|
+
deviceId: string;
|
|
122
|
+
}, {
|
|
123
|
+
value: {
|
|
124
|
+
value: number;
|
|
125
|
+
unit: "px";
|
|
126
|
+
};
|
|
127
|
+
deviceId: string;
|
|
128
|
+
}>, "many">;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
value: {
|
|
131
|
+
value: {
|
|
132
|
+
value: number;
|
|
133
|
+
unit: "px";
|
|
134
|
+
};
|
|
135
|
+
deviceId: string;
|
|
136
|
+
}[];
|
|
137
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
|
138
|
+
}, {
|
|
139
|
+
value: {
|
|
140
|
+
value: {
|
|
141
|
+
value: number;
|
|
142
|
+
unit: "px";
|
|
143
|
+
};
|
|
144
|
+
deviceId: string;
|
|
145
|
+
}[];
|
|
146
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
|
147
|
+
}>]>;
|
|
148
|
+
export type GapXPropControllerData = z.infer<typeof gapXPropControllerDataSchema>;
|
|
149
|
+
export type GapXOptions = Options<{
|
|
150
|
+
preset?: ResponsiveGapData;
|
|
151
|
+
label?: string;
|
|
152
|
+
defaultValue?: GapData;
|
|
153
|
+
min?: number;
|
|
154
|
+
max?: number;
|
|
155
|
+
step?: number;
|
|
156
|
+
hidden?: boolean;
|
|
157
|
+
}>;
|
|
158
|
+
type GapXDescriptorV0<_T = GapXPropControllerDataV0, U extends GapXOptions = GapXOptions> = {
|
|
159
|
+
type: typeof Types.GapX;
|
|
160
|
+
options: U;
|
|
161
|
+
};
|
|
162
|
+
type GapXDescriptorV1<_T = GapXPropControllerData, U extends GapXOptions = GapXOptions> = {
|
|
163
|
+
type: typeof Types.GapX;
|
|
164
|
+
version: 1;
|
|
165
|
+
options: U;
|
|
166
|
+
};
|
|
167
|
+
export type GapXDescriptor<_T = GapXPropControllerData, U extends GapXOptions = GapXOptions> = GapXDescriptorV0<_T, U> | GapXDescriptorV1<_T, U>;
|
|
168
|
+
export type ResolveGapXPropControllerValue<T extends GapXDescriptor> = T extends GapXDescriptor ? ResponsiveGapData | undefined : never;
|
|
169
|
+
/**
|
|
170
|
+
* @deprecated Imports from `@makeswift/prop-controllers` are deprecated. Use
|
|
171
|
+
* `@makeswift/runtime/controls` instead.
|
|
172
|
+
*/
|
|
173
|
+
export declare function GapX(options?: GapXOptions): GapXDescriptor<GapXPropControllerData>;
|
|
174
|
+
export declare function getGapXPropControllerDataResponsiveGapData(data: GapXPropControllerData | undefined): ResponsiveGapData | undefined;
|
|
175
|
+
export declare function createGapXPropControllerDataFromResponsiveGapData(responsiveGapData: ResponsiveGapData, definition: GapXDescriptor): GapXPropControllerData;
|
|
176
|
+
export {};
|
|
177
|
+
//# sourceMappingURL=gap-x.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gap-x.d.ts","sourceRoot":"","sources":["../../../src/gap-x copy/gap-x.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAA2B,MAAM,SAAS,CAAA;AAE7E,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;WAA0B,CAAA;AAE9D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAA;AAED,eAAO,MAAM,4BAA4B,gCAAgC,CAAA;AAEzE,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAA;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGvC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,iBAAiB,CAAA;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
|
|
1
|
+
{"version":3,"file":"gap-x.test.d.ts","sourceRoot":"","sources":["../../../src/gap-x copy/gap-x.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/gap-x copy/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { Options, Types } from '../prop-controllers';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { GapData, ResponsiveGapData } from '../data';
|
|
4
|
+
declare const gapXPropControllerDataV0Schema: z.ZodArray<z.ZodObject<{
|
|
5
|
+
deviceId: z.ZodString;
|
|
6
|
+
value: z.ZodObject<{
|
|
7
|
+
value: z.ZodNumber;
|
|
8
|
+
unit: z.ZodLiteral<"px">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
value: number;
|
|
11
|
+
unit: "px";
|
|
12
|
+
}, {
|
|
13
|
+
value: number;
|
|
14
|
+
unit: "px";
|
|
15
|
+
}>;
|
|
16
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
17
|
+
value: {
|
|
18
|
+
value: number;
|
|
19
|
+
unit: "px";
|
|
20
|
+
};
|
|
21
|
+
deviceId: string;
|
|
22
|
+
}, {
|
|
23
|
+
value: {
|
|
24
|
+
value: number;
|
|
25
|
+
unit: "px";
|
|
26
|
+
};
|
|
27
|
+
deviceId: string;
|
|
28
|
+
}>, "many">;
|
|
29
|
+
export type GapXPropControllerDataV0 = z.infer<typeof gapXPropControllerDataV0Schema>;
|
|
30
|
+
export declare const GapXPropControllerDataV1Type = "prop-controllers::gap-x::v1";
|
|
31
|
+
declare const gapXPropControllerDataV1Schema: z.ZodObject<{
|
|
32
|
+
"@@makeswift/type": z.ZodLiteral<"prop-controllers::gap-x::v1">;
|
|
33
|
+
value: z.ZodArray<z.ZodObject<{
|
|
34
|
+
deviceId: z.ZodString;
|
|
35
|
+
value: z.ZodObject<{
|
|
36
|
+
value: z.ZodNumber;
|
|
37
|
+
unit: z.ZodLiteral<"px">;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
value: number;
|
|
40
|
+
unit: "px";
|
|
41
|
+
}, {
|
|
42
|
+
value: number;
|
|
43
|
+
unit: "px";
|
|
44
|
+
}>;
|
|
45
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
46
|
+
value: {
|
|
47
|
+
value: number;
|
|
48
|
+
unit: "px";
|
|
49
|
+
};
|
|
50
|
+
deviceId: string;
|
|
51
|
+
}, {
|
|
52
|
+
value: {
|
|
53
|
+
value: number;
|
|
54
|
+
unit: "px";
|
|
55
|
+
};
|
|
56
|
+
deviceId: string;
|
|
57
|
+
}>, "many">;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
value: {
|
|
60
|
+
value: {
|
|
61
|
+
value: number;
|
|
62
|
+
unit: "px";
|
|
63
|
+
};
|
|
64
|
+
deviceId: string;
|
|
65
|
+
}[];
|
|
66
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
|
67
|
+
}, {
|
|
68
|
+
value: {
|
|
69
|
+
value: {
|
|
70
|
+
value: number;
|
|
71
|
+
unit: "px";
|
|
72
|
+
};
|
|
73
|
+
deviceId: string;
|
|
74
|
+
}[];
|
|
75
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
|
76
|
+
}>;
|
|
77
|
+
export type GapXPropControllerDataV1 = z.infer<typeof gapXPropControllerDataV1Schema>;
|
|
78
|
+
export declare const gapXPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
79
|
+
deviceId: z.ZodString;
|
|
80
|
+
value: z.ZodObject<{
|
|
81
|
+
value: z.ZodNumber;
|
|
82
|
+
unit: z.ZodLiteral<"px">;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
value: number;
|
|
85
|
+
unit: "px";
|
|
86
|
+
}, {
|
|
87
|
+
value: number;
|
|
88
|
+
unit: "px";
|
|
89
|
+
}>;
|
|
90
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
91
|
+
value: {
|
|
92
|
+
value: number;
|
|
93
|
+
unit: "px";
|
|
94
|
+
};
|
|
95
|
+
deviceId: string;
|
|
96
|
+
}, {
|
|
97
|
+
value: {
|
|
98
|
+
value: number;
|
|
99
|
+
unit: "px";
|
|
100
|
+
};
|
|
101
|
+
deviceId: string;
|
|
102
|
+
}>, "many">, z.ZodObject<{
|
|
103
|
+
"@@makeswift/type": z.ZodLiteral<"prop-controllers::gap-x::v1">;
|
|
104
|
+
value: z.ZodArray<z.ZodObject<{
|
|
105
|
+
deviceId: z.ZodString;
|
|
106
|
+
value: z.ZodObject<{
|
|
107
|
+
value: z.ZodNumber;
|
|
108
|
+
unit: z.ZodLiteral<"px">;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
value: number;
|
|
111
|
+
unit: "px";
|
|
112
|
+
}, {
|
|
113
|
+
value: number;
|
|
114
|
+
unit: "px";
|
|
115
|
+
}>;
|
|
116
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
117
|
+
value: {
|
|
118
|
+
value: number;
|
|
119
|
+
unit: "px";
|
|
120
|
+
};
|
|
121
|
+
deviceId: string;
|
|
122
|
+
}, {
|
|
123
|
+
value: {
|
|
124
|
+
value: number;
|
|
125
|
+
unit: "px";
|
|
126
|
+
};
|
|
127
|
+
deviceId: string;
|
|
128
|
+
}>, "many">;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
value: {
|
|
131
|
+
value: {
|
|
132
|
+
value: number;
|
|
133
|
+
unit: "px";
|
|
134
|
+
};
|
|
135
|
+
deviceId: string;
|
|
136
|
+
}[];
|
|
137
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
|
138
|
+
}, {
|
|
139
|
+
value: {
|
|
140
|
+
value: {
|
|
141
|
+
value: number;
|
|
142
|
+
unit: "px";
|
|
143
|
+
};
|
|
144
|
+
deviceId: string;
|
|
145
|
+
}[];
|
|
146
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
|
147
|
+
}>]>;
|
|
148
|
+
export type GapXPropControllerData = z.infer<typeof gapXPropControllerDataSchema>;
|
|
149
|
+
export type GapXOptions = Options<{
|
|
150
|
+
preset?: ResponsiveGapData;
|
|
151
|
+
label?: string;
|
|
152
|
+
defaultValue?: GapData;
|
|
153
|
+
min?: number;
|
|
154
|
+
max?: number;
|
|
155
|
+
step?: number;
|
|
156
|
+
hidden?: boolean;
|
|
157
|
+
}>;
|
|
158
|
+
type GapXDescriptorV0<_T = GapXPropControllerDataV0, U extends GapXOptions = GapXOptions> = {
|
|
159
|
+
type: typeof Types.GapX;
|
|
160
|
+
options: U;
|
|
161
|
+
};
|
|
162
|
+
type GapXDescriptorV1<_T = GapXPropControllerData, U extends GapXOptions = GapXOptions> = {
|
|
163
|
+
type: typeof Types.GapX;
|
|
164
|
+
version: 1;
|
|
165
|
+
options: U;
|
|
166
|
+
};
|
|
167
|
+
export type GapXDescriptor<_T = GapXPropControllerData, U extends GapXOptions = GapXOptions> = GapXDescriptorV0<_T, U> | GapXDescriptorV1<_T, U>;
|
|
168
|
+
export type ResolveGapXPropControllerValue<T extends GapXDescriptor> = T extends GapXDescriptor ? ResponsiveGapData | undefined : never;
|
|
169
|
+
/**
|
|
170
|
+
* @deprecated Imports from `@makeswift/prop-controllers` are deprecated. Use
|
|
171
|
+
* `@makeswift/runtime/controls` instead.
|
|
172
|
+
*/
|
|
173
|
+
export declare function GapX(options?: GapXOptions): GapXDescriptor<GapXPropControllerData>;
|
|
174
|
+
export declare function getGapXPropControllerDataResponsiveGapData(data: GapXPropControllerData | undefined): ResponsiveGapData | undefined;
|
|
175
|
+
export declare function createGapXPropControllerDataFromResponsiveGapData(responsiveGapData: ResponsiveGapData, definition: GapXDescriptor): GapXPropControllerData;
|
|
176
|
+
export {};
|
|
177
|
+
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