@dloizides/ui-tables 1.19.1 → 1.20.0
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 +516 -497
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var reactNative = require('react-native');
|
|
|
5
5
|
var uiFeedback = require('@dloizides/ui-feedback');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var uiMotion = require('@dloizides/ui-motion');
|
|
8
|
+
var designTokens = require('@dloizides/design-tokens');
|
|
8
9
|
var reactDom = require('react-dom');
|
|
9
10
|
var uiForms = require('@dloizides/ui-forms');
|
|
10
11
|
|
|
@@ -179,13 +180,13 @@ var MENU_TOP_GAP = 4;
|
|
|
179
180
|
var MENU_PAD_V = 4;
|
|
180
181
|
var MENU_MIN_WIDTH = 80;
|
|
181
182
|
var MENU_OPT_PAD_V = 7;
|
|
182
|
-
var MENU_Z_INDEX =
|
|
183
|
+
var MENU_Z_INDEX = designTokens.Z_INDEX.popover;
|
|
183
184
|
var MENU_ELEVATION = 8;
|
|
184
185
|
var MENU_BOX_SHADOW = "0px 2px 8px rgba(0, 0, 0, 0.15)";
|
|
185
186
|
var RESULTS_FONT = 13;
|
|
186
187
|
var HEAD_LETTER_SPACING = 0.4;
|
|
187
188
|
var LABEL_LETTER_SPACING = 0.3;
|
|
188
|
-
var STICKY_Z =
|
|
189
|
+
var STICKY_Z = designTokens.Z_INDEX.sticky;
|
|
189
190
|
var FULL_WIDTH = "100%";
|
|
190
191
|
var SELECT_COL_WIDTH = MIN_TARGET_PX;
|
|
191
192
|
var CHECKBOX_SIZE = 18;
|
|
@@ -285,9 +286,15 @@ var chromeStyles = reactNative.StyleSheet.create({
|
|
|
285
286
|
* further lines instead of overflowing (flex-shrink alone cannot: it never wraps a line).
|
|
286
287
|
*/
|
|
287
288
|
filtersActions: { flexDirection: "row", flexWrap: "wrap", flexShrink: 1, maxWidth: "100%", rowGap: PAGER_GAP, columnGap: PAGER_SIZE_GAP, alignItems: "center" },
|
|
288
|
-
|
|
289
|
+
/**
|
|
290
|
+
* The pager and its nav may SHRINK to their container (TABLES-MOBILE-1). Placed beside a title
|
|
291
|
+
* in a wrapping row (aml-v2 /app/cases), a `flex-shrink: 0` pager measured 328px in a 255px slot
|
|
292
|
+
* and Next was clipped. `minWidth: 0` + `maxWidth: 100%` let the line fit, then `flexWrap`
|
|
293
|
+
* breaks the info / nav / buttons onto further lines instead of overflowing.
|
|
294
|
+
*/
|
|
295
|
+
pager: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", justifyContent: "space-between", gap: PAGER_GAP, flexShrink: 1, minWidth: 0, maxWidth: "100%" },
|
|
289
296
|
pagerInfo: { fontSize: CONTROL_FONT, fontVariant: ["tabular-nums"] },
|
|
290
|
-
pagerNav: { flexDirection: "row", alignItems: "center", gap: PAGER_SIZE_GAP, flexWrap: "wrap" },
|
|
297
|
+
pagerNav: { flexDirection: "row", alignItems: "center", gap: PAGER_SIZE_GAP, flexWrap: "wrap", flexShrink: 1, minWidth: 0, maxWidth: "100%" },
|
|
291
298
|
pagerRowsLabel: { fontSize: HEAD_FONT, textTransform: "uppercase", letterSpacing: LABEL_LETTER_SPACING },
|
|
292
299
|
/** Mixed-case "Rows" caption for the dropdown variant (v1's muted `.hint` label — no uppercase transform). */
|
|
293
300
|
pagerRowsLabelPlain: { fontSize: HEAD_FONT, letterSpacing: LABEL_LETTER_SPACING },
|