@opengov/form-renderer 0.0.1 → 0.0.6
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/FormProvider.d.ts +19 -0
- package/dist/LayoutContext.d.ts +14 -0
- package/dist/fields/CalculatedNumber.d.ts +3 -0
- package/dist/fields/Checkbox.d.ts +3 -0
- package/dist/fields/DateInput.d.ts +3 -0
- package/dist/fields/FormFieldLabel.d.ts +8 -0
- package/dist/fields/NumberInput.d.ts +3 -0
- package/dist/fields/Select.d.ts +7 -0
- package/dist/fields/TextInput.d.ts +4 -0
- package/dist/fields/types.d.ts +8 -0
- package/dist/index.d.ts +10 -0
- package/dist/lib.js +8523 -1862
- package/dist/lib.umd.cjs +77 -40
- package/dist/stories/Compound.d.ts +0 -0
- package/dist/stories/FormRenderer.stories.d.ts +5 -12
- package/dist/stories/WithDefaultValues.d.ts +0 -0
- package/package.json +26 -7
- package/dist/src/index.d.ts +0 -1
- /package/dist/{src/index.test.d.ts → index.test.d.ts} +0 -0
|
File without changes
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof FormRenderer;
|
|
6
|
-
tags: string[];
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
args: {};
|
|
11
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: Meta;
|
|
12
3
|
export default meta;
|
|
13
4
|
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const
|
|
5
|
+
export declare const Compound: Story;
|
|
6
|
+
export declare const WithDefaultValues: Story;
|
|
7
|
+
export declare const UsingReactHookForms: Story;
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengov/form-renderer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "OpenGov Smart Forms form renderer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
|
-
"main": "./dist/lib.umd.
|
|
10
|
-
"module": "./dist/lib.
|
|
9
|
+
"main": "./dist/lib.umd.cjs",
|
|
10
|
+
"module": "./dist/lib.js",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"import": "./dist/lib.
|
|
13
|
+
"import": "./dist/lib.js",
|
|
14
14
|
"require": "./dist/lib.umd.cjs"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -22,9 +22,28 @@
|
|
|
22
22
|
},
|
|
23
23
|
"author": "OpenGov",
|
|
24
24
|
"license": "UNLICENSED",
|
|
25
|
-
"dependencies": {
|
|
26
|
-
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@mdi/js": "^7.4.47",
|
|
27
|
+
"@mdi/react": "^1.6.1",
|
|
28
|
+
"@mui/icons-material": "^6.1.1",
|
|
29
|
+
"date-fns": "^4.1.0"
|
|
30
|
+
},
|
|
27
31
|
"peerDependencies": {
|
|
28
|
-
"
|
|
32
|
+
"@mui/material": ">= 5.0.0",
|
|
33
|
+
"@mui/x-date-pickers": ">= 7.0.0",
|
|
34
|
+
"@opengov/capital-mui-theme": ">= 32.0.0",
|
|
35
|
+
"react": ">= 16.8.0",
|
|
36
|
+
"react-dom": ">= 16.8.0",
|
|
37
|
+
"react-hook-form": ">= 7.0.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@emotion/react": "^11.13.3",
|
|
41
|
+
"@emotion/styled": "^11.13.0",
|
|
42
|
+
"@mui/material": "^6.1.1",
|
|
43
|
+
"@mui/x-date-pickers": "^7.22.0",
|
|
44
|
+
"@opengov/capital-mui-theme": "^36.0.0-beta.1",
|
|
45
|
+
"react": "^18.3.1",
|
|
46
|
+
"react-dom": "^18.3.1",
|
|
47
|
+
"react-hook-form": "^7.53.1"
|
|
29
48
|
}
|
|
30
49
|
}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function FormRenderer(): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|