@dloizides/ui-layout 1.29.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +651 -644
- package/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +186 -96
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +186 -97
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -380,12 +380,50 @@ function isAnchorHidden(rect, clip, minVisiblePx) {
|
|
|
380
380
|
const visibleWidth = Math.min(rect.left + rect.width, clip.right) - Math.max(rect.left, clip.left);
|
|
381
381
|
return visibleHeight < minVisiblePx || visibleWidth < minVisiblePx;
|
|
382
382
|
}
|
|
383
|
+
var HEADING_FONT_SIZE = 12;
|
|
384
|
+
var HEADING_FONT_WEIGHT = "600";
|
|
385
|
+
var HEADING_PADDING_H = 16;
|
|
386
|
+
var HEADING_PADDING_TOP = 8;
|
|
387
|
+
var HEADING_PADDING_BOTTOM = 4;
|
|
388
|
+
var HEADING_LETTER_SPACING = 0.5;
|
|
389
|
+
var styles5 = StyleSheet.create({
|
|
390
|
+
heading: {
|
|
391
|
+
fontSize: HEADING_FONT_SIZE,
|
|
392
|
+
fontWeight: HEADING_FONT_WEIGHT,
|
|
393
|
+
letterSpacing: HEADING_LETTER_SPACING,
|
|
394
|
+
paddingHorizontal: HEADING_PADDING_H,
|
|
395
|
+
paddingTop: HEADING_PADDING_TOP,
|
|
396
|
+
paddingBottom: HEADING_PADDING_BOTTOM
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
var MenuHeading = ({ testID, text }) => {
|
|
400
|
+
const { theme } = useUi();
|
|
401
|
+
return /* @__PURE__ */ jsx(
|
|
402
|
+
Text,
|
|
403
|
+
{
|
|
404
|
+
accessibilityRole: "header",
|
|
405
|
+
style: [styles5.heading, { color: theme.colors.textSecondary }],
|
|
406
|
+
testID: `${testID}-menu-heading`,
|
|
407
|
+
children: text
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
// src/ModalDropdown/SelectedMarker.ts
|
|
413
|
+
var SelectedMarker = /* @__PURE__ */ ((SelectedMarker2) => {
|
|
414
|
+
SelectedMarker2["Bold"] = "bold";
|
|
415
|
+
SelectedMarker2["AccentCheck"] = "accent-check";
|
|
416
|
+
return SelectedMarker2;
|
|
417
|
+
})(SelectedMarker || {});
|
|
383
418
|
var OPTION_BORDER_RADIUS = 4;
|
|
384
419
|
var BODY_FONT_SIZE = 14;
|
|
385
420
|
var SELECTED_FONT_WEIGHT = "600";
|
|
386
421
|
var OPTION_PADDING_H = 16;
|
|
387
422
|
var OPTION_PADDING_V = 12;
|
|
388
|
-
var
|
|
423
|
+
var ACCENT_BAR_WIDTH = 3;
|
|
424
|
+
var CHECK_GAP = 8;
|
|
425
|
+
var CHECK_GLYPH = "\u2713";
|
|
426
|
+
var styles6 = StyleSheet.create({
|
|
389
427
|
option: {
|
|
390
428
|
paddingHorizontal: OPTION_PADDING_H,
|
|
391
429
|
paddingVertical: OPTION_PADDING_V,
|
|
@@ -394,35 +432,63 @@ var styles5 = StyleSheet.create({
|
|
|
394
432
|
borderRadius: OPTION_BORDER_RADIUS
|
|
395
433
|
},
|
|
396
434
|
optionText: { fontSize: BODY_FONT_SIZE },
|
|
397
|
-
selectedText: { fontWeight: SELECTED_FONT_WEIGHT }
|
|
435
|
+
selectedText: { fontWeight: SELECTED_FONT_WEIGHT },
|
|
436
|
+
markedRow: {
|
|
437
|
+
flexDirection: "row",
|
|
438
|
+
alignItems: "center",
|
|
439
|
+
justifyContent: "space-between",
|
|
440
|
+
columnGap: CHECK_GAP,
|
|
441
|
+
borderLeftWidth: ACCENT_BAR_WIDTH,
|
|
442
|
+
borderLeftColor: "transparent",
|
|
443
|
+
paddingLeft: OPTION_PADDING_H - ACCENT_BAR_WIDTH
|
|
444
|
+
},
|
|
445
|
+
markedText: { flexShrink: 1 }
|
|
398
446
|
});
|
|
399
447
|
var OptionRow = ({
|
|
400
448
|
testID,
|
|
401
449
|
label,
|
|
402
450
|
isSelected,
|
|
403
451
|
isHighlighted = false,
|
|
404
|
-
onSelect
|
|
452
|
+
onSelect,
|
|
453
|
+
selectedMarker = "bold" /* Bold */,
|
|
454
|
+
asMenuItem = false
|
|
405
455
|
}) => {
|
|
406
456
|
const { theme, t } = useUi();
|
|
407
457
|
const { colors } = theme;
|
|
408
458
|
const handlePress = useCallback(() => {
|
|
409
459
|
onSelect();
|
|
410
460
|
}, [onSelect]);
|
|
461
|
+
const accentColor = theme.palette.primary["500"];
|
|
462
|
+
const isMarked = selectedMarker === "accent-check" /* AccentCheck */;
|
|
411
463
|
const isActive = isSelected || isHighlighted;
|
|
412
|
-
const rowStyle = [
|
|
413
|
-
|
|
414
|
-
|
|
464
|
+
const rowStyle = [
|
|
465
|
+
styles6.option,
|
|
466
|
+
isMarked ? styles6.markedRow : null,
|
|
467
|
+
isActive ? { backgroundColor: colors.surfaceElevated } : null,
|
|
468
|
+
isMarked && isSelected ? { borderLeftColor: accentColor } : null
|
|
469
|
+
];
|
|
470
|
+
const textStyle = [
|
|
471
|
+
styles6.optionText,
|
|
472
|
+
{ color: colors.text },
|
|
473
|
+
isSelected ? styles6.selectedText : null,
|
|
474
|
+
isMarked ? styles6.markedText : null
|
|
475
|
+
];
|
|
476
|
+
const selectionProps = asMenuItem ? { "aria-current": isSelected ? "true" : void 0 } : { "aria-selected": isSelected };
|
|
477
|
+
return /* @__PURE__ */ jsxs(
|
|
415
478
|
TouchableOpacity,
|
|
416
479
|
{
|
|
417
480
|
accessible: true,
|
|
418
481
|
accessibilityHint: t(LAYOUT_I18N.selectOptionHint),
|
|
419
482
|
accessibilityLabel: label,
|
|
420
|
-
accessibilityRole: "button",
|
|
421
|
-
|
|
483
|
+
accessibilityRole: asMenuItem ? "menuitem" : "button",
|
|
484
|
+
...selectionProps,
|
|
422
485
|
style: rowStyle,
|
|
423
486
|
testID,
|
|
424
487
|
onPress: handlePress,
|
|
425
|
-
children:
|
|
488
|
+
children: [
|
|
489
|
+
/* @__PURE__ */ jsx(Text, { style: textStyle, children: label }),
|
|
490
|
+
isMarked && isSelected ? /* @__PURE__ */ jsx(View, { "aria-hidden": true, testID: `${testID}-check`, children: /* @__PURE__ */ jsx(Text, { style: [styles6.selectedText, { color: accentColor }], children: CHECK_GLYPH }) }) : null
|
|
491
|
+
]
|
|
426
492
|
}
|
|
427
493
|
);
|
|
428
494
|
};
|
|
@@ -579,7 +645,7 @@ var IS_WEB2 = Platform.OS === "web";
|
|
|
579
645
|
var BORDER_RADIUS2 = 8;
|
|
580
646
|
var BORDER_WIDTH3 = 1;
|
|
581
647
|
var MENU_PADDING2 = 4;
|
|
582
|
-
var
|
|
648
|
+
var styles7 = StyleSheet.create({
|
|
583
649
|
/** Native (in-tree) popover — anchored absolutely just under the trigger. */
|
|
584
650
|
popover: {
|
|
585
651
|
position: "absolute",
|
|
@@ -614,7 +680,9 @@ var InlineMenu = ({
|
|
|
614
680
|
isOpen,
|
|
615
681
|
optionTestID,
|
|
616
682
|
menuMinWidth = 0,
|
|
683
|
+
menuHeading,
|
|
617
684
|
animatedStyle,
|
|
685
|
+
selectedMarker,
|
|
618
686
|
onSelect,
|
|
619
687
|
onClose
|
|
620
688
|
}) => {
|
|
@@ -664,7 +732,7 @@ var InlineMenu = ({
|
|
|
664
732
|
themed
|
|
665
733
|
];
|
|
666
734
|
}
|
|
667
|
-
return [
|
|
735
|
+
return [styles7.popover, { minWidth: menuMinWidth }, themed];
|
|
668
736
|
}, [colors.border, colors.surface, menuMinWidth, rect]);
|
|
669
737
|
const menu = /* @__PURE__ */ jsx(
|
|
670
738
|
View,
|
|
@@ -672,25 +740,30 @@ var InlineMenu = ({
|
|
|
672
740
|
ref: menuRef,
|
|
673
741
|
accessibilityRole: "menu",
|
|
674
742
|
"aria-hidden": !isOpen,
|
|
675
|
-
"aria-label": accessibilityLabel,
|
|
743
|
+
"aria-label": menuHeading ?? accessibilityLabel,
|
|
676
744
|
style: popoverStyle,
|
|
677
745
|
testID: `${testID}-menu`,
|
|
678
|
-
children: /* @__PURE__ */
|
|
746
|
+
children: /* @__PURE__ */ jsxs(
|
|
679
747
|
Animated.View,
|
|
680
748
|
{
|
|
681
749
|
pointerEvents: isOpen ? "auto" : "none",
|
|
682
|
-
style: [
|
|
683
|
-
children:
|
|
684
|
-
|
|
685
|
-
{
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
750
|
+
style: [styles7.animated, animatedStyle, isOpen ? null : styles7.inert],
|
|
751
|
+
children: [
|
|
752
|
+
menuHeading !== void 0 ? /* @__PURE__ */ jsx(MenuHeading, { testID, text: menuHeading }) : null,
|
|
753
|
+
/* @__PURE__ */ jsx(ScrollView, { style: styles7.scroll, keyboardShouldPersistTaps: "handled", children: options.map((option, index) => /* @__PURE__ */ jsx(
|
|
754
|
+
OptionRow,
|
|
755
|
+
{
|
|
756
|
+
asMenuItem: true,
|
|
757
|
+
isHighlighted: index === highlightedIndex,
|
|
758
|
+
isSelected: option.value === value,
|
|
759
|
+
label: option.label,
|
|
760
|
+
selectedMarker,
|
|
761
|
+
testID: optionTestID !== void 0 ? optionTestID(option.value) : `${testID}-option-${String(option.value)}`,
|
|
762
|
+
onSelect: () => handleSelect(option.value)
|
|
763
|
+
},
|
|
764
|
+
String(option.value)
|
|
765
|
+
)) })
|
|
766
|
+
]
|
|
694
767
|
}
|
|
695
768
|
)
|
|
696
769
|
}
|
|
@@ -733,7 +806,7 @@ var CARET_OPEN_ROTATION = "180deg";
|
|
|
733
806
|
var CARET_CLOSED_ROTATION = "0deg";
|
|
734
807
|
var POPOVER_ENTER_SCALE = 0.96;
|
|
735
808
|
var POPOVER_MOTION_MS = 120;
|
|
736
|
-
var
|
|
809
|
+
var styles8 = StyleSheet.create({
|
|
737
810
|
anchor: { position: "relative" },
|
|
738
811
|
container: {
|
|
739
812
|
borderWidth: BORDER_WIDTH4,
|
|
@@ -795,7 +868,9 @@ var ModalDropdown = ({
|
|
|
795
868
|
optionTestID,
|
|
796
869
|
menuMinWidth,
|
|
797
870
|
showCaret = false,
|
|
798
|
-
showHamburger = false
|
|
871
|
+
showHamburger = false,
|
|
872
|
+
menuHeading,
|
|
873
|
+
selectedMarker
|
|
799
874
|
}) => {
|
|
800
875
|
const { theme, t } = useUi();
|
|
801
876
|
const { colors } = theme;
|
|
@@ -810,6 +885,8 @@ var ModalDropdown = ({
|
|
|
810
885
|
testID
|
|
811
886
|
});
|
|
812
887
|
const anchorRef = useRef(null);
|
|
888
|
+
const triggerRef = useRef(null);
|
|
889
|
+
const popupProps = { "aria-haspopup": isMenu ? "menu" : "dialog" };
|
|
813
890
|
const dialogRef = useRef(null);
|
|
814
891
|
useFocusTrap(dialogRef, isOpen && !isMenu);
|
|
815
892
|
const menuAnim = useEnterExit({
|
|
@@ -836,6 +913,7 @@ var ModalDropdown = ({
|
|
|
836
913
|
(optionValue) => {
|
|
837
914
|
onChange(optionValue);
|
|
838
915
|
setIsOpen(false);
|
|
916
|
+
triggerRef.current?.focus();
|
|
839
917
|
},
|
|
840
918
|
[onChange]
|
|
841
919
|
);
|
|
@@ -843,19 +921,19 @@ var ModalDropdown = ({
|
|
|
843
921
|
const isCaret = showCaret && !isHamburger;
|
|
844
922
|
const containerStyle = useMemo(
|
|
845
923
|
() => renderTrigger !== void 0 ? void 0 : [
|
|
846
|
-
|
|
847
|
-
isHamburger ?
|
|
924
|
+
styles8.container,
|
|
925
|
+
isHamburger ? styles8.containerHamburger : isCaret ? styles8.containerMenu : null,
|
|
848
926
|
{ borderColor: colors.border, backgroundColor: colors.surface }
|
|
849
927
|
],
|
|
850
928
|
[colors.border, colors.surface, renderTrigger, isHamburger, isCaret]
|
|
851
929
|
);
|
|
852
930
|
const hamburgerStyle = useMemo(
|
|
853
|
-
() => [
|
|
931
|
+
() => [styles8.hamburger, { color: colors.textSecondary }],
|
|
854
932
|
[colors.textSecondary]
|
|
855
933
|
);
|
|
856
934
|
const caretStyle = useMemo(
|
|
857
935
|
() => [
|
|
858
|
-
|
|
936
|
+
styles8.caret,
|
|
859
937
|
{ color: colors.textSecondary, transform: [{ rotate: isOpen ? CARET_OPEN_ROTATION : CARET_CLOSED_ROTATION }] }
|
|
860
938
|
],
|
|
861
939
|
[colors.textSecondary, isOpen]
|
|
@@ -865,11 +943,11 @@ var ModalDropdown = ({
|
|
|
865
943
|
[optionTestID, testID]
|
|
866
944
|
);
|
|
867
945
|
const anchorStyle = useMemo(
|
|
868
|
-
() => [
|
|
946
|
+
() => [styles8.anchor, buildAnchorStackStyle(isMenu && isOpen)],
|
|
869
947
|
[isMenu, isOpen]
|
|
870
948
|
);
|
|
871
949
|
const modalContentStyle = useMemo(
|
|
872
|
-
() => [
|
|
950
|
+
() => [styles8.modalContent, { backgroundColor: colors.surface }],
|
|
873
951
|
[colors.surface]
|
|
874
952
|
);
|
|
875
953
|
const renderModalOption = useCallback(
|
|
@@ -878,22 +956,23 @@ var ModalDropdown = ({
|
|
|
878
956
|
{
|
|
879
957
|
isSelected: item.value === value,
|
|
880
958
|
label: item.label,
|
|
959
|
+
selectedMarker,
|
|
881
960
|
testID: optionTestIDFor(item.value),
|
|
882
961
|
onSelect: () => handleSelect(item.value)
|
|
883
962
|
}
|
|
884
963
|
),
|
|
885
|
-
[handleSelect, optionTestIDFor, value]
|
|
964
|
+
[handleSelect, optionTestIDFor, selectedMarker, value]
|
|
886
965
|
);
|
|
887
966
|
const keyExtractor = useCallback((item) => String(item.value), []);
|
|
888
967
|
return /* @__PURE__ */ jsxs(View, { ref: anchorRef, style: anchorStyle, children: [
|
|
889
|
-
/* @__PURE__ */ jsxs(TouchableOpacity, { ...a11yProps, style: containerStyle, onPress: handleToggle, children: [
|
|
968
|
+
/* @__PURE__ */ jsxs(TouchableOpacity, { ...a11yProps, ...popupProps, ref: triggerRef, style: containerStyle, onPress: handleToggle, children: [
|
|
890
969
|
renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : isHamburger ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
891
970
|
/* @__PURE__ */ jsx(Text, { style: hamburgerStyle, children: HAMBURGER_GLYPH }),
|
|
892
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [
|
|
971
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles8.selectedText, styles8.selectedTextMenu, { color: colors.text }], children: selectedLabel })
|
|
893
972
|
] }) : isCaret ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
894
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [
|
|
973
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles8.selectedText, styles8.selectedTextMenu, { color: colors.text }], children: selectedLabel }),
|
|
895
974
|
/* @__PURE__ */ jsx(Text, { style: caretStyle, children: CARET_GLYPH })
|
|
896
|
-
] }) : /* @__PURE__ */ jsx(Text, { style: [
|
|
975
|
+
] }) : /* @__PURE__ */ jsx(Text, { style: [styles8.selectedText, { color: colors.text }], children: selectedLabel }),
|
|
897
976
|
hintNode
|
|
898
977
|
] }),
|
|
899
978
|
isMenu && menuAnim.mounted ? /* @__PURE__ */ jsx(
|
|
@@ -903,16 +982,18 @@ var ModalDropdown = ({
|
|
|
903
982
|
animatedStyle: menuAnim.style,
|
|
904
983
|
containerRef: anchorRef,
|
|
905
984
|
isOpen,
|
|
985
|
+
menuHeading,
|
|
906
986
|
menuMinWidth,
|
|
907
987
|
optionTestID: optionTestIDFor,
|
|
908
988
|
options,
|
|
989
|
+
selectedMarker,
|
|
909
990
|
testID,
|
|
910
991
|
value,
|
|
911
992
|
onClose: handleClose,
|
|
912
993
|
onSelect: handleSelect
|
|
913
994
|
}
|
|
914
995
|
) : null,
|
|
915
|
-
!isMenu ? /* @__PURE__ */ jsx(Modal, { transparent: true, visible: modalAnim.mounted, onRequestClose: handleClose, children: /* @__PURE__ */ jsxs(View, { style:
|
|
996
|
+
!isMenu ? /* @__PURE__ */ jsx(Modal, { transparent: true, visible: modalAnim.mounted, onRequestClose: handleClose, children: /* @__PURE__ */ jsxs(View, { style: styles8.modalOverlay, children: [
|
|
916
997
|
/* @__PURE__ */ jsx(
|
|
917
998
|
TouchableOpacity,
|
|
918
999
|
{
|
|
@@ -931,10 +1012,18 @@ var ModalDropdown = ({
|
|
|
931
1012
|
{
|
|
932
1013
|
ref: dialogRef,
|
|
933
1014
|
accessibilityViewIsModal: true,
|
|
934
|
-
"aria-label": accessibilityLabel,
|
|
1015
|
+
"aria-label": menuHeading ?? accessibilityLabel,
|
|
935
1016
|
role: "dialog",
|
|
936
1017
|
style: [modalContentStyle, modalAnim.style],
|
|
937
|
-
children: /* @__PURE__ */ jsx(
|
|
1018
|
+
children: /* @__PURE__ */ jsx(
|
|
1019
|
+
FlatList,
|
|
1020
|
+
{
|
|
1021
|
+
data: [...options],
|
|
1022
|
+
keyExtractor,
|
|
1023
|
+
ListHeaderComponent: menuHeading !== void 0 ? /* @__PURE__ */ jsx(MenuHeading, { testID, text: menuHeading }) : null,
|
|
1024
|
+
renderItem: renderModalOption
|
|
1025
|
+
}
|
|
1026
|
+
)
|
|
938
1027
|
}
|
|
939
1028
|
)
|
|
940
1029
|
] }) }) : null
|
|
@@ -997,7 +1086,7 @@ var ROW_PAD_V = 8;
|
|
|
997
1086
|
var PANEL_PAD_TOP = 16;
|
|
998
1087
|
var BORDER_WIDTH5 = 1;
|
|
999
1088
|
var TEXT_ON_PRIMARY = "#ffffff";
|
|
1000
|
-
var
|
|
1089
|
+
var styles9 = StyleSheet.create({
|
|
1001
1090
|
root: {
|
|
1002
1091
|
width: "100%"
|
|
1003
1092
|
},
|
|
@@ -1051,7 +1140,7 @@ var WideTabStrip = ({
|
|
|
1051
1140
|
textSecondary,
|
|
1052
1141
|
surfaceElevated,
|
|
1053
1142
|
stripStyle
|
|
1054
|
-
}) => /* @__PURE__ */ jsx(View, { style: [
|
|
1143
|
+
}) => /* @__PURE__ */ jsx(View, { style: [styles9.stripOuter, { borderBottomColor: borderColor }], children: /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsx(View, { accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles9.strip, stripStyle], children: tabs.map((tab) => {
|
|
1055
1144
|
const selected = tab.key === activeKey;
|
|
1056
1145
|
const textColor = selected ? TEXT_ON_PRIMARY : textSecondary;
|
|
1057
1146
|
const pillColor = selected ? primaryColor : surfaceElevated;
|
|
@@ -1065,10 +1154,10 @@ var WideTabStrip = ({
|
|
|
1065
1154
|
accessibilityLabel: tab.accessibilityLabel ?? tab.label,
|
|
1066
1155
|
accessibilityHint: tab.accessibilityHint,
|
|
1067
1156
|
onPress: () => onChange(tab.key),
|
|
1068
|
-
style: [
|
|
1157
|
+
style: [styles9.pill, { backgroundColor: pillColor }],
|
|
1069
1158
|
testID: tab.testID,
|
|
1070
1159
|
...ariaTabProps(selected, panelId, tabId),
|
|
1071
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
1160
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles9.pillText, { color: textColor }], children: tab.label })
|
|
1072
1161
|
},
|
|
1073
1162
|
tab.key
|
|
1074
1163
|
);
|
|
@@ -1093,7 +1182,7 @@ var Tabs = ({
|
|
|
1093
1182
|
const activePanelId = `${idPrefix}-panel-${activeKey}`;
|
|
1094
1183
|
const activeTabId = `${idPrefix}-tab-${activeKey}`;
|
|
1095
1184
|
const panelAria = { "aria-labelledby": activeTabId, id: activePanelId };
|
|
1096
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
1185
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles9.root, style], testID, children: [
|
|
1097
1186
|
collapsed ? /* @__PURE__ */ jsx(
|
|
1098
1187
|
TabsMenu,
|
|
1099
1188
|
{
|
|
@@ -1120,7 +1209,7 @@ var Tabs = ({
|
|
|
1120
1209
|
onChange
|
|
1121
1210
|
}
|
|
1122
1211
|
),
|
|
1123
|
-
/* @__PURE__ */ jsx(View, { accessibilityRole: "none", style: [
|
|
1212
|
+
/* @__PURE__ */ jsx(View, { accessibilityRole: "none", style: [styles9.panel, panelStyle], ...panelAria, children })
|
|
1124
1213
|
] });
|
|
1125
1214
|
};
|
|
1126
1215
|
var PROMPT_PADDING = 20;
|
|
@@ -1135,7 +1224,7 @@ var DISMISS_FONT_SIZE = 13;
|
|
|
1135
1224
|
var TITLE_MARGIN_BOTTOM = 8;
|
|
1136
1225
|
var MESSAGE_MARGIN_BOTTOM = 16;
|
|
1137
1226
|
var CTA_MARGIN_BOTTOM = 8;
|
|
1138
|
-
var
|
|
1227
|
+
var styles10 = StyleSheet.create({
|
|
1139
1228
|
container: {
|
|
1140
1229
|
padding: PROMPT_PADDING,
|
|
1141
1230
|
borderRadius: PROMPT_BORDER_RADIUS,
|
|
@@ -1170,21 +1259,21 @@ var UpgradePrompt = ({
|
|
|
1170
1259
|
return /* @__PURE__ */ jsxs(
|
|
1171
1260
|
View,
|
|
1172
1261
|
{
|
|
1173
|
-
style: [
|
|
1262
|
+
style: [styles10.container, { borderColor: primary, backgroundColor: colors.surface }],
|
|
1174
1263
|
testID: LAYOUT_TEST_IDS.upgradePrompt,
|
|
1175
1264
|
children: [
|
|
1176
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
1177
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
1265
|
+
/* @__PURE__ */ jsx(Text, { style: [styles10.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
|
|
1266
|
+
/* @__PURE__ */ jsx(Text, { style: [styles10.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
|
|
1178
1267
|
/* @__PURE__ */ jsx(
|
|
1179
1268
|
TouchableOpacity,
|
|
1180
1269
|
{
|
|
1181
1270
|
accessibilityHint: t(LAYOUT_I18N.upgradePromptCtaHint),
|
|
1182
1271
|
accessibilityLabel: t(LAYOUT_I18N.upgradePromptCta),
|
|
1183
1272
|
accessibilityRole: "button",
|
|
1184
|
-
style: [
|
|
1273
|
+
style: [styles10.cta, { backgroundColor: primary }],
|
|
1185
1274
|
testID: LAYOUT_TEST_IDS.upgradePromptCta,
|
|
1186
1275
|
onPress: handleUpgradePress,
|
|
1187
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
1276
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles10.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
|
|
1188
1277
|
}
|
|
1189
1278
|
),
|
|
1190
1279
|
onDismiss ? /* @__PURE__ */ jsx(
|
|
@@ -1193,10 +1282,10 @@ var UpgradePrompt = ({
|
|
|
1193
1282
|
accessibilityHint: t(LAYOUT_I18N.upgradePromptDismissHint),
|
|
1194
1283
|
accessibilityLabel: t(LAYOUT_I18N.upgradePromptDismiss),
|
|
1195
1284
|
accessibilityRole: "button",
|
|
1196
|
-
style:
|
|
1285
|
+
style: styles10.dismiss,
|
|
1197
1286
|
testID: LAYOUT_TEST_IDS.upgradePromptDismiss,
|
|
1198
1287
|
onPress: onDismiss,
|
|
1199
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
1288
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles10.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
|
|
1200
1289
|
}
|
|
1201
1290
|
) : null
|
|
1202
1291
|
]
|
|
@@ -1205,7 +1294,7 @@ var UpgradePrompt = ({
|
|
|
1205
1294
|
};
|
|
1206
1295
|
var CLOSE_ICON_SIZE = 18;
|
|
1207
1296
|
var PANEL_ENTER_SCALE = 0.96;
|
|
1208
|
-
var
|
|
1297
|
+
var styles11 = StyleSheet.create({
|
|
1209
1298
|
animatedFill: { flex: 1 },
|
|
1210
1299
|
container: {
|
|
1211
1300
|
flex: 1,
|
|
@@ -1232,7 +1321,7 @@ var ModalShell = ({
|
|
|
1232
1321
|
const { theme, t } = useUi();
|
|
1233
1322
|
const { style: sheetStyle, mounted } = useEnterExit({ visible, fromScale: PANEL_ENTER_SCALE });
|
|
1234
1323
|
const containerStyle = React10.useMemo(
|
|
1235
|
-
() => [
|
|
1324
|
+
() => [styles11.container, { backgroundColor: theme.colors.background }, contentStyle],
|
|
1236
1325
|
[theme.colors.background, contentStyle]
|
|
1237
1326
|
);
|
|
1238
1327
|
const closeA11yLabel = t(LAYOUT_I18N.close);
|
|
@@ -1244,7 +1333,7 @@ var ModalShell = ({
|
|
|
1244
1333
|
testID: LAYOUT_TEST_IDS.modalShell,
|
|
1245
1334
|
visible: mounted,
|
|
1246
1335
|
onRequestClose: onCancel,
|
|
1247
|
-
children: /* @__PURE__ */ jsx(Animated.View, { style: [
|
|
1336
|
+
children: /* @__PURE__ */ jsx(Animated.View, { style: [styles11.animatedFill, sheetStyle], children: /* @__PURE__ */ jsxs(
|
|
1248
1337
|
ScrollView,
|
|
1249
1338
|
{
|
|
1250
1339
|
accessibilityViewIsModal: true,
|
|
@@ -1252,7 +1341,7 @@ var ModalShell = ({
|
|
|
1252
1341
|
role: "dialog",
|
|
1253
1342
|
style: containerStyle,
|
|
1254
1343
|
children: [
|
|
1255
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
1344
|
+
/* @__PURE__ */ jsxs(View, { style: styles11.headerRow, children: [
|
|
1256
1345
|
/* @__PURE__ */ jsx(Heading, { children: title ?? t(LAYOUT_I18N.closeHeading) }),
|
|
1257
1346
|
showClose ? /* @__PURE__ */ jsx(
|
|
1258
1347
|
TouchableOpacity,
|
|
@@ -1260,7 +1349,7 @@ var ModalShell = ({
|
|
|
1260
1349
|
accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
|
|
1261
1350
|
accessibilityLabel: closeA11yLabel,
|
|
1262
1351
|
accessibilityRole: "button",
|
|
1263
|
-
style:
|
|
1352
|
+
style: styles11.closeButton,
|
|
1264
1353
|
testID: LAYOUT_TEST_IDS.modalShellClose,
|
|
1265
1354
|
onPress: onCancel,
|
|
1266
1355
|
children: /* @__PURE__ */ jsx(SvgIcon, { color: theme.colors.textSecondary, name: "close", size: CLOSE_ICON_SIZE })
|
|
@@ -1306,7 +1395,7 @@ var HEADER_MARGIN = 12;
|
|
|
1306
1395
|
var DIALOG_MAX_HEIGHT = "90%";
|
|
1307
1396
|
var PANEL_ENTER_SCALE2 = 0.96;
|
|
1308
1397
|
var SIZE_MAX_WIDTH = { sm: 360, md: 480, lg: 640 };
|
|
1309
|
-
var
|
|
1398
|
+
var styles12 = StyleSheet.create({
|
|
1310
1399
|
overlay: {
|
|
1311
1400
|
flex: 1,
|
|
1312
1401
|
justifyContent: "center",
|
|
@@ -1358,15 +1447,15 @@ var Modal3 = ({
|
|
|
1358
1447
|
const accessibleName = accessibilityLabel ?? title ?? t(LAYOUT_I18N.dialog);
|
|
1359
1448
|
const closeLabel = t(LAYOUT_I18N.dialogClose);
|
|
1360
1449
|
const dialogStyle = useMemo(
|
|
1361
|
-
() => [
|
|
1450
|
+
() => [styles12.dialog, { backgroundColor: theme.colors.surface, maxWidth: SIZE_MAX_WIDTH[size] }],
|
|
1362
1451
|
[theme.colors.surface, size]
|
|
1363
1452
|
);
|
|
1364
1453
|
const hasHeader = title !== void 0 || showClose;
|
|
1365
|
-
return /* @__PURE__ */ jsx(Modal, { transparent: true, visible: mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxs(View, { style:
|
|
1454
|
+
return /* @__PURE__ */ jsx(Modal, { transparent: true, visible: mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxs(View, { style: styles12.overlay, children: [
|
|
1366
1455
|
/* @__PURE__ */ jsx(
|
|
1367
1456
|
Animated.View,
|
|
1368
1457
|
{
|
|
1369
|
-
style: [StyleSheet.absoluteFill,
|
|
1458
|
+
style: [StyleSheet.absoluteFill, styles12.scrim, { opacity: backdrop.style.opacity }]
|
|
1370
1459
|
}
|
|
1371
1460
|
),
|
|
1372
1461
|
/* @__PURE__ */ jsx(
|
|
@@ -1392,8 +1481,8 @@ var Modal3 = ({
|
|
|
1392
1481
|
style: [dialogStyle, panel.style],
|
|
1393
1482
|
testID,
|
|
1394
1483
|
children: [
|
|
1395
|
-
hasHeader ? /* @__PURE__ */ jsxs(View, { style:
|
|
1396
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
1484
|
+
hasHeader ? /* @__PURE__ */ jsxs(View, { style: styles12.headerRow, children: [
|
|
1485
|
+
/* @__PURE__ */ jsx(View, { style: styles12.titleWrap, children: title !== void 0 ? /* @__PURE__ */ jsx(Heading, { children: title }) : null }),
|
|
1397
1486
|
showClose ? /* @__PURE__ */ jsx(
|
|
1398
1487
|
IconButton,
|
|
1399
1488
|
{
|
|
@@ -1410,7 +1499,7 @@ var Modal3 = ({
|
|
|
1410
1499
|
) : null
|
|
1411
1500
|
] }) : null,
|
|
1412
1501
|
/* @__PURE__ */ jsx(ScrollView, { children }),
|
|
1413
|
-
footer !== void 0 ? /* @__PURE__ */ jsx(View, { style:
|
|
1502
|
+
footer !== void 0 ? /* @__PURE__ */ jsx(View, { style: styles12.footer, children: footer }) : null
|
|
1414
1503
|
]
|
|
1415
1504
|
}
|
|
1416
1505
|
)
|
|
@@ -1419,7 +1508,7 @@ var Modal3 = ({
|
|
|
1419
1508
|
var MESSAGE_FONT_SIZE2 = 14;
|
|
1420
1509
|
var MESSAGE_LINE_HEIGHT = 20;
|
|
1421
1510
|
var BUTTON_GAP = 12;
|
|
1422
|
-
var
|
|
1511
|
+
var styles13 = StyleSheet.create({
|
|
1423
1512
|
message: { fontSize: MESSAGE_FONT_SIZE2, lineHeight: MESSAGE_LINE_HEIGHT },
|
|
1424
1513
|
footer: { flexDirection: "row", justifyContent: "flex-end", columnGap: BUTTON_GAP }
|
|
1425
1514
|
});
|
|
@@ -1438,7 +1527,7 @@ var ConfirmDialog = ({
|
|
|
1438
1527
|
const { theme, t } = useUi();
|
|
1439
1528
|
const resolvedConfirm = confirmLabel ?? t(LAYOUT_I18N.confirm);
|
|
1440
1529
|
const resolvedCancel = cancelLabel ?? t(LAYOUT_I18N.cancel);
|
|
1441
|
-
const footer = /* @__PURE__ */ jsxs(View, { style:
|
|
1530
|
+
const footer = /* @__PURE__ */ jsxs(View, { style: styles13.footer, children: [
|
|
1442
1531
|
/* @__PURE__ */ jsx(
|
|
1443
1532
|
Button,
|
|
1444
1533
|
{
|
|
@@ -1474,7 +1563,7 @@ var ConfirmDialog = ({
|
|
|
1474
1563
|
title,
|
|
1475
1564
|
visible,
|
|
1476
1565
|
onClose: onCancel,
|
|
1477
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
1566
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles13.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
|
|
1478
1567
|
}
|
|
1479
1568
|
);
|
|
1480
1569
|
};
|
|
@@ -1487,7 +1576,7 @@ function useAccordionContext() {
|
|
|
1487
1576
|
return value;
|
|
1488
1577
|
}
|
|
1489
1578
|
var BOXED_GAP = 12;
|
|
1490
|
-
var
|
|
1579
|
+
var styles14 = StyleSheet.create({
|
|
1491
1580
|
container: { alignSelf: "stretch" },
|
|
1492
1581
|
boxed: { gap: BOXED_GAP }
|
|
1493
1582
|
});
|
|
@@ -1544,7 +1633,7 @@ var Accordion = ({
|
|
|
1544
1633
|
[openSet, toggle, allowMultiple, variant]
|
|
1545
1634
|
);
|
|
1546
1635
|
const containerStyle = useMemo(() => {
|
|
1547
|
-
const base = variant === "boxed" ? [
|
|
1636
|
+
const base = variant === "boxed" ? [styles14.container, styles14.boxed] : [styles14.container];
|
|
1548
1637
|
if (style === void 0) return base;
|
|
1549
1638
|
return [...base, ...Array.isArray(style) ? style : [style]];
|
|
1550
1639
|
}, [style, variant]);
|
|
@@ -1576,7 +1665,7 @@ var BOX_TITLE_FONT_SIZE = 14;
|
|
|
1576
1665
|
var BOX_MARKER_FONT_SIZE = 13;
|
|
1577
1666
|
var BOX_MARKER_GAP = 6;
|
|
1578
1667
|
var BOX_MARKER = "\u25B8";
|
|
1579
|
-
var
|
|
1668
|
+
var styles15 = StyleSheet.create({
|
|
1580
1669
|
item: { borderTopWidth: StyleSheet.hairlineWidth },
|
|
1581
1670
|
boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
|
|
1582
1671
|
header: {
|
|
@@ -1652,19 +1741,19 @@ var AccordionItem = ({
|
|
|
1652
1741
|
);
|
|
1653
1742
|
const keyboardProps = Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
|
|
1654
1743
|
const itemStyle = useMemo(
|
|
1655
|
-
() => boxed ? [
|
|
1744
|
+
() => boxed ? [styles15.boxItem, { borderColor: colors.border }] : [styles15.item, { borderTopColor: colors.border }],
|
|
1656
1745
|
[boxed, colors.border]
|
|
1657
1746
|
);
|
|
1658
1747
|
const headerStyle = useMemo(
|
|
1659
1748
|
() => [
|
|
1660
|
-
|
|
1661
|
-
...boxed ? [
|
|
1749
|
+
styles15.header,
|
|
1750
|
+
...boxed ? [styles15.boxHeader] : [],
|
|
1662
1751
|
{ opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
|
|
1663
1752
|
],
|
|
1664
1753
|
[boxed, disabled]
|
|
1665
1754
|
);
|
|
1666
1755
|
const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
|
|
1667
|
-
const titleNode = typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [boxed ?
|
|
1756
|
+
const titleNode = typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [boxed ? styles15.boxTitle : styles15.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
|
|
1668
1757
|
return /* @__PURE__ */ jsxs(View, { style: itemStyle, children: [
|
|
1669
1758
|
/* @__PURE__ */ jsxs(
|
|
1670
1759
|
Pressable,
|
|
@@ -1681,7 +1770,7 @@ var AccordionItem = ({
|
|
|
1681
1770
|
onPress: handlePress,
|
|
1682
1771
|
...keyboardProps,
|
|
1683
1772
|
children: [
|
|
1684
|
-
/* @__PURE__ */ jsxs(View, { style: [
|
|
1773
|
+
/* @__PURE__ */ jsxs(View, { style: [styles15.headerLeft, boxed ? styles15.headerLeftRow : null], children: [
|
|
1685
1774
|
boxed ? (
|
|
1686
1775
|
// Decorative — the open/closed state is already conveyed by aria-expanded on the header.
|
|
1687
1776
|
/* @__PURE__ */ jsx(
|
|
@@ -1690,15 +1779,15 @@ var AccordionItem = ({
|
|
|
1690
1779
|
accessibilityElementsHidden: true,
|
|
1691
1780
|
"aria-hidden": true,
|
|
1692
1781
|
importantForAccessibility: "no-hide-descendants",
|
|
1693
|
-
style: [
|
|
1782
|
+
style: [styles15.marker, { transform: [{ rotate }] }],
|
|
1694
1783
|
testID: chevronTestID,
|
|
1695
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
1784
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles15.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
|
|
1696
1785
|
}
|
|
1697
1786
|
)
|
|
1698
1787
|
) : null,
|
|
1699
1788
|
titleNode
|
|
1700
1789
|
] }),
|
|
1701
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
1790
|
+
/* @__PURE__ */ jsxs(View, { style: styles15.headerRight, children: [
|
|
1702
1791
|
right,
|
|
1703
1792
|
boxed ? null : /* @__PURE__ */ jsx(
|
|
1704
1793
|
Animated.View,
|
|
@@ -1706,7 +1795,7 @@ var AccordionItem = ({
|
|
|
1706
1795
|
accessibilityElementsHidden: true,
|
|
1707
1796
|
"aria-hidden": true,
|
|
1708
1797
|
importantForAccessibility: "no-hide-descendants",
|
|
1709
|
-
style: [
|
|
1798
|
+
style: [styles15.chevron, { transform: [{ rotate }] }],
|
|
1710
1799
|
children: /* @__PURE__ */ jsx(SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
|
|
1711
1800
|
}
|
|
1712
1801
|
)
|
|
@@ -1720,7 +1809,7 @@ var AccordionItem = ({
|
|
|
1720
1809
|
accessibilityLabel: resolvedLabel,
|
|
1721
1810
|
nativeID: bodyTestID,
|
|
1722
1811
|
role: ROLE_REGION,
|
|
1723
|
-
style: boxed ?
|
|
1812
|
+
style: boxed ? styles15.boxBody : styles15.body,
|
|
1724
1813
|
testID: bodyTestID,
|
|
1725
1814
|
children
|
|
1726
1815
|
}
|
|
@@ -1783,7 +1872,7 @@ function useAvailableWidth() {
|
|
|
1783
1872
|
var AVG_CHAR_WIDTH_RATIO = 0.58;
|
|
1784
1873
|
var DEFAULT_FONT_SIZE2 = 13;
|
|
1785
1874
|
var UNMEASURED2 = 0;
|
|
1786
|
-
var
|
|
1875
|
+
var styles16 = StyleSheet.create({
|
|
1787
1876
|
base: { fontSize: DEFAULT_FONT_SIZE2 },
|
|
1788
1877
|
/** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
|
|
1789
1878
|
fill: { flexShrink: 1, minWidth: 0 }
|
|
@@ -1814,7 +1903,7 @@ var TruncatedText = ({
|
|
|
1814
1903
|
[value, measureRef]
|
|
1815
1904
|
);
|
|
1816
1905
|
const flatStyle = useMemo(
|
|
1817
|
-
() => StyleSheet.flatten([
|
|
1906
|
+
() => StyleSheet.flatten([styles16.base, style]),
|
|
1818
1907
|
[style]
|
|
1819
1908
|
);
|
|
1820
1909
|
const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
|
|
@@ -1829,7 +1918,7 @@ var TruncatedText = ({
|
|
|
1829
1918
|
ref: attachRef,
|
|
1830
1919
|
onLayout,
|
|
1831
1920
|
numberOfLines: 1,
|
|
1832
|
-
style: [
|
|
1921
|
+
style: [styles16.base, styles16.fill, style],
|
|
1833
1922
|
testID,
|
|
1834
1923
|
accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
|
|
1835
1924
|
accessibilityLabel,
|
|
@@ -1932,7 +2021,7 @@ var LABEL_LETTER_SPACING = 0.4;
|
|
|
1932
2021
|
var ACTION_PADDING_H = 6;
|
|
1933
2022
|
var ACTION_PADDING_V = 2;
|
|
1934
2023
|
var ACTION_RADIUS = 6;
|
|
1935
|
-
var
|
|
2024
|
+
var styles17 = StyleSheet.create({
|
|
1936
2025
|
cell: { gap: CELL_GAP },
|
|
1937
2026
|
label: {
|
|
1938
2027
|
fontSize: LABEL_FONT_SIZE,
|
|
@@ -1997,14 +2086,14 @@ var CopyableId = ({
|
|
|
1997
2086
|
const { colors } = theme;
|
|
1998
2087
|
const { status, copy } = useCopyToClipboard(value, writer);
|
|
1999
2088
|
const action = useActionState(status);
|
|
2000
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
2001
|
-
label !== void 0 && /* @__PURE__ */ jsx(Text, { style: [
|
|
2002
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
2003
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
2089
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles17.cell, style], testID, children: [
|
|
2090
|
+
label !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles17.label, { color: colors.textSecondary }], children: label }),
|
|
2091
|
+
/* @__PURE__ */ jsxs(View, { style: styles17.row, children: [
|
|
2092
|
+
/* @__PURE__ */ jsx(View, { style: styles17.valueWrap, children: /* @__PURE__ */ jsx(
|
|
2004
2093
|
TruncatedText,
|
|
2005
2094
|
{
|
|
2006
2095
|
value,
|
|
2007
|
-
style: [
|
|
2096
|
+
style: [styles17.value, { color: colors.text }],
|
|
2008
2097
|
testID: `${testID}-value`,
|
|
2009
2098
|
accessibilityLabel: accessibilityLabel ?? value,
|
|
2010
2099
|
accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
|
|
@@ -2018,7 +2107,7 @@ var CopyableId = ({
|
|
|
2018
2107
|
accessibilityLabel: t(action.key),
|
|
2019
2108
|
accessibilityHint: t(LAYOUT_I18N.copyHint),
|
|
2020
2109
|
testID: `${testID}-copy`,
|
|
2021
|
-
style: [
|
|
2110
|
+
style: [styles17.action, { color: action.color }],
|
|
2022
2111
|
children: t(action.key)
|
|
2023
2112
|
}
|
|
2024
2113
|
)
|
|
@@ -2073,7 +2162,7 @@ var FOOTER_PADDING_V = 6;
|
|
|
2073
2162
|
var FOOTER_PADDING_H = 12;
|
|
2074
2163
|
var FOOTER_FONT_SIZE = 11;
|
|
2075
2164
|
var FOOTER_OPACITY = 0.75;
|
|
2076
|
-
var
|
|
2165
|
+
var styles18 = StyleSheet.create({
|
|
2077
2166
|
footer: {
|
|
2078
2167
|
paddingVertical: FOOTER_PADDING_V,
|
|
2079
2168
|
paddingHorizontal: FOOTER_PADDING_H,
|
|
@@ -2099,7 +2188,7 @@ var BuildInfoFooter = ({
|
|
|
2099
2188
|
const commit = apiCommit ?? fetchedCommit;
|
|
2100
2189
|
const label = formatBuildInfo(buildVersion, commit);
|
|
2101
2190
|
const textStyle = useMemo(
|
|
2102
|
-
() => [
|
|
2191
|
+
() => [styles18.text, { color: theme.colors.textSecondary }],
|
|
2103
2192
|
[theme.colors.textSecondary]
|
|
2104
2193
|
);
|
|
2105
2194
|
return /* @__PURE__ */ jsx(
|
|
@@ -2107,13 +2196,13 @@ var BuildInfoFooter = ({
|
|
|
2107
2196
|
{
|
|
2108
2197
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
2109
2198
|
accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.buildInfoHint),
|
|
2110
|
-
style: [
|
|
2199
|
+
style: [styles18.footer, style],
|
|
2111
2200
|
testID,
|
|
2112
2201
|
children: /* @__PURE__ */ jsx(Text, { style: textStyle, children: label })
|
|
2113
2202
|
}
|
|
2114
2203
|
);
|
|
2115
2204
|
};
|
|
2116
2205
|
|
|
2117
|
-
export { API_COMMIT_SEPARATOR, Accordion, AccordionItem, BUILD_INFO_PREFIX, BuildInfoFooter, COPY_FEEDBACK_MS, ConfirmDialog, CopyStatus, CopyableId, DEFAULT_BILLING_ROUTE, DropdownVariant, ELLIPSIS, Heading, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, MIN_TARGET_PX, Modal3 as Modal, ModalDropdown, ModalShell, Section, SegmentedControl, StatusBadge, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TruncatedText, UpgradePrompt, copyText, formatBuildInfo, formatUrlForDisplay, isWideWebViewport, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap };
|
|
2206
|
+
export { API_COMMIT_SEPARATOR, Accordion, AccordionItem, BUILD_INFO_PREFIX, BuildInfoFooter, COPY_FEEDBACK_MS, ConfirmDialog, CopyStatus, CopyableId, DEFAULT_BILLING_ROUTE, DropdownVariant, ELLIPSIS, Heading, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, MIN_TARGET_PX, Modal3 as Modal, ModalDropdown, ModalShell, Section, SegmentedControl, SelectedMarker, StatusBadge, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TruncatedText, UpgradePrompt, copyText, formatBuildInfo, formatUrlForDisplay, isWideWebViewport, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap };
|
|
2118
2207
|
//# sourceMappingURL=index.mjs.map
|
|
2119
2208
|
//# sourceMappingURL=index.mjs.map
|