@dloizides/ui-layout 1.53.0 → 1.55.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/CHANGELOG.md +4 -0
- package/dist/index.d.mts +52 -6
- package/dist/index.d.ts +52 -6
- package/dist/index.js +158 -69
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +155 -71
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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,69 @@ 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
|
+
accessibilityHint,
|
|
3566
|
+
children,
|
|
3567
|
+
breakpoint = LAYOUT_COLLAPSE_BREAKPOINT,
|
|
3568
|
+
bottomInset = 0,
|
|
3569
|
+
testID = LAYOUT_TEST_IDS.stickyActionBar
|
|
3570
|
+
}) => {
|
|
3571
|
+
const wide = useIsWideViewport(breakpoint);
|
|
3572
|
+
const { colors } = uiFeedback.useUi().theme;
|
|
3573
|
+
if (wide) return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, role: "toolbar", style: styles34.inline, testID, children });
|
|
3574
|
+
const surface = { backgroundColor: colors.surface, borderTopColor: colors.border };
|
|
3575
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, role: "toolbar", style: [styles34.bar, surface, stickyEdgeStyle(reactNative.Platform.OS, bottomInset)], testID, children });
|
|
3576
|
+
};
|
|
3577
|
+
var TITLE_BASIS = 280;
|
|
3578
|
+
var styles35 = reactNative.StyleSheet.create({
|
|
3579
|
+
row: { flexDirection: "row", flexWrap: "wrap", alignItems: "flex-start", justifyContent: "space-between", gap: 12 },
|
|
3580
|
+
text: { gap: 4, flexGrow: 1, flexShrink: 1, flexBasis: TITLE_BASIS, minWidth: 0 },
|
|
3581
|
+
title: { fontSize: 24, fontWeight: "800" },
|
|
3582
|
+
actions: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 8, maxWidth: "100%" }
|
|
3583
|
+
});
|
|
3584
|
+
function hasContent(node) {
|
|
3585
|
+
return node !== void 0 && node !== null && node !== false;
|
|
3586
|
+
}
|
|
3587
|
+
var PageHead = ({ title, subtitle, actions, initialFocus = false, testID = LAYOUT_TEST_IDS.pageHead }) => {
|
|
3588
|
+
const { colors } = uiFeedback.useUi().theme;
|
|
3589
|
+
const titleRef = rnWebHooks.useInitialFocus();
|
|
3590
|
+
const focusProps = initialFocus ? { ref: titleRef, ...rnWebHooks.INITIAL_FOCUS_PROPS } : {};
|
|
3591
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles35.row, testID, children: [
|
|
3592
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles35.text, children: [
|
|
3593
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { ...focusProps, accessibilityRole: "header", style: [styles35.title, { color: colors.text }], testID: `${testID}-title`, children: title }),
|
|
3594
|
+
subtitle
|
|
3595
|
+
] }),
|
|
3596
|
+
hasContent(actions) ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles35.actions, testID: `${testID}-actions`, children: actions }) : null
|
|
3597
|
+
] });
|
|
3598
|
+
};
|
|
3599
|
+
var styles36 = reactNative.StyleSheet.create({
|
|
3516
3600
|
entry: { borderLeftWidth: 2, gap: 4, paddingBottom: 12, paddingLeft: 12 },
|
|
3517
3601
|
head: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: 8 },
|
|
3518
3602
|
time: { fontSize: 13 },
|
|
@@ -3527,12 +3611,12 @@ var Timeline = ({ entries, accessibilityLabel, accessibilityHint, testID }) => {
|
|
|
3527
3611
|
accessibilityHint: entry.accessibilityHint,
|
|
3528
3612
|
accessibilityLabel: entry.accessibilityLabel,
|
|
3529
3613
|
role: "listitem",
|
|
3530
|
-
style: [
|
|
3614
|
+
style: [styles36.entry, { borderLeftColor: colors.border }],
|
|
3531
3615
|
testID: entryTestId(testID, entry.key),
|
|
3532
3616
|
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: [
|
|
3617
|
+
entry.time === "" ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles36.time, { color: colors.textSecondary }], children: entry.time }),
|
|
3618
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles36.head, children: [
|
|
3619
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles36.title, { color: colors.text }], children: entry.title }),
|
|
3536
3620
|
entry.status === void 0 || entry.status === "" ? null : /* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { label: entry.status, tone: entry.tone ?? "neutral" /* Neutral */ })
|
|
3537
3621
|
] })
|
|
3538
3622
|
]
|
|
@@ -3547,7 +3631,7 @@ function isRecordHeaderCompact(width, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT) {
|
|
|
3547
3631
|
}
|
|
3548
3632
|
var GAP2 = 8;
|
|
3549
3633
|
var WIDE_GAP = 16;
|
|
3550
|
-
var
|
|
3634
|
+
var styles37 = reactNative.StyleSheet.create({
|
|
3551
3635
|
actions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end" },
|
|
3552
3636
|
compactActions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2 },
|
|
3553
3637
|
identity: { flex: 1, gap: GAP2, minWidth: 0 },
|
|
@@ -3556,9 +3640,9 @@ var styles35 = reactNative.StyleSheet.create({
|
|
|
3556
3640
|
});
|
|
3557
3641
|
var RecordHeader = ({ breadcrumb, title, meta, actions, collapseBelow, testID }) => {
|
|
3558
3642
|
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:
|
|
3643
|
+
const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: compact ? styles37.compactActions : styles37.actions, children: actions });
|
|
3644
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles37.root, testID, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: compact ? styles37.root : styles37.top, children: [
|
|
3645
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles37.identity, children: [
|
|
3562
3646
|
breadcrumb,
|
|
3563
3647
|
title,
|
|
3564
3648
|
meta
|
|
@@ -3570,7 +3654,7 @@ var FONT_SIZE = 13;
|
|
|
3570
3654
|
var GAP3 = 6;
|
|
3571
3655
|
var SEPARATOR = "\u203A";
|
|
3572
3656
|
var BACK = "\u2039";
|
|
3573
|
-
var
|
|
3657
|
+
var styles38 = reactNative.StyleSheet.create({
|
|
3574
3658
|
link: { justifyContent: "center", minHeight: MIN_TARGET_PX },
|
|
3575
3659
|
row: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP3 },
|
|
3576
3660
|
text: { fontSize: FONT_SIZE, fontWeight: "500" }
|
|
@@ -3578,11 +3662,11 @@ var styles36 = reactNative.StyleSheet.create({
|
|
|
3578
3662
|
var Breadcrumb = ({ items, accessibilityLabel, accessibilityHint, testID }) => {
|
|
3579
3663
|
const { theme } = uiFeedback.useUi();
|
|
3580
3664
|
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: [
|
|
3665
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityHint, "aria-label": accessibilityLabel, style: styles38.row, testID, children: [
|
|
3666
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles38.text, muted], children: BACK }),
|
|
3583
3667
|
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: [
|
|
3668
|
+
index > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles38.text, muted], children: SEPARATOR }) : null,
|
|
3669
|
+
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
3670
|
] }, item.key))
|
|
3587
3671
|
] });
|
|
3588
3672
|
};
|
|
@@ -3591,7 +3675,7 @@ var PAD_H2 = 12;
|
|
|
3591
3675
|
var GAP4 = 6;
|
|
3592
3676
|
var FONT_SIZE2 = 13;
|
|
3593
3677
|
var DISABLED_OPACITY2 = 0.55;
|
|
3594
|
-
var
|
|
3678
|
+
var styles39 = reactNative.StyleSheet.create({
|
|
3595
3679
|
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
3680
|
disabled: { borderStyle: "dashed", opacity: DISABLED_OPACITY2 },
|
|
3597
3681
|
text: { fontSize: FONT_SIZE2, fontWeight: "600" }
|
|
@@ -3618,12 +3702,12 @@ var RecordActionButton = ({ label, hint, testID, icon, onPress, iconOnly = false
|
|
|
3618
3702
|
accessibilityRole: "button",
|
|
3619
3703
|
accessibilityState: { disabled },
|
|
3620
3704
|
disabled,
|
|
3621
|
-
style: [
|
|
3705
|
+
style: [styles39.base, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }, disabled && styles39.disabled],
|
|
3622
3706
|
testID,
|
|
3623
3707
|
onPress,
|
|
3624
3708
|
children: [
|
|
3625
3709
|
icon === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }),
|
|
3626
|
-
showLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
3710
|
+
showLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles39.text, { color: theme.colors.text }], children: label }) : null
|
|
3627
3711
|
]
|
|
3628
3712
|
}
|
|
3629
3713
|
);
|
|
@@ -3635,7 +3719,7 @@ var FONT_SIZE3 = 12;
|
|
|
3635
3719
|
var COPY_GLYPH = "\u29C9";
|
|
3636
3720
|
var COPIED_GLYPH = "\u2713";
|
|
3637
3721
|
var MONO = reactNative.Platform.select({ web: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", default: "monospace" });
|
|
3638
|
-
var
|
|
3722
|
+
var styles40 = reactNative.StyleSheet.create({
|
|
3639
3723
|
chip: { alignItems: "center", alignSelf: "flex-start", borderRadius: RADIUS2, borderWidth: 1, flexDirection: "row", gap: GAP5, maxWidth: "100%", minHeight: MIN_TARGET_PX, paddingHorizontal: PAD_H3 },
|
|
3640
3724
|
text: { flexShrink: 1, fontFamily: MONO, fontSize: FONT_SIZE3 }
|
|
3641
3725
|
});
|
|
@@ -3652,24 +3736,24 @@ var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, dis
|
|
|
3652
3736
|
accessibilityRole: "button",
|
|
3653
3737
|
accessibilityState: { disabled: !copyable },
|
|
3654
3738
|
disabled: !copyable,
|
|
3655
|
-
style: [
|
|
3739
|
+
style: [styles40.chip, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }],
|
|
3656
3740
|
testID,
|
|
3657
3741
|
onPress: copyable ? copy : void 0,
|
|
3658
3742
|
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: [
|
|
3743
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.text, { color: theme.colors.textSecondary }], children: label }),
|
|
3744
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles40.text, ink], testID: valueTestID, children: display ?? value }),
|
|
3745
|
+
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
3746
|
]
|
|
3663
3747
|
}
|
|
3664
3748
|
);
|
|
3665
3749
|
};
|
|
3666
3750
|
var STEP_WIDTH = 8;
|
|
3667
3751
|
var STEP_OPACITIES = [0.35, 0.65, 0.9];
|
|
3668
|
-
var
|
|
3752
|
+
var styles41 = reactNative.StyleSheet.create({
|
|
3669
3753
|
fade: { bottom: 0, flexDirection: "row", position: "absolute", right: 0, top: 0 },
|
|
3670
3754
|
step: { width: STEP_WIDTH }
|
|
3671
3755
|
});
|
|
3672
|
-
var EdgeFadeStrip = ({ color }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, pointerEvents: "none", style:
|
|
3756
|
+
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
3757
|
var SLACK_PX = 1;
|
|
3674
3758
|
function showsEdgeFade({ contentWidth, viewportWidth, offset }) {
|
|
3675
3759
|
return contentWidth - viewportWidth - offset > SLACK_PX;
|
|
@@ -3696,7 +3780,7 @@ var COUNT_FONT = 12;
|
|
|
3696
3780
|
var COUNT_MIN = 22;
|
|
3697
3781
|
var COUNT_PAD = 6;
|
|
3698
3782
|
var PILL = 999;
|
|
3699
|
-
var
|
|
3783
|
+
var styles42 = reactNative.StyleSheet.create({
|
|
3700
3784
|
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
3785
|
chipCount: { fontSize: FONT_SIZE4, fontWeight: "700" },
|
|
3702
3786
|
count: { borderRadius: PILL, fontSize: COUNT_FONT, fontWeight: "700", minWidth: COUNT_MIN, paddingHorizontal: COUNT_PAD, textAlign: "center" },
|
|
@@ -3719,18 +3803,18 @@ var TabPressable = ({ tab, selected, onChange, style, children }) => /* @__PURE_
|
|
|
3719
3803
|
);
|
|
3720
3804
|
var UnderlineTabItem = ({ underline, ...item }) => {
|
|
3721
3805
|
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: [
|
|
3806
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [styles42.tab, { borderBottomColor: item.selected ? underline : "transparent" }], children: [
|
|
3807
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.label, { color: item.selected ? theme.colors.text : theme.colors.textSecondary }], children: item.tab.label }),
|
|
3808
|
+
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
3809
|
] });
|
|
3726
3810
|
};
|
|
3727
3811
|
var ChipTabItem = (item) => {
|
|
3728
3812
|
const { theme } = uiFeedback.useUi();
|
|
3729
3813
|
const fill = item.selected ? theme.colors.text : "transparent";
|
|
3730
3814
|
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: [
|
|
3815
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [styles42.chip, { backgroundColor: fill, borderColor: item.selected ? theme.colors.text : theme.colors.border }], children: [
|
|
3816
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.label, { color: ink }], children: item.tab.label }),
|
|
3817
|
+
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.chipCount, { color: ink }], children: String(item.tab.count) })
|
|
3734
3818
|
] });
|
|
3735
3819
|
};
|
|
3736
3820
|
|
|
@@ -3744,7 +3828,7 @@ var DEFAULT_UNDERLINE_STEP = "700";
|
|
|
3744
3828
|
var SCROLL_THROTTLE_MS = 16;
|
|
3745
3829
|
var CHIP_GAP = 8;
|
|
3746
3830
|
var CHIP_PAD_V = 4;
|
|
3747
|
-
var
|
|
3831
|
+
var styles43 = reactNative.StyleSheet.create({
|
|
3748
3832
|
chipRow: { alignItems: "center", flexDirection: "row", gap: CHIP_GAP, paddingVertical: CHIP_PAD_V },
|
|
3749
3833
|
chipWrap: { flexWrap: "wrap" },
|
|
3750
3834
|
strip: { position: "relative", width: "100%" }
|
|
@@ -3758,12 +3842,12 @@ var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, accessibil
|
|
|
3758
3842
|
const item = { tab, selected: tab.key === activeKey, onChange };
|
|
3759
3843
|
return chips ? /* @__PURE__ */ jsxRuntime.jsx(ChipTabItem, { ...item }, tab.key) : /* @__PURE__ */ jsxRuntime.jsx(UnderlineTabItem, { ...item, underline }, tab.key);
|
|
3760
3844
|
});
|
|
3761
|
-
const stripStyle = chips ?
|
|
3845
|
+
const stripStyle = chips ? styles43.strip : [styles43.strip, { borderBottomColor: theme.colors.border, borderBottomWidth: 1 }];
|
|
3762
3846
|
if (chips && chipOverflow === "wrap" /* Wrap */) {
|
|
3763
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [
|
|
3847
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles43.chipRow, styles43.chipWrap], testID, children: items });
|
|
3764
3848
|
}
|
|
3765
3849
|
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 ?
|
|
3850
|
+
/* @__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
3851
|
fade.visible ? /* @__PURE__ */ jsxRuntime.jsx(EdgeFadeStrip, { color: fadeColor ?? theme.colors.background }) : null
|
|
3768
3852
|
] });
|
|
3769
3853
|
};
|
|
@@ -3771,7 +3855,7 @@ var RADIUS3 = 12;
|
|
|
3771
3855
|
var PAD = 16;
|
|
3772
3856
|
var GAP7 = 8;
|
|
3773
3857
|
var TITLE_FONT = 15;
|
|
3774
|
-
var
|
|
3858
|
+
var styles44 = reactNative.StyleSheet.create({
|
|
3775
3859
|
card: { borderRadius: RADIUS3, borderWidth: 1, gap: GAP7, minWidth: 0, padding: PAD },
|
|
3776
3860
|
footer: { alignItems: "flex-start", flexDirection: "row", flexWrap: "wrap", gap: GAP7 },
|
|
3777
3861
|
head: { alignItems: "center", flexDirection: "row", gap: GAP7 },
|
|
@@ -3779,14 +3863,14 @@ var styles42 = reactNative.StyleSheet.create({
|
|
|
3779
3863
|
});
|
|
3780
3864
|
var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
|
|
3781
3865
|
const { theme } = uiFeedback.useUi();
|
|
3782
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
3783
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
3866
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles44.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
|
|
3867
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles44.head, children: [
|
|
3784
3868
|
icon === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }),
|
|
3785
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [
|
|
3869
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles44.title, { color: theme.colors.text }], children: title }),
|
|
3786
3870
|
headerRight
|
|
3787
3871
|
] }),
|
|
3788
3872
|
children,
|
|
3789
|
-
footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3873
|
+
footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles44.footer, children: footer })
|
|
3790
3874
|
] });
|
|
3791
3875
|
};
|
|
3792
3876
|
var LEAD_LABEL_SIZE = 14;
|
|
@@ -3798,7 +3882,7 @@ var GAP8 = 12;
|
|
|
3798
3882
|
var LEAD_GAP = 4;
|
|
3799
3883
|
var LEAD_BORDER = 1.5;
|
|
3800
3884
|
var ACCENT_STEP = "500";
|
|
3801
|
-
var
|
|
3885
|
+
var styles45 = reactNative.StyleSheet.create({
|
|
3802
3886
|
slip: { gap: GAP8, width: "100%" },
|
|
3803
3887
|
lead: { padding: LEAD_PAD, borderRadius: LEAD_RADIUS, borderWidth: LEAD_BORDER, gap: LEAD_GAP },
|
|
3804
3888
|
leadLabel: { fontSize: LEAD_LABEL_SIZE },
|
|
@@ -3810,13 +3894,13 @@ var TransferSlip = ({ leadLabel, amount, recipient, children, footer, testID })
|
|
|
3810
3894
|
const { theme } = uiFeedback.useUi();
|
|
3811
3895
|
const { colors } = theme;
|
|
3812
3896
|
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: [
|
|
3897
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles45.slip, testID, children: [
|
|
3898
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles45.lead, { borderColor: accent, backgroundColor: colors.surface }], testID: `${testID}-lead`, children: [
|
|
3899
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles45.leadLabel, { color: colors.textSecondary }], children: leadLabel }),
|
|
3900
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles45.amount, { color: colors.text }], testID: `${testID}-amount`, children: amount }),
|
|
3901
|
+
recipient !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles45.recipient, { color: colors.text }], children: recipient })
|
|
3818
3902
|
] }),
|
|
3819
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
3903
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles45.rows, children }),
|
|
3820
3904
|
footer
|
|
3821
3905
|
] });
|
|
3822
3906
|
};
|
|
@@ -3849,7 +3933,7 @@ var STACK_GAP = 8;
|
|
|
3849
3933
|
var ROW_PAD = 10;
|
|
3850
3934
|
var TEXT_GAP = 2;
|
|
3851
3935
|
var MONO_SPACING = 1;
|
|
3852
|
-
var
|
|
3936
|
+
var styles46 = reactNative.StyleSheet.create({
|
|
3853
3937
|
inline: { flexDirection: "row", alignItems: "center", gap: ROW_GAP3, paddingVertical: ROW_PAD, borderTopWidth: reactNative.StyleSheet.hairlineWidth },
|
|
3854
3938
|
prominent: { gap: STACK_GAP, paddingVertical: ROW_PAD },
|
|
3855
3939
|
text: { flex: 1, minWidth: 0, gap: TEXT_GAP },
|
|
@@ -3873,10 +3957,10 @@ var CopyValueRow = ({
|
|
|
3873
3957
|
const { status, copy } = useCopyToClipboard(copyValue ?? value, writer);
|
|
3874
3958
|
const action = copyActionLabel(status, labels);
|
|
3875
3959
|
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: [
|
|
3960
|
+
const valueStyle = prominent || monospace ? styles46.big : styles46.value;
|
|
3961
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: prominent ? styles46.prominent : [styles46.inline, { borderTopColor: colors.border }], testID, children: [
|
|
3962
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles46.text, children: [
|
|
3963
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles46.label, { color: colors.textSecondary }], children: label }),
|
|
3880
3964
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { selectable: true, style: [valueStyle, { color: colors.text }], testID: `${testID}-value`, children: value })
|
|
3881
3965
|
] }),
|
|
3882
3966
|
copyControl === "icon" /* Icon */ ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3919,7 +4003,7 @@ var TILE_PAD = 12;
|
|
|
3919
4003
|
var TILE_RADIUS = 10;
|
|
3920
4004
|
var TILE_GAP = 2;
|
|
3921
4005
|
var ALERT_STEP = "500";
|
|
3922
|
-
var
|
|
4006
|
+
var styles47 = reactNative.StyleSheet.create({
|
|
3923
4007
|
tile: { padding: TILE_PAD, borderRadius: TILE_RADIUS, borderWidth: reactNative.StyleSheet.hairlineWidth, gap: TILE_GAP },
|
|
3924
4008
|
label: { fontSize: LABEL_SIZE2, fontWeight: "600" },
|
|
3925
4009
|
value: { fontSize: VALUE_SIZE2, fontWeight: "700" },
|
|
@@ -3933,19 +4017,19 @@ var TotalsStrip = ({ items, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT, testID }) =
|
|
|
3933
4017
|
return /* @__PURE__ */ jsxRuntime.jsx(FigureStrip, { testID, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3934
4018
|
reactNative.View,
|
|
3935
4019
|
{
|
|
3936
|
-
style: [
|
|
4020
|
+
style: [styles47.tile, figureCell(wide), { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
|
|
3937
4021
|
testID: `${testID}-${item.key}`,
|
|
3938
4022
|
children: [
|
|
3939
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4023
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles47.label, { color: colors.textSecondary }], children: item.label }),
|
|
3940
4024
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3941
4025
|
reactNative.Text,
|
|
3942
4026
|
{
|
|
3943
|
-
style: [
|
|
4027
|
+
style: [styles47.value, { color: item.tone === "alert" /* Alert */ ? theme.semantic.error[ALERT_STEP] : colors.text }],
|
|
3944
4028
|
testID: `${testID}-${item.key}-value`,
|
|
3945
4029
|
children: item.value
|
|
3946
4030
|
}
|
|
3947
4031
|
),
|
|
3948
|
-
item.caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4032
|
+
item.caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles47.caption, { color: colors.textSecondary }], children: item.caption })
|
|
3949
4033
|
]
|
|
3950
4034
|
},
|
|
3951
4035
|
item.key
|
|
@@ -4005,6 +4089,7 @@ exports.CopyValueRow = CopyValueRow;
|
|
|
4005
4089
|
exports.CopyableId = CopyableId;
|
|
4006
4090
|
exports.CountBadge = CountBadge;
|
|
4007
4091
|
exports.DEFAULT_BILLING_ROUTE = DEFAULT_BILLING_ROUTE;
|
|
4092
|
+
exports.DayBadgeFill = DayBadgeFill;
|
|
4008
4093
|
exports.DayCard = DayCard;
|
|
4009
4094
|
exports.DropdownVariant = DropdownVariant;
|
|
4010
4095
|
exports.ELLIPSIS = ELLIPSIS;
|
|
@@ -4025,10 +4110,12 @@ exports.Modal = Modal;
|
|
|
4025
4110
|
exports.ModalDropdown = ModalDropdown;
|
|
4026
4111
|
exports.ModalShell = ModalShell;
|
|
4027
4112
|
exports.PageFrame = PageFrame;
|
|
4113
|
+
exports.PageHead = PageHead;
|
|
4028
4114
|
exports.RecordActionButton = RecordActionButton;
|
|
4029
4115
|
exports.RecordHeader = RecordHeader;
|
|
4030
4116
|
exports.RowSelectedStyle = RowSelectedStyle;
|
|
4031
4117
|
exports.SECTION_INDEX_BREAKPOINT = SECTION_INDEX_BREAKPOINT;
|
|
4118
|
+
exports.SECTION_INDEX_WIDTH = SECTION_INDEX_WIDTH;
|
|
4032
4119
|
exports.ScreenColumn = ScreenColumn;
|
|
4033
4120
|
exports.Section = Section;
|
|
4034
4121
|
exports.SectionChips = SectionChips;
|
|
@@ -4042,6 +4129,7 @@ exports.SideSheet = SideSheet;
|
|
|
4042
4129
|
exports.SplitLayout = SplitLayout;
|
|
4043
4130
|
exports.SplitPanes = SplitPanes;
|
|
4044
4131
|
exports.StatusBadge = StatusBadge;
|
|
4132
|
+
exports.StickyActionBar = StickyActionBar;
|
|
4045
4133
|
exports.StickyPreview = StickyPreview;
|
|
4046
4134
|
exports.TYPE_SCALE_BREAKPOINT = TYPE_SCALE_BREAKPOINT;
|
|
4047
4135
|
exports.Tabs = Tabs;
|
|
@@ -4072,6 +4160,7 @@ exports.pageScale = pageScale;
|
|
|
4072
4160
|
exports.resolveActiveKey = resolveActiveKey;
|
|
4073
4161
|
exports.resolveListDetailPanes = resolveListDetailPanes;
|
|
4074
4162
|
exports.resolveRowLook = resolveRowLook;
|
|
4163
|
+
exports.resolveTintColors = resolveTintColors;
|
|
4075
4164
|
exports.resolveToneColors = resolveToneColors;
|
|
4076
4165
|
exports.rowSelection = rowSelection;
|
|
4077
4166
|
exports.scaledFrame = scaledFrame;
|