@dloizides/ui-layout 1.66.0 → 1.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -963,36 +963,53 @@ var PageFrame = ({
963
963
  var SegmentedVariant = /* @__PURE__ */ ((SegmentedVariant2) => {
964
964
  SegmentedVariant2["Raised"] = "raised";
965
965
  SegmentedVariant2["Filled"] = "filled";
966
+ SegmentedVariant2["Boxed"] = "boxed";
966
967
  return SegmentedVariant2;
967
968
  })(SegmentedVariant || {});
968
969
 
969
970
  // src/SegmentedControl/segmentLook.ts
970
971
  var FILLED_RADIUS = 10;
971
972
  var FILLED_PAD_V = 12;
973
+ var BOXED_RADIUS = 10;
974
+ var BOXED_PAD = 3;
975
+ var BOXED_GAP = 2;
976
+ var BOXED_SEGMENT_RADIUS = 7;
977
+ var BOXED_PAD_V = 6;
978
+ var BOXED_PAD_H = 12;
979
+ var BOXED_FONT = 13;
972
980
  var TRANSPARENT = "transparent";
973
981
  var styles10 = StyleSheet.create({
974
982
  filledTrack: { borderRadius: FILLED_RADIUS, padding: 0, gap: 0, overflow: "hidden" },
975
983
  filledSegment: { borderRadius: 0, paddingVertical: FILLED_PAD_V },
984
+ boxedTrack: { borderRadius: BOXED_RADIUS, padding: BOXED_PAD, gap: BOXED_GAP },
985
+ boxedSegment: { borderRadius: BOXED_SEGMENT_RADIUS, paddingVertical: BOXED_PAD_V, paddingHorizontal: BOXED_PAD_H },
986
+ boxedLabel: { fontSize: BOXED_FONT },
976
987
  stretchTrack: { alignSelf: "stretch" },
977
988
  stretchSegment: { flex: 1 }
978
989
  });
979
990
  function segmentLook(variant, selected, colors, selectedColor) {
980
991
  if (!selected) return { fill: TRANSPARENT, ink: colors.textSecondary };
981
992
  if (variant === "filled" /* Filled */) return { fill: selectedColor ?? colors.text, ink: colors.surface };
993
+ if (variant === "boxed" /* Boxed */) return { fill: selectedColor ?? colors.surface, ink: colors.text };
982
994
  return { fill: colors.surface, ink: colors.text };
983
995
  }
984
996
  function trackShape(variant, stretch) {
985
997
  const shape = [];
986
998
  if (variant === "filled" /* Filled */) shape.push(styles10.filledTrack);
999
+ if (variant === "boxed" /* Boxed */) shape.push(styles10.boxedTrack);
987
1000
  if (stretch) shape.push(styles10.stretchTrack);
988
1001
  return shape;
989
1002
  }
990
1003
  function segmentShape(variant, stretch) {
991
1004
  const shape = [];
992
1005
  if (variant === "filled" /* Filled */) shape.push(styles10.filledSegment);
1006
+ if (variant === "boxed" /* Boxed */) shape.push(styles10.boxedSegment);
993
1007
  if (stretch) shape.push(styles10.stretchSegment);
994
1008
  return shape;
995
1009
  }
1010
+ function labelShape(variant) {
1011
+ return variant === "boxed" /* Boxed */ ? [styles10.boxedLabel] : [];
1012
+ }
996
1013
  var TRACK_PADDING = 3;
997
1014
  var TRACK_RADIUS = 999;
998
1015
  var SEGMENT_RADIUS = 999;
@@ -1080,7 +1097,7 @@ function SegmentedControl({
1080
1097
  ],
1081
1098
  testID: opt.testID,
1082
1099
  ...ariaSelectedProps(selected),
1083
- children: /* @__PURE__ */ jsx(Text, { style: [styles11.label, { color: look.ink }], children: opt.label })
1100
+ children: /* @__PURE__ */ jsx(Text, { style: [styles11.label, ...labelShape(variant), { color: look.ink }], children: opt.label })
1084
1101
  },
1085
1102
  opt.value
1086
1103
  );
@@ -2522,10 +2539,10 @@ function useAccordionContext() {
2522
2539
  }
2523
2540
  return value;
2524
2541
  }
2525
- var BOXED_GAP = 12;
2542
+ var BOXED_GAP2 = 12;
2526
2543
  var styles22 = StyleSheet.create({
2527
2544
  container: { alignSelf: "stretch" },
2528
- boxed: { gap: BOXED_GAP }
2545
+ boxed: { gap: BOXED_GAP2 }
2529
2546
  });
2530
2547
  function computeInitialOpen(children, defaultOpenIds, allowMultiple) {
2531
2548
  const ids = new Set(defaultOpenIds ?? []);
@@ -3333,6 +3350,7 @@ var ListRow = ({
3333
3350
  meta,
3334
3351
  badges,
3335
3352
  after,
3353
+ divider = true,
3336
3354
  selected,
3337
3355
  selectedStyle = "surface" /* Surface */,
3338
3356
  onPress,
@@ -3357,7 +3375,7 @@ var ListRow = ({
3357
3375
  style: (state) => {
3358
3376
  const { pressed, hovered } = state;
3359
3377
  const look = resolveRowLook(selectedStyle, { selected, pressed, focused, hovered: hovered === true }, palette);
3360
- return [styles28.row, { borderTopColor: colors.border }, look.container];
3378
+ return [styles28.row, { borderTopColor: colors.border, borderTopWidth: divider ? 1 : 0 }, look.container];
3361
3379
  },
3362
3380
  testID,
3363
3381
  onBlur: () => {
@@ -3901,16 +3919,20 @@ function isRecordHeaderCompact(width, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT) {
3901
3919
  }
3902
3920
  var GAP2 = 8;
3903
3921
  var WIDE_GAP = 16;
3922
+ var ACTIONS_MAX_SHARE = "60%";
3904
3923
  var styles38 = StyleSheet.create({
3905
- actions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end" },
3924
+ actions: { alignItems: "center", flexDirection: "row", flexShrink: 1, flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end", maxWidth: ACTIONS_MAX_SHARE },
3906
3925
  compactActions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2 },
3907
3926
  identity: { flex: 1, gap: GAP2, minWidth: 0 },
3908
3927
  root: { gap: GAP2 },
3909
3928
  top: { alignItems: "flex-start", flexDirection: "row", gap: WIDE_GAP }
3910
3929
  });
3930
+ function actionsStyleOf(compact) {
3931
+ return compact ? styles38.compactActions : styles38.actions;
3932
+ }
3911
3933
  var RecordHeader = ({ breadcrumb, title, meta, actions, collapseBelow, testID }) => {
3912
3934
  const compact = isRecordHeaderCompact(useWindowDimensions().width, collapseBelow);
3913
- const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsx(View, { style: compact ? styles38.compactActions : styles38.actions, children: actions });
3935
+ const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsx(View, { style: actionsStyleOf(compact), children: actions });
3914
3936
  return /* @__PURE__ */ jsx(View, { style: styles38.root, testID, children: /* @__PURE__ */ jsxs(View, { style: compact ? styles38.root : styles38.top, children: [
3915
3937
  /* @__PURE__ */ jsxs(View, { style: styles38.identity, children: [
3916
3938
  breadcrumb,
@@ -3982,6 +4004,14 @@ var RecordActionButton = ({ label, hint, testID, icon, onPress, iconOnly = false
3982
4004
  }
3983
4005
  );
3984
4006
  };
4007
+
4008
+ // src/CopyableId/IdEllipsis.ts
4009
+ var IdEllipsis = /* @__PURE__ */ ((IdEllipsis2) => {
4010
+ IdEllipsis2["Head"] = "head";
4011
+ IdEllipsis2["Middle"] = "middle";
4012
+ IdEllipsis2["Tail"] = "tail";
4013
+ return IdEllipsis2;
4014
+ })(IdEllipsis || {});
3985
4015
  var RADIUS2 = 6;
3986
4016
  var PAD_H3 = 10;
3987
4017
  var GAP5 = 6;
@@ -3991,9 +4021,10 @@ var COPIED_GLYPH = "\u2713";
3991
4021
  var MONO = Platform.select({ web: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", default: "monospace" });
3992
4022
  var styles41 = StyleSheet.create({
3993
4023
  chip: { alignItems: "center", alignSelf: "flex-start", borderRadius: RADIUS2, borderWidth: 1, flexDirection: "row", gap: GAP5, maxWidth: "100%", minHeight: MIN_TARGET_PX, paddingHorizontal: PAD_H3 },
3994
- text: { flexShrink: 1, fontFamily: MONO, fontSize: FONT_SIZE3 }
4024
+ text: { flexShrink: 1, fontFamily: MONO, fontSize: FONT_SIZE3 },
4025
+ fixed: { flexShrink: 0, fontFamily: MONO, fontSize: FONT_SIZE3 }
3995
4026
  });
3996
- var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer }) => {
4027
+ var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer, width, ellipsis = "tail" /* Tail */ }) => {
3997
4028
  const { theme } = useUi();
3998
4029
  const copyable = value !== null && value !== "";
3999
4030
  const { status, copy } = useCopyToClipboard(value ?? "", writer);
@@ -4006,24 +4037,33 @@ var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, dis
4006
4037
  accessibilityRole: "button",
4007
4038
  accessibilityState: { disabled: !copyable },
4008
4039
  disabled: !copyable,
4009
- style: [styles41.chip, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }],
4040
+ style: [styles41.chip, width === void 0 ? null : { width }, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }],
4010
4041
  testID,
4011
4042
  onPress: copyable ? copy : void 0,
4012
4043
  children: [
4013
- /* @__PURE__ */ jsx(Text, { style: [styles41.text, { color: theme.colors.textSecondary }], children: label }),
4014
- /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles41.text, ink], testID: valueTestID, children: display ?? value }),
4015
- copyable ? /* @__PURE__ */ jsx(Text, { "aria-hidden": true, style: [styles41.text, ink], testID: `${testID}-glyph`, children: status === "copied" /* Copied */ ? COPIED_GLYPH : COPY_GLYPH }) : null
4044
+ /* @__PURE__ */ jsx(Text, { style: [styles41.fixed, { color: theme.colors.textSecondary }], children: label }),
4045
+ /* @__PURE__ */ jsx(Text, { ellipsizeMode: ellipsis, numberOfLines: 1, style: [styles41.text, ink], testID: valueTestID, children: display ?? value }),
4046
+ copyable ? /* @__PURE__ */ jsx(Text, { "aria-hidden": true, style: [styles41.fixed, ink], testID: `${testID}-glyph`, children: status === "copied" /* Copied */ ? COPIED_GLYPH : COPY_GLYPH }) : null
4016
4047
  ]
4017
4048
  }
4018
4049
  );
4019
4050
  };
4051
+ var TITLE_FONT = 15;
4052
+ var TITLE_GAP = 12;
4053
+ var styles42 = StyleSheet.create({
4054
+ title: { fontSize: TITLE_FONT, fontWeight: "700", marginBottom: TITLE_GAP }
4055
+ });
4056
+ var CardTitle = ({ label, testID }) => {
4057
+ const { theme } = useUi();
4058
+ return /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles42.title, { color: theme.colors.text }], testID, children: label });
4059
+ };
4020
4060
  var STEP_WIDTH = 8;
4021
4061
  var STEP_OPACITIES = [0.35, 0.65, 0.9];
4022
- var styles42 = StyleSheet.create({
4062
+ var styles43 = StyleSheet.create({
4023
4063
  fade: { bottom: 0, flexDirection: "row", position: "absolute", right: 0, top: 0 },
4024
4064
  step: { width: STEP_WIDTH }
4025
4065
  });
4026
- var EdgeFadeStrip = ({ color }) => /* @__PURE__ */ jsx(View, { "aria-hidden": true, pointerEvents: "none", style: styles42.fade, children: STEP_OPACITIES.map((opacity) => /* @__PURE__ */ jsx(View, { style: [styles42.step, { backgroundColor: color, opacity }] }, opacity)) });
4066
+ var EdgeFadeStrip = ({ color }) => /* @__PURE__ */ jsx(View, { "aria-hidden": true, pointerEvents: "none", style: styles43.fade, children: STEP_OPACITIES.map((opacity) => /* @__PURE__ */ jsx(View, { style: [styles43.step, { backgroundColor: color, opacity }] }, opacity)) });
4027
4067
  var SLACK_PX = 1;
4028
4068
  function showsEdgeFade({ contentWidth, viewportWidth, offset }) {
4029
4069
  return contentWidth - viewportWidth - offset > SLACK_PX;
@@ -4050,7 +4090,7 @@ var COUNT_FONT = 12;
4050
4090
  var COUNT_MIN = 22;
4051
4091
  var COUNT_PAD = 6;
4052
4092
  var PILL = 999;
4053
- var styles43 = StyleSheet.create({
4093
+ var styles44 = StyleSheet.create({
4054
4094
  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 },
4055
4095
  chipCount: { fontSize: FONT_SIZE4, fontWeight: "700" },
4056
4096
  count: { borderRadius: PILL, fontSize: COUNT_FONT, fontWeight: "700", minWidth: COUNT_MIN, paddingHorizontal: COUNT_PAD, textAlign: "center" },
@@ -4074,10 +4114,10 @@ var TabPressable = ({ tab, selected, onChange, style, children }) => /* @__PURE_
4074
4114
  var UnderlineTabItem = ({ underline, activeText, ...item }) => {
4075
4115
  const { theme } = useUi();
4076
4116
  const selectedInk = activeText ?? theme.colors.text;
4077
- return /* @__PURE__ */ jsxs(TabPressable, { ...item, style: [styles43.tab, { borderBottomColor: item.selected ? underline : "transparent" }], children: [
4117
+ return /* @__PURE__ */ jsxs(TabPressable, { ...item, style: [styles44.tab, { borderBottomColor: item.selected ? underline : "transparent" }], children: [
4078
4118
  item.tab.icon ?? null,
4079
- /* @__PURE__ */ jsx(Text, { style: [styles43.label, { color: item.selected ? selectedInk : theme.colors.textSecondary }], children: item.tab.label }),
4080
- item.tab.count === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [styles43.count, { backgroundColor: theme.colors.border, color: theme.colors.text }], children: String(item.tab.count) })
4119
+ /* @__PURE__ */ jsx(Text, { style: [styles44.label, { color: item.selected ? selectedInk : theme.colors.textSecondary }], children: item.tab.label }),
4120
+ item.tab.count === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [styles44.count, { backgroundColor: theme.colors.border, color: theme.colors.text }], children: String(item.tab.count) })
4081
4121
  ] });
4082
4122
  };
4083
4123
  var ChipTabItem = ({ activeFill, activeText, ...item }) => {
@@ -4085,9 +4125,9 @@ var ChipTabItem = ({ activeFill, activeText, ...item }) => {
4085
4125
  const selectedFill = activeFill ?? theme.colors.text;
4086
4126
  const fill = item.selected ? selectedFill : "transparent";
4087
4127
  const ink = item.selected ? activeText ?? theme.colors.background : theme.colors.text;
4088
- return /* @__PURE__ */ jsxs(TabPressable, { ...item, style: [styles43.chip, { backgroundColor: fill, borderColor: item.selected ? selectedFill : theme.colors.border }], children: [
4089
- /* @__PURE__ */ jsx(Text, { style: [styles43.label, { color: ink }], children: item.tab.label }),
4090
- item.tab.count === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [styles43.chipCount, { color: ink }], children: String(item.tab.count) })
4128
+ return /* @__PURE__ */ jsxs(TabPressable, { ...item, style: [styles44.chip, { backgroundColor: fill, borderColor: item.selected ? selectedFill : theme.colors.border }], children: [
4129
+ /* @__PURE__ */ jsx(Text, { style: [styles44.label, { color: ink }], children: item.tab.label }),
4130
+ item.tab.count === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [styles44.chipCount, { color: ink }], children: String(item.tab.count) })
4091
4131
  ] });
4092
4132
  };
4093
4133
 
@@ -4101,7 +4141,7 @@ var DEFAULT_UNDERLINE_STEP = "700";
4101
4141
  var SCROLL_THROTTLE_MS = 16;
4102
4142
  var CHIP_GAP = 8;
4103
4143
  var CHIP_PAD_V = 4;
4104
- var styles44 = StyleSheet.create({
4144
+ var styles45 = StyleSheet.create({
4105
4145
  chipRow: { alignItems: "center", flexDirection: "row", gap: CHIP_GAP, paddingVertical: CHIP_PAD_V },
4106
4146
  chipWrap: { flexWrap: "wrap" },
4107
4147
  strip: { position: "relative", width: "100%" }
@@ -4115,35 +4155,35 @@ var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, accessibil
4115
4155
  const item = { tab, selected: tab.key === activeKey, onChange, activeText: activeTextColor };
4116
4156
  return chips ? /* @__PURE__ */ jsx(ChipTabItem, { ...item, activeFill: activeFillColor }, tab.key) : /* @__PURE__ */ jsx(UnderlineTabItem, { ...item, underline }, tab.key);
4117
4157
  });
4118
- const stripStyle = chips ? styles44.strip : [styles44.strip, { borderBottomColor: theme.colors.border, borderBottomWidth: 1 }];
4158
+ const stripStyle = chips ? styles45.strip : [styles45.strip, { borderBottomColor: theme.colors.border, borderBottomWidth: 1 }];
4119
4159
  if (chips && chipOverflow === "wrap" /* Wrap */) {
4120
- return /* @__PURE__ */ jsx(View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles44.chipRow, styles44.chipWrap], testID, children: items });
4160
+ return /* @__PURE__ */ jsx(View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles45.chipRow, styles45.chipWrap], testID, children: items });
4121
4161
  }
4122
4162
  return /* @__PURE__ */ jsxs(View, { style: stripStyle, testID, children: [
4123
- /* @__PURE__ */ jsx(ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, contentContainerStyle: chips ? styles44.chipRow : void 0, scrollEventThrottle: SCROLL_THROTTLE_MS, showsHorizontalScrollIndicator: false, onContentSizeChange: fade.onContentSizeChange, onLayout: fade.onLayout, onScroll: fade.onScroll, children: items }),
4163
+ /* @__PURE__ */ jsx(ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, contentContainerStyle: chips ? styles45.chipRow : void 0, scrollEventThrottle: SCROLL_THROTTLE_MS, showsHorizontalScrollIndicator: false, onContentSizeChange: fade.onContentSizeChange, onLayout: fade.onLayout, onScroll: fade.onScroll, children: items }),
4124
4164
  fade.visible ? /* @__PURE__ */ jsx(EdgeFadeStrip, { color: fadeColor ?? theme.colors.background }) : null
4125
4165
  ] });
4126
4166
  };
4127
4167
  var RADIUS3 = 12;
4128
4168
  var PAD = 16;
4129
4169
  var GAP7 = 8;
4130
- var TITLE_FONT = 15;
4131
- var styles45 = StyleSheet.create({
4170
+ var TITLE_FONT2 = 15;
4171
+ var styles46 = StyleSheet.create({
4132
4172
  card: { borderRadius: RADIUS3, borderWidth: 1, gap: GAP7, minWidth: 0, padding: PAD },
4133
4173
  footer: { alignItems: "flex-start", flexDirection: "row", flexWrap: "wrap", gap: GAP7 },
4134
4174
  head: { alignItems: "center", flexDirection: "row", gap: GAP7 },
4135
- title: { flex: 1, fontSize: TITLE_FONT, fontWeight: "700" }
4175
+ title: { flex: 1, fontSize: TITLE_FONT2, fontWeight: "700" }
4136
4176
  });
4137
4177
  var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
4138
4178
  const { theme } = useUi();
4139
- return /* @__PURE__ */ jsxs(View, { style: [styles45.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
4140
- /* @__PURE__ */ jsxs(View, { style: styles45.head, children: [
4179
+ return /* @__PURE__ */ jsxs(View, { style: [styles46.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
4180
+ /* @__PURE__ */ jsxs(View, { style: styles46.head, children: [
4141
4181
  icon === void 0 ? null : /* @__PURE__ */ jsx(View, { "aria-hidden": true, children: icon }),
4142
- /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles45.title, { color: theme.colors.text }], children: title }),
4182
+ /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles46.title, { color: theme.colors.text }], children: title }),
4143
4183
  headerRight
4144
4184
  ] }),
4145
4185
  children,
4146
- footer === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles45.footer, children: footer })
4186
+ footer === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles46.footer, children: footer })
4147
4187
  ] });
4148
4188
  };
4149
4189
  var LEAD_LABEL_SIZE = 14;
@@ -4155,7 +4195,7 @@ var GAP8 = 12;
4155
4195
  var LEAD_GAP = 4;
4156
4196
  var LEAD_BORDER = 1.5;
4157
4197
  var ACCENT_STEP = "500";
4158
- var styles46 = StyleSheet.create({
4198
+ var styles47 = StyleSheet.create({
4159
4199
  slip: { gap: GAP8, width: "100%" },
4160
4200
  lead: { padding: LEAD_PAD, borderRadius: LEAD_RADIUS, borderWidth: LEAD_BORDER, gap: LEAD_GAP },
4161
4201
  leadLabel: { fontSize: LEAD_LABEL_SIZE },
@@ -4167,13 +4207,13 @@ var TransferSlip = ({ leadLabel, amount, recipient, children, footer, testID })
4167
4207
  const { theme } = useUi();
4168
4208
  const { colors } = theme;
4169
4209
  const accent = theme.palette.primary[ACCENT_STEP];
4170
- return /* @__PURE__ */ jsxs(View, { style: styles46.slip, testID, children: [
4171
- /* @__PURE__ */ jsxs(View, { style: [styles46.lead, { borderColor: accent, backgroundColor: colors.surface }], testID: `${testID}-lead`, children: [
4172
- /* @__PURE__ */ jsx(Text, { style: [styles46.leadLabel, { color: colors.textSecondary }], children: leadLabel }),
4173
- /* @__PURE__ */ jsx(Text, { style: [styles46.amount, { color: colors.text }], testID: `${testID}-amount`, children: amount }),
4174
- recipient !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles46.recipient, { color: colors.text }], children: recipient })
4210
+ return /* @__PURE__ */ jsxs(View, { style: styles47.slip, testID, children: [
4211
+ /* @__PURE__ */ jsxs(View, { style: [styles47.lead, { borderColor: accent, backgroundColor: colors.surface }], testID: `${testID}-lead`, children: [
4212
+ /* @__PURE__ */ jsx(Text, { style: [styles47.leadLabel, { color: colors.textSecondary }], children: leadLabel }),
4213
+ /* @__PURE__ */ jsx(Text, { style: [styles47.amount, { color: colors.text }], testID: `${testID}-amount`, children: amount }),
4214
+ recipient !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles47.recipient, { color: colors.text }], children: recipient })
4175
4215
  ] }),
4176
- /* @__PURE__ */ jsx(View, { style: styles46.rows, children }),
4216
+ /* @__PURE__ */ jsx(View, { style: styles47.rows, children }),
4177
4217
  footer
4178
4218
  ] });
4179
4219
  };
@@ -4206,7 +4246,7 @@ var STACK_GAP = 8;
4206
4246
  var ROW_PAD = 10;
4207
4247
  var TEXT_GAP = 2;
4208
4248
  var MONO_SPACING = 1;
4209
- var styles47 = StyleSheet.create({
4249
+ var styles48 = StyleSheet.create({
4210
4250
  inline: { flexDirection: "row", alignItems: "center", gap: ROW_GAP3, paddingVertical: ROW_PAD, borderTopWidth: StyleSheet.hairlineWidth },
4211
4251
  prominent: { gap: STACK_GAP, paddingVertical: ROW_PAD },
4212
4252
  text: { flex: 1, minWidth: 0, gap: TEXT_GAP },
@@ -4230,10 +4270,10 @@ var CopyValueRow = ({
4230
4270
  const { status, copy } = useCopyToClipboard(copyValue ?? value, writer);
4231
4271
  const action = copyActionLabel(status, labels);
4232
4272
  const prominent = emphasis === "prominent" /* Prominent */;
4233
- const valueStyle = prominent || monospace ? styles47.big : styles47.value;
4234
- return /* @__PURE__ */ jsxs(View, { style: prominent ? styles47.prominent : [styles47.inline, { borderTopColor: colors.border }], testID, children: [
4235
- /* @__PURE__ */ jsxs(View, { style: styles47.text, children: [
4236
- /* @__PURE__ */ jsx(Text, { style: [styles47.label, { color: colors.textSecondary }], children: label }),
4273
+ const valueStyle = prominent || monospace ? styles48.big : styles48.value;
4274
+ return /* @__PURE__ */ jsxs(View, { style: prominent ? styles48.prominent : [styles48.inline, { borderTopColor: colors.border }], testID, children: [
4275
+ /* @__PURE__ */ jsxs(View, { style: styles48.text, children: [
4276
+ /* @__PURE__ */ jsx(Text, { style: [styles48.label, { color: colors.textSecondary }], children: label }),
4237
4277
  /* @__PURE__ */ jsx(Text, { selectable: true, style: [valueStyle, { color: colors.text }], testID: `${testID}-value`, children: value })
4238
4278
  ] }),
4239
4279
  copyControl === "icon" /* Icon */ ? /* @__PURE__ */ jsx(
@@ -4276,7 +4316,7 @@ var TILE_PAD = 12;
4276
4316
  var TILE_RADIUS = 10;
4277
4317
  var TILE_GAP = 2;
4278
4318
  var ALERT_STEP = "500";
4279
- var styles48 = StyleSheet.create({
4319
+ var styles49 = StyleSheet.create({
4280
4320
  tile: { padding: TILE_PAD, borderRadius: TILE_RADIUS, borderWidth: StyleSheet.hairlineWidth, gap: TILE_GAP },
4281
4321
  label: { fontSize: LABEL_SIZE2, fontWeight: "600" },
4282
4322
  value: { fontSize: VALUE_SIZE2, fontWeight: "700" },
@@ -4290,19 +4330,19 @@ var TotalsStrip = ({ items, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT, testID }) =
4290
4330
  return /* @__PURE__ */ jsx(FigureStrip, { testID, children: items.map((item) => /* @__PURE__ */ jsxs(
4291
4331
  View,
4292
4332
  {
4293
- style: [styles48.tile, figureCell(wide), { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
4333
+ style: [styles49.tile, figureCell(wide), { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
4294
4334
  testID: `${testID}-${item.key}`,
4295
4335
  children: [
4296
- /* @__PURE__ */ jsx(Text, { style: [styles48.label, { color: colors.textSecondary }], children: item.label }),
4336
+ /* @__PURE__ */ jsx(Text, { style: [styles49.label, { color: colors.textSecondary }], children: item.label }),
4297
4337
  /* @__PURE__ */ jsx(
4298
4338
  Text,
4299
4339
  {
4300
- style: [styles48.value, { color: item.tone === "alert" /* Alert */ ? theme.semantic.error[ALERT_STEP] : colors.text }],
4340
+ style: [styles49.value, { color: item.tone === "alert" /* Alert */ ? theme.semantic.error[ALERT_STEP] : colors.text }],
4301
4341
  testID: `${testID}-${item.key}-value`,
4302
4342
  children: item.value
4303
4343
  }
4304
4344
  ),
4305
- item.caption !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles48.caption, { color: colors.textSecondary }], children: item.caption })
4345
+ item.caption !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles49.caption, { color: colors.textSecondary }], children: item.caption })
4306
4346
  ]
4307
4347
  },
4308
4348
  item.key
@@ -4341,6 +4381,6 @@ var ListDetailLayout = ({
4341
4381
  return /* @__PURE__ */ jsx(SplitPanes, { end: null, layout: "stack" /* Stack */, start: panes.detail ? detail : list, testID });
4342
4382
  };
4343
4383
 
4344
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, AppText, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, Breadcrumb, BuildInfoFooter, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, CopyControl, CopyRowEmphasis, CopyStatus, CopyValueRow, CopyableId, CountBadge, DEFAULT_BILLING_ROUTE, DayBadgeFill, DayCard, DayCardLayout, DropdownVariant, ELLIPSIS, FigureStrip, FormDialog, HEADER_STACK_BREAKPOINT, Heading, IdChip, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, ListDetailPane, ListRow, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, ModalShell, PageFrame, PageHead, RecordActionButton, RecordHeader, RowSelectedStyle, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, ScreenColumn, Section, SectionChips, SectionDensity, SectionIndex, SectionIndexLayout, SectionVariant, SegmentedControl, SegmentedVariant, SelectedMarker, SideSheet, SplitLayout, SplitPanes, StatusBadge, StickyActionBar, StickyPreview, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TabsVariant, TextKind, Timeline, ToggleSection, TotalsStrip, TotalsTone, TransferSlip, TruncatedText, UnderlineTabs, UpgradePrompt, WidgetCard, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
4384
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, AppText, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, Breadcrumb, BuildInfoFooter, COPY_FEEDBACK_MS, CardTitle, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, CopyControl, CopyRowEmphasis, CopyStatus, CopyValueRow, CopyableId, CountBadge, DEFAULT_BILLING_ROUTE, DayBadgeFill, DayCard, DayCardLayout, DropdownVariant, ELLIPSIS, FigureStrip, FormDialog, HEADER_STACK_BREAKPOINT, Heading, IdChip, IdEllipsis, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, ListDetailPane, ListRow, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, ModalShell, PageFrame, PageHead, RecordActionButton, RecordHeader, RowSelectedStyle, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, ScreenColumn, Section, SectionChips, SectionDensity, SectionIndex, SectionIndexLayout, SectionVariant, SegmentedControl, SegmentedVariant, SelectedMarker, SideSheet, SplitLayout, SplitPanes, StatusBadge, StickyActionBar, StickyPreview, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TabsVariant, TextKind, Timeline, ToggleSection, TotalsStrip, TotalsTone, TransferSlip, TruncatedText, UnderlineTabs, UpgradePrompt, WidgetCard, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
4345
4385
  //# sourceMappingURL=index.mjs.map
4346
4386
  //# sourceMappingURL=index.mjs.map