@mittwald/flow-react-components 0.2.0-alpha.866 → 0.2.0-alpha.867
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/CHANGELOG.md +6 -0
- package/dist/assets/doc-properties.json +3107 -3107
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Field/index.mjs +1 -0
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Field/lib/debounceValidate.mjs +16 -0
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Field/lib/debounceValidate.mjs.map +1 -0
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Form/Form.mjs +2 -3
- package/dist/js/packages/components/src/integrations/react-hook-form/components/Form/Form.mjs.map +1 -1
- package/dist/js/react-hook-form.mjs +2 -1
- package/dist/types/integrations/react-hook-form/components/Field/index.d.ts +1 -0
- package/dist/types/integrations/react-hook-form/components/Field/index.d.ts.map +1 -1
- package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.d.ts +3 -0
- package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.d.ts.map +1 -0
- package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.test.d.ts +2 -0
- package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.test.d.ts.map +1 -0
- package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
//#region src/integrations/react-hook-form/components/Field/lib/debounceValidate.ts
|
|
4
|
+
var debounceValidate = (validateFunction, waitMs = 500) => {
|
|
5
|
+
let timeoutId = null;
|
|
6
|
+
return (value, formValues) => new Promise((resolve, reject) => {
|
|
7
|
+
if (timeoutId) clearTimeout(timeoutId);
|
|
8
|
+
timeoutId = setTimeout(() => {
|
|
9
|
+
Promise.resolve(validateFunction(value, formValues)).then(resolve).catch(reject);
|
|
10
|
+
}, waitMs);
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { debounceValidate };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=debounceValidate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounceValidate.mjs","names":[],"sources":["../../../../../../../../../../src/integrations/react-hook-form/components/Field/lib/debounceValidate.ts"],"sourcesContent":["import type {\n FieldPath,\n FieldPathValue,\n FieldValues,\n Validate,\n ValidateResult,\n} from \"react-hook-form\";\n\nexport const debounceValidate = <\n TFieldValues extends FieldValues = FieldValues,\n TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>(\n validateFunction: Validate<\n FieldPathValue<TFieldValues, TFieldName>,\n TFieldValues\n >,\n waitMs = 500,\n) => {\n let timeoutId: ReturnType<typeof setTimeout> | null = null;\n\n return (\n value: FieldPathValue<TFieldValues, TFieldName>,\n formValues: TFieldValues,\n ) =>\n new Promise<ValidateResult>((resolve, reject) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n\n timeoutId = setTimeout(() => {\n Promise.resolve(validateFunction(value, formValues))\n .then(resolve)\n .catch(reject);\n }, waitMs);\n });\n};\n"],"mappings":";AAQA,IAAa,oBAIX,kBAIA,SAAS,QACN;CACH,IAAI,YAAkD;CAEtD,QACE,OACA,eAEA,IAAI,SAAyB,SAAS,WAAW;EAC/C,IAAI,WACF,aAAa,SAAS;EAGxB,YAAY,iBAAiB;GAC3B,QAAQ,QAAQ,iBAAiB,OAAO,UAAU,CAAC,EAChD,KAAK,OAAO,EACZ,MAAM,MAAM;EACjB,GAAG,MAAM;CACX,CAAC;AACL"}
|
package/dist/js/packages/components/src/integrations/react-hook-form/components/Form/Form.mjs
CHANGED
|
@@ -22,7 +22,7 @@ function Form(props) {
|
|
|
22
22
|
const formId = idProp ?? newFormId;
|
|
23
23
|
const FormComponent = useMemo(() => formComponent, [formId]);
|
|
24
24
|
const afterSubmitCallback = useRef(void 0);
|
|
25
|
-
const {
|
|
25
|
+
const { isDirty } = form.formState;
|
|
26
26
|
const rootErrorController = useFormRootErrorController();
|
|
27
27
|
const defaultSubmitController = useFormSubmitController();
|
|
28
28
|
const submitController = submitControllerFromProps ? submitControllerFromProps.submit.extend(defaultSubmitController) : defaultSubmitController;
|
|
@@ -42,9 +42,8 @@ function Form(props) {
|
|
|
42
42
|
const handleSubmit = (e) => {
|
|
43
43
|
const formEvent = e && "nativeEvent" in e ? e : void 0;
|
|
44
44
|
formEvent?.stopPropagation();
|
|
45
|
-
if (isSubmitting || isValidating) return;
|
|
46
|
-
modalController.confirmClose();
|
|
47
45
|
return form.handleSubmit((values, event) => {
|
|
46
|
+
modalController.confirmClose();
|
|
48
47
|
const submitResult = onSubmit(values, event);
|
|
49
48
|
if (submitResult instanceof Promise) return submitResult.then(handleSubmitResult);
|
|
50
49
|
handleSubmitResult(submitResult);
|
package/dist/js/packages/components/src/integrations/react-hook-form/components/Form/Form.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.mjs","names":[],"sources":["../../../../../../../../../src/integrations/react-hook-form/components/Form/Form.tsx"],"sourcesContent":["import ConfirmUnsavedChangesModal from \"@/components/Modal/components/ConfirmUnsavedChangesModal\";\nimport { FormContextProvider } from \"@/integrations/react-hook-form/components/FormContextProvider/FormContextProvider\";\nimport { flags } from \"@/flags\";\nimport { useModalController } from \"@/lib/controller\";\nimport {\n type BaseSyntheticEvent,\n type ComponentProps,\n type FC,\n type PropsWithChildren,\n type Ref,\n type SubmitEventHandler,\n useId,\n useMemo,\n useRef,\n} from \"react\";\nimport type {\n FieldValues,\n Path,\n SubmitHandler,\n UseFormReturn,\n} from \"react-hook-form\";\nimport { FormProvider as RhfFormContextProvider } from \"react-hook-form\";\nimport { useFormRootErrorController } from \"../FormRootError/useFormRootErrorController\";\nimport { FormRootError } from \"../../lib/FormRootError\";\nimport { useFormSettings } from \"../FormSettingsProvider/FormSettingsProvider\";\nimport {\n useFormSubmitController,\n type WithFormSubmitControllerProps,\n} from \"@/integrations/react-hook-form/components/Form/hooks/useFormSubmitController\";\nimport { useHotkeySubmit } from \"@/integrations/react-hook-form/components/Form/hooks/useHotkeySubmit\";\n\nexport type FormOnSubmitHandler<F extends FieldValues> = SubmitHandler<F>;\n\nexport type AfterFormSubmitCallback = (...unknownArgs: unknown[]) => unknown;\n\nexport interface FormAutoResetOptions {\n onAfterModalClose?: boolean;\n}\n\ntype FormComponentType = FC<\n PropsWithChildren<{\n id: string;\n onSubmit?: SubmitEventHandler | FormOnSubmitHandler<never>;\n ref?: Ref<HTMLFormElement>;\n }>\n>;\n\nexport interface FormProps<F extends FieldValues>\n extends\n Omit<ComponentProps<\"form\">, \"onSubmit\">,\n PropsWithChildren,\n WithFormSubmitControllerProps {\n form: UseFormReturn<F>;\n onSubmit: FormOnSubmitHandler<F>;\n formComponent?: FC<Omit<FormComponentType, \"ref\">>;\n isReadOnly?: boolean;\n autoReset?: FormAutoResetOptions | boolean;\n}\n\nconst DefaultFormComponent: FormComponentType = (p) => <form {...p} />;\n\nexport function Form<F extends FieldValues>(props: FormProps<F>) {\n const {\n form,\n children,\n onSubmit: onSubmitProp,\n formComponent = DefaultFormComponent,\n isReadOnly,\n ref,\n id: idProp,\n autoReset = true,\n submitController: submitControllerFromProps,\n ...formProps\n } = props;\n\n const newFormId = useId();\n const formId = idProp ?? newFormId;\n const FormComponent = useMemo(() => formComponent, [formId]);\n const afterSubmitCallback = useRef<AfterFormSubmitCallback>(undefined);\n const {
|
|
1
|
+
{"version":3,"file":"Form.mjs","names":[],"sources":["../../../../../../../../../src/integrations/react-hook-form/components/Form/Form.tsx"],"sourcesContent":["import ConfirmUnsavedChangesModal from \"@/components/Modal/components/ConfirmUnsavedChangesModal\";\nimport { FormContextProvider } from \"@/integrations/react-hook-form/components/FormContextProvider/FormContextProvider\";\nimport { flags } from \"@/flags\";\nimport { useModalController } from \"@/lib/controller\";\nimport {\n type BaseSyntheticEvent,\n type ComponentProps,\n type FC,\n type PropsWithChildren,\n type Ref,\n type SubmitEventHandler,\n useId,\n useMemo,\n useRef,\n} from \"react\";\nimport type {\n FieldValues,\n Path,\n SubmitHandler,\n UseFormReturn,\n} from \"react-hook-form\";\nimport { FormProvider as RhfFormContextProvider } from \"react-hook-form\";\nimport { useFormRootErrorController } from \"../FormRootError/useFormRootErrorController\";\nimport { FormRootError } from \"../../lib/FormRootError\";\nimport { useFormSettings } from \"../FormSettingsProvider/FormSettingsProvider\";\nimport {\n useFormSubmitController,\n type WithFormSubmitControllerProps,\n} from \"@/integrations/react-hook-form/components/Form/hooks/useFormSubmitController\";\nimport { useHotkeySubmit } from \"@/integrations/react-hook-form/components/Form/hooks/useHotkeySubmit\";\n\nexport type FormOnSubmitHandler<F extends FieldValues> = SubmitHandler<F>;\n\nexport type AfterFormSubmitCallback = (...unknownArgs: unknown[]) => unknown;\n\nexport interface FormAutoResetOptions {\n onAfterModalClose?: boolean;\n}\n\ntype FormComponentType = FC<\n PropsWithChildren<{\n id: string;\n onSubmit?: SubmitEventHandler | FormOnSubmitHandler<never>;\n ref?: Ref<HTMLFormElement>;\n }>\n>;\n\nexport interface FormProps<F extends FieldValues>\n extends\n Omit<ComponentProps<\"form\">, \"onSubmit\">,\n PropsWithChildren,\n WithFormSubmitControllerProps {\n form: UseFormReturn<F>;\n onSubmit: FormOnSubmitHandler<F>;\n formComponent?: FC<Omit<FormComponentType, \"ref\">>;\n isReadOnly?: boolean;\n autoReset?: FormAutoResetOptions | boolean;\n}\n\nconst DefaultFormComponent: FormComponentType = (p) => <form {...p} />;\n\nexport function Form<F extends FieldValues>(props: FormProps<F>) {\n const {\n form,\n children,\n onSubmit: onSubmitProp,\n formComponent = DefaultFormComponent,\n isReadOnly,\n ref,\n id: idProp,\n autoReset = true,\n submitController: submitControllerFromProps,\n ...formProps\n } = props;\n\n const newFormId = useId();\n const formId = idProp ?? newFormId;\n const FormComponent = useMemo(() => formComponent, [formId]);\n const afterSubmitCallback = useRef<AfterFormSubmitCallback>(undefined);\n const { isDirty } = form.formState;\n const rootErrorController = useFormRootErrorController();\n\n const defaultSubmitController = useFormSubmitController();\n const submitController = submitControllerFromProps\n ? submitControllerFromProps.submit.extend(defaultSubmitController)\n : defaultSubmitController;\n\n const autoResetOptions =\n typeof autoReset === \"boolean\"\n ? { onAfterModalClose: autoReset }\n : autoReset;\n\n const modalController = useModalController();\n modalController.useUpdateOptions({\n confirmOnClose:\n flags.requireCloseModalConfirmationOnUnsavedChanges && isDirty,\n });\n modalController.useOnClosed(() => {\n if (autoResetOptions?.onAfterModalClose) {\n form.reset();\n }\n });\n\n const { submitInterceptor } = useFormSettings();\n const onSubmit = submitInterceptor\n ? (values: F) => submitInterceptor<F>(onSubmitProp, values, { form })\n : onSubmitProp;\n\n const handleSubmitResult = (result: unknown) => {\n if (typeof result === \"function\") {\n afterSubmitCallback.current = result as AfterFormSubmitCallback;\n }\n const rootError = form.getFieldState(\"root\" as Path<F>)?.error;\n if (rootError && !rootErrorController.errorComponentMounted) {\n throw new FormRootError(rootError);\n }\n };\n\n const handleSubmit = (e?: BaseSyntheticEvent | F) => {\n const formEvent =\n e && \"nativeEvent\" in e ? (e as BaseSyntheticEvent) : undefined;\n formEvent?.stopPropagation();\n\n return form.handleSubmit((values, event) => {\n modalController.confirmClose();\n\n const submitResult = onSubmit(values, event);\n if (submitResult instanceof Promise) {\n return submitResult.then(handleSubmitResult);\n }\n handleSubmitResult(submitResult);\n })(formEvent);\n };\n submitController.submit.set(handleSubmit);\n\n const onAfterSuccessFeedback = () => {\n afterSubmitCallback.current?.();\n };\n\n const refWithHotkeySubmit = useHotkeySubmit({\n ref,\n submitController,\n });\n\n return (\n <RhfFormContextProvider {...form}>\n <FormContextProvider\n form={form as UseFormReturn}\n isReadOnly={isReadOnly}\n id={formId}\n onAfterSuccessFeedback={onAfterSuccessFeedback}\n rootErrorController={rootErrorController}\n >\n <FormComponent\n {...formProps}\n ref={refWithHotkeySubmit}\n id={formId}\n onSubmit={handleSubmit}\n >\n {children}\n </FormComponent>\n </FormContextProvider>\n <ConfirmUnsavedChangesModal />\n </RhfFormContextProvider>\n );\n}\n\nexport default Form;\n"],"mappings":";;;;;;;;;;;;;;;AA2DA,IAAM,wBAA2C,MAAM,oBAAC,QAAD,EAAM,GAAI,EAAI,CAAA;AAErE,SAAgB,KAA4B,OAAqB;CAC/D,MAAM,EACJ,MACA,UACA,UAAU,cACV,gBAAgB,sBAChB,YACA,KACA,IAAI,QACJ,YAAY,MACZ,kBAAkB,2BAClB,GAAG,cACD;CAEJ,MAAM,YAAY,MAAM;CACxB,MAAM,SAAS,UAAU;CACzB,MAAM,gBAAgB,cAAc,eAAe,CAAC,MAAM,CAAC;CAC3D,MAAM,sBAAsB,OAAgC,KAAA,CAAS;CACrE,MAAM,EAAE,YAAY,KAAK;CACzB,MAAM,sBAAsB,2BAA2B;CAEvD,MAAM,0BAA0B,wBAAwB;CACxD,MAAM,mBAAmB,4BACrB,0BAA0B,OAAO,OAAO,uBAAuB,IAC/D;CAEJ,MAAM,mBACJ,OAAO,cAAc,YACjB,EAAE,mBAAmB,UAAU,IAC/B;CAEN,MAAM,kBAAkB,mBAAmB;CAC3C,gBAAgB,iBAAiB,EAC/B,gBACE,MAAM,iDAAiD,QAC3D,CAAC;CACD,gBAAgB,kBAAkB;EAChC,IAAI,kBAAkB,mBACpB,KAAK,MAAM;CAEf,CAAC;CAED,MAAM,EAAE,sBAAsB,gBAAgB;CAC9C,MAAM,WAAW,qBACZ,WAAc,kBAAqB,cAAc,QAAQ,EAAE,KAAK,CAAC,IAClE;CAEJ,MAAM,sBAAsB,WAAoB;EAC9C,IAAI,OAAO,WAAW,YACpB,oBAAoB,UAAU;EAEhC,MAAM,YAAY,KAAK,cAAc,MAAiB,GAAG;EACzD,IAAI,aAAa,CAAC,oBAAoB,uBACpC,MAAM,IAAI,cAAc,SAAS;CAErC;CAEA,MAAM,gBAAgB,MAA+B;EACnD,MAAM,YACJ,KAAK,iBAAiB,IAAK,IAA2B,KAAA;EACxD,WAAW,gBAAgB;EAE3B,OAAO,KAAK,cAAc,QAAQ,UAAU;GAC1C,gBAAgB,aAAa;GAE7B,MAAM,eAAe,SAAS,QAAQ,KAAK;GAC3C,IAAI,wBAAwB,SAC1B,OAAO,aAAa,KAAK,kBAAkB;GAE7C,mBAAmB,YAAY;EACjC,CAAC,EAAE,SAAS;CACd;CACA,iBAAiB,OAAO,IAAI,YAAY;CAExC,MAAM,+BAA+B;EACnC,oBAAoB,UAAU;CAChC;CAEA,MAAM,sBAAsB,gBAAgB;EAC1C;EACA;CACF,CAAC;CAED,OACE,qBAAC,cAAD;EAAwB,GAAI;YAA5B,CACE,oBAAC,qBAAD;GACQ;GACM;GACZ,IAAI;GACoB;GACH;aAErB,oBAAC,eAAD;IACE,GAAI;IACJ,KAAK;IACL,IAAI;IACJ,UAAU;IAET;GACY,CAAA;EACI,CAAA,GACrB,oBAAC,4BAAD,CAA6B,CAAA,CACP;;AAE5B"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { flags } from "./packages/components/src/flags.mjs";
|
|
4
4
|
import { useFormContext, useOptionalFormContext } from "./packages/components/src/integrations/react-hook-form/components/FormContextProvider/FormContextProvider.mjs";
|
|
5
5
|
import Field, { typedField } from "./packages/components/src/integrations/react-hook-form/components/Field/Field.mjs";
|
|
6
|
+
import { debounceValidate } from "./packages/components/src/integrations/react-hook-form/components/Field/lib/debounceValidate.mjs";
|
|
6
7
|
import "./packages/components/src/integrations/react-hook-form/components/Field/index.mjs";
|
|
7
8
|
import { FormSettingsProvider } from "./packages/components/src/integrations/react-hook-form/components/FormSettingsProvider/FormSettingsProvider.mjs";
|
|
8
9
|
import { useFormSubmitController } from "./packages/components/src/integrations/react-hook-form/components/Form/hooks/useFormSubmitController.mjs";
|
|
@@ -19,4 +20,4 @@ import "./packages/components/src/integrations/react-hook-form/components/ResetB
|
|
|
19
20
|
import FormRootError from "./packages/components/src/integrations/react-hook-form/components/FormRootError/FormRootError.mjs";
|
|
20
21
|
import "./packages/components/src/integrations/react-hook-form/components/FormRootError/index.mjs";
|
|
21
22
|
import "./packages/components/src/integrations/react-hook-form/flags.mjs";
|
|
22
|
-
export { Field, Form, FormAction, FormRootError, FormSettingsProvider, ResetButton, SubmitButton, flags, typedField, useFormContext, useFormSubmitController, useOptionalFormContext };
|
|
23
|
+
export { Field, Form, FormAction, FormRootError, FormSettingsProvider, ResetButton, SubmitButton, debounceValidate, flags, typedField, useFormContext, useFormSubmitController, useOptionalFormContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/Field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uDAAuD,CAAC;AAEhF,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/Field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uDAAuD,CAAC;AAEhF,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FieldPath, FieldPathValue, FieldValues, Validate, ValidateResult } from 'react-hook-form';
|
|
2
|
+
export declare const debounceValidate: <TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(validateFunction: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>, waitMs?: number) => (value: FieldPathValue<TFieldValues, TFieldName>, formValues: TFieldValues) => Promise<ValidateResult>;
|
|
3
|
+
//# sourceMappingURL=debounceValidate.d.ts.map
|
package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounceValidate.d.ts","sourceRoot":"","sources":["../../../../../../../src/integrations/react-hook-form/components/Field/lib/debounceValidate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,WAAW,EACX,QAAQ,EACR,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,gBAAgB,GAC3B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,UAAU,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAEpE,kBAAkB,QAAQ,CACxB,cAAc,CAAC,YAAY,EAAE,UAAU,CAAC,EACxC,YAAY,CACb,EACD,eAAY,MAKV,OAAO,cAAc,CAAC,YAAY,EAAE,UAAU,CAAC,EAC/C,YAAY,YAAY,4BAa3B,CAAC"}
|
package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounceValidate.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/integrations/react-hook-form/components/Field/lib/debounceValidate.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/Form/Form.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,EAAE,EACP,KAAK,iBAAiB,EACtB,KAAK,GAAG,EACR,KAAK,kBAAkB,EAIxB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,WAAW,EAEX,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,8EAA8E,CAAC;AAGtF,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,GAAG,WAAW,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;AAE7E,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,KAAK,iBAAiB,GAAG,EAAE,CACzB,iBAAiB,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,kBAAkB,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC3D,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC5B,CAAC,CACH,CAAC;AAEF,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,WAAW,CAC9C,SACE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,EACxC,iBAAiB,EACjB,6BAA6B;IAC/B,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACvB,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC;CAC5C;AAID,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,+
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/Form/Form.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,EAAE,EACP,KAAK,iBAAiB,EACtB,KAAK,GAAG,EACR,KAAK,kBAAkB,EAIxB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,WAAW,EAEX,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,8EAA8E,CAAC;AAGtF,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,GAAG,WAAW,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;AAE7E,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,KAAK,iBAAiB,GAAG,EAAE,CACzB,iBAAiB,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,kBAAkB,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC3D,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC5B,CAAC,CACH,CAAC;AAEF,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,WAAW,CAC9C,SACE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,EACxC,iBAAiB,EACjB,6BAA6B;IAC/B,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACvB,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC;CAC5C;AAID,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,+BAwG9D;AAED,eAAe,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.867",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"@internationalized/string": "^3.2.9",
|
|
64
64
|
"@internationalized/string-compiler": "^3.4.1",
|
|
65
65
|
"@lezer/highlight": "^1.2.3",
|
|
66
|
-
"@mittwald/flow-icons": "0.2.0-alpha.
|
|
66
|
+
"@mittwald/flow-icons": "0.2.0-alpha.867",
|
|
67
67
|
"@mittwald/password-tools-js": "3.0.0-alpha.30",
|
|
68
|
-
"@mittwald/react-tunnel": "0.2.0-alpha.
|
|
68
|
+
"@mittwald/react-tunnel": "0.2.0-alpha.867",
|
|
69
69
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
70
70
|
"@react-aria/form": "^3.2.1",
|
|
71
71
|
"@react-aria/i18n": "^3.13.1",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@lezer/generator": "^1.8.0",
|
|
120
120
|
"@lezer/lr": "^1.4.10",
|
|
121
121
|
"@mittwald/flow-core": "",
|
|
122
|
-
"@mittwald/flow-design-tokens": "0.2.0-alpha.
|
|
122
|
+
"@mittwald/flow-design-tokens": "0.2.0-alpha.867",
|
|
123
123
|
"@mittwald/flow-icons-base": "",
|
|
124
124
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
125
125
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.10",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
},
|
|
175
175
|
"peerDependencies": {
|
|
176
176
|
"@internationalized/date": "^3.12.2",
|
|
177
|
-
"@mittwald/flow-icons-pro": "0.2.0-alpha.
|
|
177
|
+
"@mittwald/flow-icons-pro": "0.2.0-alpha.866",
|
|
178
178
|
"@mittwald/react-use-promise": "^4.2.2",
|
|
179
179
|
"next": "^16.2.3",
|
|
180
180
|
"react": "^19.2.0",
|
|
@@ -195,5 +195,5 @@
|
|
|
195
195
|
"optional": true
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
|
-
"gitHead": "
|
|
198
|
+
"gitHead": "d528599de15d6c9d5e93ff4c7fd4034bf2d7d87d"
|
|
199
199
|
}
|