@calcom/atoms 2.7.2 → 2.8.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.
- package/README.md +14 -0
- package/dist/cal-atoms.js +138 -45
- package/dist/{index-D_xjDzPo.js → index-BrBTKoIj.js} +29177 -28818
- package/dist/src/components/ui/alert.d.ts +1 -1
- package/dist/src/components/ui/badge.d.ts +16 -16
- package/dist/src/components/ui/button.d.ts +1 -1
- package/dist/src/components/ui/checkbox.d.ts +1 -1
- package/dist/src/components/ui/dialog.d.ts +4 -4
- package/dist/src/components/ui/dropdown.d.ts +8 -8
- package/dist/src/components/ui/icon.d.ts +2 -2
- package/dist/src/components/ui/show-toast.d.ts +1 -1
- package/dist/src/components/ui/switch.d.ts +1 -1
- package/dist/src/components/ui/text-field.d.ts +1 -1
- package/dist/src/components/ui/toast.d.ts +5 -5
- package/dist/src/contracts/bookings.d.ts +4 -4
- package/dist/src/event-types/hooks/use-platform-tabs-navigations.d.ts +1 -1
- package/dist/src/hooks/bookings/use-cancel-booking.d.ts +1 -1
- package/dist/src/index.d.ts +81 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/vendor/form-builder/base-schema.d.ts +140 -140
- package/dist/src/vendor/form-builder/schema.d.ts +94 -94
- package/dist/src/vendor/form-builder/utils/variants-config.d.ts +6 -6
- package/dist/{stripe-payment-form-B8jt-Dp0.js → stripe-payment-form-2mrB04BK.js} +1 -1
- package/package.json +1 -1
- package/src/index.ts +130 -0
|
@@ -80,12 +80,12 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
80
80
|
value: z.ZodString;
|
|
81
81
|
price: z.ZodOptional<z.ZodNumber>;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
value: string;
|
|
84
83
|
label: string;
|
|
84
|
+
value: string;
|
|
85
85
|
price?: number | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
value: string;
|
|
88
87
|
label: string;
|
|
88
|
+
value: string;
|
|
89
89
|
price?: number | undefined;
|
|
90
90
|
}>, "many">>;
|
|
91
91
|
getOptionsAt: z.ZodOptional<z.ZodString>;
|
|
@@ -95,12 +95,12 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
95
95
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
type: "address" | "text" | "phone";
|
|
98
|
-
required?: boolean | undefined;
|
|
99
98
|
placeholder?: string | undefined;
|
|
99
|
+
required?: boolean | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
type: "address" | "text" | "phone";
|
|
102
|
-
required?: boolean | undefined;
|
|
103
102
|
placeholder?: string | undefined;
|
|
103
|
+
required?: boolean | undefined;
|
|
104
104
|
}>>>;
|
|
105
105
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
106
106
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -109,25 +109,25 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
109
109
|
price: z.ZodOptional<z.ZodNumber>;
|
|
110
110
|
}, "options" | "defaultLabel" | "defaultPlaceholder" | "getOptionsAt" | "optionsInputs">, "strip", z.ZodTypeAny, {
|
|
111
111
|
name: string;
|
|
112
|
-
type: "number" | "boolean" | "
|
|
113
|
-
price?: number | undefined;
|
|
112
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
114
113
|
label?: string | undefined;
|
|
115
|
-
required?: boolean | undefined;
|
|
116
114
|
placeholder?: string | undefined;
|
|
115
|
+
price?: number | undefined;
|
|
117
116
|
maxLength?: number | undefined;
|
|
118
117
|
minLength?: number | undefined;
|
|
118
|
+
required?: boolean | undefined;
|
|
119
119
|
labelAsSafeHtml?: string | undefined;
|
|
120
120
|
excludeEmails?: string | undefined;
|
|
121
121
|
requireEmails?: string | undefined;
|
|
122
122
|
}, {
|
|
123
123
|
name: string;
|
|
124
|
-
type: "number" | "boolean" | "
|
|
125
|
-
price?: number | undefined;
|
|
124
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
126
125
|
label?: string | undefined;
|
|
127
|
-
required?: boolean | undefined;
|
|
128
126
|
placeholder?: string | undefined;
|
|
127
|
+
price?: number | undefined;
|
|
129
128
|
maxLength?: number | undefined;
|
|
130
129
|
minLength?: number | undefined;
|
|
130
|
+
required?: boolean | undefined;
|
|
131
131
|
labelAsSafeHtml?: string | undefined;
|
|
132
132
|
excludeEmails?: string | undefined;
|
|
133
133
|
requireEmails?: string | undefined;
|
|
@@ -135,13 +135,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
136
|
fields: {
|
|
137
137
|
name: string;
|
|
138
|
-
type: "number" | "boolean" | "
|
|
139
|
-
price?: number | undefined;
|
|
138
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
140
139
|
label?: string | undefined;
|
|
141
|
-
required?: boolean | undefined;
|
|
142
140
|
placeholder?: string | undefined;
|
|
141
|
+
price?: number | undefined;
|
|
143
142
|
maxLength?: number | undefined;
|
|
144
143
|
minLength?: number | undefined;
|
|
144
|
+
required?: boolean | undefined;
|
|
145
145
|
labelAsSafeHtml?: string | undefined;
|
|
146
146
|
excludeEmails?: string | undefined;
|
|
147
147
|
requireEmails?: string | undefined;
|
|
@@ -149,13 +149,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
149
149
|
}, {
|
|
150
150
|
fields: {
|
|
151
151
|
name: string;
|
|
152
|
-
type: "number" | "boolean" | "
|
|
153
|
-
price?: number | undefined;
|
|
152
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
154
153
|
label?: string | undefined;
|
|
155
|
-
required?: boolean | undefined;
|
|
156
154
|
placeholder?: string | undefined;
|
|
155
|
+
price?: number | undefined;
|
|
157
156
|
maxLength?: number | undefined;
|
|
158
157
|
minLength?: number | undefined;
|
|
158
|
+
required?: boolean | undefined;
|
|
159
159
|
labelAsSafeHtml?: string | undefined;
|
|
160
160
|
excludeEmails?: string | undefined;
|
|
161
161
|
requireEmails?: string | undefined;
|
|
@@ -165,13 +165,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
165
165
|
variants: Record<string, {
|
|
166
166
|
fields: {
|
|
167
167
|
name: string;
|
|
168
|
-
type: "number" | "boolean" | "
|
|
169
|
-
price?: number | undefined;
|
|
168
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
170
169
|
label?: string | undefined;
|
|
171
|
-
required?: boolean | undefined;
|
|
172
170
|
placeholder?: string | undefined;
|
|
171
|
+
price?: number | undefined;
|
|
173
172
|
maxLength?: number | undefined;
|
|
174
173
|
minLength?: number | undefined;
|
|
174
|
+
required?: boolean | undefined;
|
|
175
175
|
labelAsSafeHtml?: string | undefined;
|
|
176
176
|
excludeEmails?: string | undefined;
|
|
177
177
|
requireEmails?: string | undefined;
|
|
@@ -181,13 +181,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
181
181
|
variants: Record<string, {
|
|
182
182
|
fields: {
|
|
183
183
|
name: string;
|
|
184
|
-
type: "number" | "boolean" | "
|
|
185
|
-
price?: number | undefined;
|
|
184
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
186
185
|
label?: string | undefined;
|
|
187
|
-
required?: boolean | undefined;
|
|
188
186
|
placeholder?: string | undefined;
|
|
187
|
+
price?: number | undefined;
|
|
189
188
|
maxLength?: number | undefined;
|
|
190
189
|
minLength?: number | undefined;
|
|
190
|
+
required?: boolean | undefined;
|
|
191
191
|
labelAsSafeHtml?: string | undefined;
|
|
192
192
|
excludeEmails?: string | undefined;
|
|
193
193
|
requireEmails?: string | undefined;
|
|
@@ -208,13 +208,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
208
208
|
variants: Record<string, {
|
|
209
209
|
fields: {
|
|
210
210
|
name: string;
|
|
211
|
-
type: "number" | "boolean" | "
|
|
212
|
-
price?: number | undefined;
|
|
211
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
213
212
|
label?: string | undefined;
|
|
214
|
-
required?: boolean | undefined;
|
|
215
213
|
placeholder?: string | undefined;
|
|
214
|
+
price?: number | undefined;
|
|
216
215
|
maxLength?: number | undefined;
|
|
217
216
|
minLength?: number | undefined;
|
|
217
|
+
required?: boolean | undefined;
|
|
218
218
|
labelAsSafeHtml?: string | undefined;
|
|
219
219
|
excludeEmails?: string | undefined;
|
|
220
220
|
requireEmails?: string | undefined;
|
|
@@ -236,13 +236,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
236
236
|
variants: Record<string, {
|
|
237
237
|
fields: {
|
|
238
238
|
name: string;
|
|
239
|
-
type: "number" | "boolean" | "
|
|
240
|
-
price?: number | undefined;
|
|
239
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
241
240
|
label?: string | undefined;
|
|
242
|
-
required?: boolean | undefined;
|
|
243
241
|
placeholder?: string | undefined;
|
|
242
|
+
price?: number | undefined;
|
|
244
243
|
maxLength?: number | undefined;
|
|
245
244
|
minLength?: number | undefined;
|
|
245
|
+
required?: boolean | undefined;
|
|
246
246
|
labelAsSafeHtml?: string | undefined;
|
|
247
247
|
excludeEmails?: string | undefined;
|
|
248
248
|
requireEmails?: string | undefined;
|
|
@@ -252,8 +252,8 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
252
252
|
toggleLabel?: string | undefined;
|
|
253
253
|
}>>;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
|
-
value: "number" | "boolean" | "email" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
256
255
|
label: string;
|
|
256
|
+
value: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
257
257
|
propsType: "boolean" | "select" | "text" | "multiselect" | "variants" | "textList" | "objectiveWithInput";
|
|
258
258
|
variantsConfig?: {
|
|
259
259
|
variants: Record<string, {
|
|
@@ -269,13 +269,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
269
269
|
variants: Record<string, {
|
|
270
270
|
fields: {
|
|
271
271
|
name: string;
|
|
272
|
-
type: "number" | "boolean" | "
|
|
273
|
-
price?: number | undefined;
|
|
272
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
274
273
|
label?: string | undefined;
|
|
275
|
-
required?: boolean | undefined;
|
|
276
274
|
placeholder?: string | undefined;
|
|
275
|
+
price?: number | undefined;
|
|
277
276
|
maxLength?: number | undefined;
|
|
278
277
|
minLength?: number | undefined;
|
|
278
|
+
required?: boolean | undefined;
|
|
279
279
|
labelAsSafeHtml?: string | undefined;
|
|
280
280
|
excludeEmails?: string | undefined;
|
|
281
281
|
requireEmails?: string | undefined;
|
|
@@ -293,8 +293,8 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
293
293
|
supportsPricing?: boolean | undefined;
|
|
294
294
|
optionsSupportPricing?: boolean | undefined;
|
|
295
295
|
}, {
|
|
296
|
-
value: "number" | "boolean" | "email" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
297
296
|
label: string;
|
|
297
|
+
value: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
298
298
|
propsType: "boolean" | "select" | "text" | "multiselect" | "variants" | "textList" | "objectiveWithInput";
|
|
299
299
|
variantsConfig?: {
|
|
300
300
|
variants: Record<string, {
|
|
@@ -310,13 +310,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
310
310
|
variants: Record<string, {
|
|
311
311
|
fields: {
|
|
312
312
|
name: string;
|
|
313
|
-
type: "number" | "boolean" | "
|
|
314
|
-
price?: number | undefined;
|
|
313
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
315
314
|
label?: string | undefined;
|
|
316
|
-
required?: boolean | undefined;
|
|
317
315
|
placeholder?: string | undefined;
|
|
316
|
+
price?: number | undefined;
|
|
318
317
|
maxLength?: number | undefined;
|
|
319
318
|
minLength?: number | undefined;
|
|
319
|
+
required?: boolean | undefined;
|
|
320
320
|
labelAsSafeHtml?: string | undefined;
|
|
321
321
|
excludeEmails?: string | undefined;
|
|
322
322
|
requireEmails?: string | undefined;
|
|
@@ -334,8 +334,8 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
334
334
|
supportsPricing?: boolean | undefined;
|
|
335
335
|
optionsSupportPricing?: boolean | undefined;
|
|
336
336
|
}>, {
|
|
337
|
-
value: "number" | "boolean" | "email" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
338
337
|
label: string;
|
|
338
|
+
value: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
339
339
|
propsType: "boolean" | "select" | "text" | "multiselect" | "variants" | "textList" | "objectiveWithInput";
|
|
340
340
|
variantsConfig?: {
|
|
341
341
|
variants: Record<string, {
|
|
@@ -351,13 +351,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
351
351
|
variants: Record<string, {
|
|
352
352
|
fields: {
|
|
353
353
|
name: string;
|
|
354
|
-
type: "number" | "boolean" | "
|
|
355
|
-
price?: number | undefined;
|
|
354
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
356
355
|
label?: string | undefined;
|
|
357
|
-
required?: boolean | undefined;
|
|
358
356
|
placeholder?: string | undefined;
|
|
357
|
+
price?: number | undefined;
|
|
359
358
|
maxLength?: number | undefined;
|
|
360
359
|
minLength?: number | undefined;
|
|
360
|
+
required?: boolean | undefined;
|
|
361
361
|
labelAsSafeHtml?: string | undefined;
|
|
362
362
|
excludeEmails?: string | undefined;
|
|
363
363
|
requireEmails?: string | undefined;
|
|
@@ -375,8 +375,8 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
375
375
|
supportsPricing?: boolean | undefined;
|
|
376
376
|
optionsSupportPricing?: boolean | undefined;
|
|
377
377
|
}, {
|
|
378
|
-
value: "number" | "boolean" | "email" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
379
378
|
label: string;
|
|
379
|
+
value: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
380
380
|
propsType: "boolean" | "select" | "text" | "multiselect" | "variants" | "textList" | "objectiveWithInput";
|
|
381
381
|
variantsConfig?: {
|
|
382
382
|
variants: Record<string, {
|
|
@@ -392,13 +392,13 @@ export declare const fieldTypeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
392
392
|
variants: Record<string, {
|
|
393
393
|
fields: {
|
|
394
394
|
name: string;
|
|
395
|
-
type: "number" | "boolean" | "
|
|
396
|
-
price?: number | undefined;
|
|
395
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
397
396
|
label?: string | undefined;
|
|
398
|
-
required?: boolean | undefined;
|
|
399
397
|
placeholder?: string | undefined;
|
|
398
|
+
price?: number | undefined;
|
|
400
399
|
maxLength?: number | undefined;
|
|
401
400
|
minLength?: number | undefined;
|
|
401
|
+
required?: boolean | undefined;
|
|
402
402
|
labelAsSafeHtml?: string | undefined;
|
|
403
403
|
excludeEmails?: string | undefined;
|
|
404
404
|
requireEmails?: string | undefined;
|
|
@@ -430,12 +430,12 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
430
430
|
value: z.ZodString;
|
|
431
431
|
price: z.ZodOptional<z.ZodNumber>;
|
|
432
432
|
}, "strip", z.ZodTypeAny, {
|
|
433
|
-
value: string;
|
|
434
433
|
label: string;
|
|
434
|
+
value: string;
|
|
435
435
|
price?: number | undefined;
|
|
436
436
|
}, {
|
|
437
|
-
value: string;
|
|
438
437
|
label: string;
|
|
438
|
+
value: string;
|
|
439
439
|
price?: number | undefined;
|
|
440
440
|
}>, "many">>;
|
|
441
441
|
getOptionsAt: z.ZodOptional<z.ZodString>;
|
|
@@ -445,12 +445,12 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
445
445
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
446
446
|
}, "strip", z.ZodTypeAny, {
|
|
447
447
|
type: "address" | "text" | "phone";
|
|
448
|
-
required?: boolean | undefined;
|
|
449
448
|
placeholder?: string | undefined;
|
|
449
|
+
required?: boolean | undefined;
|
|
450
450
|
}, {
|
|
451
451
|
type: "address" | "text" | "phone";
|
|
452
|
-
required?: boolean | undefined;
|
|
453
452
|
placeholder?: string | undefined;
|
|
453
|
+
required?: boolean | undefined;
|
|
454
454
|
}>>>;
|
|
455
455
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
456
456
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -475,12 +475,12 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
475
475
|
value: z.ZodString;
|
|
476
476
|
price: z.ZodOptional<z.ZodNumber>;
|
|
477
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
|
-
value: string;
|
|
479
478
|
label: string;
|
|
479
|
+
value: string;
|
|
480
480
|
price?: number | undefined;
|
|
481
481
|
}, {
|
|
482
|
-
value: string;
|
|
483
482
|
label: string;
|
|
483
|
+
value: string;
|
|
484
484
|
price?: number | undefined;
|
|
485
485
|
}>, "many">>;
|
|
486
486
|
getOptionsAt: z.ZodOptional<z.ZodString>;
|
|
@@ -490,12 +490,12 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
490
490
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
491
491
|
}, "strip", z.ZodTypeAny, {
|
|
492
492
|
type: "address" | "text" | "phone";
|
|
493
|
-
required?: boolean | undefined;
|
|
494
493
|
placeholder?: string | undefined;
|
|
494
|
+
required?: boolean | undefined;
|
|
495
495
|
}, {
|
|
496
496
|
type: "address" | "text" | "phone";
|
|
497
|
-
required?: boolean | undefined;
|
|
498
497
|
placeholder?: string | undefined;
|
|
498
|
+
required?: boolean | undefined;
|
|
499
499
|
}>>>;
|
|
500
500
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
501
501
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
@@ -504,25 +504,25 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
504
504
|
price: z.ZodOptional<z.ZodNumber>;
|
|
505
505
|
}, "options" | "defaultLabel" | "defaultPlaceholder" | "getOptionsAt" | "optionsInputs">, "strip", z.ZodTypeAny, {
|
|
506
506
|
name: string;
|
|
507
|
-
type: "number" | "boolean" | "
|
|
508
|
-
price?: number | undefined;
|
|
507
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
509
508
|
label?: string | undefined;
|
|
510
|
-
required?: boolean | undefined;
|
|
511
509
|
placeholder?: string | undefined;
|
|
510
|
+
price?: number | undefined;
|
|
512
511
|
maxLength?: number | undefined;
|
|
513
512
|
minLength?: number | undefined;
|
|
513
|
+
required?: boolean | undefined;
|
|
514
514
|
labelAsSafeHtml?: string | undefined;
|
|
515
515
|
excludeEmails?: string | undefined;
|
|
516
516
|
requireEmails?: string | undefined;
|
|
517
517
|
}, {
|
|
518
518
|
name: string;
|
|
519
|
-
type: "number" | "boolean" | "
|
|
520
|
-
price?: number | undefined;
|
|
519
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
521
520
|
label?: string | undefined;
|
|
522
|
-
required?: boolean | undefined;
|
|
523
521
|
placeholder?: string | undefined;
|
|
522
|
+
price?: number | undefined;
|
|
524
523
|
maxLength?: number | undefined;
|
|
525
524
|
minLength?: number | undefined;
|
|
525
|
+
required?: boolean | undefined;
|
|
526
526
|
labelAsSafeHtml?: string | undefined;
|
|
527
527
|
excludeEmails?: string | undefined;
|
|
528
528
|
requireEmails?: string | undefined;
|
|
@@ -530,13 +530,13 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
530
530
|
}, "strip", z.ZodTypeAny, {
|
|
531
531
|
fields: {
|
|
532
532
|
name: string;
|
|
533
|
-
type: "number" | "boolean" | "
|
|
534
|
-
price?: number | undefined;
|
|
533
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
535
534
|
label?: string | undefined;
|
|
536
|
-
required?: boolean | undefined;
|
|
537
535
|
placeholder?: string | undefined;
|
|
536
|
+
price?: number | undefined;
|
|
538
537
|
maxLength?: number | undefined;
|
|
539
538
|
minLength?: number | undefined;
|
|
539
|
+
required?: boolean | undefined;
|
|
540
540
|
labelAsSafeHtml?: string | undefined;
|
|
541
541
|
excludeEmails?: string | undefined;
|
|
542
542
|
requireEmails?: string | undefined;
|
|
@@ -544,13 +544,13 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
544
544
|
}, {
|
|
545
545
|
fields: {
|
|
546
546
|
name: string;
|
|
547
|
-
type: "number" | "boolean" | "
|
|
548
|
-
price?: number | undefined;
|
|
547
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
549
548
|
label?: string | undefined;
|
|
550
|
-
required?: boolean | undefined;
|
|
551
549
|
placeholder?: string | undefined;
|
|
550
|
+
price?: number | undefined;
|
|
552
551
|
maxLength?: number | undefined;
|
|
553
552
|
minLength?: number | undefined;
|
|
553
|
+
required?: boolean | undefined;
|
|
554
554
|
labelAsSafeHtml?: string | undefined;
|
|
555
555
|
excludeEmails?: string | undefined;
|
|
556
556
|
requireEmails?: string | undefined;
|
|
@@ -560,13 +560,13 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
560
560
|
variants: Record<string, {
|
|
561
561
|
fields: {
|
|
562
562
|
name: string;
|
|
563
|
-
type: "number" | "boolean" | "
|
|
564
|
-
price?: number | undefined;
|
|
563
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
565
564
|
label?: string | undefined;
|
|
566
|
-
required?: boolean | undefined;
|
|
567
565
|
placeholder?: string | undefined;
|
|
566
|
+
price?: number | undefined;
|
|
568
567
|
maxLength?: number | undefined;
|
|
569
568
|
minLength?: number | undefined;
|
|
569
|
+
required?: boolean | undefined;
|
|
570
570
|
labelAsSafeHtml?: string | undefined;
|
|
571
571
|
excludeEmails?: string | undefined;
|
|
572
572
|
requireEmails?: string | undefined;
|
|
@@ -576,13 +576,13 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
576
576
|
variants: Record<string, {
|
|
577
577
|
fields: {
|
|
578
578
|
name: string;
|
|
579
|
-
type: "number" | "boolean" | "
|
|
580
|
-
price?: number | undefined;
|
|
579
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
581
580
|
label?: string | undefined;
|
|
582
|
-
required?: boolean | undefined;
|
|
583
581
|
placeholder?: string | undefined;
|
|
582
|
+
price?: number | undefined;
|
|
584
583
|
maxLength?: number | undefined;
|
|
585
584
|
minLength?: number | undefined;
|
|
585
|
+
required?: boolean | undefined;
|
|
586
586
|
labelAsSafeHtml?: string | undefined;
|
|
587
587
|
excludeEmails?: string | undefined;
|
|
588
588
|
requireEmails?: string | undefined;
|
|
@@ -630,28 +630,28 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
630
630
|
disableOnPrefill: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
631
631
|
}, "strip", z.ZodTypeAny, {
|
|
632
632
|
name: string;
|
|
633
|
-
type: "number" | "boolean" | "
|
|
634
|
-
price?: number | undefined;
|
|
635
|
-
options?: {
|
|
636
|
-
value: string;
|
|
637
|
-
label: string;
|
|
638
|
-
price?: number | undefined;
|
|
639
|
-
}[] | undefined;
|
|
633
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
640
634
|
label?: string | undefined;
|
|
641
|
-
required?: boolean | undefined;
|
|
642
635
|
hidden?: boolean | undefined;
|
|
643
636
|
placeholder?: string | undefined;
|
|
644
637
|
variant?: string | undefined;
|
|
638
|
+
options?: {
|
|
639
|
+
label: string;
|
|
640
|
+
value: string;
|
|
641
|
+
price?: number | undefined;
|
|
642
|
+
}[] | undefined;
|
|
643
|
+
price?: number | undefined;
|
|
645
644
|
maxLength?: number | undefined;
|
|
646
645
|
minLength?: number | undefined;
|
|
646
|
+
required?: boolean | undefined;
|
|
647
647
|
labelAsSafeHtml?: string | undefined;
|
|
648
648
|
defaultLabel?: string | undefined;
|
|
649
649
|
defaultPlaceholder?: string | undefined;
|
|
650
650
|
getOptionsAt?: string | undefined;
|
|
651
651
|
optionsInputs?: Record<string, {
|
|
652
652
|
type: "address" | "text" | "phone";
|
|
653
|
-
required?: boolean | undefined;
|
|
654
653
|
placeholder?: string | undefined;
|
|
654
|
+
required?: boolean | undefined;
|
|
655
655
|
}> | undefined;
|
|
656
656
|
excludeEmails?: string | undefined;
|
|
657
657
|
requireEmails?: string | undefined;
|
|
@@ -659,13 +659,13 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
659
659
|
variants: Record<string, {
|
|
660
660
|
fields: {
|
|
661
661
|
name: string;
|
|
662
|
-
type: "number" | "boolean" | "
|
|
663
|
-
price?: number | undefined;
|
|
662
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
664
663
|
label?: string | undefined;
|
|
665
|
-
required?: boolean | undefined;
|
|
666
664
|
placeholder?: string | undefined;
|
|
665
|
+
price?: number | undefined;
|
|
667
666
|
maxLength?: number | undefined;
|
|
668
667
|
minLength?: number | undefined;
|
|
668
|
+
required?: boolean | undefined;
|
|
669
669
|
labelAsSafeHtml?: string | undefined;
|
|
670
670
|
excludeEmails?: string | undefined;
|
|
671
671
|
requireEmails?: string | undefined;
|
|
@@ -690,28 +690,28 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
690
690
|
disableOnPrefill?: boolean | undefined;
|
|
691
691
|
}, {
|
|
692
692
|
name: string;
|
|
693
|
-
type: "number" | "boolean" | "
|
|
694
|
-
price?: number | undefined;
|
|
695
|
-
options?: {
|
|
696
|
-
value: string;
|
|
697
|
-
label: string;
|
|
698
|
-
price?: number | undefined;
|
|
699
|
-
}[] | undefined;
|
|
693
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
700
694
|
label?: string | undefined;
|
|
701
|
-
required?: boolean | undefined;
|
|
702
695
|
hidden?: boolean | undefined;
|
|
703
696
|
placeholder?: string | undefined;
|
|
704
697
|
variant?: string | undefined;
|
|
698
|
+
options?: {
|
|
699
|
+
label: string;
|
|
700
|
+
value: string;
|
|
701
|
+
price?: number | undefined;
|
|
702
|
+
}[] | undefined;
|
|
703
|
+
price?: number | undefined;
|
|
705
704
|
maxLength?: number | undefined;
|
|
706
705
|
minLength?: number | undefined;
|
|
706
|
+
required?: boolean | undefined;
|
|
707
707
|
labelAsSafeHtml?: string | undefined;
|
|
708
708
|
defaultLabel?: string | undefined;
|
|
709
709
|
defaultPlaceholder?: string | undefined;
|
|
710
710
|
getOptionsAt?: string | undefined;
|
|
711
711
|
optionsInputs?: Record<string, {
|
|
712
712
|
type: "address" | "text" | "phone";
|
|
713
|
-
required?: boolean | undefined;
|
|
714
713
|
placeholder?: string | undefined;
|
|
714
|
+
required?: boolean | undefined;
|
|
715
715
|
}> | undefined;
|
|
716
716
|
excludeEmails?: string | undefined;
|
|
717
717
|
requireEmails?: string | undefined;
|
|
@@ -719,13 +719,13 @@ export declare const fieldsSchema: z.ZodArray<z.ZodObject<{
|
|
|
719
719
|
variants: Record<string, {
|
|
720
720
|
fields: {
|
|
721
721
|
name: string;
|
|
722
|
-
type: "number" | "boolean" | "
|
|
723
|
-
price?: number | undefined;
|
|
722
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
724
723
|
label?: string | undefined;
|
|
725
|
-
required?: boolean | undefined;
|
|
726
724
|
placeholder?: string | undefined;
|
|
725
|
+
price?: number | undefined;
|
|
727
726
|
maxLength?: number | undefined;
|
|
728
727
|
minLength?: number | undefined;
|
|
728
|
+
required?: boolean | undefined;
|
|
729
729
|
labelAsSafeHtml?: string | undefined;
|
|
730
730
|
excludeEmails?: string | undefined;
|
|
731
731
|
requireEmails?: string | undefined;
|
|
@@ -6,13 +6,13 @@ export declare const getConfig: (field: Pick<Field, "variantsConfig" | "type">)
|
|
|
6
6
|
variants: Record<string, {
|
|
7
7
|
fields: {
|
|
8
8
|
name: string;
|
|
9
|
-
type: "number" | "boolean" | "
|
|
10
|
-
price?: number | undefined;
|
|
9
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
11
10
|
label?: string | undefined;
|
|
12
|
-
required?: boolean | undefined;
|
|
13
11
|
placeholder?: string | undefined;
|
|
12
|
+
price?: number | undefined;
|
|
14
13
|
maxLength?: number | undefined;
|
|
15
14
|
minLength?: number | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
16
|
labelAsSafeHtml?: string | undefined;
|
|
17
17
|
excludeEmails?: string | undefined;
|
|
18
18
|
requireEmails?: string | undefined;
|
|
@@ -23,13 +23,13 @@ export declare const getTranslatedConfig: (field: Pick<Field, "variantsConfig" |
|
|
|
23
23
|
variants: Record<string, {
|
|
24
24
|
fields: {
|
|
25
25
|
name: string;
|
|
26
|
-
type: "number" | "boolean" | "
|
|
27
|
-
price?: number | undefined;
|
|
26
|
+
type: "number" | "boolean" | "name" | "address" | "select" | "textarea" | "text" | "checkbox" | "radio" | "url" | "email" | "phone" | "multiemail" | "multiselect" | "radioInput";
|
|
28
27
|
label?: string | undefined;
|
|
29
|
-
required?: boolean | undefined;
|
|
30
28
|
placeholder?: string | undefined;
|
|
29
|
+
price?: number | undefined;
|
|
31
30
|
maxLength?: number | undefined;
|
|
32
31
|
minLength?: number | undefined;
|
|
32
|
+
required?: boolean | undefined;
|
|
33
33
|
labelAsSafeHtml?: string | undefined;
|
|
34
34
|
excludeEmails?: string | undefined;
|
|
35
35
|
requireEmails?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as V, jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import m, { useState as L, useEffect as ie } from "react";
|
|
3
|
-
import { g as Ce, u as se, C as we, B as X, W as Re } from "./index-
|
|
3
|
+
import { g as Ce, u as se, C as we, B as X, W as Re } from "./index-BrBTKoIj.js";
|
|
4
4
|
var N = { exports: {} }, W, z;
|
|
5
5
|
function xe() {
|
|
6
6
|
if (z) return W;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Customizable UI components to integrate scheduling into your product.",
|
|
6
6
|
"author": "Cal.com, Inc.",
|
|
7
7
|
"license": "AGPL-3.0-or-later",
|
|
8
|
-
"version": "2.
|
|
8
|
+
"version": "2.8.0",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/calcom/atoms",
|