@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.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { StyleSheet, View, Text, Platform, useWindowDimensions, Pressable, Switc
|
|
|
3
3
|
import { useUi } from '@dloizides/ui-feedback';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { useReducedMotion, FadeIn } from '@dloizides/ui-motion';
|
|
6
|
+
import { Z_INDEX } from '@dloizides/design-tokens';
|
|
6
7
|
import { createPortal } from 'react-dom';
|
|
7
8
|
import { Field, controlStyles, DateRangeControl, TypeaheadControl, DEFAULT_TYPEAHEAD_MIN_CHARS, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, SelectControl } from '@dloizides/ui-forms';
|
|
8
9
|
export { DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, isUnmatched, suggestOptions } from '@dloizides/ui-forms';
|
|
@@ -174,13 +175,13 @@ var MENU_TOP_GAP = 4;
|
|
|
174
175
|
var MENU_PAD_V = 4;
|
|
175
176
|
var MENU_MIN_WIDTH = 80;
|
|
176
177
|
var MENU_OPT_PAD_V = 7;
|
|
177
|
-
var MENU_Z_INDEX =
|
|
178
|
+
var MENU_Z_INDEX = Z_INDEX.popover;
|
|
178
179
|
var MENU_ELEVATION = 8;
|
|
179
180
|
var MENU_BOX_SHADOW = "0px 2px 8px rgba(0, 0, 0, 0.15)";
|
|
180
181
|
var RESULTS_FONT = 13;
|
|
181
182
|
var HEAD_LETTER_SPACING = 0.4;
|
|
182
183
|
var LABEL_LETTER_SPACING = 0.3;
|
|
183
|
-
var STICKY_Z =
|
|
184
|
+
var STICKY_Z = Z_INDEX.sticky;
|
|
184
185
|
var FULL_WIDTH = "100%";
|
|
185
186
|
var SELECT_COL_WIDTH = MIN_TARGET_PX;
|
|
186
187
|
var CHECKBOX_SIZE = 18;
|
|
@@ -280,9 +281,15 @@ var chromeStyles = StyleSheet.create({
|
|
|
280
281
|
* further lines instead of overflowing (flex-shrink alone cannot: it never wraps a line).
|
|
281
282
|
*/
|
|
282
283
|
filtersActions: { flexDirection: "row", flexWrap: "wrap", flexShrink: 1, maxWidth: "100%", rowGap: PAGER_GAP, columnGap: PAGER_SIZE_GAP, alignItems: "center" },
|
|
283
|
-
|
|
284
|
+
/**
|
|
285
|
+
* The pager and its nav may SHRINK to their container (TABLES-MOBILE-1). Placed beside a title
|
|
286
|
+
* in a wrapping row (aml-v2 /app/cases), a `flex-shrink: 0` pager measured 328px in a 255px slot
|
|
287
|
+
* and Next was clipped. `minWidth: 0` + `maxWidth: 100%` let the line fit, then `flexWrap`
|
|
288
|
+
* breaks the info / nav / buttons onto further lines instead of overflowing.
|
|
289
|
+
*/
|
|
290
|
+
pager: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", justifyContent: "space-between", gap: PAGER_GAP, flexShrink: 1, minWidth: 0, maxWidth: "100%" },
|
|
284
291
|
pagerInfo: { fontSize: CONTROL_FONT, fontVariant: ["tabular-nums"] },
|
|
285
|
-
pagerNav: { flexDirection: "row", alignItems: "center", gap: PAGER_SIZE_GAP, flexWrap: "wrap" },
|
|
292
|
+
pagerNav: { flexDirection: "row", alignItems: "center", gap: PAGER_SIZE_GAP, flexWrap: "wrap", flexShrink: 1, minWidth: 0, maxWidth: "100%" },
|
|
286
293
|
pagerRowsLabel: { fontSize: HEAD_FONT, textTransform: "uppercase", letterSpacing: LABEL_LETTER_SPACING },
|
|
287
294
|
/** Mixed-case "Rows" caption for the dropdown variant (v1's muted `.hint` label — no uppercase transform). */
|
|
288
295
|
pagerRowsLabelPlain: { fontSize: HEAD_FONT, letterSpacing: LABEL_LETTER_SPACING },
|