@makeswift/prop-controllers 0.2.1 → 0.3.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 +450 -372
- package/dist/types/data.d.ts +11 -0
- package/dist/types/data.d.ts.map +1 -1
- package/dist/types/gap-x/gap-x.d.ts +437 -121
- package/dist/types/gap-x/gap-x.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/prop-controllers.d.ts +10 -0
- package/dist/types/prop-controllers.d.ts.map +1 -1
- package/dist/types/responsive-number/index.d.ts +2 -0
- package/dist/types/responsive-number/index.d.ts.map +1 -0
- package/dist/types/responsive-number/responsive-number.d.ts +225 -0
- package/dist/types/responsive-number/responsive-number.d.ts.map +1 -0
- package/dist/types/responsive-number/responsive-number.test.d.ts +2 -0
- package/dist/types/responsive-number/responsive-number.test.d.ts.map +1 -0
- package/dist/types/responsive-opacity/index.d.ts +2 -0
- package/dist/types/responsive-opacity/index.d.ts.map +1 -0
- package/dist/types/responsive-opacity/responsive-opacity.d.ts +261 -0
- package/dist/types/responsive-opacity/responsive-opacity.d.ts.map +1 -0
- package/dist/types/responsive-opacity/responsive-opacity.test.d.ts +2 -0
- package/dist/types/responsive-opacity/responsive-opacity.test.d.ts.map +1 -0
- package/dist/types/utils/associated-types.d.ts +5 -0
- package/dist/types/utils/associated-types.d.ts.map +1 -0
- package/dist/types/versioned.d.ts +337 -0
- package/dist/types/versioned.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/types/data.d.ts
CHANGED
@@ -124,4 +124,15 @@ export declare const imageDataSchema: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.Zod
|
|
124
124
|
height?: number | null | undefined;
|
125
125
|
}>]>]>;
|
126
126
|
export type ImageData = z.infer<typeof imageDataSchema>;
|
127
|
+
export declare const responsiveNumberValueSchema: z.ZodArray<z.ZodObject<{
|
128
|
+
deviceId: z.ZodString;
|
129
|
+
value: z.ZodNumber;
|
130
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
131
|
+
value: number;
|
132
|
+
deviceId: string;
|
133
|
+
}, {
|
134
|
+
value: number;
|
135
|
+
deviceId: string;
|
136
|
+
}>, "many">;
|
137
|
+
export type ResponsiveNumberValue = z.infer<typeof responsiveNumberValueSchema>;
|
127
138
|
//# sourceMappingURL=data.d.ts.map
|
package/dist/types/data.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,eAAO,MAAM,aAAa;;;;;;;;;EAGxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEnD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;WACQ,CAAA;AAE5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAIvE,eAAO,MAAM,iBAAiB,aAAe,CAAA;AAE7C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAgB3D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAG5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkD,CAAA;AAE9E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,eAAO,MAAM,aAAa;;;;;;;;;EAGxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEnD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;WACQ,CAAA;AAE5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAIvE,eAAO,MAAM,iBAAiB,aAAe,CAAA;AAE7C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAgB3D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAG5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkD,CAAA;AAE9E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,eAAO,MAAM,2BAA2B;;;;;;;;;WAEvC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA"}
|
@@ -1,48 +1,276 @@
|
|
1
|
-
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
export declare const GapX: {
|
2
|
+
(options: import("../prop-controllers").Options<{
|
3
|
+
preset?: unknown;
|
4
|
+
label?: string | undefined;
|
5
|
+
defaultValue?: {
|
6
|
+
value: number;
|
7
|
+
unit: "px";
|
8
|
+
} | undefined;
|
9
|
+
min?: number | undefined;
|
10
|
+
max?: number | undefined;
|
11
|
+
step?: number | undefined;
|
12
|
+
hidden?: boolean | undefined;
|
13
|
+
} & {
|
14
|
+
preset?: {
|
15
|
+
value: {
|
16
|
+
value: number;
|
17
|
+
unit: "px";
|
18
|
+
};
|
19
|
+
deviceId: string;
|
20
|
+
}[] | {
|
21
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
22
|
+
value: {
|
23
|
+
value: {
|
24
|
+
value: number;
|
25
|
+
unit: "px";
|
26
|
+
};
|
27
|
+
deviceId: string;
|
28
|
+
}[];
|
29
|
+
} | undefined;
|
30
|
+
}>): import("../versioned").VersionedDescriptor<import("../versioned").VersionDiscriminator<1, "prop-controllers::gap-x::v1">, "GapX", import("../prop-controllers").Options<{
|
31
|
+
preset?: unknown;
|
32
|
+
label?: string | undefined;
|
33
|
+
defaultValue?: {
|
34
|
+
value: number;
|
35
|
+
unit: "px";
|
36
|
+
} | undefined;
|
37
|
+
min?: number | undefined;
|
38
|
+
max?: number | undefined;
|
39
|
+
step?: number | undefined;
|
40
|
+
hidden?: boolean | undefined;
|
41
|
+
} & {
|
42
|
+
preset?: {
|
43
|
+
value: {
|
44
|
+
value: number;
|
45
|
+
unit: "px";
|
46
|
+
};
|
47
|
+
deviceId: string;
|
48
|
+
}[] | {
|
49
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
50
|
+
value: {
|
51
|
+
value: {
|
52
|
+
value: number;
|
53
|
+
unit: "px";
|
54
|
+
};
|
55
|
+
deviceId: string;
|
56
|
+
}[];
|
57
|
+
} | undefined;
|
58
|
+
}>> & {
|
59
|
+
__associated_types__?: (() => {
|
60
|
+
Options: import("../prop-controllers").Options<{
|
61
|
+
preset?: unknown;
|
62
|
+
label?: string | undefined;
|
63
|
+
defaultValue?: {
|
64
|
+
value: number;
|
65
|
+
unit: "px";
|
66
|
+
} | undefined;
|
67
|
+
min?: number | undefined;
|
68
|
+
max?: number | undefined;
|
69
|
+
step?: number | undefined;
|
70
|
+
hidden?: boolean | undefined;
|
71
|
+
} & {
|
72
|
+
preset?: {
|
73
|
+
value: {
|
74
|
+
value: number;
|
75
|
+
unit: "px";
|
76
|
+
};
|
77
|
+
deviceId: string;
|
78
|
+
}[] | {
|
79
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
80
|
+
value: {
|
81
|
+
value: {
|
82
|
+
value: number;
|
83
|
+
unit: "px";
|
84
|
+
};
|
85
|
+
deviceId: string;
|
86
|
+
}[];
|
87
|
+
} | undefined;
|
88
|
+
}>;
|
89
|
+
Value: {
|
90
|
+
value: {
|
91
|
+
value: number;
|
92
|
+
unit: "px";
|
93
|
+
};
|
94
|
+
deviceId: string;
|
95
|
+
}[];
|
96
|
+
}) | undefined;
|
20
97
|
};
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
98
|
+
(): import("../versioned").VersionedDescriptor<import("../versioned").VersionDiscriminator<1, "prop-controllers::gap-x::v1">, "GapX", import("../prop-controllers").Options<{
|
99
|
+
preset?: unknown;
|
100
|
+
label?: string | undefined;
|
101
|
+
defaultValue?: {
|
102
|
+
value: number;
|
103
|
+
unit: "px";
|
104
|
+
} | undefined;
|
105
|
+
min?: number | undefined;
|
106
|
+
max?: number | undefined;
|
107
|
+
step?: number | undefined;
|
108
|
+
hidden?: boolean | undefined;
|
109
|
+
} & {
|
110
|
+
preset?: {
|
111
|
+
value: {
|
112
|
+
value: number;
|
113
|
+
unit: "px";
|
114
|
+
};
|
115
|
+
deviceId: string;
|
116
|
+
}[] | {
|
117
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
118
|
+
value: {
|
119
|
+
value: {
|
120
|
+
value: number;
|
121
|
+
unit: "px";
|
122
|
+
};
|
123
|
+
deviceId: string;
|
124
|
+
}[];
|
125
|
+
} | undefined;
|
126
|
+
}>> & {
|
127
|
+
__associated_types__?: (() => {
|
128
|
+
Options: import("../prop-controllers").Options<{
|
129
|
+
preset?: unknown;
|
130
|
+
label?: string | undefined;
|
131
|
+
defaultValue?: {
|
132
|
+
value: number;
|
133
|
+
unit: "px";
|
134
|
+
} | undefined;
|
135
|
+
min?: number | undefined;
|
136
|
+
max?: number | undefined;
|
137
|
+
step?: number | undefined;
|
138
|
+
hidden?: boolean | undefined;
|
139
|
+
} & {
|
140
|
+
preset?: {
|
141
|
+
value: {
|
142
|
+
value: number;
|
143
|
+
unit: "px";
|
144
|
+
};
|
145
|
+
deviceId: string;
|
146
|
+
}[] | {
|
147
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
148
|
+
value: {
|
149
|
+
value: {
|
150
|
+
value: number;
|
151
|
+
unit: "px";
|
152
|
+
};
|
153
|
+
deviceId: string;
|
154
|
+
}[];
|
155
|
+
} | undefined;
|
156
|
+
}>;
|
157
|
+
Value: {
|
158
|
+
value: {
|
159
|
+
value: number;
|
160
|
+
unit: "px";
|
161
|
+
};
|
162
|
+
deviceId: string;
|
163
|
+
}[];
|
164
|
+
}) | undefined;
|
26
165
|
};
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
166
|
+
__associated_types__?: (() => {
|
167
|
+
Type: "GapX";
|
168
|
+
Value: {
|
169
|
+
value: {
|
170
|
+
value: number;
|
171
|
+
unit: "px";
|
172
|
+
};
|
173
|
+
deviceId: string;
|
174
|
+
}[];
|
175
|
+
PropData: {
|
176
|
+
value: {
|
177
|
+
value: number;
|
178
|
+
unit: "px";
|
179
|
+
};
|
180
|
+
deviceId: string;
|
181
|
+
}[] | {
|
182
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
183
|
+
value: {
|
184
|
+
value: {
|
185
|
+
value: number;
|
186
|
+
unit: "px";
|
187
|
+
};
|
188
|
+
deviceId: string;
|
189
|
+
}[];
|
190
|
+
};
|
191
|
+
Descriptor: import("../versioned").VersionedDescriptor<import("../versioned").VersionDiscriminator<1, "prop-controllers::gap-x::v1">, "GapX", import("../prop-controllers").Options<{
|
192
|
+
preset?: unknown;
|
193
|
+
label?: string | undefined;
|
194
|
+
defaultValue?: {
|
195
|
+
value: number;
|
196
|
+
unit: "px";
|
197
|
+
} | undefined;
|
198
|
+
min?: number | undefined;
|
199
|
+
max?: number | undefined;
|
200
|
+
step?: number | undefined;
|
201
|
+
hidden?: boolean | undefined;
|
202
|
+
} & {
|
203
|
+
preset?: {
|
204
|
+
value: {
|
205
|
+
value: number;
|
206
|
+
unit: "px";
|
207
|
+
};
|
208
|
+
deviceId: string;
|
209
|
+
}[] | {
|
210
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
211
|
+
value: {
|
212
|
+
value: {
|
213
|
+
value: number;
|
214
|
+
unit: "px";
|
215
|
+
};
|
216
|
+
deviceId: string;
|
217
|
+
}[];
|
218
|
+
} | undefined;
|
219
|
+
}>> & {
|
220
|
+
__associated_types__?: (() => {
|
221
|
+
Options: import("../prop-controllers").Options<{
|
222
|
+
preset?: unknown;
|
223
|
+
label?: string | undefined;
|
224
|
+
defaultValue?: {
|
225
|
+
value: number;
|
226
|
+
unit: "px";
|
227
|
+
} | undefined;
|
228
|
+
min?: number | undefined;
|
229
|
+
max?: number | undefined;
|
230
|
+
step?: number | undefined;
|
231
|
+
hidden?: boolean | undefined;
|
232
|
+
} & {
|
233
|
+
preset?: {
|
234
|
+
value: {
|
235
|
+
value: number;
|
236
|
+
unit: "px";
|
237
|
+
};
|
238
|
+
deviceId: string;
|
239
|
+
}[] | {
|
240
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
241
|
+
value: {
|
242
|
+
value: {
|
243
|
+
value: number;
|
244
|
+
unit: "px";
|
245
|
+
};
|
246
|
+
deviceId: string;
|
247
|
+
}[];
|
248
|
+
} | undefined;
|
249
|
+
}>;
|
250
|
+
Value: {
|
251
|
+
value: {
|
252
|
+
value: number;
|
253
|
+
unit: "px";
|
254
|
+
};
|
255
|
+
deviceId: string;
|
256
|
+
}[];
|
257
|
+
}) | undefined;
|
258
|
+
};
|
259
|
+
Discriminator: {} | import("../versioned").VersionDiscriminator<1, "prop-controllers::gap-x::v1">;
|
260
|
+
}) | undefined;
|
261
|
+
readonly schemaV0: import("zod").ZodArray<import("zod").ZodObject<{
|
262
|
+
deviceId: import("zod").ZodString;
|
263
|
+
value: import("zod").ZodObject<{
|
264
|
+
value: import("zod").ZodNumber;
|
265
|
+
unit: import("zod").ZodLiteral<"px">;
|
266
|
+
}, "strip", import("zod").ZodTypeAny, {
|
39
267
|
value: number;
|
40
268
|
unit: "px";
|
41
269
|
}, {
|
42
270
|
value: number;
|
43
271
|
unit: "px";
|
44
272
|
}>;
|
45
|
-
},
|
273
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
46
274
|
value: {
|
47
275
|
value: number;
|
48
276
|
unit: "px";
|
@@ -55,123 +283,211 @@ declare const gapXPropControllerDataV1Schema: z.ZodObject<{
|
|
55
283
|
};
|
56
284
|
deviceId: string;
|
57
285
|
}>, "many">;
|
58
|
-
|
59
|
-
|
60
|
-
|
286
|
+
readonly schemaV1: import("zod").ZodObject<{
|
287
|
+
"@@makeswift/type": import("zod").ZodLiteral<"prop-controllers::gap-x::v1">;
|
288
|
+
value: import("zod").ZodArray<import("zod").ZodObject<{
|
289
|
+
deviceId: import("zod").ZodString;
|
290
|
+
value: import("zod").ZodObject<{
|
291
|
+
value: import("zod").ZodNumber;
|
292
|
+
unit: import("zod").ZodLiteral<"px">;
|
293
|
+
}, "strip", import("zod").ZodTypeAny, {
|
294
|
+
value: number;
|
295
|
+
unit: "px";
|
296
|
+
}, {
|
297
|
+
value: number;
|
298
|
+
unit: "px";
|
299
|
+
}>;
|
300
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
301
|
+
value: {
|
302
|
+
value: number;
|
303
|
+
unit: "px";
|
304
|
+
};
|
305
|
+
deviceId: string;
|
306
|
+
}, {
|
307
|
+
value: {
|
308
|
+
value: number;
|
309
|
+
unit: "px";
|
310
|
+
};
|
311
|
+
deviceId: string;
|
312
|
+
}>, "many">;
|
313
|
+
}, "strip", import("zod").ZodTypeAny, {
|
314
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
61
315
|
value: {
|
316
|
+
value: {
|
317
|
+
value: number;
|
318
|
+
unit: "px";
|
319
|
+
};
|
320
|
+
deviceId: string;
|
321
|
+
}[];
|
322
|
+
}, {
|
323
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
324
|
+
value: {
|
325
|
+
value: {
|
326
|
+
value: number;
|
327
|
+
unit: "px";
|
328
|
+
};
|
329
|
+
deviceId: string;
|
330
|
+
}[];
|
331
|
+
}>;
|
332
|
+
readonly schema: import("zod").ZodUnion<[import("zod").ZodArray<import("zod").ZodObject<{
|
333
|
+
deviceId: import("zod").ZodString;
|
334
|
+
value: import("zod").ZodObject<{
|
335
|
+
value: import("zod").ZodNumber;
|
336
|
+
unit: import("zod").ZodLiteral<"px">;
|
337
|
+
}, "strip", import("zod").ZodTypeAny, {
|
62
338
|
value: number;
|
63
339
|
unit: "px";
|
64
|
-
}
|
65
|
-
|
66
|
-
|
67
|
-
}
|
68
|
-
"
|
69
|
-
value: {
|
340
|
+
}, {
|
341
|
+
value: number;
|
342
|
+
unit: "px";
|
343
|
+
}>;
|
344
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
70
345
|
value: {
|
71
346
|
value: number;
|
72
347
|
unit: "px";
|
73
348
|
};
|
74
349
|
deviceId: string;
|
75
|
-
}[];
|
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
350
|
}, {
|
87
|
-
value:
|
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, {
|
351
|
+
value: {
|
110
352
|
value: number;
|
111
353
|
unit: "px";
|
354
|
+
};
|
355
|
+
deviceId: string;
|
356
|
+
}>, "many">, import("zod").ZodObject<{
|
357
|
+
"@@makeswift/type": import("zod").ZodLiteral<"prop-controllers::gap-x::v1">;
|
358
|
+
value: import("zod").ZodArray<import("zod").ZodObject<{
|
359
|
+
deviceId: import("zod").ZodString;
|
360
|
+
value: import("zod").ZodObject<{
|
361
|
+
value: import("zod").ZodNumber;
|
362
|
+
unit: import("zod").ZodLiteral<"px">;
|
363
|
+
}, "strip", import("zod").ZodTypeAny, {
|
364
|
+
value: number;
|
365
|
+
unit: "px";
|
366
|
+
}, {
|
367
|
+
value: number;
|
368
|
+
unit: "px";
|
369
|
+
}>;
|
370
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
371
|
+
value: {
|
372
|
+
value: number;
|
373
|
+
unit: "px";
|
374
|
+
};
|
375
|
+
deviceId: string;
|
112
376
|
}, {
|
377
|
+
value: {
|
378
|
+
value: number;
|
379
|
+
unit: "px";
|
380
|
+
};
|
381
|
+
deviceId: string;
|
382
|
+
}>, "many">;
|
383
|
+
}, "strip", import("zod").ZodTypeAny, {
|
384
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
385
|
+
value: {
|
386
|
+
value: {
|
387
|
+
value: number;
|
388
|
+
unit: "px";
|
389
|
+
};
|
390
|
+
deviceId: string;
|
391
|
+
}[];
|
392
|
+
}, {
|
393
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
394
|
+
value: {
|
395
|
+
value: {
|
396
|
+
value: number;
|
397
|
+
unit: "px";
|
398
|
+
};
|
399
|
+
deviceId: string;
|
400
|
+
}[];
|
401
|
+
}>]>;
|
402
|
+
readonly type: "GapX";
|
403
|
+
readonly discriminator: import("../versioned").VersionDiscriminator<1, "prop-controllers::gap-x::v1">;
|
404
|
+
__call__(options?: import("../prop-controllers").Options<{
|
405
|
+
preset?: unknown;
|
406
|
+
label?: string | undefined;
|
407
|
+
defaultValue?: {
|
113
408
|
value: number;
|
114
409
|
unit: "px";
|
115
|
-
}
|
116
|
-
|
410
|
+
} | undefined;
|
411
|
+
min?: number | undefined;
|
412
|
+
max?: number | undefined;
|
413
|
+
step?: number | undefined;
|
414
|
+
hidden?: boolean | undefined;
|
415
|
+
} & {
|
416
|
+
preset?: {
|
417
|
+
value: {
|
418
|
+
value: number;
|
419
|
+
unit: "px";
|
420
|
+
};
|
421
|
+
deviceId: string;
|
422
|
+
}[] | {
|
423
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
424
|
+
value: {
|
425
|
+
value: {
|
426
|
+
value: number;
|
427
|
+
unit: "px";
|
428
|
+
};
|
429
|
+
deviceId: string;
|
430
|
+
}[];
|
431
|
+
} | undefined;
|
432
|
+
}> | undefined): {
|
433
|
+
type: "GapX";
|
434
|
+
version: 1;
|
435
|
+
options: any;
|
436
|
+
};
|
437
|
+
fromPropData(propData: {
|
117
438
|
value: {
|
118
439
|
value: number;
|
119
440
|
unit: "px";
|
120
441
|
};
|
121
442
|
deviceId: string;
|
122
|
-
}
|
443
|
+
}[] | {
|
444
|
+
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
445
|
+
value: {
|
446
|
+
value: {
|
447
|
+
value: number;
|
448
|
+
unit: "px";
|
449
|
+
};
|
450
|
+
deviceId: string;
|
451
|
+
}[];
|
452
|
+
}): {
|
123
453
|
value: {
|
124
454
|
value: number;
|
125
455
|
unit: "px";
|
126
456
|
};
|
127
457
|
deviceId: string;
|
128
|
-
}
|
129
|
-
|
130
|
-
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
131
|
-
value: {
|
458
|
+
}[];
|
459
|
+
toPropData(data: {
|
132
460
|
value: {
|
133
461
|
value: number;
|
134
462
|
unit: "px";
|
135
463
|
};
|
136
464
|
deviceId: string;
|
137
|
-
}[]
|
138
|
-
}, {
|
139
|
-
"@@makeswift/type": "prop-controllers::gap-x::v1";
|
140
|
-
value: {
|
465
|
+
}[], descriptor: {} | import("../versioned").VersionDiscriminator<1, "prop-controllers::gap-x::v1">): {
|
141
466
|
value: {
|
142
467
|
value: number;
|
143
468
|
unit: "px";
|
144
469
|
};
|
145
470
|
deviceId: string;
|
146
|
-
}[]
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
471
|
+
}[] | {
|
472
|
+
readonly "@@makeswift/type": "prop-controllers::gap-x::v1";
|
473
|
+
readonly value: {
|
474
|
+
value: {
|
475
|
+
value: number;
|
476
|
+
unit: "px";
|
477
|
+
};
|
478
|
+
deviceId: string;
|
479
|
+
}[];
|
480
|
+
};
|
481
|
+
readonly _callable: any;
|
482
|
+
apply(this: Function, thisArg: any, argArray?: any): any;
|
483
|
+
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
484
|
+
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
485
|
+
toString(): string;
|
486
|
+
prototype: any;
|
487
|
+
readonly length: number;
|
488
|
+
arguments: any;
|
489
|
+
caller: Function;
|
490
|
+
readonly name: string;
|
491
|
+
[Symbol.hasInstance](value: any): boolean;
|
166
492
|
};
|
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
493
|
//# sourceMappingURL=gap-x.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gap-x.d.ts","sourceRoot":"","sources":["../../../src/gap-x/gap-x.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"gap-x.d.ts","sourceRoot":"","sources":["../../../src/gap-x/gap-x.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;iBACN,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUhB,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
export * from './data';
|
2
|
+
export * from './versioned';
|
1
3
|
export * from './prop-controllers';
|
2
|
-
export
|
3
|
-
export
|
4
|
-
export
|
4
|
+
export * from './gap-x';
|
5
|
+
export * from './responsive-number';
|
6
|
+
export * from './responsive-opacity';
|
7
|
+
export * from './backgrounds';
|
5
8
|
export { Border, BorderPropControllerFormat, borderPropControllerDataSchema, getBorderPropControllerDataResponsiveBorderData, getBorderPropControllerDataSwatchIds, createBorderPropControllerDataFromResponsiveBorderData, copyBorderPropControllerData, } from './border';
|
6
9
|
export type { ResolveBorderPropControllerValue, ResponsiveBorderData, BorderSideData, BorderDescriptor, BorderPropControllerData, } from './border';
|
7
10
|
export { BorderRadius, BorderRadiusPropControllerFormat, borderRadiusPropControllerDataSchema, getBorderRadiusPropControllerDataResponsiveBorderRadiusData, createBorderRadiusPropControllerDataFromResponsiveBorderRadiusData, } from './border-radius';
|
@@ -14,8 +17,6 @@ export { ElementID, elementIDPropControllerDataSchema, getElementIDPropControlle
|
|
14
17
|
export type { ElementIDDescriptor, ElementIDOptions, ElementIDPropControllerData, ResolveElementIDPropControllerValue, } from './element-id';
|
15
18
|
export { Font, fontPropControllerDataSchema, getFontPropControllerDataResponsiveFontData, createFontPropControllerDataFromResponsiveFontData, } from './font';
|
16
19
|
export type { ResolveFontPropControllerValue, ResponsiveFontData, FontDescriptor, FontPropControllerData, } from './font';
|
17
|
-
export { GapX, gapXPropControllerDataSchema, getGapXPropControllerDataResponsiveGapData, createGapXPropControllerDataFromResponsiveGapData, } from './gap-x';
|
18
|
-
export type { ResolveGapXPropControllerValue, GapXDescriptor, GapXPropControllerData, } from './gap-x';
|
19
20
|
export { GapY, gapYPropControllerDataSchema, getGapYPropControllerDataResponsiveGapData, createGapYPropControllerDataFromResponsiveGapData, } from './gap-y';
|
20
21
|
export type { ResolveGapYPropControllerValue, GapYDescriptor, GapYPropControllerData, } from './gap-y';
|
21
22
|
export { Grid, gridPropControllerDataSchema, getGridPropControllerDataGridData, createGridPropControllerDataFromGridData, mergeGridPropControllerTranslatedData, getGridPropControllerElementChildren, copyGridPropControllerData, getGridPropControllerGetElementPath, } from './grid';
|