@dloizides/ui-layout 1.53.0 → 1.54.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 +49 -6
- package/dist/index.d.ts +49 -6
- package/dist/index.js +155 -69
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +151 -70
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41,7 +41,9 @@ var LAYOUT_TEST_IDS = {
|
|
|
41
41
|
formDialog: "form",
|
|
42
42
|
accordion: "accordion",
|
|
43
43
|
/** Default testID for the `BuildInfoFooter` caption (`v<version>`). */
|
|
44
|
-
buildInfoFooter: "build-info-footer"
|
|
44
|
+
buildInfoFooter: "build-info-footer",
|
|
45
|
+
stickyActionBar: "sticky-action-bar",
|
|
46
|
+
pageHead: "page-head"
|
|
45
47
|
};
|
|
46
48
|
var MODAL_FOOTER_STACK_BELOW = 400;
|
|
47
49
|
var DEFAULT_BILLING_ROUTE = "/settings/billing";
|
|
@@ -159,20 +161,26 @@ var styles2 = reactNative.StyleSheet.create({
|
|
|
159
161
|
gap: 12
|
|
160
162
|
}
|
|
161
163
|
});
|
|
164
|
+
function paddingStyle(padding) {
|
|
165
|
+
if (padding === void 0) return null;
|
|
166
|
+
if (typeof padding === "number") return { padding };
|
|
167
|
+
return { paddingVertical: padding.vertical, paddingHorizontal: padding.horizontal };
|
|
168
|
+
}
|
|
162
169
|
var Section = ({
|
|
163
170
|
children,
|
|
164
171
|
style,
|
|
165
172
|
variant = "panel" /* Panel */,
|
|
166
173
|
title,
|
|
167
174
|
titleLevel,
|
|
175
|
+
padding,
|
|
168
176
|
testID
|
|
169
177
|
}) => {
|
|
170
178
|
const { theme } = uiFeedback.useUi();
|
|
171
179
|
const isCard = variant === "card" /* Card */;
|
|
172
180
|
const fill = isCard ? theme.colors.background : theme.colors.surface;
|
|
173
181
|
const containerStyle = React16__default.default.useMemo(
|
|
174
|
-
() => [styles2.card, isCard ? styles2.raised : null, title === void 0 ? null : styles2.titled, { borderColor: theme.colors.border, backgroundColor: fill }, style],
|
|
175
|
-
[theme.colors.border, fill, isCard, title, style]
|
|
182
|
+
() => [styles2.card, isCard ? styles2.raised : null, title === void 0 ? null : styles2.titled, { borderColor: theme.colors.border, backgroundColor: fill }, paddingStyle(padding), style],
|
|
183
|
+
[theme.colors.border, fill, isCard, title, padding, style]
|
|
176
184
|
);
|
|
177
185
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: containerStyle, testID, children: [
|
|
178
186
|
title === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(Heading, { level: titleLevel, testID: testID === void 0 ? void 0 : `${testID}-title`, text: title }),
|
|
@@ -318,6 +326,14 @@ function resolveToneColors(theme, tone) {
|
|
|
318
326
|
}
|
|
319
327
|
return neutralColors(theme.colors);
|
|
320
328
|
}
|
|
329
|
+
var TINT_STEP = "100";
|
|
330
|
+
function resolveTintColors(theme, tone) {
|
|
331
|
+
const scale = scaleFor(theme, tone);
|
|
332
|
+
const fill = scale?.[TINT_STEP];
|
|
333
|
+
const ink = scale?.[designTokens.UI_DEEP_STEP];
|
|
334
|
+
if (fill === void 0 || ink === void 0 || !designTokens.isHexColor(fill) || !designTokens.isHexColor(ink)) return resolveToneColors(theme, tone);
|
|
335
|
+
return { color: ink, backgroundColor: fill };
|
|
336
|
+
}
|
|
321
337
|
var DEFAULT_PADDING_H = 10;
|
|
322
338
|
var DEFAULT_PADDING_V = 4;
|
|
323
339
|
var DEFAULT_BORDER_RADIUS = 12;
|
|
@@ -3358,11 +3374,11 @@ var SectionDensity = /* @__PURE__ */ ((SectionDensity2) => {
|
|
|
3358
3374
|
SectionDensity2["Dense"] = "dense";
|
|
3359
3375
|
return SectionDensity2;
|
|
3360
3376
|
})(SectionDensity || {});
|
|
3361
|
-
var
|
|
3377
|
+
var SECTION_INDEX_WIDTH = 200;
|
|
3362
3378
|
var ACTIVE_BAR = 3;
|
|
3363
3379
|
var TRANSPARENT3 = "transparent";
|
|
3364
3380
|
var styles29 = reactNative.StyleSheet.create({
|
|
3365
|
-
root: {
|
|
3381
|
+
root: { flexShrink: 0, gap: 2, alignSelf: "flex-start" },
|
|
3366
3382
|
heading: { fontSize: 12, fontWeight: "700", letterSpacing: 0.6, textTransform: "uppercase", paddingHorizontal: 10, paddingBottom: 6 },
|
|
3367
3383
|
item: { minHeight: MIN_TARGET_PX, justifyContent: "center", paddingHorizontal: 10, borderLeftWidth: ACTIVE_BAR, borderRadius: 6 },
|
|
3368
3384
|
label: { fontSize: 14 },
|
|
@@ -3371,10 +3387,10 @@ var styles29 = reactNative.StyleSheet.create({
|
|
|
3371
3387
|
function ariaCurrent(active) {
|
|
3372
3388
|
return active ? { "aria-current": "location" } : {};
|
|
3373
3389
|
}
|
|
3374
|
-
var SectionIndex = ({ sections, activeKey, heading, itemHint, onSelect, testID }) => {
|
|
3390
|
+
var SectionIndex = ({ sections, activeKey, heading, itemHint, onSelect, testID, width = SECTION_INDEX_WIDTH }) => {
|
|
3375
3391
|
const { theme } = uiFeedback.useUi();
|
|
3376
3392
|
const { colors } = theme;
|
|
3377
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { role: "navigation", accessibilityLabel: heading, style: styles29.root, testID: `${testID}-index`, children: [
|
|
3393
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { role: "navigation", accessibilityLabel: heading, style: [styles29.root, { width }], testID: `${testID}-index`, children: [
|
|
3378
3394
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles29.heading, { color: colors.textSecondary }], children: heading }),
|
|
3379
3395
|
sections.map((entry) => {
|
|
3380
3396
|
const active = entry.key === activeKey;
|
|
@@ -3427,6 +3443,7 @@ var SectionIndexLayout = ({
|
|
|
3427
3443
|
density = "comfortable" /* Comfortable */,
|
|
3428
3444
|
stickyIndex = false,
|
|
3429
3445
|
chipOverflow = "wrap" /* Wrap */,
|
|
3446
|
+
indexWidth = SECTION_INDEX_WIDTH,
|
|
3430
3447
|
testID = "section-index"
|
|
3431
3448
|
}) => {
|
|
3432
3449
|
const wide = useIsWideViewport(breakpoint);
|
|
@@ -3458,11 +3475,19 @@ var SectionIndexLayout = ({
|
|
|
3458
3475
|
};
|
|
3459
3476
|
const sticky = stickyIndex && reactNative.Platform.OS === "web" ? WEB_STICKY : null;
|
|
3460
3477
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles30.wide, testID, children: [
|
|
3461
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: sticky, children: /* @__PURE__ */ jsxRuntime.jsx(SectionIndex, { activeKey, heading: indexHeading, itemHint, sections, testID, onSelect: select }) }),
|
|
3478
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: sticky, children: /* @__PURE__ */ jsxRuntime.jsx(SectionIndex, { activeKey, heading: indexHeading, itemHint, sections, testID, width: indexWidth, onSelect: select }) }),
|
|
3462
3479
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles30.column, gap], children: sections.map((entry) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { nativeID: sectionAnchorId(testID, entry.key), testID: sectionAnchorId(testID, entry.key), children: entry.content }, entry.key)) })
|
|
3463
3480
|
] });
|
|
3464
3481
|
};
|
|
3482
|
+
|
|
3483
|
+
// src/DayCard/DayBadgeFill.ts
|
|
3484
|
+
var DayBadgeFill = /* @__PURE__ */ ((DayBadgeFill2) => {
|
|
3485
|
+
DayBadgeFill2["Solid"] = "solid";
|
|
3486
|
+
DayBadgeFill2["Tint"] = "tint";
|
|
3487
|
+
return DayBadgeFill2;
|
|
3488
|
+
})(DayBadgeFill || {});
|
|
3465
3489
|
var PILL_RADIUS2 = 999;
|
|
3490
|
+
var BADGE_ICON_SIZE = 12;
|
|
3466
3491
|
var styles31 = reactNative.StyleSheet.create({
|
|
3467
3492
|
body: { borderRadius: 8, borderWidth: 1, overflow: "hidden" },
|
|
3468
3493
|
count: { borderRadius: PILL_RADIUS2, borderWidth: 1, fontSize: 12, fontWeight: "700", paddingHorizontal: 8 },
|
|
@@ -3477,15 +3502,20 @@ var DayCard = ({
|
|
|
3477
3502
|
accessibilityLabel,
|
|
3478
3503
|
accessibilityHint,
|
|
3479
3504
|
badgeTone = "warning" /* Warning */,
|
|
3505
|
+
badgeFill = "solid" /* Solid */,
|
|
3506
|
+
badgeIcon,
|
|
3480
3507
|
testID,
|
|
3481
3508
|
children
|
|
3482
3509
|
}) => {
|
|
3483
3510
|
const { theme } = uiFeedback.useUi();
|
|
3484
3511
|
const { colors } = theme;
|
|
3512
|
+
const tint = badgeFill === "tint" /* Tint */ ? resolveTintColors(theme, badgeTone) : void 0;
|
|
3513
|
+
const iconInk = tint?.color ?? colors.textSecondary;
|
|
3514
|
+
const icon = badgeIcon === void 0 ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: iconInk, name: badgeIcon, size: BADGE_ICON_SIZE });
|
|
3485
3515
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.stack, testID, children: [
|
|
3486
3516
|
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityHint, accessibilityLabel, accessibilityRole: "header", style: styles31.head, children: [
|
|
3487
3517
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles31.label, { color: colors.text }], children: label }),
|
|
3488
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { label: badge, tone: badgeTone }),
|
|
3518
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { backgroundColor: tint?.backgroundColor, color: tint?.color, icon, label: badge, testID: testID === void 0 ? void 0 : `${testID}-badge`, tone: badgeTone }),
|
|
3489
3519
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles31.count, { borderColor: colors.border, color: colors.textSecondary }], children: String(count) })
|
|
3490
3520
|
] }),
|
|
3491
3521
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles31.body, { backgroundColor: colors.surface, borderColor: colors.border }], children })
|
|
@@ -3504,15 +3534,66 @@ var FigureStrip = ({ children, testID }) => /* @__PURE__ */ jsxRuntime.jsx(react
|
|
|
3504
3534
|
var styles33 = reactNative.StyleSheet.create({
|
|
3505
3535
|
stack: { gap: 12 }
|
|
3506
3536
|
});
|
|
3507
|
-
var ToggleSection = ({ wide, title, toggleLabel, toggleHint, forceOpen = false, testID, children }) => {
|
|
3508
|
-
const [
|
|
3537
|
+
var ToggleSection = ({ wide, title, toggleLabel, toggleHint, forceOpen = false, open, onOpenChange, testID, children }) => {
|
|
3538
|
+
const [ownOpen, setOwnOpen] = React16.useState(false);
|
|
3539
|
+
const isOpen = open ?? ownOpen;
|
|
3540
|
+
const toggle = () => {
|
|
3541
|
+
if (open === void 0) setOwnOpen(!isOpen);
|
|
3542
|
+
onOpenChange?.(!isOpen);
|
|
3543
|
+
};
|
|
3509
3544
|
if (wide) return /* @__PURE__ */ jsxRuntime.jsx(Section, { testID: `${testID}-card`, title, variant: "card" /* Card */, children });
|
|
3510
3545
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles33.stack, children: [
|
|
3511
|
-
/* @__PURE__ */ jsxRuntime.jsx(uiButtons.Button, { accessibilityHint: toggleHint, accessibilityLabel: toggleLabel, label: toggleLabel, testID: `${testID}-toggle`, variant: "outline", onPress:
|
|
3512
|
-
|
|
3546
|
+
/* @__PURE__ */ jsxRuntime.jsx(uiButtons.Button, { accessibilityHint: toggleHint, accessibilityLabel: toggleLabel, label: toggleLabel, testID: `${testID}-toggle`, variant: "outline", onPress: toggle }),
|
|
3547
|
+
isOpen || forceOpen ? children : null
|
|
3513
3548
|
] });
|
|
3514
3549
|
};
|
|
3550
|
+
|
|
3551
|
+
// src/StickyActionBar/stickyEdge.ts
|
|
3552
|
+
var BAR_PADDING = 12;
|
|
3553
|
+
function stickyEdgeStyle(os, bottomInset) {
|
|
3554
|
+
const padding = BAR_PADDING + bottomInset;
|
|
3555
|
+
if (os !== "web") return { paddingBottom: padding };
|
|
3556
|
+
return { position: "sticky", bottom: 0, zIndex: 1, paddingBottom: `calc(${String(padding)}px + env(safe-area-inset-bottom))` };
|
|
3557
|
+
}
|
|
3558
|
+
var ACTION_GAP = 8;
|
|
3515
3559
|
var styles34 = reactNative.StyleSheet.create({
|
|
3560
|
+
inline: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", justifyContent: "flex-end", gap: ACTION_GAP },
|
|
3561
|
+
bar: { flexDirection: "row", flexWrap: "wrap", alignItems: "stretch", gap: ACTION_GAP, paddingTop: BAR_PADDING, paddingHorizontal: BAR_PADDING, borderTopWidth: 1 }
|
|
3562
|
+
});
|
|
3563
|
+
var StickyActionBar = ({
|
|
3564
|
+
accessibilityLabel,
|
|
3565
|
+
children,
|
|
3566
|
+
breakpoint = LAYOUT_COLLAPSE_BREAKPOINT,
|
|
3567
|
+
bottomInset = 0,
|
|
3568
|
+
testID = LAYOUT_TEST_IDS.stickyActionBar
|
|
3569
|
+
}) => {
|
|
3570
|
+
const wide = useIsWideViewport(breakpoint);
|
|
3571
|
+
const { colors } = uiFeedback.useUi().theme;
|
|
3572
|
+
if (wide) return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityLabel, role: "toolbar", style: styles34.inline, testID, children });
|
|
3573
|
+
const surface = { backgroundColor: colors.surface, borderTopColor: colors.border };
|
|
3574
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityLabel, role: "toolbar", style: [styles34.bar, surface, stickyEdgeStyle(reactNative.Platform.OS, bottomInset)], testID, children });
|
|
3575
|
+
};
|
|
3576
|
+
var TITLE_BASIS = 280;
|
|
3577
|
+
var styles35 = reactNative.StyleSheet.create({
|
|
3578
|
+
row: { flexDirection: "row", flexWrap: "wrap", alignItems: "flex-start", justifyContent: "space-between", gap: 12 },
|
|
3579
|
+
text: { gap: 4, flexGrow: 1, flexShrink: 1, flexBasis: TITLE_BASIS, minWidth: 0 },
|
|
3580
|
+
title: { fontSize: 24, fontWeight: "800" },
|
|
3581
|
+
actions: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 8, maxWidth: "100%" }
|
|
3582
|
+
});
|
|
3583
|
+
function hasContent(node) {
|
|
3584
|
+
return node !== void 0 && node !== null && node !== false;
|
|
3585
|
+
}
|
|
3586
|
+
var PageHead = ({ title, subtitle, actions, testID = LAYOUT_TEST_IDS.pageHead }) => {
|
|
3587
|
+
const { colors } = uiFeedback.useUi().theme;
|
|
3588
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles35.row, testID, children: [
|
|
3589
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles35.text, children: [
|
|
3590
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles35.title, { color: colors.text }], testID: `${testID}-title`, children: title }),
|
|
3591
|
+
subtitle
|
|
3592
|
+
] }),
|
|
3593
|
+
hasContent(actions) ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles35.actions, testID: `${testID}-actions`, children: actions }) : null
|
|
3594
|
+
] });
|
|
3595
|
+
};
|
|
3596
|
+
var styles36 = reactNative.StyleSheet.create({
|
|
3516
3597
|
entry: { borderLeftWidth: 2, gap: 4, paddingBottom: 12, paddingLeft: 12 },
|
|
3517
3598
|
head: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: 8 },
|
|
3518
3599
|
time: { fontSize: 13 },
|
|
@@ -3527,12 +3608,12 @@ var Timeline = ({ entries, accessibilityLabel, accessibilityHint, testID }) => {
|
|
|
3527
3608
|
accessibilityHint: entry.accessibilityHint,
|
|
3528
3609
|
accessibilityLabel: entry.accessibilityLabel,
|
|
3529
3610
|
role: "listitem",
|
|
3530
|
-
style: [
|
|
3611
|
+
style: [styles36.entry, { borderLeftColor: colors.border }],
|
|
3531
3612
|
testID: entryTestId(testID, entry.key),
|
|
3532
3613
|
children: [
|
|
3533
|
-
entry.time === "" ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3534
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3535
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3614
|
+
entry.time === "" ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles36.time, { color: colors.textSecondary }], children: entry.time }),
|
|
3615
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles36.head, children: [
|
|
3616
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles36.title, { color: colors.text }], children: entry.title }),
|
|
3536
3617
|
entry.status === void 0 || entry.status === "" ? null : /* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { label: entry.status, tone: entry.tone ?? "neutral" /* Neutral */ })
|
|
3537
3618
|
] })
|
|
3538
3619
|
]
|
|
@@ -3547,7 +3628,7 @@ function isRecordHeaderCompact(width, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT) {
|
|
|
3547
3628
|
}
|
|
3548
3629
|
var GAP2 = 8;
|
|
3549
3630
|
var WIDE_GAP = 16;
|
|
3550
|
-
var
|
|
3631
|
+
var styles37 = reactNative.StyleSheet.create({
|
|
3551
3632
|
actions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end" },
|
|
3552
3633
|
compactActions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2 },
|
|
3553
3634
|
identity: { flex: 1, gap: GAP2, minWidth: 0 },
|
|
@@ -3556,9 +3637,9 @@ var styles35 = reactNative.StyleSheet.create({
|
|
|
3556
3637
|
});
|
|
3557
3638
|
var RecordHeader = ({ breadcrumb, title, meta, actions, collapseBelow, testID }) => {
|
|
3558
3639
|
const compact = isRecordHeaderCompact(reactNative.useWindowDimensions().width, collapseBelow);
|
|
3559
|
-
const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: compact ?
|
|
3560
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3561
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3640
|
+
const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: compact ? styles37.compactActions : styles37.actions, children: actions });
|
|
3641
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles37.root, testID, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: compact ? styles37.root : styles37.top, children: [
|
|
3642
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles37.identity, children: [
|
|
3562
3643
|
breadcrumb,
|
|
3563
3644
|
title,
|
|
3564
3645
|
meta
|
|
@@ -3570,7 +3651,7 @@ var FONT_SIZE = 13;
|
|
|
3570
3651
|
var GAP3 = 6;
|
|
3571
3652
|
var SEPARATOR = "\u203A";
|
|
3572
3653
|
var BACK = "\u2039";
|
|
3573
|
-
var
|
|
3654
|
+
var styles38 = reactNative.StyleSheet.create({
|
|
3574
3655
|
link: { justifyContent: "center", minHeight: MIN_TARGET_PX },
|
|
3575
3656
|
row: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP3 },
|
|
3576
3657
|
text: { fontSize: FONT_SIZE, fontWeight: "500" }
|
|
@@ -3578,11 +3659,11 @@ var styles36 = reactNative.StyleSheet.create({
|
|
|
3578
3659
|
var Breadcrumb = ({ items, accessibilityLabel, accessibilityHint, testID }) => {
|
|
3579
3660
|
const { theme } = uiFeedback.useUi();
|
|
3580
3661
|
const muted = { color: theme.colors.textSecondary };
|
|
3581
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityHint, "aria-label": accessibilityLabel, style:
|
|
3582
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [
|
|
3662
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityHint, "aria-label": accessibilityLabel, style: styles38.row, testID, children: [
|
|
3663
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles38.text, muted], children: BACK }),
|
|
3583
3664
|
items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React16__default.default.Fragment, { children: [
|
|
3584
|
-
index > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [
|
|
3585
|
-
item.onPress === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3665
|
+
index > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles38.text, muted], children: SEPARATOR }) : null,
|
|
3666
|
+
item.onPress === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles38.text, muted], testID: item.testID, children: item.label }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityHint: item.accessibilityHint, accessibilityLabel: item.label, accessibilityRole: "link", style: styles38.link, testID: item.testID, onPress: item.onPress, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles38.text, { color: theme.colors.text }], children: item.label }) })
|
|
3586
3667
|
] }, item.key))
|
|
3587
3668
|
] });
|
|
3588
3669
|
};
|
|
@@ -3591,7 +3672,7 @@ var PAD_H2 = 12;
|
|
|
3591
3672
|
var GAP4 = 6;
|
|
3592
3673
|
var FONT_SIZE2 = 13;
|
|
3593
3674
|
var DISABLED_OPACITY2 = 0.55;
|
|
3594
|
-
var
|
|
3675
|
+
var styles39 = reactNative.StyleSheet.create({
|
|
3595
3676
|
base: { alignItems: "center", borderRadius: RADIUS, borderWidth: 1, flexDirection: "row", gap: GAP4, justifyContent: "center", minHeight: MIN_TARGET_PX, minWidth: MIN_TARGET_PX, paddingHorizontal: PAD_H2 },
|
|
3596
3677
|
disabled: { borderStyle: "dashed", opacity: DISABLED_OPACITY2 },
|
|
3597
3678
|
text: { fontSize: FONT_SIZE2, fontWeight: "600" }
|
|
@@ -3618,12 +3699,12 @@ var RecordActionButton = ({ label, hint, testID, icon, onPress, iconOnly = false
|
|
|
3618
3699
|
accessibilityRole: "button",
|
|
3619
3700
|
accessibilityState: { disabled },
|
|
3620
3701
|
disabled,
|
|
3621
|
-
style: [
|
|
3702
|
+
style: [styles39.base, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }, disabled && styles39.disabled],
|
|
3622
3703
|
testID,
|
|
3623
3704
|
onPress,
|
|
3624
3705
|
children: [
|
|
3625
3706
|
icon === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }),
|
|
3626
|
-
showLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3707
|
+
showLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles39.text, { color: theme.colors.text }], children: label }) : null
|
|
3627
3708
|
]
|
|
3628
3709
|
}
|
|
3629
3710
|
);
|
|
@@ -3635,7 +3716,7 @@ var FONT_SIZE3 = 12;
|
|
|
3635
3716
|
var COPY_GLYPH = "\u29C9";
|
|
3636
3717
|
var COPIED_GLYPH = "\u2713";
|
|
3637
3718
|
var MONO = reactNative.Platform.select({ web: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", default: "monospace" });
|
|
3638
|
-
var
|
|
3719
|
+
var styles40 = reactNative.StyleSheet.create({
|
|
3639
3720
|
chip: { alignItems: "center", alignSelf: "flex-start", borderRadius: RADIUS2, borderWidth: 1, flexDirection: "row", gap: GAP5, maxWidth: "100%", minHeight: MIN_TARGET_PX, paddingHorizontal: PAD_H3 },
|
|
3640
3721
|
text: { flexShrink: 1, fontFamily: MONO, fontSize: FONT_SIZE3 }
|
|
3641
3722
|
});
|
|
@@ -3652,24 +3733,24 @@ var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, dis
|
|
|
3652
3733
|
accessibilityRole: "button",
|
|
3653
3734
|
accessibilityState: { disabled: !copyable },
|
|
3654
3735
|
disabled: !copyable,
|
|
3655
|
-
style: [
|
|
3736
|
+
style: [styles40.chip, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }],
|
|
3656
3737
|
testID,
|
|
3657
3738
|
onPress: copyable ? copy : void 0,
|
|
3658
3739
|
children: [
|
|
3659
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3660
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [
|
|
3661
|
-
copyable ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [
|
|
3740
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.text, { color: theme.colors.textSecondary }], children: label }),
|
|
3741
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles40.text, ink], testID: valueTestID, children: display ?? value }),
|
|
3742
|
+
copyable ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles40.text, ink], testID: `${testID}-glyph`, children: status === "copied" /* Copied */ ? COPIED_GLYPH : COPY_GLYPH }) : null
|
|
3662
3743
|
]
|
|
3663
3744
|
}
|
|
3664
3745
|
);
|
|
3665
3746
|
};
|
|
3666
3747
|
var STEP_WIDTH = 8;
|
|
3667
3748
|
var STEP_OPACITIES = [0.35, 0.65, 0.9];
|
|
3668
|
-
var
|
|
3749
|
+
var styles41 = reactNative.StyleSheet.create({
|
|
3669
3750
|
fade: { bottom: 0, flexDirection: "row", position: "absolute", right: 0, top: 0 },
|
|
3670
3751
|
step: { width: STEP_WIDTH }
|
|
3671
3752
|
});
|
|
3672
|
-
var EdgeFadeStrip = ({ color }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, pointerEvents: "none", style:
|
|
3753
|
+
var EdgeFadeStrip = ({ color }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, pointerEvents: "none", style: styles41.fade, children: STEP_OPACITIES.map((opacity) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles41.step, { backgroundColor: color, opacity }] }, opacity)) });
|
|
3673
3754
|
var SLACK_PX = 1;
|
|
3674
3755
|
function showsEdgeFade({ contentWidth, viewportWidth, offset }) {
|
|
3675
3756
|
return contentWidth - viewportWidth - offset > SLACK_PX;
|
|
@@ -3696,7 +3777,7 @@ var COUNT_FONT = 12;
|
|
|
3696
3777
|
var COUNT_MIN = 22;
|
|
3697
3778
|
var COUNT_PAD = 6;
|
|
3698
3779
|
var PILL = 999;
|
|
3699
|
-
var
|
|
3780
|
+
var styles42 = reactNative.StyleSheet.create({
|
|
3700
3781
|
chip: { alignItems: "center", borderRadius: PILL, borderWidth: 1, flexDirection: "row", gap: GAP6, justifyContent: "center", minHeight: MIN_TARGET_PX, minWidth: MIN_TARGET_PX, paddingHorizontal: CHIP_PAD_H },
|
|
3701
3782
|
chipCount: { fontSize: FONT_SIZE4, fontWeight: "700" },
|
|
3702
3783
|
count: { borderRadius: PILL, fontSize: COUNT_FONT, fontWeight: "700", minWidth: COUNT_MIN, paddingHorizontal: COUNT_PAD, textAlign: "center" },
|
|
@@ -3719,18 +3800,18 @@ var TabPressable = ({ tab, selected, onChange, style, children }) => /* @__PURE_
|
|
|
3719
3800
|
);
|
|
3720
3801
|
var UnderlineTabItem = ({ underline, ...item }) => {
|
|
3721
3802
|
const { theme } = uiFeedback.useUi();
|
|
3722
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [
|
|
3723
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3724
|
-
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3803
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [styles42.tab, { borderBottomColor: item.selected ? underline : "transparent" }], children: [
|
|
3804
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.label, { color: item.selected ? theme.colors.text : theme.colors.textSecondary }], children: item.tab.label }),
|
|
3805
|
+
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.count, { backgroundColor: theme.colors.border, color: theme.colors.text }], children: String(item.tab.count) })
|
|
3725
3806
|
] });
|
|
3726
3807
|
};
|
|
3727
3808
|
var ChipTabItem = (item) => {
|
|
3728
3809
|
const { theme } = uiFeedback.useUi();
|
|
3729
3810
|
const fill = item.selected ? theme.colors.text : "transparent";
|
|
3730
3811
|
const ink = item.selected ? theme.colors.background : theme.colors.text;
|
|
3731
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [
|
|
3732
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3733
|
-
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3812
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [styles42.chip, { backgroundColor: fill, borderColor: item.selected ? theme.colors.text : theme.colors.border }], children: [
|
|
3813
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.label, { color: ink }], children: item.tab.label }),
|
|
3814
|
+
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.chipCount, { color: ink }], children: String(item.tab.count) })
|
|
3734
3815
|
] });
|
|
3735
3816
|
};
|
|
3736
3817
|
|
|
@@ -3744,7 +3825,7 @@ var DEFAULT_UNDERLINE_STEP = "700";
|
|
|
3744
3825
|
var SCROLL_THROTTLE_MS = 16;
|
|
3745
3826
|
var CHIP_GAP = 8;
|
|
3746
3827
|
var CHIP_PAD_V = 4;
|
|
3747
|
-
var
|
|
3828
|
+
var styles43 = reactNative.StyleSheet.create({
|
|
3748
3829
|
chipRow: { alignItems: "center", flexDirection: "row", gap: CHIP_GAP, paddingVertical: CHIP_PAD_V },
|
|
3749
3830
|
chipWrap: { flexWrap: "wrap" },
|
|
3750
3831
|
strip: { position: "relative", width: "100%" }
|
|
@@ -3758,12 +3839,12 @@ var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, accessibil
|
|
|
3758
3839
|
const item = { tab, selected: tab.key === activeKey, onChange };
|
|
3759
3840
|
return chips ? /* @__PURE__ */ jsxRuntime.jsx(ChipTabItem, { ...item }, tab.key) : /* @__PURE__ */ jsxRuntime.jsx(UnderlineTabItem, { ...item, underline }, tab.key);
|
|
3760
3841
|
});
|
|
3761
|
-
const stripStyle = chips ?
|
|
3842
|
+
const stripStyle = chips ? styles43.strip : [styles43.strip, { borderBottomColor: theme.colors.border, borderBottomWidth: 1 }];
|
|
3762
3843
|
if (chips && chipOverflow === "wrap" /* Wrap */) {
|
|
3763
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [
|
|
3844
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles43.chipRow, styles43.chipWrap], testID, children: items });
|
|
3764
3845
|
}
|
|
3765
3846
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: stripStyle, testID, children: [
|
|
3766
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, contentContainerStyle: chips ?
|
|
3847
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, contentContainerStyle: chips ? styles43.chipRow : void 0, scrollEventThrottle: SCROLL_THROTTLE_MS, showsHorizontalScrollIndicator: false, onContentSizeChange: fade.onContentSizeChange, onLayout: fade.onLayout, onScroll: fade.onScroll, children: items }),
|
|
3767
3848
|
fade.visible ? /* @__PURE__ */ jsxRuntime.jsx(EdgeFadeStrip, { color: fadeColor ?? theme.colors.background }) : null
|
|
3768
3849
|
] });
|
|
3769
3850
|
};
|
|
@@ -3771,7 +3852,7 @@ var RADIUS3 = 12;
|
|
|
3771
3852
|
var PAD = 16;
|
|
3772
3853
|
var GAP7 = 8;
|
|
3773
3854
|
var TITLE_FONT = 15;
|
|
3774
|
-
var
|
|
3855
|
+
var styles44 = reactNative.StyleSheet.create({
|
|
3775
3856
|
card: { borderRadius: RADIUS3, borderWidth: 1, gap: GAP7, minWidth: 0, padding: PAD },
|
|
3776
3857
|
footer: { alignItems: "flex-start", flexDirection: "row", flexWrap: "wrap", gap: GAP7 },
|
|
3777
3858
|
head: { alignItems: "center", flexDirection: "row", gap: GAP7 },
|
|
@@ -3779,14 +3860,14 @@ var styles42 = reactNative.StyleSheet.create({
|
|
|
3779
3860
|
});
|
|
3780
3861
|
var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
|
|
3781
3862
|
const { theme } = uiFeedback.useUi();
|
|
3782
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
3783
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3863
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles44.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
|
|
3864
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles44.head, children: [
|
|
3784
3865
|
icon === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }),
|
|
3785
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [
|
|
3866
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles44.title, { color: theme.colors.text }], children: title }),
|
|
3786
3867
|
headerRight
|
|
3787
3868
|
] }),
|
|
3788
3869
|
children,
|
|
3789
|
-
footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3870
|
+
footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles44.footer, children: footer })
|
|
3790
3871
|
] });
|
|
3791
3872
|
};
|
|
3792
3873
|
var LEAD_LABEL_SIZE = 14;
|
|
@@ -3798,7 +3879,7 @@ var GAP8 = 12;
|
|
|
3798
3879
|
var LEAD_GAP = 4;
|
|
3799
3880
|
var LEAD_BORDER = 1.5;
|
|
3800
3881
|
var ACCENT_STEP = "500";
|
|
3801
|
-
var
|
|
3882
|
+
var styles45 = reactNative.StyleSheet.create({
|
|
3802
3883
|
slip: { gap: GAP8, width: "100%" },
|
|
3803
3884
|
lead: { padding: LEAD_PAD, borderRadius: LEAD_RADIUS, borderWidth: LEAD_BORDER, gap: LEAD_GAP },
|
|
3804
3885
|
leadLabel: { fontSize: LEAD_LABEL_SIZE },
|
|
@@ -3810,13 +3891,13 @@ var TransferSlip = ({ leadLabel, amount, recipient, children, footer, testID })
|
|
|
3810
3891
|
const { theme } = uiFeedback.useUi();
|
|
3811
3892
|
const { colors } = theme;
|
|
3812
3893
|
const accent = theme.palette.primary[ACCENT_STEP];
|
|
3813
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3814
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
3815
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3816
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3817
|
-
recipient !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3894
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles45.slip, testID, children: [
|
|
3895
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles45.lead, { borderColor: accent, backgroundColor: colors.surface }], testID: `${testID}-lead`, children: [
|
|
3896
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles45.leadLabel, { color: colors.textSecondary }], children: leadLabel }),
|
|
3897
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles45.amount, { color: colors.text }], testID: `${testID}-amount`, children: amount }),
|
|
3898
|
+
recipient !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles45.recipient, { color: colors.text }], children: recipient })
|
|
3818
3899
|
] }),
|
|
3819
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3900
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles45.rows, children }),
|
|
3820
3901
|
footer
|
|
3821
3902
|
] });
|
|
3822
3903
|
};
|
|
@@ -3849,7 +3930,7 @@ var STACK_GAP = 8;
|
|
|
3849
3930
|
var ROW_PAD = 10;
|
|
3850
3931
|
var TEXT_GAP = 2;
|
|
3851
3932
|
var MONO_SPACING = 1;
|
|
3852
|
-
var
|
|
3933
|
+
var styles46 = reactNative.StyleSheet.create({
|
|
3853
3934
|
inline: { flexDirection: "row", alignItems: "center", gap: ROW_GAP3, paddingVertical: ROW_PAD, borderTopWidth: reactNative.StyleSheet.hairlineWidth },
|
|
3854
3935
|
prominent: { gap: STACK_GAP, paddingVertical: ROW_PAD },
|
|
3855
3936
|
text: { flex: 1, minWidth: 0, gap: TEXT_GAP },
|
|
@@ -3873,10 +3954,10 @@ var CopyValueRow = ({
|
|
|
3873
3954
|
const { status, copy } = useCopyToClipboard(copyValue ?? value, writer);
|
|
3874
3955
|
const action = copyActionLabel(status, labels);
|
|
3875
3956
|
const prominent = emphasis === "prominent" /* Prominent */;
|
|
3876
|
-
const valueStyle = prominent || monospace ?
|
|
3877
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: prominent ?
|
|
3878
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3879
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3957
|
+
const valueStyle = prominent || monospace ? styles46.big : styles46.value;
|
|
3958
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: prominent ? styles46.prominent : [styles46.inline, { borderTopColor: colors.border }], testID, children: [
|
|
3959
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles46.text, children: [
|
|
3960
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles46.label, { color: colors.textSecondary }], children: label }),
|
|
3880
3961
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { selectable: true, style: [valueStyle, { color: colors.text }], testID: `${testID}-value`, children: value })
|
|
3881
3962
|
] }),
|
|
3882
3963
|
copyControl === "icon" /* Icon */ ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3919,7 +4000,7 @@ var TILE_PAD = 12;
|
|
|
3919
4000
|
var TILE_RADIUS = 10;
|
|
3920
4001
|
var TILE_GAP = 2;
|
|
3921
4002
|
var ALERT_STEP = "500";
|
|
3922
|
-
var
|
|
4003
|
+
var styles47 = reactNative.StyleSheet.create({
|
|
3923
4004
|
tile: { padding: TILE_PAD, borderRadius: TILE_RADIUS, borderWidth: reactNative.StyleSheet.hairlineWidth, gap: TILE_GAP },
|
|
3924
4005
|
label: { fontSize: LABEL_SIZE2, fontWeight: "600" },
|
|
3925
4006
|
value: { fontSize: VALUE_SIZE2, fontWeight: "700" },
|
|
@@ -3933,19 +4014,19 @@ var TotalsStrip = ({ items, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT, testID }) =
|
|
|
3933
4014
|
return /* @__PURE__ */ jsxRuntime.jsx(FigureStrip, { testID, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3934
4015
|
reactNative.View,
|
|
3935
4016
|
{
|
|
3936
|
-
style: [
|
|
4017
|
+
style: [styles47.tile, figureCell(wide), { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
|
|
3937
4018
|
testID: `${testID}-${item.key}`,
|
|
3938
4019
|
children: [
|
|
3939
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4020
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles47.label, { color: colors.textSecondary }], children: item.label }),
|
|
3940
4021
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3941
4022
|
reactNative.Text,
|
|
3942
4023
|
{
|
|
3943
|
-
style: [
|
|
4024
|
+
style: [styles47.value, { color: item.tone === "alert" /* Alert */ ? theme.semantic.error[ALERT_STEP] : colors.text }],
|
|
3944
4025
|
testID: `${testID}-${item.key}-value`,
|
|
3945
4026
|
children: item.value
|
|
3946
4027
|
}
|
|
3947
4028
|
),
|
|
3948
|
-
item.caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4029
|
+
item.caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles47.caption, { color: colors.textSecondary }], children: item.caption })
|
|
3949
4030
|
]
|
|
3950
4031
|
},
|
|
3951
4032
|
item.key
|
|
@@ -4005,6 +4086,7 @@ exports.CopyValueRow = CopyValueRow;
|
|
|
4005
4086
|
exports.CopyableId = CopyableId;
|
|
4006
4087
|
exports.CountBadge = CountBadge;
|
|
4007
4088
|
exports.DEFAULT_BILLING_ROUTE = DEFAULT_BILLING_ROUTE;
|
|
4089
|
+
exports.DayBadgeFill = DayBadgeFill;
|
|
4008
4090
|
exports.DayCard = DayCard;
|
|
4009
4091
|
exports.DropdownVariant = DropdownVariant;
|
|
4010
4092
|
exports.ELLIPSIS = ELLIPSIS;
|
|
@@ -4025,10 +4107,12 @@ exports.Modal = Modal;
|
|
|
4025
4107
|
exports.ModalDropdown = ModalDropdown;
|
|
4026
4108
|
exports.ModalShell = ModalShell;
|
|
4027
4109
|
exports.PageFrame = PageFrame;
|
|
4110
|
+
exports.PageHead = PageHead;
|
|
4028
4111
|
exports.RecordActionButton = RecordActionButton;
|
|
4029
4112
|
exports.RecordHeader = RecordHeader;
|
|
4030
4113
|
exports.RowSelectedStyle = RowSelectedStyle;
|
|
4031
4114
|
exports.SECTION_INDEX_BREAKPOINT = SECTION_INDEX_BREAKPOINT;
|
|
4115
|
+
exports.SECTION_INDEX_WIDTH = SECTION_INDEX_WIDTH;
|
|
4032
4116
|
exports.ScreenColumn = ScreenColumn;
|
|
4033
4117
|
exports.Section = Section;
|
|
4034
4118
|
exports.SectionChips = SectionChips;
|
|
@@ -4042,6 +4126,7 @@ exports.SideSheet = SideSheet;
|
|
|
4042
4126
|
exports.SplitLayout = SplitLayout;
|
|
4043
4127
|
exports.SplitPanes = SplitPanes;
|
|
4044
4128
|
exports.StatusBadge = StatusBadge;
|
|
4129
|
+
exports.StickyActionBar = StickyActionBar;
|
|
4045
4130
|
exports.StickyPreview = StickyPreview;
|
|
4046
4131
|
exports.TYPE_SCALE_BREAKPOINT = TYPE_SCALE_BREAKPOINT;
|
|
4047
4132
|
exports.Tabs = Tabs;
|
|
@@ -4072,6 +4157,7 @@ exports.pageScale = pageScale;
|
|
|
4072
4157
|
exports.resolveActiveKey = resolveActiveKey;
|
|
4073
4158
|
exports.resolveListDetailPanes = resolveListDetailPanes;
|
|
4074
4159
|
exports.resolveRowLook = resolveRowLook;
|
|
4160
|
+
exports.resolveTintColors = resolveTintColors;
|
|
4075
4161
|
exports.resolveToneColors = resolveToneColors;
|
|
4076
4162
|
exports.rowSelection = rowSelection;
|
|
4077
4163
|
exports.scaledFrame = scaledFrame;
|