formhell 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -4,6 +4,8 @@ Finally escape form hell with FormHell
4
4
 
5
5
  Incredibly robust yet remarkably simple JSON Schema based forms for React.
6
6
 
7
+ ![FormHell icon](favicon.svg)
8
+
7
9
  ## Why This Library Exists
8
10
 
9
11
  I wrote this library out of pure JSON Schema fatigue.
@@ -36,9 +38,9 @@ Here's a quick comparison for using FormHell instead of some other headache libr
36
38
  | Async missing `$ref` loading | Yes (`getSchema`) | Often limited or app-specific |
37
39
  | Peer schema document support | Yes | Varies |
38
40
  | Draft 2020-12 oriented workflows | Yes | Varies by implementation |
39
- | Advanced keywords (`if/then/else`, `dependentSchemas`, `unevaluated*`) | Designed for this | None that I've found |
41
+ | Advanced keywords (`if/then/else`, `dependentSchemas`, `unevaluated*`) | Yea - Designed for this | None that I've found |
40
42
  | Widget overrides by pointer and type | Yes | Usually type-only or custom plumbing |
41
- | Defaults strategy control | Yes (`all` / `required-only`) | Often limited and supper broken |
43
+ | Defaults strategy control | Yes (`all` / `required-only`) | Often limited and super broken |
42
44
  | Validation feedback on every change | Yes | Usually yes |
43
45
 
44
46
  If your form requirements include deep JSON Schema support and your timeline includes "this quarter," this matrix is the point.
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ __export(index_exports, {
35
35
  SchemaForm: () => SchemaForm
36
36
  });
37
37
  module.exports = __toCommonJS(index_exports);
38
- var import_styles = require("./styles-UY6N5SPU.css");
38
+ var import_styles = require("./styles-MTB5P5LP.css");
39
39
 
40
40
  // src/components/SchemaForm.tsx
41
41
  var import_react3 = require("react");
@@ -2262,7 +2262,7 @@ function ObjectSchemaEditor({
2262
2262
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "raf-button-row", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2263
2263
  "button",
2264
2264
  {
2265
- className: "raf-button raf-button-primary",
2265
+ className: "raf-button raf-button-primary raf-builder-add-property",
2266
2266
  type: "button",
2267
2267
  onClick: () => {
2268
2268
  const next = cloneSchema(schema);
@@ -2597,7 +2597,7 @@ function ArraySchemaEditor({ schema, onChange }) {
2597
2597
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "raf-button-row", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2598
2598
  "button",
2599
2599
  {
2600
- className: "raf-button raf-button-primary",
2600
+ className: "raf-button raf-button-secondary",
2601
2601
  type: "button",
2602
2602
  onClick: () => {
2603
2603
  const next = cloneSchema(schema);
@@ -2859,7 +2859,7 @@ function CombinationEditor({
2859
2859
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "raf-button-row", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2860
2860
  "button",
2861
2861
  {
2862
- className: "raf-button raf-button-primary",
2862
+ className: "raf-button raf-button-secondary",
2863
2863
  type: "button",
2864
2864
  onClick: () => {
2865
2865
  const next = cloneSchema(schema);
@@ -2887,7 +2887,7 @@ function ConditionalSchemaEditor({
2887
2887
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "raf-button-row", children: !entry ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2888
2888
  "button",
2889
2889
  {
2890
- className: "raf-button raf-button-primary",
2890
+ className: "raf-button raf-button-secondary",
2891
2891
  type: "button",
2892
2892
  onClick: () => {
2893
2893
  const next = cloneSchema(schema);
@@ -2945,7 +2945,7 @@ function SingleSchemaEditor({
2945
2945
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "raf-button-row", children: !entry ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2946
2946
  "button",
2947
2947
  {
2948
- className: "raf-button raf-button-primary",
2948
+ className: "raf-button raf-button-secondary",
2949
2949
  type: "button",
2950
2950
  onClick: () => {
2951
2951
  const next = cloneSchema(schema);
@@ -3143,7 +3143,7 @@ function FieldLabel({
3143
3143
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
3144
3144
  "button",
3145
3145
  {
3146
- className: "raf-info-button",
3146
+ className: "raf-info-button raf-button-secondary",
3147
3147
  type: "button",
3148
3148
  "aria-label": `Info about ${label}`,
3149
3149
  onClick: (event) => {