@stackone/malachite 0.5.0 → 0.5.1
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/dist/index.d.ts +0 -31
- package/dist/index.js +463 -465
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -331,37 +331,6 @@ declare interface FooterLinksProps {
|
|
|
331
331
|
showDocsSupport?: boolean;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
/**
|
|
335
|
-
* Form component that escapes Shadow DOM to avoid "Invalid hook call" errors.
|
|
336
|
-
*
|
|
337
|
-
* This component automatically renders outside Shadow DOM boundaries, allowing
|
|
338
|
-
* react-hook-form hooks to work properly while maintaining the styling and
|
|
339
|
-
* functionality expected from a form component.
|
|
340
|
-
*
|
|
341
|
-
* @example
|
|
342
|
-
* // Works inside MalachiteContext - form will escape Shadow DOM automatically
|
|
343
|
-
* <MalachiteContext>
|
|
344
|
-
* <Form
|
|
345
|
-
* defaultValues={{ username: '', email: '' }}
|
|
346
|
-
* onFinish={(data) => console.log(data)}
|
|
347
|
-
* >
|
|
348
|
-
* <Input name="username" label="Username" required />
|
|
349
|
-
* <Input name="email" label="Email" required />
|
|
350
|
-
* <Button type="submit">Submit</Button>
|
|
351
|
-
* </Form>
|
|
352
|
-
* </MalachiteContext>
|
|
353
|
-
*
|
|
354
|
-
* @example
|
|
355
|
-
* // Advanced usage with external form instance
|
|
356
|
-
* const form = useForm({ defaultValues: { username: '' } });
|
|
357
|
-
*
|
|
358
|
-
* <MalachiteContext>
|
|
359
|
-
* <Form formInstance={form} onFinish={onSubmit}>
|
|
360
|
-
* <Input name="username" />
|
|
361
|
-
* <Button type="submit">Submit</Button>
|
|
362
|
-
* </Form>
|
|
363
|
-
* </MalachiteContext>
|
|
364
|
-
*/
|
|
365
334
|
export declare const Form: default_2.FC<FormProps>;
|
|
366
335
|
|
|
367
336
|
export declare const FormItem: default_2.FC<FormItemProps>;
|