@u-krupaveho-kraba/form-schemas 0.1.0

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.
@@ -0,0 +1,278 @@
1
+ import * as z from "zod/mini";
2
+ export declare const BorderStyleSchema: z.ZodMiniEnum<{
3
+ none: "none";
4
+ solid: "solid";
5
+ dashed: "dashed";
6
+ dotted: "dotted";
7
+ }>;
8
+ export declare const FormBorderSchema: z.ZodMiniObject<{
9
+ width: z.ZodMiniNumber<number>;
10
+ color: z.ZodMiniTemplateLiteral<`#${string}`>;
11
+ style: z.ZodMiniEnum<{
12
+ none: "none";
13
+ solid: "solid";
14
+ dashed: "dashed";
15
+ dotted: "dotted";
16
+ }>;
17
+ sides: z.ZodMiniOptional<z.ZodMiniEnum<{
18
+ left: "left";
19
+ right: "right";
20
+ top: "top";
21
+ bottom: "bottom";
22
+ all: "all";
23
+ }>>;
24
+ useTheme: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
25
+ }, z.core.$strip>;
26
+ export declare const FormShadowSchema: z.ZodMiniObject<{
27
+ offsetX: z.ZodMiniNumber<number>;
28
+ offsetY: z.ZodMiniNumber<number>;
29
+ blur: z.ZodMiniNumber<number>;
30
+ spread: z.ZodMiniNumber<number>;
31
+ color: z.ZodMiniString<string>;
32
+ raw: z.ZodMiniOptional<z.ZodMiniString<string>>;
33
+ }, z.core.$strip>;
34
+ export declare const TeaserPropertiesSchema: z.ZodMiniObject<{
35
+ text: z.ZodMiniString<string>;
36
+ backgroundColor: z.ZodMiniString<string>;
37
+ textColor: z.ZodMiniString<string>;
38
+ }, z.core.$strip>;
39
+ export declare const CloseIconPropertiesSchema: z.ZodMiniObject<{
40
+ color: z.ZodMiniString<string>;
41
+ size: z.ZodMiniNumber<number>;
42
+ padding: z.ZodMiniObject<{
43
+ left: z.ZodMiniNumber<number>;
44
+ right: z.ZodMiniNumber<number>;
45
+ top: z.ZodMiniNumber<number>;
46
+ bottom: z.ZodMiniNumber<number>;
47
+ independent: z.ZodMiniBoolean<boolean>;
48
+ }, z.core.$strip>;
49
+ position: z.ZodMiniOptional<z.ZodMiniObject<{
50
+ top: z.ZodMiniNumber<number>;
51
+ right: z.ZodMiniNumber<number>;
52
+ }, z.core.$strip>>;
53
+ visibilityDelay: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
54
+ closeOnEscape: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
55
+ }, z.core.$strip>;
56
+ export declare const FormPositionIdSchema: z.ZodMiniLiteral<2 | 1 | 4 | 5 | 3 | 6 | 7 | 8 | 9>;
57
+ export declare const BaseFormDisplaySchema: z.ZodMiniObject<{
58
+ border: z.ZodMiniObject<{
59
+ width: z.ZodMiniNumber<number>;
60
+ color: z.ZodMiniTemplateLiteral<`#${string}`>;
61
+ style: z.ZodMiniEnum<{
62
+ none: "none";
63
+ solid: "solid";
64
+ dashed: "dashed";
65
+ dotted: "dotted";
66
+ }>;
67
+ sides: z.ZodMiniOptional<z.ZodMiniEnum<{
68
+ left: "left";
69
+ right: "right";
70
+ top: "top";
71
+ bottom: "bottom";
72
+ all: "all";
73
+ }>>;
74
+ useTheme: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
75
+ }, z.core.$strip>;
76
+ shadow: z.ZodMiniOptional<z.ZodMiniObject<{
77
+ offsetX: z.ZodMiniNumber<number>;
78
+ offsetY: z.ZodMiniNumber<number>;
79
+ blur: z.ZodMiniNumber<number>;
80
+ spread: z.ZodMiniNumber<number>;
81
+ color: z.ZodMiniString<string>;
82
+ raw: z.ZodMiniOptional<z.ZodMiniString<string>>;
83
+ }, z.core.$strip>>;
84
+ }, z.core.$strip>;
85
+ export declare const BasicFormDisplaySchema: z.ZodMiniObject<{
86
+ maxWidth: z.ZodMiniNumber<number>;
87
+ border: z.ZodMiniObject<{
88
+ width: z.ZodMiniNumber<number>;
89
+ color: z.ZodMiniTemplateLiteral<`#${string}`>;
90
+ style: z.ZodMiniEnum<{
91
+ none: "none";
92
+ solid: "solid";
93
+ dashed: "dashed";
94
+ dotted: "dotted";
95
+ }>;
96
+ sides: z.ZodMiniOptional<z.ZodMiniEnum<{
97
+ left: "left";
98
+ right: "right";
99
+ top: "top";
100
+ bottom: "bottom";
101
+ all: "all";
102
+ }>>;
103
+ useTheme: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
104
+ }, z.core.$strip>;
105
+ shadow: z.ZodMiniOptional<z.ZodMiniObject<{
106
+ offsetX: z.ZodMiniNumber<number>;
107
+ offsetY: z.ZodMiniNumber<number>;
108
+ blur: z.ZodMiniNumber<number>;
109
+ spread: z.ZodMiniNumber<number>;
110
+ color: z.ZodMiniString<string>;
111
+ raw: z.ZodMiniOptional<z.ZodMiniString<string>>;
112
+ }, z.core.$strip>>;
113
+ }, z.core.$strip>;
114
+ export declare const PopupFormDisplaySchema: z.ZodMiniObject<{
115
+ position: z.ZodMiniObject<{
116
+ distance: z.ZodMiniObject<{
117
+ left: z.ZodMiniNumber<number>;
118
+ right: z.ZodMiniNumber<number>;
119
+ top: z.ZodMiniNumber<number>;
120
+ bottom: z.ZodMiniNumber<number>;
121
+ independent: z.ZodMiniBoolean<boolean>;
122
+ }, z.core.$strip>;
123
+ id: z.ZodMiniLiteral<2 | 1 | 4 | 5 | 3 | 6 | 7 | 8 | 9>;
124
+ }, z.core.$strip>;
125
+ closeIcon: z.ZodMiniObject<{
126
+ color: z.ZodMiniString<string>;
127
+ size: z.ZodMiniNumber<number>;
128
+ padding: z.ZodMiniObject<{
129
+ left: z.ZodMiniNumber<number>;
130
+ right: z.ZodMiniNumber<number>;
131
+ top: z.ZodMiniNumber<number>;
132
+ bottom: z.ZodMiniNumber<number>;
133
+ independent: z.ZodMiniBoolean<boolean>;
134
+ }, z.core.$strip>;
135
+ position: z.ZodMiniOptional<z.ZodMiniObject<{
136
+ top: z.ZodMiniNumber<number>;
137
+ right: z.ZodMiniNumber<number>;
138
+ }, z.core.$strip>>;
139
+ visibilityDelay: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
140
+ closeOnEscape: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
141
+ }, z.core.$strip>;
142
+ teaser: z.ZodMiniOptional<z.ZodMiniObject<{
143
+ text: z.ZodMiniString<string>;
144
+ backgroundColor: z.ZodMiniString<string>;
145
+ textColor: z.ZodMiniString<string>;
146
+ }, z.core.$strip>>;
147
+ border: z.ZodMiniObject<{
148
+ width: z.ZodMiniNumber<number>;
149
+ color: z.ZodMiniTemplateLiteral<`#${string}`>;
150
+ style: z.ZodMiniEnum<{
151
+ none: "none";
152
+ solid: "solid";
153
+ dashed: "dashed";
154
+ dotted: "dotted";
155
+ }>;
156
+ sides: z.ZodMiniOptional<z.ZodMiniEnum<{
157
+ left: "left";
158
+ right: "right";
159
+ top: "top";
160
+ bottom: "bottom";
161
+ all: "all";
162
+ }>>;
163
+ useTheme: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
164
+ }, z.core.$strip>;
165
+ shadow: z.ZodMiniOptional<z.ZodMiniObject<{
166
+ offsetX: z.ZodMiniNumber<number>;
167
+ offsetY: z.ZodMiniNumber<number>;
168
+ blur: z.ZodMiniNumber<number>;
169
+ spread: z.ZodMiniNumber<number>;
170
+ color: z.ZodMiniString<string>;
171
+ raw: z.ZodMiniOptional<z.ZodMiniString<string>>;
172
+ }, z.core.$strip>>;
173
+ }, z.core.$strip>;
174
+ export declare const SliderFormDisplaySchema: z.ZodMiniObject<{
175
+ position: z.ZodMiniEnum<{
176
+ "bottom-left": "bottom-left";
177
+ "bottom-center": "bottom-center";
178
+ "bottom-right": "bottom-right";
179
+ }>;
180
+ closeIcon: z.ZodMiniObject<{
181
+ color: z.ZodMiniString<string>;
182
+ size: z.ZodMiniNumber<number>;
183
+ padding: z.ZodMiniObject<{
184
+ left: z.ZodMiniNumber<number>;
185
+ right: z.ZodMiniNumber<number>;
186
+ top: z.ZodMiniNumber<number>;
187
+ bottom: z.ZodMiniNumber<number>;
188
+ independent: z.ZodMiniBoolean<boolean>;
189
+ }, z.core.$strip>;
190
+ position: z.ZodMiniOptional<z.ZodMiniObject<{
191
+ top: z.ZodMiniNumber<number>;
192
+ right: z.ZodMiniNumber<number>;
193
+ }, z.core.$strip>>;
194
+ visibilityDelay: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
195
+ closeOnEscape: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
196
+ }, z.core.$strip>;
197
+ teaser: z.ZodMiniOptional<z.ZodMiniObject<{
198
+ text: z.ZodMiniString<string>;
199
+ backgroundColor: z.ZodMiniString<string>;
200
+ textColor: z.ZodMiniString<string>;
201
+ }, z.core.$strip>>;
202
+ border: z.ZodMiniObject<{
203
+ width: z.ZodMiniNumber<number>;
204
+ color: z.ZodMiniTemplateLiteral<`#${string}`>;
205
+ style: z.ZodMiniEnum<{
206
+ none: "none";
207
+ solid: "solid";
208
+ dashed: "dashed";
209
+ dotted: "dotted";
210
+ }>;
211
+ sides: z.ZodMiniOptional<z.ZodMiniEnum<{
212
+ left: "left";
213
+ right: "right";
214
+ top: "top";
215
+ bottom: "bottom";
216
+ all: "all";
217
+ }>>;
218
+ useTheme: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
219
+ }, z.core.$strip>;
220
+ shadow: z.ZodMiniOptional<z.ZodMiniObject<{
221
+ offsetX: z.ZodMiniNumber<number>;
222
+ offsetY: z.ZodMiniNumber<number>;
223
+ blur: z.ZodMiniNumber<number>;
224
+ spread: z.ZodMiniNumber<number>;
225
+ color: z.ZodMiniString<string>;
226
+ raw: z.ZodMiniOptional<z.ZodMiniString<string>>;
227
+ }, z.core.$strip>>;
228
+ }, z.core.$strip>;
229
+ export declare const MobilePopupFormDisplaySchema: z.ZodMiniObject<{
230
+ closeIcon: z.ZodMiniObject<{
231
+ color: z.ZodMiniString<string>;
232
+ size: z.ZodMiniNumber<number>;
233
+ padding: z.ZodMiniObject<{
234
+ left: z.ZodMiniNumber<number>;
235
+ right: z.ZodMiniNumber<number>;
236
+ top: z.ZodMiniNumber<number>;
237
+ bottom: z.ZodMiniNumber<number>;
238
+ independent: z.ZodMiniBoolean<boolean>;
239
+ }, z.core.$strip>;
240
+ position: z.ZodMiniOptional<z.ZodMiniObject<{
241
+ top: z.ZodMiniNumber<number>;
242
+ right: z.ZodMiniNumber<number>;
243
+ }, z.core.$strip>>;
244
+ visibilityDelay: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
245
+ closeOnEscape: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
246
+ }, z.core.$strip>;
247
+ teaser: z.ZodMiniOptional<z.ZodMiniObject<{
248
+ text: z.ZodMiniString<string>;
249
+ backgroundColor: z.ZodMiniString<string>;
250
+ textColor: z.ZodMiniString<string>;
251
+ }, z.core.$strip>>;
252
+ border: z.ZodMiniObject<{
253
+ width: z.ZodMiniNumber<number>;
254
+ color: z.ZodMiniTemplateLiteral<`#${string}`>;
255
+ style: z.ZodMiniEnum<{
256
+ none: "none";
257
+ solid: "solid";
258
+ dashed: "dashed";
259
+ dotted: "dotted";
260
+ }>;
261
+ sides: z.ZodMiniOptional<z.ZodMiniEnum<{
262
+ left: "left";
263
+ right: "right";
264
+ top: "top";
265
+ bottom: "bottom";
266
+ all: "all";
267
+ }>>;
268
+ useTheme: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
269
+ }, z.core.$strip>;
270
+ shadow: z.ZodMiniOptional<z.ZodMiniObject<{
271
+ offsetX: z.ZodMiniNumber<number>;
272
+ offsetY: z.ZodMiniNumber<number>;
273
+ blur: z.ZodMiniNumber<number>;
274
+ spread: z.ZodMiniNumber<number>;
275
+ color: z.ZodMiniString<string>;
276
+ raw: z.ZodMiniOptional<z.ZodMiniString<string>>;
277
+ }, z.core.$strip>>;
278
+ }, z.core.$strip>;
@@ -0,0 +1,9 @@
1
+ import * as z from "zod/mini";
2
+ export declare const HexSchema: z.ZodMiniTemplateLiteral<`#${string}`>;
3
+ export declare const DistancePropertySchema: z.ZodMiniObject<{
4
+ left: z.ZodMiniNumber<number>;
5
+ right: z.ZodMiniNumber<number>;
6
+ top: z.ZodMiniNumber<number>;
7
+ bottom: z.ZodMiniNumber<number>;
8
+ independent: z.ZodMiniBoolean<boolean>;
9
+ }, z.core.$strip>;