@dloizides/ui-layout 1.66.1 → 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.d.mts +25 -8
- package/dist/index.d.ts +25 -8
- package/dist/index.js +85 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +84 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
2542
|
+
var BOXED_GAP2 = 12;
|
|
2526
2543
|
var styles22 = StyleSheet.create({
|
|
2527
2544
|
container: { alignSelf: "stretch" },
|
|
2528
|
-
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: () => {
|
|
@@ -3986,6 +4004,14 @@ var RecordActionButton = ({ label, hint, testID, icon, onPress, iconOnly = false
|
|
|
3986
4004
|
}
|
|
3987
4005
|
);
|
|
3988
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 || {});
|
|
3989
4015
|
var RADIUS2 = 6;
|
|
3990
4016
|
var PAD_H3 = 10;
|
|
3991
4017
|
var GAP5 = 6;
|
|
@@ -3995,9 +4021,10 @@ var COPIED_GLYPH = "\u2713";
|
|
|
3995
4021
|
var MONO = Platform.select({ web: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", default: "monospace" });
|
|
3996
4022
|
var styles41 = StyleSheet.create({
|
|
3997
4023
|
chip: { alignItems: "center", alignSelf: "flex-start", borderRadius: RADIUS2, borderWidth: 1, flexDirection: "row", gap: GAP5, maxWidth: "100%", minHeight: MIN_TARGET_PX, paddingHorizontal: PAD_H3 },
|
|
3998
|
-
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 }
|
|
3999
4026
|
});
|
|
4000
|
-
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 */ }) => {
|
|
4001
4028
|
const { theme } = useUi();
|
|
4002
4029
|
const copyable = value !== null && value !== "";
|
|
4003
4030
|
const { status, copy } = useCopyToClipboard(value ?? "", writer);
|
|
@@ -4010,24 +4037,33 @@ var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, dis
|
|
|
4010
4037
|
accessibilityRole: "button",
|
|
4011
4038
|
accessibilityState: { disabled: !copyable },
|
|
4012
4039
|
disabled: !copyable,
|
|
4013
|
-
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 }],
|
|
4014
4041
|
testID,
|
|
4015
4042
|
onPress: copyable ? copy : void 0,
|
|
4016
4043
|
children: [
|
|
4017
|
-
/* @__PURE__ */ jsx(Text, { style: [styles41.
|
|
4018
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles41.text, ink], testID: valueTestID, children: display ?? value }),
|
|
4019
|
-
copyable ? /* @__PURE__ */ jsx(Text, { "aria-hidden": true, style: [styles41.
|
|
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
|
|
4020
4047
|
]
|
|
4021
4048
|
}
|
|
4022
4049
|
);
|
|
4023
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
|
+
};
|
|
4024
4060
|
var STEP_WIDTH = 8;
|
|
4025
4061
|
var STEP_OPACITIES = [0.35, 0.65, 0.9];
|
|
4026
|
-
var
|
|
4062
|
+
var styles43 = StyleSheet.create({
|
|
4027
4063
|
fade: { bottom: 0, flexDirection: "row", position: "absolute", right: 0, top: 0 },
|
|
4028
4064
|
step: { width: STEP_WIDTH }
|
|
4029
4065
|
});
|
|
4030
|
-
var EdgeFadeStrip = ({ color }) => /* @__PURE__ */ jsx(View, { "aria-hidden": true, pointerEvents: "none", style:
|
|
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)) });
|
|
4031
4067
|
var SLACK_PX = 1;
|
|
4032
4068
|
function showsEdgeFade({ contentWidth, viewportWidth, offset }) {
|
|
4033
4069
|
return contentWidth - viewportWidth - offset > SLACK_PX;
|
|
@@ -4054,7 +4090,7 @@ var COUNT_FONT = 12;
|
|
|
4054
4090
|
var COUNT_MIN = 22;
|
|
4055
4091
|
var COUNT_PAD = 6;
|
|
4056
4092
|
var PILL = 999;
|
|
4057
|
-
var
|
|
4093
|
+
var styles44 = StyleSheet.create({
|
|
4058
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 },
|
|
4059
4095
|
chipCount: { fontSize: FONT_SIZE4, fontWeight: "700" },
|
|
4060
4096
|
count: { borderRadius: PILL, fontSize: COUNT_FONT, fontWeight: "700", minWidth: COUNT_MIN, paddingHorizontal: COUNT_PAD, textAlign: "center" },
|
|
@@ -4078,10 +4114,10 @@ var TabPressable = ({ tab, selected, onChange, style, children }) => /* @__PURE_
|
|
|
4078
4114
|
var UnderlineTabItem = ({ underline, activeText, ...item }) => {
|
|
4079
4115
|
const { theme } = useUi();
|
|
4080
4116
|
const selectedInk = activeText ?? theme.colors.text;
|
|
4081
|
-
return /* @__PURE__ */ jsxs(TabPressable, { ...item, style: [
|
|
4117
|
+
return /* @__PURE__ */ jsxs(TabPressable, { ...item, style: [styles44.tab, { borderBottomColor: item.selected ? underline : "transparent" }], children: [
|
|
4082
4118
|
item.tab.icon ?? null,
|
|
4083
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
4084
|
-
item.tab.count === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [
|
|
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) })
|
|
4085
4121
|
] });
|
|
4086
4122
|
};
|
|
4087
4123
|
var ChipTabItem = ({ activeFill, activeText, ...item }) => {
|
|
@@ -4089,9 +4125,9 @@ var ChipTabItem = ({ activeFill, activeText, ...item }) => {
|
|
|
4089
4125
|
const selectedFill = activeFill ?? theme.colors.text;
|
|
4090
4126
|
const fill = item.selected ? selectedFill : "transparent";
|
|
4091
4127
|
const ink = item.selected ? activeText ?? theme.colors.background : theme.colors.text;
|
|
4092
|
-
return /* @__PURE__ */ jsxs(TabPressable, { ...item, style: [
|
|
4093
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
4094
|
-
item.tab.count === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [
|
|
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) })
|
|
4095
4131
|
] });
|
|
4096
4132
|
};
|
|
4097
4133
|
|
|
@@ -4105,7 +4141,7 @@ var DEFAULT_UNDERLINE_STEP = "700";
|
|
|
4105
4141
|
var SCROLL_THROTTLE_MS = 16;
|
|
4106
4142
|
var CHIP_GAP = 8;
|
|
4107
4143
|
var CHIP_PAD_V = 4;
|
|
4108
|
-
var
|
|
4144
|
+
var styles45 = StyleSheet.create({
|
|
4109
4145
|
chipRow: { alignItems: "center", flexDirection: "row", gap: CHIP_GAP, paddingVertical: CHIP_PAD_V },
|
|
4110
4146
|
chipWrap: { flexWrap: "wrap" },
|
|
4111
4147
|
strip: { position: "relative", width: "100%" }
|
|
@@ -4119,35 +4155,35 @@ var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, accessibil
|
|
|
4119
4155
|
const item = { tab, selected: tab.key === activeKey, onChange, activeText: activeTextColor };
|
|
4120
4156
|
return chips ? /* @__PURE__ */ jsx(ChipTabItem, { ...item, activeFill: activeFillColor }, tab.key) : /* @__PURE__ */ jsx(UnderlineTabItem, { ...item, underline }, tab.key);
|
|
4121
4157
|
});
|
|
4122
|
-
const stripStyle = chips ?
|
|
4158
|
+
const stripStyle = chips ? styles45.strip : [styles45.strip, { borderBottomColor: theme.colors.border, borderBottomWidth: 1 }];
|
|
4123
4159
|
if (chips && chipOverflow === "wrap" /* Wrap */) {
|
|
4124
|
-
return /* @__PURE__ */ jsx(View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [
|
|
4160
|
+
return /* @__PURE__ */ jsx(View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles45.chipRow, styles45.chipWrap], testID, children: items });
|
|
4125
4161
|
}
|
|
4126
4162
|
return /* @__PURE__ */ jsxs(View, { style: stripStyle, testID, children: [
|
|
4127
|
-
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, contentContainerStyle: chips ?
|
|
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 }),
|
|
4128
4164
|
fade.visible ? /* @__PURE__ */ jsx(EdgeFadeStrip, { color: fadeColor ?? theme.colors.background }) : null
|
|
4129
4165
|
] });
|
|
4130
4166
|
};
|
|
4131
4167
|
var RADIUS3 = 12;
|
|
4132
4168
|
var PAD = 16;
|
|
4133
4169
|
var GAP7 = 8;
|
|
4134
|
-
var
|
|
4135
|
-
var
|
|
4170
|
+
var TITLE_FONT2 = 15;
|
|
4171
|
+
var styles46 = StyleSheet.create({
|
|
4136
4172
|
card: { borderRadius: RADIUS3, borderWidth: 1, gap: GAP7, minWidth: 0, padding: PAD },
|
|
4137
4173
|
footer: { alignItems: "flex-start", flexDirection: "row", flexWrap: "wrap", gap: GAP7 },
|
|
4138
4174
|
head: { alignItems: "center", flexDirection: "row", gap: GAP7 },
|
|
4139
|
-
title: { flex: 1, fontSize:
|
|
4175
|
+
title: { flex: 1, fontSize: TITLE_FONT2, fontWeight: "700" }
|
|
4140
4176
|
});
|
|
4141
4177
|
var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
|
|
4142
4178
|
const { theme } = useUi();
|
|
4143
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
4144
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
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: [
|
|
4145
4181
|
icon === void 0 ? null : /* @__PURE__ */ jsx(View, { "aria-hidden": true, children: icon }),
|
|
4146
|
-
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [
|
|
4182
|
+
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles46.title, { color: theme.colors.text }], children: title }),
|
|
4147
4183
|
headerRight
|
|
4148
4184
|
] }),
|
|
4149
4185
|
children,
|
|
4150
|
-
footer === void 0 ? null : /* @__PURE__ */ jsx(View, { style:
|
|
4186
|
+
footer === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles46.footer, children: footer })
|
|
4151
4187
|
] });
|
|
4152
4188
|
};
|
|
4153
4189
|
var LEAD_LABEL_SIZE = 14;
|
|
@@ -4159,7 +4195,7 @@ var GAP8 = 12;
|
|
|
4159
4195
|
var LEAD_GAP = 4;
|
|
4160
4196
|
var LEAD_BORDER = 1.5;
|
|
4161
4197
|
var ACCENT_STEP = "500";
|
|
4162
|
-
var
|
|
4198
|
+
var styles47 = StyleSheet.create({
|
|
4163
4199
|
slip: { gap: GAP8, width: "100%" },
|
|
4164
4200
|
lead: { padding: LEAD_PAD, borderRadius: LEAD_RADIUS, borderWidth: LEAD_BORDER, gap: LEAD_GAP },
|
|
4165
4201
|
leadLabel: { fontSize: LEAD_LABEL_SIZE },
|
|
@@ -4171,13 +4207,13 @@ var TransferSlip = ({ leadLabel, amount, recipient, children, footer, testID })
|
|
|
4171
4207
|
const { theme } = useUi();
|
|
4172
4208
|
const { colors } = theme;
|
|
4173
4209
|
const accent = theme.palette.primary[ACCENT_STEP];
|
|
4174
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
4175
|
-
/* @__PURE__ */ jsxs(View, { style: [
|
|
4176
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
4177
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
4178
|
-
recipient !== void 0 && /* @__PURE__ */ jsx(Text, { style: [
|
|
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 })
|
|
4179
4215
|
] }),
|
|
4180
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
4216
|
+
/* @__PURE__ */ jsx(View, { style: styles47.rows, children }),
|
|
4181
4217
|
footer
|
|
4182
4218
|
] });
|
|
4183
4219
|
};
|
|
@@ -4210,7 +4246,7 @@ var STACK_GAP = 8;
|
|
|
4210
4246
|
var ROW_PAD = 10;
|
|
4211
4247
|
var TEXT_GAP = 2;
|
|
4212
4248
|
var MONO_SPACING = 1;
|
|
4213
|
-
var
|
|
4249
|
+
var styles48 = StyleSheet.create({
|
|
4214
4250
|
inline: { flexDirection: "row", alignItems: "center", gap: ROW_GAP3, paddingVertical: ROW_PAD, borderTopWidth: StyleSheet.hairlineWidth },
|
|
4215
4251
|
prominent: { gap: STACK_GAP, paddingVertical: ROW_PAD },
|
|
4216
4252
|
text: { flex: 1, minWidth: 0, gap: TEXT_GAP },
|
|
@@ -4234,10 +4270,10 @@ var CopyValueRow = ({
|
|
|
4234
4270
|
const { status, copy } = useCopyToClipboard(copyValue ?? value, writer);
|
|
4235
4271
|
const action = copyActionLabel(status, labels);
|
|
4236
4272
|
const prominent = emphasis === "prominent" /* Prominent */;
|
|
4237
|
-
const valueStyle = prominent || monospace ?
|
|
4238
|
-
return /* @__PURE__ */ jsxs(View, { style: prominent ?
|
|
4239
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
4240
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
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 }),
|
|
4241
4277
|
/* @__PURE__ */ jsx(Text, { selectable: true, style: [valueStyle, { color: colors.text }], testID: `${testID}-value`, children: value })
|
|
4242
4278
|
] }),
|
|
4243
4279
|
copyControl === "icon" /* Icon */ ? /* @__PURE__ */ jsx(
|
|
@@ -4280,7 +4316,7 @@ var TILE_PAD = 12;
|
|
|
4280
4316
|
var TILE_RADIUS = 10;
|
|
4281
4317
|
var TILE_GAP = 2;
|
|
4282
4318
|
var ALERT_STEP = "500";
|
|
4283
|
-
var
|
|
4319
|
+
var styles49 = StyleSheet.create({
|
|
4284
4320
|
tile: { padding: TILE_PAD, borderRadius: TILE_RADIUS, borderWidth: StyleSheet.hairlineWidth, gap: TILE_GAP },
|
|
4285
4321
|
label: { fontSize: LABEL_SIZE2, fontWeight: "600" },
|
|
4286
4322
|
value: { fontSize: VALUE_SIZE2, fontWeight: "700" },
|
|
@@ -4294,19 +4330,19 @@ var TotalsStrip = ({ items, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT, testID }) =
|
|
|
4294
4330
|
return /* @__PURE__ */ jsx(FigureStrip, { testID, children: items.map((item) => /* @__PURE__ */ jsxs(
|
|
4295
4331
|
View,
|
|
4296
4332
|
{
|
|
4297
|
-
style: [
|
|
4333
|
+
style: [styles49.tile, figureCell(wide), { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
|
|
4298
4334
|
testID: `${testID}-${item.key}`,
|
|
4299
4335
|
children: [
|
|
4300
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
4336
|
+
/* @__PURE__ */ jsx(Text, { style: [styles49.label, { color: colors.textSecondary }], children: item.label }),
|
|
4301
4337
|
/* @__PURE__ */ jsx(
|
|
4302
4338
|
Text,
|
|
4303
4339
|
{
|
|
4304
|
-
style: [
|
|
4340
|
+
style: [styles49.value, { color: item.tone === "alert" /* Alert */ ? theme.semantic.error[ALERT_STEP] : colors.text }],
|
|
4305
4341
|
testID: `${testID}-${item.key}-value`,
|
|
4306
4342
|
children: item.value
|
|
4307
4343
|
}
|
|
4308
4344
|
),
|
|
4309
|
-
item.caption !== void 0 && /* @__PURE__ */ jsx(Text, { style: [
|
|
4345
|
+
item.caption !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles49.caption, { color: colors.textSecondary }], children: item.caption })
|
|
4310
4346
|
]
|
|
4311
4347
|
},
|
|
4312
4348
|
item.key
|
|
@@ -4345,6 +4381,6 @@ var ListDetailLayout = ({
|
|
|
4345
4381
|
return /* @__PURE__ */ jsx(SplitPanes, { end: null, layout: "stack" /* Stack */, start: panes.detail ? detail : list, testID });
|
|
4346
4382
|
};
|
|
4347
4383
|
|
|
4348
|
-
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 };
|
|
4349
4385
|
//# sourceMappingURL=index.mjs.map
|
|
4350
4386
|
//# sourceMappingURL=index.mjs.map
|