@dloizides/ui-tables 1.25.0 → 1.26.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/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -949,11 +949,12 @@ interface MonthStatusGridProps {
|
|
|
949
949
|
selectedId?: string | null;
|
|
950
950
|
columns?: MonthGridColumns;
|
|
951
951
|
accessibilityLabel: string;
|
|
952
|
+
accessibilityHint?: string;
|
|
952
953
|
cellHint: string;
|
|
953
954
|
testID?: string;
|
|
954
955
|
}
|
|
955
956
|
/** One selectable status cell per period, in 12, 6 or 4 columns, narrowing when a cell would drop below 44 px. */
|
|
956
|
-
declare const MonthStatusGrid: ({ cells, onSelect, selectedId, columns, accessibilityLabel, cellHint, testID, }: MonthStatusGridProps) => React.ReactElement;
|
|
957
|
+
declare const MonthStatusGrid: ({ cells, onSelect, selectedId, columns, accessibilityLabel, accessibilityHint, cellHint, testID, }: MonthStatusGridProps) => React.ReactElement;
|
|
957
958
|
|
|
958
959
|
/** The widest allowed column count, up to `requested`, whose cells stay at least 44 px wide. */
|
|
959
960
|
declare function fitMonthGridColumns(requested: MonthGridColumns, width: number, gap: number): MonthGridColumns;
|
package/dist/index.d.ts
CHANGED
|
@@ -949,11 +949,12 @@ interface MonthStatusGridProps {
|
|
|
949
949
|
selectedId?: string | null;
|
|
950
950
|
columns?: MonthGridColumns;
|
|
951
951
|
accessibilityLabel: string;
|
|
952
|
+
accessibilityHint?: string;
|
|
952
953
|
cellHint: string;
|
|
953
954
|
testID?: string;
|
|
954
955
|
}
|
|
955
956
|
/** One selectable status cell per period, in 12, 6 or 4 columns, narrowing when a cell would drop below 44 px. */
|
|
956
|
-
declare const MonthStatusGrid: ({ cells, onSelect, selectedId, columns, accessibilityLabel, cellHint, testID, }: MonthStatusGridProps) => React.ReactElement;
|
|
957
|
+
declare const MonthStatusGrid: ({ cells, onSelect, selectedId, columns, accessibilityLabel, accessibilityHint, cellHint, testID, }: MonthStatusGridProps) => React.ReactElement;
|
|
957
958
|
|
|
958
959
|
/** The widest allowed column count, up to `requested`, whose cells stay at least 44 px wide. */
|
|
959
960
|
declare function fitMonthGridColumns(requested: MonthGridColumns, width: number, gap: number): MonthGridColumns;
|
package/dist/index.js
CHANGED
|
@@ -2245,6 +2245,7 @@ var MonthStatusGrid = ({
|
|
|
2245
2245
|
selectedId = null,
|
|
2246
2246
|
columns = 12 /* Twelve */,
|
|
2247
2247
|
accessibilityLabel,
|
|
2248
|
+
accessibilityHint,
|
|
2248
2249
|
cellHint,
|
|
2249
2250
|
testID = MONTH_STATUS_GRID_TEST_ID
|
|
2250
2251
|
}) => {
|
|
@@ -2253,7 +2254,7 @@ var MonthStatusGrid = ({
|
|
|
2253
2254
|
const fitted = fitMonthGridColumns(columns, measuredWidth ?? windowWidth, GRID_GAP);
|
|
2254
2255
|
const rows = React2.useMemo(() => chunkIntoRows(cells, fitted), [cells, fitted]);
|
|
2255
2256
|
const onLayout = (event) => setMeasuredWidth(event.nativeEvent.layout.width);
|
|
2256
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityLabel, onLayout, role: "group", style: styles5.grid, testID, children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles5.row, testID: `${testID}-row`, children: [
|
|
2257
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, onLayout, role: "group", style: styles5.grid, testID, children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles5.row, testID: `${testID}-row`, children: [
|
|
2257
2258
|
row.map((cell) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2258
2259
|
GridCell,
|
|
2259
2260
|
{
|