@dloizides/ui-tables 1.19.0 → 1.19.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 +10 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
**The `Filters` / `FilterBar` actions cluster wraps (TABLES-MOBILE-1 "Filter bar and pager overflow at 360").**
|
|
6
|
+
|
|
7
|
+
Visual QA of aml-v2 `/app/leaders` at 360 measured the actions row (Reset, Export CSV/PDF, Apply)
|
|
8
|
+
at 431px inside a 255px bar: a nowrap row is one unbreakable flex item, so Apply rendered at x=373,
|
|
9
|
+
off-screen. `filtersActions` now has `flexWrap: 'wrap'`, `flexShrink: 1` and `maxWidth: '100%'`,
|
|
10
|
+
so the cluster fits its line and its buttons break onto further lines. Desktop is unchanged: where
|
|
11
|
+
the row fits, nothing wraps. The 44px Apply / pager hit boxes shipped in 1.19.0.
|
|
12
|
+
|
|
3
13
|
## 1.19.0
|
|
4
14
|
|
|
5
15
|
**Every pressable renders a 44x44 hit box (SHOWCASE-1 "Publish the UI showcase at ui.dloizides.com").**
|
package/dist/index.js
CHANGED
|
@@ -277,7 +277,14 @@ var chromeStyles = reactNative.StyleSheet.create({
|
|
|
277
277
|
filters: { flexDirection: "row", flexWrap: "wrap", alignItems: "flex-end", columnGap: COLUMN_GAP, rowGap: PAGER_GAP, borderWidth: BORDER_WIDTH, borderRadius: BORDER_RADIUS, paddingHorizontal: ROW_PAD_H, paddingVertical: ROW_PAD_V },
|
|
278
278
|
filtersSpacer: { flexGrow: 1 },
|
|
279
279
|
results: { fontSize: RESULTS_FONT },
|
|
280
|
-
|
|
280
|
+
/**
|
|
281
|
+
* The actions cluster WRAPS and is capped at the bar's width (TABLES-MOBILE-1 "Filter bar and
|
|
282
|
+
* pager overflow at 360"). A nowrap row is one unbreakable flex item: at 360 on aml-v2 Leaders
|
|
283
|
+
* it measured 431px inside a 255px bar and pushed Apply off-screen. `maxWidth: 100%` +
|
|
284
|
+
* `flexShrink` fit the cluster to its line; its own `flexWrap` then breaks the buttons onto
|
|
285
|
+
* further lines instead of overflowing (flex-shrink alone cannot: it never wraps a line).
|
|
286
|
+
*/
|
|
287
|
+
filtersActions: { flexDirection: "row", flexWrap: "wrap", flexShrink: 1, maxWidth: "100%", rowGap: PAGER_GAP, columnGap: PAGER_SIZE_GAP, alignItems: "center" },
|
|
281
288
|
pager: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", justifyContent: "space-between", gap: PAGER_GAP },
|
|
282
289
|
pagerInfo: { fontSize: CONTROL_FONT, fontVariant: ["tabular-nums"] },
|
|
283
290
|
pagerNav: { flexDirection: "row", alignItems: "center", gap: PAGER_SIZE_GAP, flexWrap: "wrap" },
|