@grasp-labs/ds-microfrontends-integration 0.22.0 → 0.23.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.
@@ -1,13 +1,15 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
+ import { Resolver } from 'react-hook-form';
2
3
  import { Schema } from 'src/types';
3
4
  type SchemaFieldsExampleProps = {
4
5
  schema: Schema;
5
6
  defaultValues: Record<string, unknown>;
6
7
  fieldDirection?: "horizontal" | "vertical";
8
+ resolver?: Resolver;
7
9
  };
8
10
  declare const meta: {
9
11
  title: string;
10
- component: ({ schema, defaultValues, fieldDirection, }: SchemaFieldsExampleProps) => import("react/jsx-runtime").JSX.Element;
12
+ component: ({ schema, defaultValues, fieldDirection, resolver, }: SchemaFieldsExampleProps) => import("react/jsx-runtime").JSX.Element;
11
13
  parameters: {
12
14
  layout: string;
13
15
  };
@@ -16,15 +18,18 @@ declare const meta: {
16
18
  schema: Schema;
17
19
  defaultValues: Record<string, unknown>;
18
20
  fieldDirection?: "horizontal" | "vertical" | undefined;
21
+ resolver?: Resolver | undefined;
19
22
  }>, context: import('storybook/internal/csf').StoryContext<import('@storybook/react').ReactRenderer, {
20
23
  schema: Schema;
21
24
  defaultValues: Record<string, unknown>;
22
25
  fieldDirection?: "horizontal" | "vertical" | undefined;
26
+ resolver?: Resolver | undefined;
23
27
  }>) => import("react/jsx-runtime").JSX.Element)[];
24
28
  };
25
29
  export default meta;
26
30
  type Story = StoryObj<typeof meta>;
27
31
  export declare const BasicForm: Story;
32
+ export declare const BasicFormWithCustomValidation: Story;
28
33
  export declare const BasicFormWithVerticalAlignment: Story;
29
34
  export declare const NestedWithVault: Story;
30
35
  export declare const PasswordFields: Story;
@@ -0,0 +1 @@
1
+ export * from './schemas';
@@ -0,0 +1,5 @@
1
+ import { Schema } from 'src/types';
2
+ export declare const SIMPLE_SCHEMA: Schema;
3
+ export declare const NESTED_SCHEMA: Schema;
4
+ export declare const SECRET_FORM_SCHEMA: Schema;
5
+ export declare const PASSWORD_SCHEMA: Schema;