@datum-cloud/datum-ui 0.5.0 → 0.6.0-alpha.a9a8815

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.
Files changed (154) hide show
  1. package/README.md +78 -40
  2. package/dist/adapter-context-rWveHhDd.mjs +25 -0
  3. package/dist/combobox/index.mjs +2 -0
  4. package/dist/combobox-cKTFK4uN.mjs +96 -0
  5. package/dist/components/features/combobox/combobox.d.ts +27 -0
  6. package/dist/components/features/combobox/combobox.d.ts.map +1 -0
  7. package/dist/components/features/combobox/index.d.ts +3 -0
  8. package/dist/components/features/combobox/index.d.ts.map +1 -0
  9. package/dist/components/features/combobox/types.d.ts +78 -0
  10. package/dist/components/features/combobox/types.d.ts.map +1 -0
  11. package/dist/components/features/date-time-picker/date-time-picker.d.ts +9 -0
  12. package/dist/components/features/date-time-picker/date-time-picker.d.ts.map +1 -0
  13. package/dist/components/features/date-time-picker/index.d.ts +3 -0
  14. package/dist/components/features/date-time-picker/index.d.ts.map +1 -0
  15. package/dist/components/features/date-time-picker/types.d.ts +53 -0
  16. package/dist/components/features/date-time-picker/types.d.ts.map +1 -0
  17. package/dist/components/features/date-time-picker/utils/format.d.ts +13 -0
  18. package/dist/components/features/date-time-picker/utils/format.d.ts.map +1 -0
  19. package/dist/components/features/date-time-picker/utils/index.d.ts +3 -0
  20. package/dist/components/features/date-time-picker/utils/index.d.ts.map +1 -0
  21. package/dist/components/features/date-time-picker/utils/timezone.d.ts +23 -0
  22. package/dist/components/features/date-time-picker/utils/timezone.d.ts.map +1 -0
  23. package/dist/components/features/form/adapter-context.d.ts +17 -0
  24. package/dist/components/features/form/adapter-context.d.ts.map +1 -0
  25. package/dist/components/features/form/adapter-types.d.ts +120 -0
  26. package/dist/components/features/form/adapter-types.d.ts.map +1 -0
  27. package/dist/components/features/form/adapters/conform/conform-adapter.d.ts +9 -0
  28. package/dist/components/features/form/adapters/conform/conform-adapter.d.ts.map +1 -0
  29. package/dist/components/features/form/adapters/conform/conform-provider.d.ts +22 -0
  30. package/dist/components/features/form/adapters/conform/conform-provider.d.ts.map +1 -0
  31. package/dist/components/features/form/adapters/conform/index.d.ts +3 -0
  32. package/dist/components/features/form/adapters/conform/index.d.ts.map +1 -0
  33. package/dist/components/features/form/adapters/rhf/index.d.ts +3 -0
  34. package/dist/components/features/form/adapters/rhf/index.d.ts.map +1 -0
  35. package/dist/components/features/form/adapters/rhf/rhf-adapter.d.ts +10 -0
  36. package/dist/components/features/form/adapters/rhf/rhf-adapter.d.ts.map +1 -0
  37. package/dist/components/features/form/adapters/rhf/rhf-provider.d.ts +22 -0
  38. package/dist/components/features/form/adapters/rhf/rhf-provider.d.ts.map +1 -0
  39. package/dist/components/features/form/components/form-autocomplete.d.ts.map +1 -1
  40. package/dist/components/features/form/components/form-autosearch.d.ts +25 -0
  41. package/dist/components/features/form/components/form-autosearch.d.ts.map +1 -0
  42. package/dist/components/features/form/components/form-checkbox.d.ts.map +1 -1
  43. package/dist/components/features/form/components/form-combobox.d.ts +76 -0
  44. package/dist/components/features/form/components/form-combobox.d.ts.map +1 -0
  45. package/dist/components/features/form/components/form-copy-box.d.ts.map +1 -1
  46. package/dist/components/features/form/components/form-custom.d.ts.map +1 -1
  47. package/dist/components/features/form/components/form-date-picker.d.ts +38 -0
  48. package/dist/components/features/form/components/form-date-picker.d.ts.map +1 -0
  49. package/dist/components/features/form/components/form-date-time-picker.d.ts +37 -0
  50. package/dist/components/features/form/components/form-date-time-picker.d.ts.map +1 -0
  51. package/dist/components/features/form/components/form-field-array.d.ts +5 -17
  52. package/dist/components/features/form/components/form-field-array.d.ts.map +1 -1
  53. package/dist/components/features/form/components/form-field.d.ts +7 -21
  54. package/dist/components/features/form/components/form-field.d.ts.map +1 -1
  55. package/dist/components/features/form/components/form-input-group.d.ts +4 -4
  56. package/dist/components/features/form/components/form-input-group.d.ts.map +1 -1
  57. package/dist/components/features/form/components/form-input.d.ts.map +1 -1
  58. package/dist/components/features/form/components/form-radio-group.d.ts.map +1 -1
  59. package/dist/components/features/form/components/form-root.d.ts +5 -25
  60. package/dist/components/features/form/components/form-root.d.ts.map +1 -1
  61. package/dist/components/features/form/components/form-select.d.ts.map +1 -1
  62. package/dist/components/features/form/components/form-switch.d.ts.map +1 -1
  63. package/dist/components/features/form/components/form-textarea.d.ts.map +1 -1
  64. package/dist/components/features/form/components/form-time-picker.d.ts +21 -0
  65. package/dist/components/features/form/components/form-time-picker.d.ts.map +1 -0
  66. package/dist/components/features/form/components/form-transfer.d.ts +37 -0
  67. package/dist/components/features/form/components/form-transfer.d.ts.map +1 -0
  68. package/dist/components/features/form/components/index.d.ts +6 -1
  69. package/dist/components/features/form/components/index.d.ts.map +1 -1
  70. package/dist/components/features/form/components/stepper/form-stepper.d.ts.map +1 -1
  71. package/dist/components/features/form/context/form-context.d.ts +2 -2
  72. package/dist/components/features/form/context/form-context.d.ts.map +1 -1
  73. package/dist/components/features/form/hooks/index.d.ts +1 -1
  74. package/dist/components/features/form/hooks/index.d.ts.map +1 -1
  75. package/dist/components/features/form/hooks/use-field.d.ts +12 -18
  76. package/dist/components/features/form/hooks/use-field.d.ts.map +1 -1
  77. package/dist/components/features/form/hooks/use-form-state.d.ts +36 -0
  78. package/dist/components/features/form/hooks/use-form-state.d.ts.map +1 -0
  79. package/dist/components/features/form/hooks/use-watch.d.ts +9 -20
  80. package/dist/components/features/form/hooks/use-watch.d.ts.map +1 -1
  81. package/dist/components/features/form/index.d.ts +69 -44
  82. package/dist/components/features/form/index.d.ts.map +1 -1
  83. package/dist/components/features/form/stepper/index.d.ts +17 -0
  84. package/dist/components/features/form/stepper/index.d.ts.map +1 -0
  85. package/dist/components/features/form/types/index.d.ts +68 -32
  86. package/dist/components/features/form/types/index.d.ts.map +1 -1
  87. package/dist/components/features/form/utils/get-field-constraints.d.ts +43 -0
  88. package/dist/components/features/form/utils/get-field-constraints.d.ts.map +1 -0
  89. package/dist/components/features/form/utils/get-schema-defaults.d.ts +24 -0
  90. package/dist/components/features/form/utils/get-schema-defaults.d.ts.map +1 -0
  91. package/dist/components/features/time-picker/index.d.ts +3 -0
  92. package/dist/components/features/time-picker/index.d.ts.map +1 -0
  93. package/dist/components/features/time-picker/time-picker.d.ts +22 -0
  94. package/dist/components/features/time-picker/time-picker.d.ts.map +1 -0
  95. package/dist/components/features/time-picker/types.d.ts +31 -0
  96. package/dist/components/features/time-picker/types.d.ts.map +1 -0
  97. package/dist/components/features/transfer/components/index.d.ts +9 -0
  98. package/dist/components/features/transfer/components/index.d.ts.map +1 -0
  99. package/dist/components/features/transfer/components/transfer-group.d.ts +7 -0
  100. package/dist/components/features/transfer/components/transfer-group.d.ts.map +1 -0
  101. package/dist/components/features/transfer/components/transfer-item.d.ts +10 -0
  102. package/dist/components/features/transfer/components/transfer-item.d.ts.map +1 -0
  103. package/dist/components/features/transfer/components/transfer-panel.d.ts +18 -0
  104. package/dist/components/features/transfer/components/transfer-panel.d.ts.map +1 -0
  105. package/dist/components/features/transfer/components/transfer-search.d.ts +9 -0
  106. package/dist/components/features/transfer/components/transfer-search.d.ts.map +1 -0
  107. package/dist/components/features/transfer/hooks/use-transfer-dnd.d.ts +26 -0
  108. package/dist/components/features/transfer/hooks/use-transfer-dnd.d.ts.map +1 -0
  109. package/dist/components/features/transfer/hooks/use-transfer-state.d.ts +20 -0
  110. package/dist/components/features/transfer/hooks/use-transfer-state.d.ts.map +1 -0
  111. package/dist/components/features/transfer/index.d.ts +3 -0
  112. package/dist/components/features/transfer/index.d.ts.map +1 -0
  113. package/dist/components/features/transfer/transfer.d.ts +6 -0
  114. package/dist/components/features/transfer/transfer.d.ts.map +1 -0
  115. package/dist/components/features/transfer/types.d.ts +69 -0
  116. package/dist/components/features/transfer/types.d.ts.map +1 -0
  117. package/dist/date-picker/index.mjs +1 -1
  118. package/dist/date-time-picker/index.mjs +2 -0
  119. package/dist/date-time-picker-Bx_n4nEJ.mjs +177 -0
  120. package/dist/form/adapters/conform/index.mjs +326 -0
  121. package/dist/form/adapters/rhf/index.mjs +275 -0
  122. package/dist/form/index.mjs +3 -2
  123. package/dist/form/stepper/index.mjs +542 -0
  124. package/dist/form-context-Ccxm-wqL.mjs +17 -0
  125. package/dist/form-zf5QOnAk.mjs +1611 -0
  126. package/dist/get-field-constraints-CxfZ753o.mjs +49 -0
  127. package/dist/grid/index.mjs +1 -1
  128. package/dist/hooks/index.mjs +2 -2
  129. package/dist/index.mjs +14 -13
  130. package/dist/input-number/index.mjs +1 -1
  131. package/dist/map/index.mjs +1 -1
  132. package/dist/{map-ClxB41Hg.mjs → map-CWIQ-eql.mjs} +1 -1
  133. package/dist/more-actions/index.mjs +1 -1
  134. package/dist/page-title/index.mjs +1 -1
  135. package/dist/stepper/index.mjs +1 -320
  136. package/dist/stepper-DvIOp0hh.mjs +321 -0
  137. package/dist/tag-input/index.mjs +1 -1
  138. package/dist/task-queue/index.mjs +1 -1
  139. package/dist/time-picker/index.mjs +2 -0
  140. package/dist/time-picker-BoF7pZZ2.mjs +43 -0
  141. package/dist/transfer/index.mjs +2 -0
  142. package/dist/transfer-C55XfEXy.mjs +243 -0
  143. package/package.json +58 -2
  144. package/dist/form-Co3fM4B7.mjs +0 -2114
  145. /package/dist/{col-q-J99UHe.mjs → col-1T0Q3SlH.mjs} +0 -0
  146. /package/dist/{hooks-Cb7YlxN4.mjs → hooks-D8r2M2U6.mjs} +0 -0
  147. /package/dist/{input-number-mDB-5M5C.mjs → input-number-a7uydAsw.mjs} +0 -0
  148. /package/dist/{map-leaflet-imports-CaMm_rdF.mjs → map-leaflet-imports-CRSKA79m.mjs} +0 -0
  149. /package/dist/{more-actions-CGagbIDT.mjs → more-actions-ILnEZq_E.mjs} +0 -0
  150. /package/dist/{page-title-R7QbfbWp.mjs → page-title-ChsnpBiH.mjs} +0 -0
  151. /package/dist/{tag-input-BVSwNcRd.mjs → tag-input-T9cUX9-G.mjs} +0 -0
  152. /package/dist/{task-queue-dropdown-DyM5R8KF.mjs → task-queue-dropdown-Wcbj-f0V.mjs} +0 -0
  153. /package/dist/{to-api-format-BnbRFYQI.mjs → to-api-format-Bh3c01gr.mjs} +0 -0
  154. /package/dist/{use-copy-to-clipboard-BGdTmkFV.mjs → use-copy-to-clipboard-uNeeVHC4.mjs} +0 -0
@@ -0,0 +1,275 @@
1
+ import { t as FormAdapterProvider } from "../../../adapter-context-rWveHhDd.mjs";
2
+ import { t as getFieldConstraints } from "../../../get-field-constraints-CxfZ753o.mjs";
3
+ import * as React$1 from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { zodResolver } from "@hookform/resolvers/zod";
6
+ import { FormProvider, useController, useFieldArray, useForm, useFormContext, useWatch } from "react-hook-form";
7
+ //#region src/components/features/form/utils/get-schema-defaults.ts
8
+ /**
9
+ * Derive default values from a Zod schema that match what React Hook Form's
10
+ * `useController` will produce when fields register.
11
+ *
12
+ * This is critical for RHF's `isDirty` tracking: RHF compares current values
13
+ * against `_defaultValues`. Without explicit defaults, RHF uses `{}` as the
14
+ * baseline, so when `useController` registers fields (e.g. `username: ''`),
15
+ * the form is immediately considered dirty.
16
+ *
17
+ * By passing these schema-derived defaults to `useForm({ defaultValues })`,
18
+ * the baseline matches the registered values and `isDirty` starts as `false`.
19
+ *
20
+ * Maps Zod field types to their `useController` registration values:
21
+ * - string -> `''`
22
+ * - number -> `undefined`
23
+ * - boolean -> `false`
24
+ * - array -> `[]`
25
+ * - object -> `{}` (recursive)
26
+ * - optional/nullable wrappers -> unwrap and derive inner default
27
+ * - `.default()` -> use the provided default value
28
+ */
29
+ function getSchemaDefaults(schema) {
30
+ const shape = getObjectShape(schema);
31
+ if (!shape) return {};
32
+ const defaults = {};
33
+ for (const [key, fieldSchema] of Object.entries(shape)) defaults[key] = getFieldDefault(fieldSchema);
34
+ return defaults;
35
+ }
36
+ function getObjectShape(schema) {
37
+ const { def } = schema;
38
+ if (def.type === "object") return schema.shape;
39
+ if (def.type === "intersection") {
40
+ const intersectionDef = def;
41
+ const leftShape = getObjectShape(intersectionDef.left);
42
+ const rightShape = getObjectShape(intersectionDef.right);
43
+ return {
44
+ ...leftShape,
45
+ ...rightShape
46
+ };
47
+ }
48
+ if (def.type === "pipe") return getObjectShape(def.in);
49
+ return null;
50
+ }
51
+ /**
52
+ * Get the default value for a Zod field type that matches what RHF's
53
+ * `useController` will produce when registering the field.
54
+ *
55
+ * Unwraps optional/nullable/default wrappers to find the inner type,
56
+ * then returns the natural "empty" value for that type.
57
+ */
58
+ function getFieldDefault(schema) {
59
+ const { type } = schema.def;
60
+ if (type === "default") return schema.def.defaultValue;
61
+ if (type === "optional" || type === "nullable") {
62
+ const innerDef = schema.def;
63
+ return getFieldDefault(innerDef.innerType);
64
+ }
65
+ if (type === "pipe") {
66
+ const pipeDef = schema.def;
67
+ return getFieldDefault(pipeDef.in);
68
+ }
69
+ if (type === "string") return "";
70
+ if (type === "number" || type === "bigint" || type === "nan") return void 0;
71
+ if (type === "boolean") return false;
72
+ if (type === "array") return [];
73
+ if (type === "object") return getSchemaDefaults(schema);
74
+ }
75
+ //#endregion
76
+ //#region src/components/features/form/adapters/rhf/rhf-adapter.tsx
77
+ /** Create a React Hook Form instance and normalize it to the adapter interface. */
78
+ function useRHFCreateForm(props) {
79
+ const { schema, defaultValues, mode, id, onSubmit, formRef } = props;
80
+ const modeMap = {
81
+ onBlur: "onBlur",
82
+ onChange: "onChange",
83
+ onSubmit: "onSubmit"
84
+ };
85
+ const schemaDefaults = React$1.useMemo(() => getSchemaDefaults(schema), [schema]);
86
+ const mergedDefaults = React$1.useMemo(() => ({
87
+ ...schemaDefaults,
88
+ ...defaultValues
89
+ }), [schemaDefaults, defaultValues]);
90
+ const form = useForm({
91
+ resolver: zodResolver(schema),
92
+ defaultValues: mergedDefaults,
93
+ mode: modeMap[mode]
94
+ });
95
+ const { errors, isDirty, isValid, dirtyFields, touchedFields } = form.formState;
96
+ const constraints = React$1.useMemo(() => getFieldConstraints(schema), [schema]);
97
+ const onSubmitRef = React$1.useRef(onSubmit);
98
+ onSubmitRef.current = onSubmit;
99
+ const normalizedFields = React$1.useMemo(() => {
100
+ const result = {};
101
+ for (const [key, constraint] of Object.entries(constraints)) {
102
+ const fieldError = errors[key];
103
+ result[key] = {
104
+ id: `${id ?? "form"}-${key}`,
105
+ errors: fieldError?.message ? [String(fieldError.message)] : [],
106
+ required: constraint.required,
107
+ isDirty: false,
108
+ isTouched: false
109
+ };
110
+ }
111
+ return result;
112
+ }, [
113
+ constraints,
114
+ errors,
115
+ id
116
+ ]);
117
+ const formState = React$1.useMemo(() => ({
118
+ isDirty,
119
+ isValid,
120
+ isSubmitted: false,
121
+ submitCount: 0,
122
+ dirtyFields: Object.fromEntries(Object.entries(dirtyFields).map(([k, v]) => [k, Boolean(v)])),
123
+ touchedFields: Object.fromEntries(Object.entries(touchedFields).map(([k, v]) => [k, Boolean(v)]))
124
+ }), [
125
+ isDirty,
126
+ isValid,
127
+ dirtyFields,
128
+ touchedFields
129
+ ]);
130
+ const handleSubmit = React$1.useMemo(() => form.handleSubmit((data) => {
131
+ onSubmitRef.current?.(data);
132
+ }), [form]);
133
+ const formProps = React$1.useMemo(() => ({
134
+ id,
135
+ onSubmit: handleSubmit,
136
+ noValidate: true
137
+ }), [id, handleSubmit]);
138
+ return React$1.useMemo(() => ({
139
+ id: id ?? "form",
140
+ fields: normalizedFields,
141
+ formProps,
142
+ formState,
143
+ submit: () => formRef?.current?.requestSubmit(),
144
+ reset: () => form.reset(),
145
+ getValues: () => form.getValues(),
146
+ raw: form
147
+ }), [
148
+ id,
149
+ normalizedFields,
150
+ formProps,
151
+ formState,
152
+ form,
153
+ formRef
154
+ ]);
155
+ }
156
+ /** Resolve a field by name and return its normalized state. */
157
+ function useRHFField(name) {
158
+ const { field, fieldState } = useController({
159
+ name,
160
+ control: useFormContext().control
161
+ });
162
+ return React$1.useMemo(() => ({
163
+ name: field.name,
164
+ id: name,
165
+ errors: fieldState.error?.message ? [String(fieldState.error.message)] : [],
166
+ required: false,
167
+ isDirty: fieldState.isDirty,
168
+ isTouched: fieldState.isTouched,
169
+ value: field.value,
170
+ change: (value) => field.onChange(value),
171
+ blur: () => field.onBlur(),
172
+ focus: () => {}
173
+ }), [
174
+ field,
175
+ fieldState,
176
+ name
177
+ ]);
178
+ }
179
+ /** Watch a single field's value reactively. */
180
+ function useRHFWatchHook(name) {
181
+ return useWatch({
182
+ name,
183
+ control: useFormContext().control
184
+ });
185
+ }
186
+ /** Watch multiple fields' values reactively. */
187
+ function useRHFWatchAllHook(names) {
188
+ const values = useWatch({
189
+ name: names,
190
+ control: useFormContext().control
191
+ });
192
+ return React$1.useMemo(() => {
193
+ const result = {};
194
+ names.forEach((n, index) => {
195
+ result[n] = values[index];
196
+ });
197
+ return result;
198
+ }, [names, values]);
199
+ }
200
+ /** Get field array helpers for a given array field name. */
201
+ function useRHFFieldArrayHook(name) {
202
+ const { fields, append, remove, move } = useFieldArray({
203
+ name,
204
+ control: useFormContext().control
205
+ });
206
+ return {
207
+ items: React$1.useMemo(() => fields.map((field, index) => ({
208
+ id: field.id,
209
+ key: field.id,
210
+ name: `${name}.${index}`
211
+ })), [fields, name]),
212
+ append: React$1.useCallback((defaultValue) => {
213
+ append(defaultValue ?? {});
214
+ }, [append]),
215
+ remove: React$1.useCallback((index) => {
216
+ remove(index);
217
+ }, [remove]),
218
+ move: React$1.useCallback((from, to) => {
219
+ move(from, to);
220
+ }, [move])
221
+ };
222
+ }
223
+ /**
224
+ * Wraps children in React Hook Form's FormProvider so that useFormContext()
225
+ * and useController() work inside field components.
226
+ */
227
+ function RHFFormProviderWrapper({ instance, children }) {
228
+ const form = instance.raw;
229
+ return /* @__PURE__ */ jsx(FormProvider, {
230
+ ...form,
231
+ children
232
+ });
233
+ }
234
+ /**
235
+ * React Hook Form adapter implementing the `FormAdapter` interface.
236
+ *
237
+ * Maps react-hook-form's `useForm` / `useController` / `useWatch` APIs
238
+ * to the normalized form adapter contract. Uses `@hookform/resolvers/zod`
239
+ * for Zod schema validation.
240
+ */
241
+ const rhfAdapter = {
242
+ name: "React Hook Form",
243
+ useCreateForm: useRHFCreateForm,
244
+ useField: useRHFField,
245
+ useWatch: useRHFWatchHook,
246
+ useWatchAll: useRHFWatchAllHook,
247
+ useFieldArray: useRHFFieldArrayHook,
248
+ FormProvider: RHFFormProviderWrapper
249
+ };
250
+ //#endregion
251
+ //#region src/components/features/form/adapters/rhf/rhf-provider.tsx
252
+ /**
253
+ * Wrap your application with this provider to use React Hook Form as the form backend.
254
+ *
255
+ * @example
256
+ * ```tsx
257
+ * import { RHFAdapter } from '@datum-cloud/datum-ui/form/adapters/rhf'
258
+ *
259
+ * function App() {
260
+ * return (
261
+ * <RHFAdapter>
262
+ * <MyApp />
263
+ * </RHFAdapter>
264
+ * )
265
+ * }
266
+ * ```
267
+ */
268
+ function RHFAdapter({ children }) {
269
+ return /* @__PURE__ */ jsx(FormAdapterProvider, {
270
+ adapter: rhfAdapter,
271
+ children
272
+ });
273
+ }
274
+ //#endregion
275
+ export { RHFAdapter, rhfAdapter };
@@ -1,2 +1,3 @@
1
- import { A as FormButton, C as FormField, D as FormCustom, E as FormDescription, O as FormCopyBox, S as FormFieldArray, T as FormDialog, _ as FormSelectItem, a as useField, b as FormRadioItem, c as FormStep, d as useWatch, f as useWatchAll, g as FormSelect, h as FormSubmit, i as useFieldContext, j as FormAutocomplete, k as FormCheckbox, l as FormStepper, m as FormSwitch, n as useStepper, o as StepperNavigation, p as FormTextarea, r as useFormContext, s as StepperControls, t as Form, u as FormWhen, v as FormRoot, w as FormError, x as FormInput, y as FormRadioGroup } from "../form-Co3fM4B7.mjs";
2
- export { Form, FormAutocomplete, FormButton, FormCheckbox, FormCopyBox, FormCustom, FormDescription, FormDialog, FormError, FormField, FormFieldArray, FormInput, FormRadioGroup, FormRadioItem, FormRoot, FormSelect, FormSelectItem, FormStep, FormStepper, FormSubmit, FormSwitch, FormTextarea, FormWhen, StepperControls, StepperNavigation, useField, useFieldContext, useFormContext, useStepper, useWatch, useWatchAll };
1
+ import { A as FormCheckbox, C as FormDialog, D as FormCustom, E as FormDatePicker, M as FormAutosearch, N as FormAutocomplete, O as FormCopyBox, S as FormError, T as FormDateTimePicker, _ as FormRadioGroup, a as useField, b as FormFieldArray, c as useWatchAll, d as FormTextarea, f as FormSwitch, g as FormRoot, h as FormSelectItem, i as useFieldContext, j as FormButton, k as FormCombobox, l as FormTransfer, m as FormSelect, n as useFormState, o as FormWhen, p as FormSubmit, r as useFormContext, s as useWatch, t as Form, u as FormTimePicker, v as FormRadioItem, w as FormDescription, x as FormField, y as FormInput } from "../form-zf5QOnAk.mjs";
2
+ import { n as useAdapter, t as FormAdapterProvider } from "../adapter-context-rWveHhDd.mjs";
3
+ export { Form, FormAdapterProvider, FormAutocomplete, FormAutosearch, FormButton, FormCheckbox, FormCombobox, FormCopyBox, FormCustom, FormDatePicker, FormDateTimePicker, FormDescription, FormDialog, FormError, FormField, FormFieldArray, FormInput, FormRadioGroup, FormRadioItem, FormRoot, FormSelect, FormSelectItem, FormSubmit, FormSwitch, FormTextarea, FormTimePicker, FormTransfer, FormWhen, useAdapter, useField, useFieldContext, useFormContext, useFormState, useWatch, useWatchAll };