@blackbelt-technology/pi-dashboard-forms-bpmn 0.7.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.
Files changed (164) hide show
  1. package/.pi/skills/bpmn-package-explorer/SKILL.md +120 -0
  2. package/.pi/skills/bpmn-package-explorer/assets/LICENSE.bpmn-io.txt +23 -0
  3. package/.pi/skills/bpmn-package-explorer/assets/VENDORED.md +90 -0
  4. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/css/bpmn-codes.css +108 -0
  5. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/css/bpmn-embedded.css +166 -0
  6. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/css/bpmn.css +164 -0
  7. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.eot +0 -0
  8. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.svg +224 -0
  9. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.ttf +0 -0
  10. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.woff +0 -0
  11. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-font/font/bpmn.woff2 +0 -0
  12. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn-navigated-viewer.production.min.js +22 -0
  13. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/bpmn.css +145 -0
  14. package/.pi/skills/bpmn-package-explorer/assets/bpmn-js/diagram-js.css +1249 -0
  15. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/diagram-js.css +1133 -0
  16. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/css/dmn-codes.css +41 -0
  17. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/css/dmn-embedded.css +98 -0
  18. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/css/dmn.css +97 -0
  19. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.eot +0 -0
  20. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.svg +90 -0
  21. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.ttf +0 -0
  22. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.woff +0 -0
  23. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-font/font/dmn.woff2 +0 -0
  24. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-js-decision-table.css +580 -0
  25. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-js-drd.css +108 -0
  26. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-js-literal-expression.css +165 -0
  27. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-js-shared.css +221 -0
  28. package/.pi/skills/bpmn-package-explorer/assets/dmn-js/dmn-viewer.production.min.js +16 -0
  29. package/.pi/skills/bpmn-package-explorer/assets/lib/bpmn-pipeline.mjs +6981 -0
  30. package/.pi/skills/bpmn-package-explorer/assets/lib/yaml.mjs +7372 -0
  31. package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g1-identical-bounds.bpmn +17 -0
  32. package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g2-zero-size.bpmn +17 -0
  33. package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g3-child-outside.bpmn +16 -0
  34. package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g4-negative-coord.bpmn +17 -0
  35. package/.pi/skills/bpmn-package-explorer/fixtures/geometry/g5-overlap.bpmn +17 -0
  36. package/.pi/skills/bpmn-package-explorer/fixtures/measured/1-linear.bpmn +12 -0
  37. package/.pi/skills/bpmn-package-explorer/fixtures/measured/2-gateway.bpmn +19 -0
  38. package/.pi/skills/bpmn-package-explorer/fixtures/measured/3-boundary.bpmn +13 -0
  39. package/.pi/skills/bpmn-package-explorer/fixtures/measured/4-subprocess.bpmn +17 -0
  40. package/.pi/skills/bpmn-package-explorer/fixtures/measured/5-pools.bpmn +21 -0
  41. package/.pi/skills/bpmn-package-explorer/fixtures/measured/6-lanes-only.bpmn +16 -0
  42. package/.pi/skills/bpmn-package-explorer/fixtures/measured/7-loop.bpmn +13 -0
  43. package/.pi/skills/bpmn-package-explorer/fixtures/measured/8-long-chain.bpmn +32 -0
  44. package/.pi/skills/bpmn-package-explorer/fixtures/nesting/expanded-subprocess-ok.bpmn +25 -0
  45. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/call-activity.bpmn +10 -0
  46. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/intermediate-catch.bpmn +10 -0
  47. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/intermediate-throw.bpmn +10 -0
  48. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/manual-task.bpmn +10 -0
  49. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/multi-boundary.bpmn +16 -0
  50. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/parallel-gateway.bpmn +10 -0
  51. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/receive-task.bpmn +10 -0
  52. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/rule-task.bpmn +10 -0
  53. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/script-task.bpmn +10 -0
  54. package/.pi/skills/bpmn-package-explorer/fixtures/provisional/send-task.bpmn +10 -0
  55. package/.pi/skills/bpmn-package-explorer/references/authoring-envelope.md +52 -0
  56. package/.pi/skills/bpmn-package-explorer/references/identifiers.md +102 -0
  57. package/.pi/skills/bpmn-package-explorer/references/layout-envelope.md +105 -0
  58. package/.pi/skills/bpmn-package-explorer/references/licensing.md +48 -0
  59. package/.pi/skills/bpmn-package-explorer/references/package-manifest.md +104 -0
  60. package/.pi/skills/bpmn-package-explorer/scripts/build-fixtures.mjs +299 -0
  61. package/.pi/skills/bpmn-package-explorer/scripts/demo.mjs +128 -0
  62. package/.pi/skills/bpmn-package-explorer/scripts/diagnostics.mjs +37 -0
  63. package/.pi/skills/bpmn-package-explorer/scripts/envelope.mjs +160 -0
  64. package/.pi/skills/bpmn-package-explorer/scripts/fixtures.mjs +140 -0
  65. package/.pi/skills/bpmn-package-explorer/scripts/generate-cli.mjs +31 -0
  66. package/.pi/skills/bpmn-package-explorer/scripts/generate.mjs +103 -0
  67. package/.pi/skills/bpmn-package-explorer/scripts/guard.mjs +335 -0
  68. package/.pi/skills/bpmn-package-explorer/scripts/harness.mjs +12 -0
  69. package/.pi/skills/bpmn-package-explorer/scripts/identifiers.mjs +117 -0
  70. package/.pi/skills/bpmn-package-explorer/scripts/ingest.mjs +95 -0
  71. package/.pi/skills/bpmn-package-explorer/scripts/manifest.mjs +374 -0
  72. package/.pi/skills/bpmn-package-explorer/scripts/pipeline.mjs +49 -0
  73. package/.pi/skills/bpmn-package-explorer/scripts/render.mjs +130 -0
  74. package/.pi/skills/bpmn-package-explorer/scripts/runguard.mjs +38 -0
  75. package/.pi/skills/bpmn-package-explorer/scripts/selftest-e2e.mjs +87 -0
  76. package/.pi/skills/bpmn-package-explorer/scripts/selftest-guard.mjs +99 -0
  77. package/.pi/skills/bpmn-package-explorer/scripts/selftest-manifest.mjs +170 -0
  78. package/.pi/skills/bpmn-package-explorer/scripts/selftest-more.mjs +87 -0
  79. package/.pi/skills/bpmn-package-explorer/scripts/selftest-workflow.mjs +73 -0
  80. package/.pi/skills/bpmn-package-explorer/scripts/selftest.mjs +57 -0
  81. package/.pi/skills/bpmn-package-explorer/scripts/vendor.mjs +141 -0
  82. package/.pi/skills/bpmn-package-explorer/scripts/view-cli.mjs +19 -0
  83. package/.pi/skills/bpmn-package-explorer/templates/shell.html +141 -0
  84. package/.pi/skills/bpmn-package-explorer/templates/viewer.js +301 -0
  85. package/.pi/skills/canvas-webapp/SKILL.md +104 -0
  86. package/.pi/skills/openforms-mui/SKILL.md +187 -0
  87. package/.pi/skills/openforms-mui/references/a11y.md +68 -0
  88. package/.pi/skills/openforms-mui/references/field-widget-map.md +64 -0
  89. package/.pi/skills/openforms-mui/references/hu-locale.md +45 -0
  90. package/.pi/skills/openforms-mui/references/logic.md +94 -0
  91. package/.pi/skills/openforms-mui/references/schema.md +94 -0
  92. package/.pi/skills/openforms-mui/references/theme-bridge.md +65 -0
  93. package/.pi/skills/openforms-mui/tools/canvas-serve.mjs +51 -0
  94. package/.pi/skills/openforms-mui/tools/demo-schema.json +80 -0
  95. package/.pi/skills/openforms-mui/tools/mockups/tokens.css +27 -0
  96. package/.pi/skills/openforms-mui/tools/mockups/ui-contract.tokens.json +16 -0
  97. package/.pi/skills/openforms-mui/tools/package-lock.json +5919 -0
  98. package/.pi/skills/openforms-mui/tools/package.json +61 -0
  99. package/.pi/skills/openforms-mui/tools/preview/RenderPanel.tsx +105 -0
  100. package/.pi/skills/openforms-mui/tools/preview/canvas-app.tsx +66 -0
  101. package/.pi/skills/openforms-mui/tools/preview/canvas-index.html +16 -0
  102. package/.pi/skills/openforms-mui/tools/preview/cli.ts +99 -0
  103. package/.pi/skills/openforms-mui/tools/preview/index.html +17 -0
  104. package/.pi/skills/openforms-mui/tools/preview/main.tsx +228 -0
  105. package/.pi/skills/openforms-mui/tools/preview/vite-plugin.ts +41 -0
  106. package/.pi/skills/openforms-mui/tools/scripts/assert-peer-deps.mjs +39 -0
  107. package/.pi/skills/openforms-mui/tools/src/OpenFormsMui.tsx +391 -0
  108. package/.pi/skills/openforms-mui/tools/src/css.d.ts +2 -0
  109. package/.pi/skills/openforms-mui/tools/src/fields/ErrorSummary.tsx +72 -0
  110. package/.pi/skills/openforms-mui/tools/src/fields/FieldRenderer.tsx +328 -0
  111. package/.pi/skills/openforms-mui/tools/src/fields/FieldShell.tsx +50 -0
  112. package/.pi/skills/openforms-mui/tools/src/fields/FileField.tsx +91 -0
  113. package/.pi/skills/openforms-mui/tools/src/fields/MatrixField.tsx +146 -0
  114. package/.pi/skills/openforms-mui/tools/src/fields/RepeaterField.tsx +82 -0
  115. package/.pi/skills/openforms-mui/tools/src/fields/SignatureCanvas.tsx +121 -0
  116. package/.pi/skills/openforms-mui/tools/src/fields/context.tsx +34 -0
  117. package/.pi/skills/openforms-mui/tools/src/fields/index.ts +7 -0
  118. package/.pi/skills/openforms-mui/tools/src/fields/label.ts +42 -0
  119. package/.pi/skills/openforms-mui/tools/src/fonts.ts +8 -0
  120. package/.pi/skills/openforms-mui/tools/src/i18n/dictionary.ts +58 -0
  121. package/.pi/skills/openforms-mui/tools/src/i18n/hu.ts +56 -0
  122. package/.pi/skills/openforms-mui/tools/src/i18n/index.ts +43 -0
  123. package/.pi/skills/openforms-mui/tools/src/index.ts +27 -0
  124. package/.pi/skills/openforms-mui/tools/src/logic/cnf.ts +206 -0
  125. package/.pi/skills/openforms-mui/tools/src/logic/formula.ts +285 -0
  126. package/.pi/skills/openforms-mui/tools/src/logic/index.ts +4 -0
  127. package/.pi/skills/openforms-mui/tools/src/logic/operators.ts +43 -0
  128. package/.pi/skills/openforms-mui/tools/src/logic/state.ts +183 -0
  129. package/.pi/skills/openforms-mui/tools/src/payload.ts +83 -0
  130. package/.pi/skills/openforms-mui/tools/src/provenance.ts +21 -0
  131. package/.pi/skills/openforms-mui/tools/src/schema/diagnose.ts +256 -0
  132. package/.pi/skills/openforms-mui/tools/src/schema/index.ts +4 -0
  133. package/.pi/skills/openforms-mui/tools/src/schema/normalize.ts +163 -0
  134. package/.pi/skills/openforms-mui/tools/src/schema/types.ts +299 -0
  135. package/.pi/skills/openforms-mui/tools/src/schema/walk.ts +68 -0
  136. package/.pi/skills/openforms-mui/tools/src/theme/from-tokens.ts +102 -0
  137. package/.pi/skills/openforms-mui/tools/src/theme/index.ts +1 -0
  138. package/.pi/skills/openforms-mui/tools/src/validation/constrain.ts +83 -0
  139. package/.pi/skills/openforms-mui/tools/src/validation/diagnostics.ts +62 -0
  140. package/.pi/skills/openforms-mui/tools/src/validation/empty.ts +53 -0
  141. package/.pi/skills/openforms-mui/tools/src/validation/index.ts +5 -0
  142. package/.pi/skills/openforms-mui/tools/src/validation/resolver.ts +14 -0
  143. package/.pi/skills/openforms-mui/tools/src/validation/zod-from-schema.ts +169 -0
  144. package/.pi/skills/openforms-mui/tools/tests/a11y.test.tsx +82 -0
  145. package/.pi/skills/openforms-mui/tools/tests/cli.test.ts +74 -0
  146. package/.pi/skills/openforms-mui/tools/tests/component.test.tsx +295 -0
  147. package/.pi/skills/openforms-mui/tools/tests/diagnose.test.ts +163 -0
  148. package/.pi/skills/openforms-mui/tools/tests/fixtures/all-field-types.json +45 -0
  149. package/.pi/skills/openforms-mui/tools/tests/logic.test.ts +175 -0
  150. package/.pi/skills/openforms-mui/tools/tests/normalize.test.ts +105 -0
  151. package/.pi/skills/openforms-mui/tools/tests/reference-semantics.test.ts +131 -0
  152. package/.pi/skills/openforms-mui/tools/tests/responsive.test.tsx +158 -0
  153. package/.pi/skills/openforms-mui/tools/tests/setup.ts +16 -0
  154. package/.pi/skills/openforms-mui/tools/tests/singleton.test.tsx +31 -0
  155. package/.pi/skills/openforms-mui/tools/tests/theme.test.ts +65 -0
  156. package/.pi/skills/openforms-mui/tools/tests/toolchain.test.ts +33 -0
  157. package/.pi/skills/openforms-mui/tools/tests/validation.test.ts +222 -0
  158. package/.pi/skills/openforms-mui/tools/tsconfig.json +21 -0
  159. package/.pi/skills/openforms-mui/tools/vite.canvas.config.ts +21 -0
  160. package/.pi/skills/openforms-mui/tools/vitest.config.ts +17 -0
  161. package/NOTICE +46 -0
  162. package/README.md +62 -0
  163. package/package.json +46 -0
  164. package/scripts/ensure-openforms-deps.mjs +38 -0
@@ -0,0 +1,65 @@
1
+ # Theme bridge
2
+
3
+ MUI's control plane is the **theme object**, not utility classes. Widgets read
4
+ all colour, typography and spacing from the active theme and carry **no literal
5
+ colour or spacing values** (a token-lint test enforces this). One form therefore
6
+ inherits any project's design system unchanged.
7
+
8
+ ## Inheriting a host theme (preferred)
9
+
10
+ Render `OpenFormsMui` inside your app's `ThemeProvider` and pass **no** `theme`
11
+ prop — the component inherits the host theme:
12
+
13
+ ```tsx
14
+ <ThemeProvider theme={appTheme}>
15
+ <OpenFormsMui schema={schema} />
16
+ </ThemeProvider>
17
+ ```
18
+
19
+ ## Building a theme from design tokens
20
+
21
+ Map a DTCG `ui-contract.tokens.json` into a MUI theme and pass it explicitly:
22
+
23
+ ```tsx
24
+ import { themeFromTokens } from "openforms-mui/theme";
25
+ import tokens from "./ui-contract.tokens.json";
26
+
27
+ <OpenFormsMui schema={schema} theme={themeFromTokens(tokens)} />
28
+ ```
29
+
30
+ Recognised token paths (all optional; missing values fall back to the default
31
+ theme, so a partial file still yields a complete theme):
32
+
33
+ ```jsonc
34
+ {
35
+ "color": {
36
+ "mode": { "$value": "light" | "dark" },
37
+ "primary": { "$value": "#..." },
38
+ "secondary": { "$value": "#..." },
39
+ "error": { "$value": "#..." },
40
+ "warning": { "$value": "#..." },
41
+ "success": { "$value": "#..." },
42
+ "background": { "default": { "$value": "#..." }, "paper": { "$value": "#..." } },
43
+ "text": { "primary": { "$value": "#..." } }
44
+ },
45
+ "radius": { "base": { "$value": 8 } },
46
+ "font": { "family": { "base": { "$value": "Roboto, ..." } } },
47
+ "spacing": { "unit": { "$value": 8 } }
48
+ }
49
+ ```
50
+
51
+ `themeFromTokensJson(string)` and `defaultTheme()` are also exported. When no
52
+ token file is present, `defaultTheme()` is the documented fallback.
53
+
54
+ ## The approved token layer
55
+
56
+ `tools/mockups/tokens.css` is the reviewed design source, and
57
+ `tools/mockups/ui-contract.tokens.json` expresses the same values in DTCG form.
58
+ `src/theme/from-tokens.ts` ports them 1:1 into its default theme; a test
59
+ (`tests/a11y.test.ts` / `tests/theme.test.ts`) asserts the port has not drifted.
60
+ Keep the three in sync when changing a token.
61
+
62
+ ## Fonts
63
+
64
+ The component bundles the **Roboto** webfont (400/500/700) via
65
+ `src/fonts.ts`, so typography does not silently fall back to a system face.
@@ -0,0 +1,51 @@
1
+ // Tiny static file server that adds permissive CORS headers so the built
2
+ // ES-module bundle loads inside the dashboard's sandboxed opaque-origin iframe
3
+ // (sandbox="allow-scripts" with NO allow-same-origin → module fetch uses
4
+ // CORS with `Origin: null`, which requires Access-Control-Allow-Origin).
5
+ import { createServer } from "node:http";
6
+ import { readFile, stat } from "node:fs/promises";
7
+ import { extname, join, normalize } from "node:path";
8
+
9
+ const ROOT = new URL("./canvas-dist/", import.meta.url).pathname;
10
+ const PORT = Number(process.argv[2] ?? 5181);
11
+
12
+ const MIME = {
13
+ ".html": "text/html; charset=utf-8",
14
+ ".js": "text/javascript; charset=utf-8",
15
+ ".mjs": "text/javascript; charset=utf-8",
16
+ ".css": "text/css; charset=utf-8",
17
+ ".json": "application/json; charset=utf-8",
18
+ ".woff": "font/woff",
19
+ ".woff2": "font/woff2",
20
+ ".svg": "image/svg+xml",
21
+ ".png": "image/png",
22
+ ".ico": "image/x-icon",
23
+ };
24
+
25
+ createServer(async (req, res) => {
26
+ res.setHeader("Access-Control-Allow-Origin", "*");
27
+ res.setHeader("Cross-Origin-Resource-Policy", "cross-origin");
28
+ try {
29
+ let path = decodeURIComponent((req.url ?? "/").split("?")[0]);
30
+ if (path === "/" || path.endsWith("/")) path += "index.html";
31
+ // Prevent path traversal.
32
+ const full = normalize(join(ROOT, path));
33
+ if (!full.startsWith(ROOT)) {
34
+ res.statusCode = 403;
35
+ return res.end("forbidden");
36
+ }
37
+ const s = await stat(full).catch(() => null);
38
+ if (!s || !s.isFile()) {
39
+ res.statusCode = 404;
40
+ return res.end("not found");
41
+ }
42
+ const body = await readFile(full);
43
+ res.setHeader("Content-Type", MIME[extname(full)] ?? "application/octet-stream");
44
+ res.end(body);
45
+ } catch (e) {
46
+ res.statusCode = 500;
47
+ res.end(String(e));
48
+ }
49
+ }).listen(PORT, "127.0.0.1", () => {
50
+ process.stdout.write(`CORS static server for canvas-dist on http://127.0.0.1:${PORT}/\n`);
51
+ });
@@ -0,0 +1,80 @@
1
+ {
2
+ "formTitle": "Konferencia Regisztráció 2026",
3
+ "formDescription": "OpenForms MUI skill demó — több mezőtípus, feltételes láthatóság és számított összeg.",
4
+ "pages": [
5
+ {
6
+ "pageId": "reg",
7
+ "title": "Résztvevő adatai",
8
+ "sections": [
9
+ {
10
+ "sectionId": "personal",
11
+ "title": "Személyes adatok",
12
+ "rows": [
13
+ {
14
+ "columns": [
15
+ { "width": 6, "fields": [
16
+ { "key": "fullName", "type": "text", "label": "Teljes név", "required": true, "placeholder": "Csákány Róbert" }
17
+ ]},
18
+ { "width": 6, "fields": [
19
+ { "key": "email", "type": "text", "label": "E-mail", "required": true, "validationRegex": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$", "errorMessage": "Érvényes e-mail címet adj meg." }
20
+ ]}
21
+ ]
22
+ },
23
+ {
24
+ "columns": [
25
+ { "width": 6, "fields": [
26
+ { "key": "attendeeType", "type": "radio", "label": "Jegytípus", "required": true, "options": [
27
+ { "label": "Standard (50 000 Ft)", "value": "standard" },
28
+ { "label": "VIP (90 000 Ft)", "value": "vip" },
29
+ { "label": "Diák (20 000 Ft)", "value": "student" }
30
+ ]}
31
+ ]},
32
+ { "width": 6, "fields": [
33
+ { "key": "attendDate", "type": "date", "label": "Melyik napra jössz?", "required": true }
34
+ ]}
35
+ ]
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "sectionId": "student",
41
+ "title": "Diák igazolás",
42
+ "conditionalRules": [
43
+ { "targetProperty": "visibility", "andGroups": [
44
+ { "conditions": [ { "dependentFieldKey": "attendeeType", "operator": "equals", "equalsValue": "student" } ] }
45
+ ]}
46
+ ],
47
+ "rows": [
48
+ { "columns": [ { "width": 12, "fields": [
49
+ { "key": "studentId", "type": "text", "label": "Diákigazolvány szám", "required": true, "helpText": "Csak diák jegynél kötelező." }
50
+ ]}]}
51
+ ]
52
+ },
53
+ {
54
+ "sectionId": "extras",
55
+ "title": "Kiegészítők",
56
+ "rows": [
57
+ { "columns": [ { "width": 12, "fields": [
58
+ { "key": "addons", "type": "checkbox", "label": "Extra opciók", "options": [
59
+ { "label": "Workshop belépő (+15 000 Ft)", "value": "workshop" },
60
+ { "label": "Gála vacsora (+25 000 Ft)", "value": "dinner" },
61
+ { "label": "Konferencia póló", "value": "tshirt" }
62
+ ]}
63
+ ]}]},
64
+ { "columns": [
65
+ { "width": 6, "fields": [
66
+ { "key": "quantity", "type": "number", "label": "Jegyek száma", "required": true, "min": 1, "max": 10 }
67
+ ]},
68
+ { "width": 6, "fields": [
69
+ { "key": "notes", "type": "textarea", "label": "Megjegyzés a szervezőknek", "rows": 3, "maxLength": 200 }
70
+ ]}
71
+ ]},
72
+ { "columns": [ { "width": 12, "fields": [
73
+ { "key": "newsletter", "type": "boolean", "label": "Kérek hírlevelet a jövőbeli eseményekről" }
74
+ ]}]}
75
+ ]
76
+ }
77
+ ]
78
+ }
79
+ ]
80
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Approved token layer for openforms-mui.
3
+ *
4
+ * This is the reviewed design source. `src/theme/from-tokens.ts` ports these
5
+ * values 1:1 into its default theme (task 10.0), and `mockups/ui-contract.tokens.json`
6
+ * expresses the same values in DTCG form for the token bridge. Keep the three in
7
+ * sync — tests/theme.test.ts asserts the port has not drifted.
8
+ */
9
+ :root {
10
+ /* palette */
11
+ --ofm-color-primary: #1565c0;
12
+ --ofm-color-secondary: #6a1b9a;
13
+ --ofm-color-error: #c62828;
14
+ --ofm-color-warning: #ed6c02;
15
+ --ofm-color-success: #2e7d32;
16
+ --ofm-color-background-default: #ffffff;
17
+ --ofm-color-background-paper: #ffffff;
18
+
19
+ /* shape */
20
+ --ofm-radius-base: 8px;
21
+
22
+ /* typography */
23
+ --ofm-font-family-base: Roboto, "Helvetica Neue", Arial, sans-serif;
24
+
25
+ /* spacing */
26
+ --ofm-spacing-unit: 8px;
27
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "color": {
3
+ "primary": { "$type": "color", "$value": "#1565c0" },
4
+ "secondary": { "$type": "color", "$value": "#6a1b9a" },
5
+ "error": { "$type": "color", "$value": "#c62828" },
6
+ "warning": { "$type": "color", "$value": "#ed6c02" },
7
+ "success": { "$type": "color", "$value": "#2e7d32" },
8
+ "background": {
9
+ "default": { "$type": "color", "$value": "#ffffff" },
10
+ "paper": { "$type": "color", "$value": "#ffffff" }
11
+ }
12
+ },
13
+ "radius": { "base": { "$type": "dimension", "$value": 8 } },
14
+ "font": { "family": { "base": { "$type": "fontFamily", "$value": "Roboto, \"Helvetica Neue\", Arial, sans-serif" } } },
15
+ "spacing": { "unit": { "$type": "dimension", "$value": 8 } }
16
+ }