@dloizides/ui-layout 1.35.0 → 1.36.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/dist/index.d.mts +61 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.js +236 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +233 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -957,4 +957,64 @@ declare const MIN_TARGET_PX = 44;
|
|
|
957
957
|
*/
|
|
958
958
|
declare function isWideWebViewport(width: number, platformOS: string, breakpoint?: number): boolean;
|
|
959
959
|
|
|
960
|
-
|
|
960
|
+
declare enum RowSelectedStyle {
|
|
961
|
+
Surface = "surface",
|
|
962
|
+
AccentBar = "accent-bar",
|
|
963
|
+
Filled = "filled",
|
|
964
|
+
Raised = "raised",
|
|
965
|
+
Outline = "outline",
|
|
966
|
+
Check = "check"
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
interface ListRowProps {
|
|
970
|
+
title: React.ReactNode;
|
|
971
|
+
trailing?: React.ReactNode;
|
|
972
|
+
meta?: React.ReactNode;
|
|
973
|
+
badges?: React.ReactNode;
|
|
974
|
+
after?: React.ReactNode;
|
|
975
|
+
selected: boolean;
|
|
976
|
+
selectedStyle?: RowSelectedStyle;
|
|
977
|
+
onPress: () => void;
|
|
978
|
+
accessibilityLabel: string;
|
|
979
|
+
accessibilityHint: string;
|
|
980
|
+
testID?: string;
|
|
981
|
+
}
|
|
982
|
+
/** A selectable list row with title, trailing, meta and badge slots and one selected-style setting. */
|
|
983
|
+
declare const ListRow: ({ title, trailing, meta, badges, after, selected, selectedStyle, onPress, accessibilityLabel, accessibilityHint, testID, }: ListRowProps) => React.ReactElement;
|
|
984
|
+
|
|
985
|
+
interface ListRowTone {
|
|
986
|
+
textColor: string;
|
|
987
|
+
inverse: boolean;
|
|
988
|
+
}
|
|
989
|
+
/** Reads the enclosing `ListRow` text tone so custom slot content follows a filled row; `null` outside a row. */
|
|
990
|
+
declare function useListRowTone(): ListRowTone | null;
|
|
991
|
+
|
|
992
|
+
interface RowPalette {
|
|
993
|
+
accent: string;
|
|
994
|
+
accentTint: string;
|
|
995
|
+
background: string;
|
|
996
|
+
surface: string;
|
|
997
|
+
border: string;
|
|
998
|
+
text: string;
|
|
999
|
+
hover: string;
|
|
1000
|
+
pressed: string;
|
|
1001
|
+
focus: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface RowState {
|
|
1004
|
+
selected: boolean;
|
|
1005
|
+
hovered: boolean;
|
|
1006
|
+
pressed: boolean;
|
|
1007
|
+
focused: boolean;
|
|
1008
|
+
}
|
|
1009
|
+
interface RowLook {
|
|
1010
|
+
container: ViewStyle;
|
|
1011
|
+
titleColor: string;
|
|
1012
|
+
textColor: string;
|
|
1013
|
+
inverse: boolean;
|
|
1014
|
+
showCheck: boolean;
|
|
1015
|
+
checkFilled: boolean;
|
|
1016
|
+
}
|
|
1017
|
+
/** Resolves a row's container style and text colours from its selected style and state. */
|
|
1018
|
+
declare function resolveRowLook(style: RowSelectedStyle, state: RowState, palette: RowPalette): RowLook;
|
|
1019
|
+
|
|
1020
|
+
export { API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, ScreenColumn, type ScreenColumnProps, Section, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, formatBuildInfo, formatUrlForDisplay, isKeyboardOpen, isWideWebViewport, resolveRowLook, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
package/dist/index.d.ts
CHANGED
|
@@ -957,4 +957,64 @@ declare const MIN_TARGET_PX = 44;
|
|
|
957
957
|
*/
|
|
958
958
|
declare function isWideWebViewport(width: number, platformOS: string, breakpoint?: number): boolean;
|
|
959
959
|
|
|
960
|
-
|
|
960
|
+
declare enum RowSelectedStyle {
|
|
961
|
+
Surface = "surface",
|
|
962
|
+
AccentBar = "accent-bar",
|
|
963
|
+
Filled = "filled",
|
|
964
|
+
Raised = "raised",
|
|
965
|
+
Outline = "outline",
|
|
966
|
+
Check = "check"
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
interface ListRowProps {
|
|
970
|
+
title: React.ReactNode;
|
|
971
|
+
trailing?: React.ReactNode;
|
|
972
|
+
meta?: React.ReactNode;
|
|
973
|
+
badges?: React.ReactNode;
|
|
974
|
+
after?: React.ReactNode;
|
|
975
|
+
selected: boolean;
|
|
976
|
+
selectedStyle?: RowSelectedStyle;
|
|
977
|
+
onPress: () => void;
|
|
978
|
+
accessibilityLabel: string;
|
|
979
|
+
accessibilityHint: string;
|
|
980
|
+
testID?: string;
|
|
981
|
+
}
|
|
982
|
+
/** A selectable list row with title, trailing, meta and badge slots and one selected-style setting. */
|
|
983
|
+
declare const ListRow: ({ title, trailing, meta, badges, after, selected, selectedStyle, onPress, accessibilityLabel, accessibilityHint, testID, }: ListRowProps) => React.ReactElement;
|
|
984
|
+
|
|
985
|
+
interface ListRowTone {
|
|
986
|
+
textColor: string;
|
|
987
|
+
inverse: boolean;
|
|
988
|
+
}
|
|
989
|
+
/** Reads the enclosing `ListRow` text tone so custom slot content follows a filled row; `null` outside a row. */
|
|
990
|
+
declare function useListRowTone(): ListRowTone | null;
|
|
991
|
+
|
|
992
|
+
interface RowPalette {
|
|
993
|
+
accent: string;
|
|
994
|
+
accentTint: string;
|
|
995
|
+
background: string;
|
|
996
|
+
surface: string;
|
|
997
|
+
border: string;
|
|
998
|
+
text: string;
|
|
999
|
+
hover: string;
|
|
1000
|
+
pressed: string;
|
|
1001
|
+
focus: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface RowState {
|
|
1004
|
+
selected: boolean;
|
|
1005
|
+
hovered: boolean;
|
|
1006
|
+
pressed: boolean;
|
|
1007
|
+
focused: boolean;
|
|
1008
|
+
}
|
|
1009
|
+
interface RowLook {
|
|
1010
|
+
container: ViewStyle;
|
|
1011
|
+
titleColor: string;
|
|
1012
|
+
textColor: string;
|
|
1013
|
+
inverse: boolean;
|
|
1014
|
+
showCheck: boolean;
|
|
1015
|
+
checkFilled: boolean;
|
|
1016
|
+
}
|
|
1017
|
+
/** Resolves a row's container style and text colours from its selected style and state. */
|
|
1018
|
+
declare function resolveRowLook(style: RowSelectedStyle, state: RowState, palette: RowPalette): RowLook;
|
|
1019
|
+
|
|
1020
|
+
export { API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, ScreenColumn, type ScreenColumnProps, Section, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, formatBuildInfo, formatUrlForDisplay, isKeyboardOpen, isWideWebViewport, resolveRowLook, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
package/dist/index.js
CHANGED
|
@@ -2396,6 +2396,238 @@ var BuildInfoFooter = ({
|
|
|
2396
2396
|
}
|
|
2397
2397
|
);
|
|
2398
2398
|
};
|
|
2399
|
+
var SIZE = 22;
|
|
2400
|
+
var BORDER = 2;
|
|
2401
|
+
var GLYPH_SIZE = 14;
|
|
2402
|
+
var GLYPH_LINE = 16;
|
|
2403
|
+
var TICK = "\u2713";
|
|
2404
|
+
var styles21 = reactNative.StyleSheet.create({
|
|
2405
|
+
circle: {
|
|
2406
|
+
width: SIZE,
|
|
2407
|
+
height: SIZE,
|
|
2408
|
+
borderRadius: SIZE / 2,
|
|
2409
|
+
borderWidth: BORDER,
|
|
2410
|
+
alignItems: "center",
|
|
2411
|
+
justifyContent: "center"
|
|
2412
|
+
},
|
|
2413
|
+
glyph: { fontSize: GLYPH_SIZE, fontWeight: "700", lineHeight: GLYPH_LINE }
|
|
2414
|
+
});
|
|
2415
|
+
var CheckMark = ({ filled, accent, ring, glyphColor, testID }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2416
|
+
reactNative.View,
|
|
2417
|
+
{
|
|
2418
|
+
"aria-hidden": true,
|
|
2419
|
+
accessibilityElementsHidden: true,
|
|
2420
|
+
importantForAccessibility: "no-hide-descendants",
|
|
2421
|
+
style: [styles21.circle, { borderColor: filled ? accent : ring, backgroundColor: filled ? accent : void 0 }],
|
|
2422
|
+
testID,
|
|
2423
|
+
children: filled ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.glyph, { color: glyphColor }], children: TICK }) : null
|
|
2424
|
+
}
|
|
2425
|
+
);
|
|
2426
|
+
var ListRowToneContext = React11.createContext(null);
|
|
2427
|
+
function useListRowTone() {
|
|
2428
|
+
return React11.useContext(ListRowToneContext);
|
|
2429
|
+
}
|
|
2430
|
+
function useRowPalette() {
|
|
2431
|
+
const { colors, palette, semantic } = uiFeedback.useUi().theme;
|
|
2432
|
+
const accent = palette.primary["500"];
|
|
2433
|
+
const tint = palette.primary["50"] ?? colors.surface;
|
|
2434
|
+
return {
|
|
2435
|
+
accent,
|
|
2436
|
+
accentTint: tint,
|
|
2437
|
+
background: colors.background,
|
|
2438
|
+
surface: colors.surface,
|
|
2439
|
+
border: colors.border,
|
|
2440
|
+
text: colors.text,
|
|
2441
|
+
hover: tint,
|
|
2442
|
+
pressed: palette.primary["100"] ?? colors.surfaceElevated,
|
|
2443
|
+
focus: semantic.info?.["500"] ?? accent
|
|
2444
|
+
};
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
// src/ListRow/RowSelectedStyle.ts
|
|
2448
|
+
var RowSelectedStyle = /* @__PURE__ */ ((RowSelectedStyle2) => {
|
|
2449
|
+
RowSelectedStyle2["Surface"] = "surface";
|
|
2450
|
+
RowSelectedStyle2["AccentBar"] = "accent-bar";
|
|
2451
|
+
RowSelectedStyle2["Filled"] = "filled";
|
|
2452
|
+
RowSelectedStyle2["Raised"] = "raised";
|
|
2453
|
+
RowSelectedStyle2["Outline"] = "outline";
|
|
2454
|
+
RowSelectedStyle2["Check"] = "check";
|
|
2455
|
+
return RowSelectedStyle2;
|
|
2456
|
+
})(RowSelectedStyle || {});
|
|
2457
|
+
|
|
2458
|
+
// src/ListRow/utils/focusVisible.ts
|
|
2459
|
+
function canMatch(target) {
|
|
2460
|
+
return typeof target === "object" && target !== null && typeof target.matches === "function";
|
|
2461
|
+
}
|
|
2462
|
+
function isFocusVisible(target) {
|
|
2463
|
+
if (!canMatch(target)) return true;
|
|
2464
|
+
try {
|
|
2465
|
+
return target.matches(":focus-visible");
|
|
2466
|
+
} catch {
|
|
2467
|
+
return true;
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
// src/ListRow/utils/rowLook.ts
|
|
2472
|
+
var BAR_WIDTH = 4;
|
|
2473
|
+
var OUTLINE_WIDTH = 2;
|
|
2474
|
+
var FOCUS_GAP = 2;
|
|
2475
|
+
var FOCUS_WIDTH = 4;
|
|
2476
|
+
var CARD_RADIUS = 8;
|
|
2477
|
+
var CARD_INSET_V = 4;
|
|
2478
|
+
var CARD_INSET_H = 8;
|
|
2479
|
+
var CARD_SHADOW = "0px 2px 8px rgba(20, 30, 50, 0.16)";
|
|
2480
|
+
var TRANSPARENT2 = "transparent";
|
|
2481
|
+
function inset(width, color) {
|
|
2482
|
+
return `inset 0px 0px 0px ${String(width)}px ${color}`;
|
|
2483
|
+
}
|
|
2484
|
+
function interactionFill(state, palette) {
|
|
2485
|
+
if (state.pressed) return palette.pressed;
|
|
2486
|
+
if (state.hovered) return palette.hover;
|
|
2487
|
+
return void 0;
|
|
2488
|
+
}
|
|
2489
|
+
function selectedContainer(style, palette) {
|
|
2490
|
+
switch (style) {
|
|
2491
|
+
case "accent-bar" /* AccentBar */:
|
|
2492
|
+
return { backgroundColor: palette.accentTint, borderLeftColor: palette.accent };
|
|
2493
|
+
case "filled" /* Filled */:
|
|
2494
|
+
return { backgroundColor: palette.accent };
|
|
2495
|
+
case "raised" /* Raised */:
|
|
2496
|
+
return { backgroundColor: palette.background, borderColor: palette.accent, boxShadow: CARD_SHADOW };
|
|
2497
|
+
case "outline" /* Outline */:
|
|
2498
|
+
return { backgroundColor: palette.background, boxShadow: inset(OUTLINE_WIDTH, palette.accent) };
|
|
2499
|
+
case "check" /* Check */:
|
|
2500
|
+
return { backgroundColor: palette.background };
|
|
2501
|
+
default:
|
|
2502
|
+
return { backgroundColor: palette.surface };
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
function baseContainer(style) {
|
|
2506
|
+
if (style === "accent-bar" /* AccentBar */) return { borderLeftWidth: BAR_WIDTH, borderLeftColor: TRANSPARENT2 };
|
|
2507
|
+
if (style !== "raised" /* Raised */) return {};
|
|
2508
|
+
return {
|
|
2509
|
+
borderWidth: 1,
|
|
2510
|
+
borderColor: TRANSPARENT2,
|
|
2511
|
+
borderRadius: CARD_RADIUS,
|
|
2512
|
+
marginVertical: CARD_INSET_V,
|
|
2513
|
+
marginHorizontal: CARD_INSET_H
|
|
2514
|
+
};
|
|
2515
|
+
}
|
|
2516
|
+
function withFocus(container, focused, palette) {
|
|
2517
|
+
if (!focused) return container;
|
|
2518
|
+
const ring = `${inset(FOCUS_GAP, palette.background)}, ${inset(FOCUS_WIDTH, palette.focus)}`;
|
|
2519
|
+
const existing = typeof container.boxShadow === "string" ? container.boxShadow : void 0;
|
|
2520
|
+
const keepsInset = existing?.startsWith("inset") === true;
|
|
2521
|
+
return { ...container, boxShadow: keepsInset ? `${ring}, ${String(existing)}` : ring };
|
|
2522
|
+
}
|
|
2523
|
+
function resolveRowLook(style, state, palette) {
|
|
2524
|
+
const inverse = state.selected && style === "filled" /* Filled */;
|
|
2525
|
+
const selected = state.selected ? selectedContainer(style, palette) : {};
|
|
2526
|
+
const fill = inverse ? void 0 : interactionFill(state, palette);
|
|
2527
|
+
const fillStyle = fill === void 0 ? {} : { backgroundColor: fill };
|
|
2528
|
+
const container = { ...baseContainer(style), ...selected, ...fillStyle };
|
|
2529
|
+
const accentsTitle = state.selected && style === "accent-bar" /* AccentBar */;
|
|
2530
|
+
const textColor = inverse ? palette.background : palette.text;
|
|
2531
|
+
return {
|
|
2532
|
+
container: withFocus(container, state.focused, palette),
|
|
2533
|
+
titleColor: accentsTitle ? palette.accent : textColor,
|
|
2534
|
+
textColor,
|
|
2535
|
+
inverse,
|
|
2536
|
+
showCheck: style === "check" /* Check */,
|
|
2537
|
+
checkFilled: style === "check" /* Check */ && state.selected
|
|
2538
|
+
};
|
|
2539
|
+
}
|
|
2540
|
+
var FONT = 15;
|
|
2541
|
+
var PAD_H = 16;
|
|
2542
|
+
var PAD_V = 12;
|
|
2543
|
+
var GAP = 4;
|
|
2544
|
+
var MARK_GAP = 12;
|
|
2545
|
+
var LINE_GAP = 8;
|
|
2546
|
+
var styles22 = reactNative.StyleSheet.create({
|
|
2547
|
+
row: {
|
|
2548
|
+
flexDirection: "row",
|
|
2549
|
+
alignItems: "center",
|
|
2550
|
+
gap: MARK_GAP,
|
|
2551
|
+
paddingHorizontal: PAD_H,
|
|
2552
|
+
paddingVertical: PAD_V,
|
|
2553
|
+
borderTopWidth: 1,
|
|
2554
|
+
minHeight: MIN_TARGET_PX
|
|
2555
|
+
},
|
|
2556
|
+
body: { flex: 1, minWidth: 0, gap: GAP },
|
|
2557
|
+
line: { flexDirection: "row", justifyContent: "space-between", alignItems: "center", gap: LINE_GAP },
|
|
2558
|
+
shrink: { flexShrink: 1, minWidth: 0 },
|
|
2559
|
+
strong: { fontSize: FONT, fontWeight: "600" },
|
|
2560
|
+
badges: { flexDirection: "row", flexWrap: "wrap", gap: GAP, justifyContent: "flex-end" }
|
|
2561
|
+
});
|
|
2562
|
+
function pressedProps(selected) {
|
|
2563
|
+
return { "aria-pressed": selected };
|
|
2564
|
+
}
|
|
2565
|
+
function focusTarget(event) {
|
|
2566
|
+
return event?.nativeEvent?.target;
|
|
2567
|
+
}
|
|
2568
|
+
function slot(node, color, strong) {
|
|
2569
|
+
if (typeof node !== "string") return node;
|
|
2570
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.shrink, strong ? styles22.strong : null, { color }], children: node });
|
|
2571
|
+
}
|
|
2572
|
+
var ListRow = ({
|
|
2573
|
+
title,
|
|
2574
|
+
trailing,
|
|
2575
|
+
meta,
|
|
2576
|
+
badges,
|
|
2577
|
+
after,
|
|
2578
|
+
selected,
|
|
2579
|
+
selectedStyle = "surface" /* Surface */,
|
|
2580
|
+
onPress,
|
|
2581
|
+
accessibilityLabel,
|
|
2582
|
+
accessibilityHint,
|
|
2583
|
+
testID
|
|
2584
|
+
}) => {
|
|
2585
|
+
const palette = useRowPalette();
|
|
2586
|
+
const { colors } = uiFeedback.useUi().theme;
|
|
2587
|
+
const [focused, setFocused] = React11.useState(false);
|
|
2588
|
+
const rest = resolveRowLook(selectedStyle, { selected, hovered: false, pressed: false, focused }, palette);
|
|
2589
|
+
const tone = React11.useMemo(() => ({ textColor: rest.textColor, inverse: rest.inverse }), [rest.textColor, rest.inverse]);
|
|
2590
|
+
const checkTestId = testID === void 0 ? void 0 : `${testID}-check`;
|
|
2591
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ListRowToneContext.Provider, { value: tone, children: [
|
|
2592
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2593
|
+
reactNative.Pressable,
|
|
2594
|
+
{
|
|
2595
|
+
accessibilityHint,
|
|
2596
|
+
accessibilityLabel,
|
|
2597
|
+
accessibilityRole: "button",
|
|
2598
|
+
accessibilityState: { selected },
|
|
2599
|
+
style: (state) => {
|
|
2600
|
+
const { pressed, hovered } = state;
|
|
2601
|
+
const look = resolveRowLook(selectedStyle, { selected, pressed, focused, hovered: hovered === true }, palette);
|
|
2602
|
+
return [styles22.row, { borderTopColor: colors.border }, look.container];
|
|
2603
|
+
},
|
|
2604
|
+
testID,
|
|
2605
|
+
onBlur: () => {
|
|
2606
|
+
setFocused(false);
|
|
2607
|
+
},
|
|
2608
|
+
onFocus: (event) => {
|
|
2609
|
+
setFocused(isFocusVisible(focusTarget(event)));
|
|
2610
|
+
},
|
|
2611
|
+
onPress,
|
|
2612
|
+
...pressedProps(selected),
|
|
2613
|
+
children: [
|
|
2614
|
+
rest.showCheck ? /* @__PURE__ */ jsxRuntime.jsx(CheckMark, { accent: palette.accent, filled: rest.checkFilled, glyphColor: palette.background, ring: palette.border, testID: checkTestId }) : null,
|
|
2615
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.body, children: [
|
|
2616
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.line, children: [
|
|
2617
|
+
slot(title, rest.titleColor, true),
|
|
2618
|
+
slot(trailing, rest.textColor, true)
|
|
2619
|
+
] }),
|
|
2620
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.line, children: [
|
|
2621
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles22.shrink, children: slot(meta, rest.textColor, false) }),
|
|
2622
|
+
badges === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles22.badges, children: badges })
|
|
2623
|
+
] })
|
|
2624
|
+
] })
|
|
2625
|
+
]
|
|
2626
|
+
}
|
|
2627
|
+
),
|
|
2628
|
+
after ?? null
|
|
2629
|
+
] });
|
|
2630
|
+
};
|
|
2399
2631
|
|
|
2400
2632
|
exports.API_COMMIT_SEPARATOR = API_COMMIT_SEPARATOR;
|
|
2401
2633
|
exports.Accordion = Accordion;
|
|
@@ -2414,10 +2646,12 @@ exports.Heading = Heading;
|
|
|
2414
2646
|
exports.LAYOUT_COLLAPSE_BREAKPOINT = LAYOUT_COLLAPSE_BREAKPOINT;
|
|
2415
2647
|
exports.LAYOUT_I18N = LAYOUT_I18N;
|
|
2416
2648
|
exports.LAYOUT_TEST_IDS = LAYOUT_TEST_IDS;
|
|
2649
|
+
exports.ListRow = ListRow;
|
|
2417
2650
|
exports.MIN_TARGET_PX = MIN_TARGET_PX;
|
|
2418
2651
|
exports.Modal = Modal3;
|
|
2419
2652
|
exports.ModalDropdown = ModalDropdown;
|
|
2420
2653
|
exports.ModalShell = ModalShell;
|
|
2654
|
+
exports.RowSelectedStyle = RowSelectedStyle;
|
|
2421
2655
|
exports.ScreenColumn = ScreenColumn;
|
|
2422
2656
|
exports.Section = Section;
|
|
2423
2657
|
exports.SectionVariant = SectionVariant;
|
|
@@ -2436,6 +2670,7 @@ exports.formatBuildInfo = formatBuildInfo;
|
|
|
2436
2670
|
exports.formatUrlForDisplay = formatUrlForDisplay;
|
|
2437
2671
|
exports.isKeyboardOpen = isKeyboardOpen;
|
|
2438
2672
|
exports.isWideWebViewport = isWideWebViewport;
|
|
2673
|
+
exports.resolveRowLook = resolveRowLook;
|
|
2439
2674
|
exports.shortenCommit = shortenCommit;
|
|
2440
2675
|
exports.trimTrailingSlash = trimTrailingSlash;
|
|
2441
2676
|
exports.truncateMiddle = truncateMiddle;
|
|
@@ -2443,6 +2678,7 @@ exports.useApiCommit = useApiCommit;
|
|
|
2443
2678
|
exports.useCopyToClipboard = useCopyToClipboard;
|
|
2444
2679
|
exports.useFocusTrap = useFocusTrap;
|
|
2445
2680
|
exports.useIsWideViewport = useIsWideViewport;
|
|
2681
|
+
exports.useListRowTone = useListRowTone;
|
|
2446
2682
|
exports.useVisibleViewport = useVisibleViewport;
|
|
2447
2683
|
//# sourceMappingURL=index.js.map
|
|
2448
2684
|
//# sourceMappingURL=index.js.map
|