@opengeoweb/form-fields 10.0.0 → 10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/form-fields",
3
- "version": "10.0.0",
3
+ "version": "10.1.0",
4
4
  "description": "GeoWeb form-fields library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -4,15 +4,16 @@ export declare const zeplinLinks: {
4
4
  name: string;
5
5
  link: string;
6
6
  }[];
7
- export interface StoryLayoutProps {
7
+ interface StoryLayoutProps {
8
8
  children?: React.ReactNode;
9
9
  }
10
- export interface FormFieldsWrapperProps {
11
- children?: React.ReactNode;
10
+ export declare const FormFieldsWrapper: React.FC<StoryLayoutProps & {
12
11
  options?: UseFormProps;
12
+ }>;
13
+ export declare const FormFieldsWrappeDecorator: React.FC<StoryLayoutProps & {
13
14
  isDarkTheme?: boolean;
14
- }
15
- export declare const FormFieldsWrapper: React.FC<FormFieldsWrapperProps>;
15
+ }>;
16
16
  export declare const FormFieldsI18nProvider: React.FC<{
17
17
  children?: React.ReactNode;
18
18
  }>;
19
+ export {};
@@ -1,34 +1,9 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const DateTime: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- };
15
- export declare const DateTimeLightTheme: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- };
25
- export declare const DateTimeDarkTheme: {
26
- (): React.ReactElement;
27
- tags: string[];
28
- parameters: {
29
- zeplinLink: {
30
- name: string;
31
- link: string;
32
- }[];
33
- };
34
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ReactHookFormDateTime } from '.';
3
+ type Story = StoryObj<typeof ReactHookFormDateTime>;
4
+ declare const meta: Meta<typeof ReactHookFormDateTime>;
5
+ export default meta;
6
+ export declare const Component: Story;
7
+ export declare const DateTime: Story;
8
+ export declare const DateTimeLightTheme: Story;
9
+ export declare const DateTimeDarkTheme: Story;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const HiddenInput: () => React.ReactElement;
7
- export declare const HiddenInputDarkTheme: () => React.ReactElement;
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ReactHookFormHiddenInput } from '.';
3
+ type Story = StoryObj<typeof ReactHookFormHiddenInput>;
4
+ declare const meta: Meta<typeof ReactHookFormHiddenInput>;
5
+ export default meta;
6
+ export declare const HiddenInput: Story;
7
+ export declare const HiddenInputDarkTheme: Story;
@@ -1,34 +1,9 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const NumberField: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLinks: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- };
15
- export declare const NumberFieldLightTheme: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- };
25
- export declare const NumberFieldDarkTheme: {
26
- (): React.ReactElement;
27
- tags: string[];
28
- parameters: {
29
- zeplinLink: {
30
- name: string;
31
- link: string;
32
- }[];
33
- };
34
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ReactHookFormNumberField } from '.';
3
+ type Story = StoryObj<typeof ReactHookFormNumberField>;
4
+ declare const meta: Meta<typeof ReactHookFormNumberField>;
5
+ export default meta;
6
+ export declare const Component: Story;
7
+ export declare const NumberField: Story;
8
+ export declare const NumberFieldLightTheme: Story;
9
+ export declare const NumberFieldDarkTheme: Story;
@@ -1,34 +1,9 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const FormProvider: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- };
15
- export declare const FormProviderLightTheme: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- };
25
- export declare const FormProviderDarkTheme: {
26
- (): React.ReactElement;
27
- tags: string[];
28
- parameters: {
29
- zeplinLink: {
30
- name: string;
31
- link: string;
32
- }[];
33
- };
34
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ReactHookFormDateTime } from '.';
3
+ import { FormFieldsWrapper } from './Providers';
4
+ type Story = StoryObj<typeof FormFieldsWrapper>;
5
+ declare const meta: Meta<typeof ReactHookFormDateTime>;
6
+ export default meta;
7
+ export declare const FormProvider: Story;
8
+ export declare const FormProviderLightTheme: Story;
9
+ export declare const FormProviderDarkTheme: Story;
@@ -1,34 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const RadioGroup: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- };
15
- export declare const RadioGroupLightTheme: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- };
25
- export declare const RadioGroupDarkTheme: {
26
- (): React.ReactElement;
27
- tags: string[];
28
- parameters: {
29
- zeplinLink: {
30
- name: string;
31
- link: string;
32
- }[];
33
- };
34
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ReactHookFormRadioGroup } from '.';
3
+ type Story = StoryObj<typeof ReactHookFormRadioGroup>;
4
+ declare const meta: Meta<typeof ReactHookFormRadioGroup>;
5
+ export default meta;
6
+ export declare const Component: Story;
7
+ export declare const RadioGroup: Story;
8
+ export declare const RadioGroupLightTheme: Story;
9
+ export declare const RadioGroupDarkTheme: Story;
10
+ export declare const RadioGroupDarkThemeStory: Story;
@@ -1,26 +1,9 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const Select: () => React.ReactElement;
7
- export declare const SelectLightTheme: {
8
- (): React.ReactElement;
9
- tags: string[];
10
- parameters: {
11
- zeplinLink: {
12
- name: string;
13
- link: string;
14
- }[];
15
- };
16
- };
17
- export declare const SelectDarkTheme: {
18
- (): React.ReactElement;
19
- tags: string[];
20
- parameters: {
21
- zeplinLink: {
22
- name: string;
23
- link: string;
24
- }[];
25
- };
26
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ReactHookFormSelect } from '.';
3
+ type Story = StoryObj<typeof ReactHookFormSelect>;
4
+ declare const meta: Meta<typeof ReactHookFormSelect>;
5
+ export default meta;
6
+ export declare const Component: Story;
7
+ export declare const Select: Story;
8
+ export declare const SelectLightTheme: Story;
9
+ export declare const SelectDarkTheme: Story;
@@ -1,34 +1,9 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TextField: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- };
15
- export declare const TextFieldLightTheme: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- };
25
- export declare const TextFieldDarkTheme: {
26
- (): React.ReactElement;
27
- tags: string[];
28
- parameters: {
29
- zeplinLink: {
30
- name: string;
31
- link: string;
32
- }[];
33
- };
34
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ReactHookFormTextField } from '.';
3
+ type Story = StoryObj<typeof ReactHookFormTextField>;
4
+ declare const meta: Meta<typeof ReactHookFormTextField>;
5
+ export default meta;
6
+ export declare const Component: Story;
7
+ export declare const TextField: Story;
8
+ export declare const TextFieldLightTheme: Story;
9
+ export declare const TextFieldDarkTheme: Story;