@buildnbuzz/buzzform 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.
- package/LICENSE +21 -0
- package/README.md +138 -0
- package/dist/adapter-BT9v2OVg.d.mts +1136 -0
- package/dist/adapter-BT9v2OVg.d.ts +1136 -0
- package/dist/chunk-DDDGBPVU.mjs +273 -0
- package/dist/chunk-DDDGBPVU.mjs.map +1 -0
- package/dist/chunk-K42S5YX3.mjs +599 -0
- package/dist/chunk-K42S5YX3.mjs.map +1 -0
- package/dist/index.d.mts +270 -0
- package/dist/index.d.ts +270 -0
- package/dist/index.js +1028 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +194 -0
- package/dist/index.mjs.map +1 -0
- package/dist/rhf.d.mts +70 -0
- package/dist/rhf.d.ts +70 -0
- package/dist/rhf.js +293 -0
- package/dist/rhf.js.map +1 -0
- package/dist/rhf.mjs +175 -0
- package/dist/rhf.mjs.map +1 -0
- package/dist/schema.d.mts +72 -0
- package/dist/schema.d.ts +72 -0
- package/dist/schema.js +768 -0
- package/dist/schema.js.map +1 -0
- package/dist/schema.mjs +63 -0
- package/dist/schema.mjs.map +1 -0
- package/dist/utils-BgwyUFGB.d.mts +233 -0
- package/dist/utils-DVLpbOoW.d.ts +233 -0
- package/dist/zod.d.mts +32 -0
- package/dist/zod.d.ts +32 -0
- package/dist/zod.js +88 -0
- package/dist/zod.js.map +1 -0
- package/dist/zod.mjs +62 -0
- package/dist/zod.mjs.map +1 -0
- package/package.json +109 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { T as TextField, o as TextareaField, E as EmailField, P as PasswordField, N as NumberField, D as DateField, p as DatetimeField, r as SelectField, u as RadioField, s as CheckboxField, t as SwitchField, x as UploadField, w as TagsField, y as ArrayField, F as Field, G as GroupField } from './adapter-BT9v2OVg.mjs';
|
|
2
|
+
export { g as AdapterFactory, f as AdapterOptions, A as ArrayHelpers, B as BaseField, O as BuzzFormSchema, J as CollapsibleField, C as ConditionContext, L as DataField, k as FieldComponentProps, j as FieldCondition, d as FieldError, l as FieldInputProps, m as FieldInputRenderFn, n as FieldStyle, K as FieldType, b as FormAdapter, a as FormConfig, Q as FormSettings, c as FormState, M as LayoutField, e as Resolver, R as ResolverResult, z as RowField, q as SelectOption, S as SetValueOptions, H as Tab, I as TabsField, U as UseFormOptions, V as ValidationContext, i as ValidationFn, h as ValidationResult } from './adapter-BT9v2OVg.mjs';
|
|
3
|
+
export { F as FieldToZod, a as FieldsToShape, I as InferSchema, S as SchemaBuilder, b as SchemaBuilderMap, d as applyCustomValidation, h as coerceToDate, g as coerceToNumber, l as createArrayHelpers, c as createSchema, e as extractValidationConfig, f as fieldsToZodSchema, p as formatBytes, n as generateFieldId, o as getNestedValue, i as getPatternErrorMessage, j as isFileLike, k as isFileTypeAccepted, m as makeOptional, s as setNestedValue } from './utils-BgwyUFGB.mjs';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Creates Zod schema for text fields.
|
|
9
|
+
*/
|
|
10
|
+
declare function createTextFieldSchema(field: TextField | TextareaField): z.ZodTypeAny;
|
|
11
|
+
/**
|
|
12
|
+
* Creates Zod schema for email fields.
|
|
13
|
+
*/
|
|
14
|
+
declare function createEmailFieldSchema(field: EmailField): z.ZodTypeAny;
|
|
15
|
+
/**
|
|
16
|
+
* Creates Zod schema for password fields.
|
|
17
|
+
*/
|
|
18
|
+
declare function createPasswordFieldSchema(field: PasswordField): z.ZodTypeAny;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Creates Zod schema for number fields.
|
|
22
|
+
*/
|
|
23
|
+
declare function createNumberFieldSchema(field: NumberField): z.ZodTypeAny;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Creates Zod schema for date and datetime fields.
|
|
27
|
+
*/
|
|
28
|
+
declare function createDateFieldSchema(field: DateField | DatetimeField): z.ZodTypeAny;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Creates Zod schema for select fields.
|
|
32
|
+
*/
|
|
33
|
+
declare function createSelectFieldSchema(field: SelectField): z.ZodTypeAny;
|
|
34
|
+
/**
|
|
35
|
+
* Creates Zod schema for radio fields.
|
|
36
|
+
*/
|
|
37
|
+
declare function createRadioFieldSchema(field: RadioField): z.ZodTypeAny;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates Zod schema for checkbox fields.
|
|
41
|
+
*/
|
|
42
|
+
declare function createCheckboxFieldSchema(field: CheckboxField): z.ZodTypeAny;
|
|
43
|
+
/**
|
|
44
|
+
* Creates Zod schema for switch fields.
|
|
45
|
+
*/
|
|
46
|
+
declare function createSwitchFieldSchema(field: SwitchField): z.ZodTypeAny;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Creates Zod schema for upload fields.
|
|
50
|
+
* Supports both single file and hasMany (array) modes.
|
|
51
|
+
*/
|
|
52
|
+
declare function createUploadFieldSchema(field: UploadField): z.ZodTypeAny;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Creates Zod schema for tags fields.
|
|
56
|
+
* Tags are always arrays of strings.
|
|
57
|
+
*/
|
|
58
|
+
declare function createTagsFieldSchema(field: TagsField): z.ZodTypeAny;
|
|
59
|
+
|
|
60
|
+
type SchemaGenerator = (fields: readonly Field[]) => z.ZodObject<z.ZodRawShape>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates Zod schema for array fields.
|
|
63
|
+
* Uses passed-in schema generator to handle nested fields.
|
|
64
|
+
*/
|
|
65
|
+
declare function createArrayFieldSchema(field: ArrayField, fieldsToZodSchema: SchemaGenerator): z.ZodTypeAny;
|
|
66
|
+
/**
|
|
67
|
+
* Creates Zod schema for group fields.
|
|
68
|
+
* Uses passed-in schema generator to handle nested fields.
|
|
69
|
+
*/
|
|
70
|
+
declare function createGroupFieldSchema(field: GroupField, fieldsToZodSchema: SchemaGenerator): z.ZodTypeAny;
|
|
71
|
+
|
|
72
|
+
export { ArrayField, CheckboxField, DateField, DatetimeField, EmailField, Field, GroupField, NumberField, PasswordField, RadioField, SelectField, SwitchField, TagsField, TextField, TextareaField, UploadField, createArrayFieldSchema, createCheckboxFieldSchema, createDateFieldSchema, createEmailFieldSchema, createGroupFieldSchema, createNumberFieldSchema, createPasswordFieldSchema, createRadioFieldSchema, createSelectFieldSchema, createSwitchFieldSchema, createTagsFieldSchema, createTextFieldSchema, createUploadFieldSchema };
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { T as TextField, o as TextareaField, E as EmailField, P as PasswordField, N as NumberField, D as DateField, p as DatetimeField, r as SelectField, u as RadioField, s as CheckboxField, t as SwitchField, x as UploadField, w as TagsField, y as ArrayField, F as Field, G as GroupField } from './adapter-BT9v2OVg.js';
|
|
2
|
+
export { g as AdapterFactory, f as AdapterOptions, A as ArrayHelpers, B as BaseField, O as BuzzFormSchema, J as CollapsibleField, C as ConditionContext, L as DataField, k as FieldComponentProps, j as FieldCondition, d as FieldError, l as FieldInputProps, m as FieldInputRenderFn, n as FieldStyle, K as FieldType, b as FormAdapter, a as FormConfig, Q as FormSettings, c as FormState, M as LayoutField, e as Resolver, R as ResolverResult, z as RowField, q as SelectOption, S as SetValueOptions, H as Tab, I as TabsField, U as UseFormOptions, V as ValidationContext, i as ValidationFn, h as ValidationResult } from './adapter-BT9v2OVg.js';
|
|
3
|
+
export { F as FieldToZod, a as FieldsToShape, I as InferSchema, S as SchemaBuilder, b as SchemaBuilderMap, d as applyCustomValidation, h as coerceToDate, g as coerceToNumber, l as createArrayHelpers, c as createSchema, e as extractValidationConfig, f as fieldsToZodSchema, p as formatBytes, n as generateFieldId, o as getNestedValue, i as getPatternErrorMessage, j as isFileLike, k as isFileTypeAccepted, m as makeOptional, s as setNestedValue } from './utils-DVLpbOoW.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Creates Zod schema for text fields.
|
|
9
|
+
*/
|
|
10
|
+
declare function createTextFieldSchema(field: TextField | TextareaField): z.ZodTypeAny;
|
|
11
|
+
/**
|
|
12
|
+
* Creates Zod schema for email fields.
|
|
13
|
+
*/
|
|
14
|
+
declare function createEmailFieldSchema(field: EmailField): z.ZodTypeAny;
|
|
15
|
+
/**
|
|
16
|
+
* Creates Zod schema for password fields.
|
|
17
|
+
*/
|
|
18
|
+
declare function createPasswordFieldSchema(field: PasswordField): z.ZodTypeAny;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Creates Zod schema for number fields.
|
|
22
|
+
*/
|
|
23
|
+
declare function createNumberFieldSchema(field: NumberField): z.ZodTypeAny;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Creates Zod schema for date and datetime fields.
|
|
27
|
+
*/
|
|
28
|
+
declare function createDateFieldSchema(field: DateField | DatetimeField): z.ZodTypeAny;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Creates Zod schema for select fields.
|
|
32
|
+
*/
|
|
33
|
+
declare function createSelectFieldSchema(field: SelectField): z.ZodTypeAny;
|
|
34
|
+
/**
|
|
35
|
+
* Creates Zod schema for radio fields.
|
|
36
|
+
*/
|
|
37
|
+
declare function createRadioFieldSchema(field: RadioField): z.ZodTypeAny;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates Zod schema for checkbox fields.
|
|
41
|
+
*/
|
|
42
|
+
declare function createCheckboxFieldSchema(field: CheckboxField): z.ZodTypeAny;
|
|
43
|
+
/**
|
|
44
|
+
* Creates Zod schema for switch fields.
|
|
45
|
+
*/
|
|
46
|
+
declare function createSwitchFieldSchema(field: SwitchField): z.ZodTypeAny;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Creates Zod schema for upload fields.
|
|
50
|
+
* Supports both single file and hasMany (array) modes.
|
|
51
|
+
*/
|
|
52
|
+
declare function createUploadFieldSchema(field: UploadField): z.ZodTypeAny;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Creates Zod schema for tags fields.
|
|
56
|
+
* Tags are always arrays of strings.
|
|
57
|
+
*/
|
|
58
|
+
declare function createTagsFieldSchema(field: TagsField): z.ZodTypeAny;
|
|
59
|
+
|
|
60
|
+
type SchemaGenerator = (fields: readonly Field[]) => z.ZodObject<z.ZodRawShape>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates Zod schema for array fields.
|
|
63
|
+
* Uses passed-in schema generator to handle nested fields.
|
|
64
|
+
*/
|
|
65
|
+
declare function createArrayFieldSchema(field: ArrayField, fieldsToZodSchema: SchemaGenerator): z.ZodTypeAny;
|
|
66
|
+
/**
|
|
67
|
+
* Creates Zod schema for group fields.
|
|
68
|
+
* Uses passed-in schema generator to handle nested fields.
|
|
69
|
+
*/
|
|
70
|
+
declare function createGroupFieldSchema(field: GroupField, fieldsToZodSchema: SchemaGenerator): z.ZodTypeAny;
|
|
71
|
+
|
|
72
|
+
export { ArrayField, CheckboxField, DateField, DatetimeField, EmailField, Field, GroupField, NumberField, PasswordField, RadioField, SelectField, SwitchField, TagsField, TextField, TextareaField, UploadField, createArrayFieldSchema, createCheckboxFieldSchema, createDateFieldSchema, createEmailFieldSchema, createGroupFieldSchema, createNumberFieldSchema, createPasswordFieldSchema, createRadioFieldSchema, createSelectFieldSchema, createSwitchFieldSchema, createTagsFieldSchema, createTextFieldSchema, createUploadFieldSchema };
|