@dmitryvim/form-builder 0.4.0 → 0.5.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.
@@ -10,10 +10,6 @@ export interface RenderPillsOptions {
10
10
  maxCount?: number;
11
11
  isReadonly?: boolean;
12
12
  onLibraryPick?: (() => void) | null;
13
- element?: {
14
- maxSize?: number;
15
- accept?: unknown;
16
- };
17
13
  onClearAll?: () => void;
18
14
  openPicker?: () => void;
19
15
  }
@@ -36,10 +36,13 @@ export interface Translations {
36
36
  hintRequired: string;
37
37
  hintOptional: string;
38
38
  hintPattern: string;
39
- fileCountSingle: string;
40
- fileCountPlural: string;
41
- fileCountWithMax: string;
42
39
  fileCountRange: string;
40
+ /** @deprecated Unused since the multi-file meta line was reduced to a Clear-all button. Kept to avoid TS excess-property errors on existing translation overrides. Remove in a future major. */
41
+ fileCountSingle?: string;
42
+ /** @deprecated See {@link Translations.fileCountSingle}. */
43
+ fileCountPlural?: string;
44
+ /** @deprecated See {@link Translations.fileCountSingle}. */
45
+ fileCountWithMax?: string;
43
46
  uploadingFile: string;
44
47
  filesCounter: string;
45
48
  fromLibrary: string;
@@ -155,13 +155,20 @@ export interface ContainerElement extends BaseElement {
155
155
  multiple?: boolean;
156
156
  minCount?: number;
157
157
  maxCount?: number;
158
+ /**
159
+ * Number of columns for horizontal layout (default: 1 for vertical).
160
+ * Applies to single containers (multiple !== true) and to `displayMode: "stack"` items.
161
+ * **Ignored for `displayMode: "slides"`** — slides use a responsive CSS grid;
162
+ * tune density via the `--fb-slide-min-width` CSS variable instead.
163
+ */
158
164
  columns?: 1 | 2 | 3 | 4;
159
165
  prefillHints?: PrefillHint[];
160
166
  /**
161
167
  * How items are arranged when `multiple: true`.
162
168
  * - "stack" (default): vertical list, one item per row (current behavior).
163
- * - "slides": horizontal grid, multiple items per row, auto-wrap.
164
- * Each item card has min-width 280px and grows to fill available width.
169
+ * - "slides": responsive grid. Column count is driven by container width and
170
+ * `--fb-slide-min-width` (default 280px). Schema `columns` is ignored
171
+ * override via theme / host CSS instead. See `.docs/theming.md` (Slides grid).
165
172
  * Ignored when `multiple: false`.
166
173
  */
167
174
  displayMode?: "stack" | "slides";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.4.0",
6
+ "version": "0.5.1",
7
7
  "description": "A reusable JSON schema form builder library",
8
8
  "main": "./dist/cjs/index.cjs",
9
9
  "module": "./dist/esm/index.js",