@nextlyhq/plugin-form-builder 0.0.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.
Files changed (37) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +122 -0
  3. package/dist/CheckboxFieldEditor-K4T6QX52.js +121 -0
  4. package/dist/CheckboxFieldEditor-K4T6QX52.js.map +1 -0
  5. package/dist/DateFieldEditor-JFJFAVOH.js +187 -0
  6. package/dist/DateFieldEditor-JFJFAVOH.js.map +1 -0
  7. package/dist/EmailFieldEditor-MMOXXL7P.js +138 -0
  8. package/dist/EmailFieldEditor-MMOXXL7P.js.map +1 -0
  9. package/dist/NumberFieldEditor-UISAYR6Z.js +175 -0
  10. package/dist/NumberFieldEditor-UISAYR6Z.js.map +1 -0
  11. package/dist/RadioFieldEditor-6UQFH4WT.js +165 -0
  12. package/dist/RadioFieldEditor-6UQFH4WT.js.map +1 -0
  13. package/dist/SelectFieldEditor-PSO4KHV4.js +213 -0
  14. package/dist/SelectFieldEditor-PSO4KHV4.js.map +1 -0
  15. package/dist/TextFieldEditor-5EU64EA5.js +187 -0
  16. package/dist/TextFieldEditor-5EU64EA5.js.map +1 -0
  17. package/dist/TextareaFieldEditor-773G3LNM.js +190 -0
  18. package/dist/TextareaFieldEditor-773G3LNM.js.map +1 -0
  19. package/dist/admin/index.css +934 -0
  20. package/dist/admin/index.css.map +1 -0
  21. package/dist/admin/index.d.ts +547 -0
  22. package/dist/admin/index.js +4030 -0
  23. package/dist/admin/index.js.map +1 -0
  24. package/dist/chunk-ABNZFTQK.js +586 -0
  25. package/dist/chunk-ABNZFTQK.js.map +1 -0
  26. package/dist/chunk-XTCEPJ7B.js +256 -0
  27. package/dist/chunk-XTCEPJ7B.js.map +1 -0
  28. package/dist/components/index.d.ts +3 -0
  29. package/dist/components/index.js +9 -0
  30. package/dist/components/index.js.map +1 -0
  31. package/dist/index-C0kBvYjm.d.ts +1012 -0
  32. package/dist/index.d.ts +1663 -0
  33. package/dist/index.js +2470 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/styles/form-builder.css +1150 -0
  36. package/dist/styles/submissions-filter.css +75 -0
  37. package/package.json +96 -0
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Submissions Filter Styles
3
+ *
4
+ * Styles for the SubmissionsFilter component that appears above
5
+ * the form-submissions list table.
6
+ */
7
+
8
+ .submissions-filter {
9
+ margin-bottom: 1rem;
10
+ padding: 1rem;
11
+ background: var(--color-bg-secondary, #f9fafb);
12
+ border: 1px solid var(--color-border, #e5e7eb);
13
+ border-radius: 0rem;
14
+ }
15
+
16
+ .submissions-filter-container {
17
+ display: flex;
18
+ align-items: center;
19
+ gap: 0.75rem;
20
+ flex-wrap: wrap;
21
+ }
22
+
23
+ .submissions-filter-label {
24
+ font-size: 0.875rem;
25
+ font-weight: 500;
26
+ color: var(--color-text-secondary, #6b7280);
27
+ }
28
+
29
+ .submissions-filter-select {
30
+ padding: 0.5rem 2rem 0.5rem 0.75rem;
31
+ font-size: 0.875rem;
32
+ border: 1px solid var(--color-border, #d1d5db);
33
+ border-radius: 0.375rem;
34
+ background-color: var(--color-bg-primary, #ffffff);
35
+ color: var(--color-text-primary, #111827);
36
+ min-width: 200px;
37
+ cursor: pointer;
38
+ appearance: none;
39
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
40
+ background-position: right 0.5rem center;
41
+ background-repeat: no-repeat;
42
+ background-size: 1.5em 1.5em;
43
+ }
44
+
45
+ .submissions-filter-select:hover {
46
+ border-color: var(--color-border-hover, #9ca3af);
47
+ }
48
+
49
+ .submissions-filter-select:focus {
50
+ outline: none;
51
+ border-color: var(--color-primary, #3b82f6);
52
+ /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); */
53
+ }
54
+
55
+ .submissions-filter-select:disabled {
56
+ opacity: 0.6;
57
+ cursor: not-allowed;
58
+ }
59
+
60
+ .submissions-filter-clear {
61
+ padding: 0.5rem 0.75rem;
62
+ font-size: 0.75rem;
63
+ font-weight: 500;
64
+ color: var(--color-text-secondary, #6b7280);
65
+ background: var(--color-bg-primary, #ffffff);
66
+ border: 1px solid var(--color-border, #d1d5db);
67
+ border-radius: 0.375rem;
68
+ cursor: pointer;
69
+ transition: all 0.15s ease;
70
+ }
71
+
72
+ .submissions-filter-clear:hover {
73
+ background: var(--color-bg-hover, #f3f4f6);
74
+ color: var(--color-text-primary, #111827);
75
+ }
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "@nextlyhq/plugin-form-builder",
3
+ "version": "0.0.1",
4
+ "description": "Visual form builder plugin for Nextly with Code-First and Schema Builder support",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ },
15
+ "./admin": {
16
+ "types": "./dist/admin/index.d.ts",
17
+ "import": "./dist/admin/index.js"
18
+ },
19
+ "./components": {
20
+ "types": "./dist/components/index.d.ts",
21
+ "import": "./dist/components/index.js"
22
+ },
23
+ "./styles/builder.css": "./dist/styles/form-builder.css",
24
+ "./styles/submissions-filter.css": "./dist/styles/submissions-filter.css"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "README.md"
29
+ ],
30
+ "dependencies": {
31
+ "@dnd-kit/core": "^6.1.0",
32
+ "@dnd-kit/sortable": "^8.0.0",
33
+ "@dnd-kit/utilities": "^3.2.2",
34
+ "zod": "^3.22.4",
35
+ "react-hook-form": "^7.50.0",
36
+ "@hookform/resolvers": "^3.3.4"
37
+ },
38
+ "peerDependencies": {
39
+ "@nextlyhq/admin": "*",
40
+ "nextly": "*",
41
+ "@nextlyhq/ui": "*",
42
+ "@tanstack/react-query": ">=5.0.0",
43
+ "lucide-react": ">=0.400.0",
44
+ "react": "^18.0.0 || ^19.0.0",
45
+ "next": "^14.0.0 || ^15.0.0 || ^16.0.0"
46
+ },
47
+ "devDependencies": {
48
+ "@tanstack/react-query": "^5.0.0",
49
+ "@types/node": "^20.0.0",
50
+ "@types/react": "19.2.0",
51
+ "lucide-react": "^0.469.0",
52
+ "tsup": "^8.0.0",
53
+ "typescript": "^5.3.0",
54
+ "vitest": "^4.0.8",
55
+ "@nextlyhq/tsconfig": "0.0.1",
56
+ "@nextlyhq/admin": "0.0.1",
57
+ "nextly": "0.0.1",
58
+ "@nextlyhq/ui": "0.0.1"
59
+ },
60
+ "engines": {
61
+ "node": ">=20.0.0"
62
+ },
63
+ "keywords": [
64
+ "nextly",
65
+ "plugin",
66
+ "forms",
67
+ "form-builder",
68
+ "cms",
69
+ "headless-cms",
70
+ "app-framework"
71
+ ],
72
+ "repository": {
73
+ "type": "git",
74
+ "url": "git+https://github.com/nextlyhq/nextly.git",
75
+ "directory": "packages/plugin-form-builder"
76
+ },
77
+ "publishConfig": {
78
+ "access": "public",
79
+ "registry": "https://registry.npmjs.org/",
80
+ "provenance": true
81
+ },
82
+ "homepage": "https://nextlyhq.com",
83
+ "bugs": {
84
+ "url": "https://github.com/nextlyhq/nextly/issues"
85
+ },
86
+ "author": "Nextly <contact@nextlyhq.com> (https://nextlyhq.com)",
87
+ "scripts": {
88
+ "build": "tsup",
89
+ "dev": "tsup src/index.ts src/admin/index.ts src/components/index.ts --format esm --dts --watch",
90
+ "check-types": "tsc --noEmit",
91
+ "lint": "eslint . --max-warnings 0",
92
+ "lint:fix": "eslint . --fix",
93
+ "test": "vitest run",
94
+ "test:watch": "vitest"
95
+ }
96
+ }