@dloizides/ui-feedback 1.27.0 → 1.28.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 +4 -0
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +22 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.28.0
|
|
4
|
+
|
|
5
|
+
- `CheckPipeline` `phoneColumns?`: below the breakpoint the checks become a tile grid of that many columns (default 1 = one row per check). `statusUnderTitleEnabled?` puts each status pill under the check name. `CheckStatus` gains `statusUnderTitleEnabled?`; `pipelineItemVariant(width, breakpoint, phoneColumns)` exported.
|
|
6
|
+
|
|
3
7
|
## 1.27.0
|
|
4
8
|
|
|
5
9
|
- `CheckStatus({ title, detail?, status?, variant: tile|row, onPress?, accessibilityLabel, accessibilityHint, testID? })`: one check as a tile or a row; the status pill is a slot; pressable when `onPress` is set (44 px min height).
|
package/dist/index.d.mts
CHANGED
|
@@ -744,12 +744,13 @@ interface CheckStatusProps {
|
|
|
744
744
|
detail?: string;
|
|
745
745
|
status?: React.ReactNode;
|
|
746
746
|
variant?: CheckStatusVariant;
|
|
747
|
+
statusUnderTitleEnabled?: boolean;
|
|
747
748
|
onPress?: () => void;
|
|
748
749
|
accessibilityLabel: string;
|
|
749
750
|
accessibilityHint: string;
|
|
750
751
|
testID?: string;
|
|
751
752
|
}
|
|
752
|
-
/** One check as a tile (equal share of a row) or a row (title left, status right); pressing
|
|
753
|
+
/** One check as a tile (equal share of a row) or a row (title left, status right, or under the title); pressing opens it. */
|
|
753
754
|
declare const CheckStatus: (props: CheckStatusProps) => React.ReactElement;
|
|
754
755
|
|
|
755
756
|
interface CheckPipelineItem extends Omit<CheckStatusProps, 'variant'> {
|
|
@@ -761,13 +762,17 @@ interface CheckPipelineProps {
|
|
|
761
762
|
accessibilityLabel: string;
|
|
762
763
|
accessibilityHint: string;
|
|
763
764
|
testID?: string;
|
|
765
|
+
phoneColumns?: number;
|
|
766
|
+
statusUnderTitleEnabled?: boolean;
|
|
764
767
|
}
|
|
765
|
-
/** The checks as equal tiles in one row on a computer
|
|
766
|
-
declare const CheckPipeline: ({ items, breakpoint, accessibilityLabel, accessibilityHint, testID }: CheckPipelineProps) => React.ReactElement;
|
|
768
|
+
/** The checks as equal tiles in one row on a computer; on a phone one row per check, or a tile grid of `phoneColumns`. */
|
|
769
|
+
declare const CheckPipeline: ({ items, breakpoint, accessibilityLabel, accessibilityHint, testID, phoneColumns, statusUnderTitleEnabled }: CheckPipelineProps) => React.ReactElement;
|
|
767
770
|
|
|
768
771
|
declare const PIPELINE_COLLAPSE_BREAKPOINT = 768;
|
|
769
772
|
/** Tiles in one row at or above the breakpoint, one row per check below it. */
|
|
770
773
|
declare function pipelineVariant(width: number, breakpoint?: number): CheckStatusVariant;
|
|
774
|
+
/** The variant each check takes: a phone grid of more than one column keeps tiles, else the pipeline variant. */
|
|
775
|
+
declare function pipelineItemVariant(width: number, breakpoint?: number, phoneColumns?: number): CheckStatusVariant;
|
|
771
776
|
|
|
772
777
|
interface ThresholdMeterProps {
|
|
773
778
|
value: number;
|
|
@@ -799,4 +804,4 @@ interface AttentionCardProps {
|
|
|
799
804
|
/** The one item that needs a person first: its name and status, a line on why, optional evidence and the next action. */
|
|
800
805
|
declare const AttentionCard: ({ title, heading, status, message, evidence, action, testID }: AttentionCardProps) => React.ReactElement;
|
|
801
806
|
|
|
802
|
-
export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, AttentionCard, type AttentionCardProps, COPY_FEEDBACK_MS, CheckPipeline, type CheckPipelineItem, type CheckPipelineProps, CheckStatus, type CheckStatusProps, type CheckStatusVariant, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorNotice, type ErrorNoticeProps, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackThemeSemanticText, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, LocalModelGate, type LocalModelGateLabels, type LocalModelGateProps, type LocalModelGateSlots, type LocalModelGateTestIds, MODAL_OVERLAY_COLOR, PIPELINE_COLLAPSE_BREAKPOINT, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, type StepSplit, ThresholdMeter, type ThresholdMeterProps, type ToastActionSpec, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, UiThemeOverride, type UiThemeOverrideProps, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackThemeSemanticText as UiThemeSemanticText, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, meetsThreshold, mergeRunSteps, meterPercent, notifyWarming, pipelineVariant, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useLocalModel, useFeedbackUi as useUi };
|
|
807
|
+
export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, AttentionCard, type AttentionCardProps, COPY_FEEDBACK_MS, CheckPipeline, type CheckPipelineItem, type CheckPipelineProps, CheckStatus, type CheckStatusProps, type CheckStatusVariant, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorNotice, type ErrorNoticeProps, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackThemeSemanticText, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, LocalModelGate, type LocalModelGateLabels, type LocalModelGateProps, type LocalModelGateSlots, type LocalModelGateTestIds, MODAL_OVERLAY_COLOR, PIPELINE_COLLAPSE_BREAKPOINT, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, type StepSplit, ThresholdMeter, type ThresholdMeterProps, type ToastActionSpec, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, UiThemeOverride, type UiThemeOverrideProps, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackThemeSemanticText as UiThemeSemanticText, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, meetsThreshold, mergeRunSteps, meterPercent, notifyWarming, pipelineItemVariant, pipelineVariant, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useLocalModel, useFeedbackUi as useUi };
|
package/dist/index.d.ts
CHANGED
|
@@ -744,12 +744,13 @@ interface CheckStatusProps {
|
|
|
744
744
|
detail?: string;
|
|
745
745
|
status?: React.ReactNode;
|
|
746
746
|
variant?: CheckStatusVariant;
|
|
747
|
+
statusUnderTitleEnabled?: boolean;
|
|
747
748
|
onPress?: () => void;
|
|
748
749
|
accessibilityLabel: string;
|
|
749
750
|
accessibilityHint: string;
|
|
750
751
|
testID?: string;
|
|
751
752
|
}
|
|
752
|
-
/** One check as a tile (equal share of a row) or a row (title left, status right); pressing
|
|
753
|
+
/** One check as a tile (equal share of a row) or a row (title left, status right, or under the title); pressing opens it. */
|
|
753
754
|
declare const CheckStatus: (props: CheckStatusProps) => React.ReactElement;
|
|
754
755
|
|
|
755
756
|
interface CheckPipelineItem extends Omit<CheckStatusProps, 'variant'> {
|
|
@@ -761,13 +762,17 @@ interface CheckPipelineProps {
|
|
|
761
762
|
accessibilityLabel: string;
|
|
762
763
|
accessibilityHint: string;
|
|
763
764
|
testID?: string;
|
|
765
|
+
phoneColumns?: number;
|
|
766
|
+
statusUnderTitleEnabled?: boolean;
|
|
764
767
|
}
|
|
765
|
-
/** The checks as equal tiles in one row on a computer
|
|
766
|
-
declare const CheckPipeline: ({ items, breakpoint, accessibilityLabel, accessibilityHint, testID }: CheckPipelineProps) => React.ReactElement;
|
|
768
|
+
/** The checks as equal tiles in one row on a computer; on a phone one row per check, or a tile grid of `phoneColumns`. */
|
|
769
|
+
declare const CheckPipeline: ({ items, breakpoint, accessibilityLabel, accessibilityHint, testID, phoneColumns, statusUnderTitleEnabled }: CheckPipelineProps) => React.ReactElement;
|
|
767
770
|
|
|
768
771
|
declare const PIPELINE_COLLAPSE_BREAKPOINT = 768;
|
|
769
772
|
/** Tiles in one row at or above the breakpoint, one row per check below it. */
|
|
770
773
|
declare function pipelineVariant(width: number, breakpoint?: number): CheckStatusVariant;
|
|
774
|
+
/** The variant each check takes: a phone grid of more than one column keeps tiles, else the pipeline variant. */
|
|
775
|
+
declare function pipelineItemVariant(width: number, breakpoint?: number, phoneColumns?: number): CheckStatusVariant;
|
|
771
776
|
|
|
772
777
|
interface ThresholdMeterProps {
|
|
773
778
|
value: number;
|
|
@@ -799,4 +804,4 @@ interface AttentionCardProps {
|
|
|
799
804
|
/** The one item that needs a person first: its name and status, a line on why, optional evidence and the next action. */
|
|
800
805
|
declare const AttentionCard: ({ title, heading, status, message, evidence, action, testID }: AttentionCardProps) => React.ReactElement;
|
|
801
806
|
|
|
802
|
-
export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, AttentionCard, type AttentionCardProps, COPY_FEEDBACK_MS, CheckPipeline, type CheckPipelineItem, type CheckPipelineProps, CheckStatus, type CheckStatusProps, type CheckStatusVariant, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorNotice, type ErrorNoticeProps, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackThemeSemanticText, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, LocalModelGate, type LocalModelGateLabels, type LocalModelGateProps, type LocalModelGateSlots, type LocalModelGateTestIds, MODAL_OVERLAY_COLOR, PIPELINE_COLLAPSE_BREAKPOINT, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, type StepSplit, ThresholdMeter, type ThresholdMeterProps, type ToastActionSpec, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, UiThemeOverride, type UiThemeOverrideProps, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackThemeSemanticText as UiThemeSemanticText, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, meetsThreshold, mergeRunSteps, meterPercent, notifyWarming, pipelineVariant, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useLocalModel, useFeedbackUi as useUi };
|
|
807
|
+
export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, AttentionCard, type AttentionCardProps, COPY_FEEDBACK_MS, CheckPipeline, type CheckPipelineItem, type CheckPipelineProps, CheckStatus, type CheckStatusProps, type CheckStatusVariant, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorNotice, type ErrorNoticeProps, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackThemeSemanticText, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, LocalModelGate, type LocalModelGateLabels, type LocalModelGateProps, type LocalModelGateSlots, type LocalModelGateTestIds, MODAL_OVERLAY_COLOR, PIPELINE_COLLAPSE_BREAKPOINT, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, type StepSplit, ThresholdMeter, type ThresholdMeterProps, type ToastActionSpec, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, UiThemeOverride, type UiThemeOverrideProps, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackThemeSemanticText as UiThemeSemanticText, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, meetsThreshold, mergeRunSteps, meterPercent, notifyWarming, pipelineItemVariant, pipelineVariant, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useLocalModel, useFeedbackUi as useUi };
|
package/dist/index.js
CHANGED
|
@@ -1852,21 +1852,23 @@ var DETAIL_FONT = 12;
|
|
|
1852
1852
|
var styles19 = reactNative.StyleSheet.create({
|
|
1853
1853
|
detail: { fontSize: DETAIL_FONT },
|
|
1854
1854
|
row: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" },
|
|
1855
|
+
statusUnder: { alignSelf: "flex-start" },
|
|
1855
1856
|
tile: { flexBasis: 0, flexGrow: 1, minWidth: 0 },
|
|
1856
1857
|
title: { fontSize: TITLE_FONT, fontWeight: "600" },
|
|
1857
1858
|
words: { flexShrink: 1, gap: 2 },
|
|
1858
1859
|
wrap: { borderRadius: RADIUS2, borderWidth: 1, gap: GAP, minHeight: MIN_HIT, padding: PAD }
|
|
1859
1860
|
});
|
|
1860
1861
|
var CheckStatus = (props) => {
|
|
1861
|
-
const { title, detail, status, variant = "tile", onPress, accessibilityLabel, accessibilityHint, testID } = props;
|
|
1862
|
+
const { title, detail, status, variant = "tile", statusUnderTitleEnabled = false, onPress, accessibilityLabel, accessibilityHint, testID } = props;
|
|
1862
1863
|
const { theme } = useFeedbackUi();
|
|
1863
1864
|
const style = [styles19.wrap, variant === "tile" ? styles19.tile : styles19.row, { backgroundColor: theme.colors.surface, borderColor: theme.colors.border }];
|
|
1864
1865
|
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1865
1866
|
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles19.words, children: [
|
|
1866
1867
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.title, { color: theme.colors.text }], children: title }),
|
|
1868
|
+
statusUnderTitleEnabled ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles19.statusUnder, children: status }) : null,
|
|
1867
1869
|
detail === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.detail, { color: theme.colors.textSecondary }], children: detail })
|
|
1868
1870
|
] }),
|
|
1869
|
-
status
|
|
1871
|
+
statusUnderTitleEnabled ? null : status
|
|
1870
1872
|
] });
|
|
1871
1873
|
if (onPress === void 0) {
|
|
1872
1874
|
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, style, testID, children: body });
|
|
@@ -1879,13 +1881,27 @@ var PIPELINE_COLLAPSE_BREAKPOINT = 768;
|
|
|
1879
1881
|
function pipelineVariant(width, breakpoint = PIPELINE_COLLAPSE_BREAKPOINT) {
|
|
1880
1882
|
return width >= breakpoint ? "tile" : "row";
|
|
1881
1883
|
}
|
|
1884
|
+
function pipelineItemVariant(width, breakpoint = PIPELINE_COLLAPSE_BREAKPOINT, phoneColumns = 1) {
|
|
1885
|
+
const variant = pipelineVariant(width, breakpoint);
|
|
1886
|
+
return variant === "row" && phoneColumns > 1 ? "tile" : variant;
|
|
1887
|
+
}
|
|
1888
|
+
var GRID_GAP_SHARE = 2;
|
|
1882
1889
|
var styles20 = reactNative.StyleSheet.create({
|
|
1890
|
+
grid: { flexDirection: "row", flexWrap: "wrap", gap: 8 },
|
|
1883
1891
|
list: { gap: 8 },
|
|
1884
1892
|
row: { flexDirection: "row", gap: 12 }
|
|
1885
1893
|
});
|
|
1886
|
-
var CheckPipeline = ({ items, breakpoint, accessibilityLabel, accessibilityHint, testID }) => {
|
|
1887
|
-
const
|
|
1888
|
-
|
|
1894
|
+
var CheckPipeline = ({ items, breakpoint, accessibilityLabel, accessibilityHint, testID, phoneColumns = 1, statusUnderTitleEnabled }) => {
|
|
1895
|
+
const width = reactNative.useWindowDimensions().width;
|
|
1896
|
+
const variant = pipelineVariant(width, breakpoint);
|
|
1897
|
+
const itemVariant = pipelineItemVariant(width, breakpoint, phoneColumns);
|
|
1898
|
+
const grid = variant !== itemVariant;
|
|
1899
|
+
const cell = { flexBasis: `${Math.floor(100 / phoneColumns) - GRID_GAP_SHARE}%`, flexGrow: 1 };
|
|
1900
|
+
const containerStyle = variant === "tile" ? styles20.row : grid ? styles20.grid : styles20.list;
|
|
1901
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, accessibilityRole: "summary", style: containerStyle, testID, children: items.map(({ id, ...item }) => {
|
|
1902
|
+
const check = /* @__PURE__ */ jsxRuntime.jsx(CheckStatus, { ...item, statusUnderTitleEnabled, variant: itemVariant }, id);
|
|
1903
|
+
return grid ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: cell, children: check }, id) : check;
|
|
1904
|
+
}) });
|
|
1889
1905
|
};
|
|
1890
1906
|
|
|
1891
1907
|
// src/CheckStatus/semanticScale.ts
|
|
@@ -2006,6 +2022,7 @@ exports.meetsThreshold = meetsThreshold;
|
|
|
2006
2022
|
exports.mergeRunSteps = mergeRunSteps;
|
|
2007
2023
|
exports.meterPercent = meterPercent;
|
|
2008
2024
|
exports.notifyWarming = notifyWarming;
|
|
2025
|
+
exports.pipelineItemVariant = pipelineItemVariant;
|
|
2009
2026
|
exports.pipelineVariant = pipelineVariant;
|
|
2010
2027
|
exports.progressPercent = progressPercent;
|
|
2011
2028
|
exports.readTraceId = readTraceId;
|