@dominevo/ui-library 0.1.6 → 0.1.7
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/CHANGELOG.md +6 -0
- package/dist/composites/config-form-builder.d.ts +0 -11
- package/dist/composites/index.d.ts +2 -2
- package/dist/composites/setting-row.d.ts +18 -0
- package/dist/index.cjs +239 -103
- package/dist/index.js +228 -104
- package/dist/lib/form-grid.d.ts +66 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/primitives/dialog.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.7] - 2026-11-30
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Forms use the width they are given: a section's columns is a maximum (1 to 4 tracks at 480, 880 and 1320 px of container), long fields take the full row, helper text and one-column forms have a readable width, form dialogs are wider (new Dialog width form), and SettingRows lays settings cards out in two columns on wide windows
|
|
15
|
+
|
|
10
16
|
## [0.1.6] - 2026-11-30
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -27,16 +27,5 @@ interface FormBuilderProps {
|
|
|
27
27
|
*/
|
|
28
28
|
bare?: boolean;
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Container-query driven responsive grid. Each section is its own
|
|
32
|
-
* `@container` so the column count adapts to the SECTION's width
|
|
33
|
-
* (not the viewport) — important inside narrow hosts like the
|
|
34
|
-
* device-detail right column / ItemFormDialog. Behavior:
|
|
35
|
-
* columns=1 → always 1 col
|
|
36
|
-
* columns=2 (default) → 1 col below 480px container, 2 cols above
|
|
37
|
-
* columns=3 → 1 → 2 → 3 col at 480px / 880px
|
|
38
|
-
* columns=4 → 1 → 2 → 4 col at 480px / 1140px
|
|
39
|
-
*/
|
|
40
|
-
export declare function sectionGridClass(columns: 1 | 2 | 3 | 4 | undefined): string;
|
|
41
30
|
export declare function ConfigFormBuilder({ schema, values, onChange, disabled, translationFn, onTestField, probeResults, onClearProbe, onAction, bare }: FormBuilderProps): JSX.Element;
|
|
42
31
|
export {};
|
|
@@ -232,8 +232,8 @@ export type { ResponseLogProps } from "./response-log";
|
|
|
232
232
|
export { ResponseLog } from "./response-log";
|
|
233
233
|
export type { ScopeAccess } from "./scope-picker";
|
|
234
234
|
export { ScopePicker, validateScopes } from "./scope-picker";
|
|
235
|
-
export type { SettingRowElements, SettingRowProps } from "./setting-row";
|
|
236
|
-
export { SettingRow } from "./setting-row";
|
|
235
|
+
export type { SettingRowElements, SettingRowProps, SettingRowsProps } from "./setting-row";
|
|
236
|
+
export { SettingRow, SettingRows } from "./setting-row";
|
|
237
237
|
export type { SnapshotButtonProps, SnapshotButtonTrpc } from "./snapshot-button";
|
|
238
238
|
export { SnapshotButton } from "./snapshot-button";
|
|
239
239
|
export * from "./stat-card";
|
|
@@ -45,3 +45,21 @@ export interface SettingRowProps {
|
|
|
45
45
|
readonly wrapValue?: boolean;
|
|
46
46
|
}
|
|
47
47
|
export declare function SettingRow({ label, children, actions, elements, className, valueClassName, wrapValue }: SettingRowProps): ReactNode;
|
|
48
|
+
export interface SettingRowsProps {
|
|
49
|
+
readonly children: ReactNode;
|
|
50
|
+
/** Extra classes on the grid (e.g. a spacing rule from the host card). */
|
|
51
|
+
readonly className?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A group of independent `SettingRow`s that uses the width it is given.
|
|
55
|
+
*
|
|
56
|
+
* One column in a narrow card; from an 880px container the rows flow into two
|
|
57
|
+
* label/value columns, so a settings card on a wide window is not a narrow
|
|
58
|
+
* column hugging the left edge. The track count follows the CONTAINER, not the
|
|
59
|
+
* viewport, like the schema form grid (`lib/form-grid.ts`).
|
|
60
|
+
*
|
|
61
|
+
* Only group rows that do not depend on each other: a chain (source -> sensor
|
|
62
|
+
* -> thresholds) reads top to bottom and stays a plain stack. A row that must
|
|
63
|
+
* take the whole line passes `className="@[880px]:col-span-2"`.
|
|
64
|
+
*/
|
|
65
|
+
export declare function SettingRows({ children, className }: SettingRowsProps): ReactNode;
|