mac-human-design 0.1.30-preview.0 → 0.1.30-preview.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.
package/changelog.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
This file tracks changes between published npm versions of `mac-human-design`.
|
|
4
4
|
|
|
5
|
+
## 0.1.30-preview.1
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added shared `MacWindowToolbar` layout guardrails for dense toolbar groups,
|
|
10
|
+
including stable group height, row gaps, fixed child flex sizing, and fixed
|
|
11
|
+
`SymbolIconButton` flex basis inside toolbar groups.
|
|
12
|
+
- Added verifier coverage for toolbar group layout stability.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Improved wrapped toolbar behavior so segmented controls and icon buttons keep
|
|
17
|
+
stable alignment as toolbar content density changes.
|
|
18
|
+
- Bumped the package to `0.1.30-preview.1` under the `preview` dist-tag.
|
|
19
|
+
|
|
5
20
|
## 0.1.30-preview.0
|
|
6
21
|
|
|
7
22
|
### Added
|
|
@@ -92,7 +92,7 @@ be reimplemented in consuming apps:
|
|
|
92
92
|
| App pattern | Export | Contract |
|
|
93
93
|
| --- | --- | --- |
|
|
94
94
|
| Finder-style grid/table primitive | `MacDataTable` | Uses `table` semantics for static rows, upgrades to `grid` semantics for interactive rows, exposes row/column metadata, busy state, keyboard activation, selected row state, and focus-visible row styling. |
|
|
95
|
-
| Tauri window toolbar | `MacWindowToolbar` | Provides a labelled `toolbar` landmark, labelled leading/content/trailing control groups, a root drag region,
|
|
95
|
+
| Tauri window toolbar | `MacWindowToolbar` | Provides a labelled `toolbar` landmark, labelled leading/content/trailing control groups, a root drag region, no-drag regions around interactive controls, and stable wrapped-control sizing for dense icon toolbars. |
|
|
96
96
|
| Segmented control | `MacSegmentedControl` | Wraps the shared macOS segmented toggle styling with accessible labels, stable class names, full-width layout support, and class/style pass-through. |
|
|
97
97
|
| Centered SF Symbols icon button | `SymbolIconButton` | Renders through `MacIconButton`, defaults to `type="button"`, preserves fixed geometry while allowing style/class pass-through, supports tooltip offsets and per-symbol optical offsets, and exposes loading state with `aria-busy`. |
|
|
98
98
|
|
package/package.json
CHANGED
|
@@ -338,6 +338,20 @@ if (missingToolbarRequirements.length > 0) {
|
|
|
338
338
|
);
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
+
requireCssDeclarations(".hd-mac-window-toolbar-group", [
|
|
342
|
+
["toolbar group stable min height", /min-height\s*:\s*30px\s*;/],
|
|
343
|
+
["toolbar group row gap", /row-gap\s*:\s*6px\s*;/],
|
|
344
|
+
["toolbar group center transform origin", /transform-origin\s*:\s*center\s*;/],
|
|
345
|
+
]);
|
|
346
|
+
|
|
347
|
+
requireCssDeclarations(".hd-mac-window-toolbar-group > *", [
|
|
348
|
+
["toolbar controls fixed auto flex", /flex\s*:\s*0\s+0\s+auto\s*;/],
|
|
349
|
+
]);
|
|
350
|
+
|
|
351
|
+
requireCssDeclarations(".hd-mac-window-toolbar-group > .hd-mac-symbol-icon-button", [
|
|
352
|
+
["toolbar icon button fixed flex basis", /flex-basis\s*:\s*30px\s*;/],
|
|
353
|
+
]);
|
|
354
|
+
|
|
341
355
|
const missingPublicDocs = [
|
|
342
356
|
["README documents MacDataTable", /`MacDataTable`[\s\S]*Finder-style grid\/table primitive/],
|
|
343
357
|
["README documents MacWindowToolbar", /`MacWindowToolbar`[\s\S]*Tauri window toolbar/],
|
|
@@ -1483,12 +1483,52 @@
|
|
|
1483
1483
|
.hd-mac-window-toolbar-content {
|
|
1484
1484
|
display: inline-flex;
|
|
1485
1485
|
min-width: 0;
|
|
1486
|
+
min-height: 30px;
|
|
1486
1487
|
align-items: center;
|
|
1487
1488
|
gap: 8px;
|
|
1489
|
+
row-gap: 6px;
|
|
1488
1490
|
flex-wrap: wrap;
|
|
1489
1491
|
transform-origin: center;
|
|
1490
1492
|
}
|
|
1491
1493
|
|
|
1494
|
+
.hd-mac-window-toolbar-group {
|
|
1495
|
+
min-height: 30px;
|
|
1496
|
+
row-gap: 6px;
|
|
1497
|
+
transform-origin: center;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
.hd-mac-window-toolbar-content {
|
|
1501
|
+
min-height: 30px;
|
|
1502
|
+
row-gap: 6px;
|
|
1503
|
+
transform-origin: center;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.hd-mac-window-toolbar-group > *,
|
|
1507
|
+
.hd-mac-window-toolbar-content > * {
|
|
1508
|
+
flex: 0 0 auto;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
.hd-mac-window-toolbar-group > * {
|
|
1512
|
+
flex: 0 0 auto;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.hd-mac-window-toolbar-content > * {
|
|
1516
|
+
flex: 0 0 auto;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
.hd-mac-window-toolbar-group > .hd-mac-symbol-icon-button,
|
|
1520
|
+
.hd-mac-window-toolbar-content > .hd-mac-symbol-icon-button {
|
|
1521
|
+
flex-basis: 30px;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.hd-mac-window-toolbar-group > .hd-mac-symbol-icon-button {
|
|
1525
|
+
flex-basis: 30px;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.hd-mac-window-toolbar-content > .hd-mac-symbol-icon-button {
|
|
1529
|
+
flex-basis: 30px;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1492
1532
|
.hd-mac-window-toolbar-title {
|
|
1493
1533
|
min-width: 0;
|
|
1494
1534
|
flex: 1;
|