@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.js
CHANGED
|
@@ -386,12 +386,50 @@ function isAnchorHidden(rect, clip, minVisiblePx) {
|
|
|
386
386
|
const visibleWidth = Math.min(rect.left + rect.width, clip.right) - Math.max(rect.left, clip.left);
|
|
387
387
|
return visibleHeight < minVisiblePx || visibleWidth < minVisiblePx;
|
|
388
388
|
}
|
|
389
|
+
var HEADING_FONT_SIZE = 12;
|
|
390
|
+
var HEADING_FONT_WEIGHT = "600";
|
|
391
|
+
var HEADING_PADDING_H = 16;
|
|
392
|
+
var HEADING_PADDING_TOP = 8;
|
|
393
|
+
var HEADING_PADDING_BOTTOM = 4;
|
|
394
|
+
var HEADING_LETTER_SPACING = 0.5;
|
|
395
|
+
var styles5 = reactNative.StyleSheet.create({
|
|
396
|
+
heading: {
|
|
397
|
+
fontSize: HEADING_FONT_SIZE,
|
|
398
|
+
fontWeight: HEADING_FONT_WEIGHT,
|
|
399
|
+
letterSpacing: HEADING_LETTER_SPACING,
|
|
400
|
+
paddingHorizontal: HEADING_PADDING_H,
|
|
401
|
+
paddingTop: HEADING_PADDING_TOP,
|
|
402
|
+
paddingBottom: HEADING_PADDING_BOTTOM
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
var MenuHeading = ({ testID, text }) => {
|
|
406
|
+
const { theme } = uiFeedback.useUi();
|
|
407
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
408
|
+
reactNative.Text,
|
|
409
|
+
{
|
|
410
|
+
accessibilityRole: "header",
|
|
411
|
+
style: [styles5.heading, { color: theme.colors.textSecondary }],
|
|
412
|
+
testID: `${testID}-menu-heading`,
|
|
413
|
+
children: text
|
|
414
|
+
}
|
|
415
|
+
);
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
// src/ModalDropdown/SelectedMarker.ts
|
|
419
|
+
var SelectedMarker = /* @__PURE__ */ ((SelectedMarker2) => {
|
|
420
|
+
SelectedMarker2["Bold"] = "bold";
|
|
421
|
+
SelectedMarker2["AccentCheck"] = "accent-check";
|
|
422
|
+
return SelectedMarker2;
|
|
423
|
+
})(SelectedMarker || {});
|
|
389
424
|
var OPTION_BORDER_RADIUS = 4;
|
|
390
425
|
var BODY_FONT_SIZE = 14;
|
|
391
426
|
var SELECTED_FONT_WEIGHT = "600";
|
|
392
427
|
var OPTION_PADDING_H = 16;
|
|
393
428
|
var OPTION_PADDING_V = 12;
|
|
394
|
-
var
|
|
429
|
+
var ACCENT_BAR_WIDTH = 3;
|
|
430
|
+
var CHECK_GAP = 8;
|
|
431
|
+
var CHECK_GLYPH = "\u2713";
|
|
432
|
+
var styles6 = reactNative.StyleSheet.create({
|
|
395
433
|
option: {
|
|
396
434
|
paddingHorizontal: OPTION_PADDING_H,
|
|
397
435
|
paddingVertical: OPTION_PADDING_V,
|
|
@@ -400,35 +438,63 @@ var styles5 = reactNative.StyleSheet.create({
|
|
|
400
438
|
borderRadius: OPTION_BORDER_RADIUS
|
|
401
439
|
},
|
|
402
440
|
optionText: { fontSize: BODY_FONT_SIZE },
|
|
403
|
-
selectedText: { fontWeight: SELECTED_FONT_WEIGHT }
|
|
441
|
+
selectedText: { fontWeight: SELECTED_FONT_WEIGHT },
|
|
442
|
+
markedRow: {
|
|
443
|
+
flexDirection: "row",
|
|
444
|
+
alignItems: "center",
|
|
445
|
+
justifyContent: "space-between",
|
|
446
|
+
columnGap: CHECK_GAP,
|
|
447
|
+
borderLeftWidth: ACCENT_BAR_WIDTH,
|
|
448
|
+
borderLeftColor: "transparent",
|
|
449
|
+
paddingLeft: OPTION_PADDING_H - ACCENT_BAR_WIDTH
|
|
450
|
+
},
|
|
451
|
+
markedText: { flexShrink: 1 }
|
|
404
452
|
});
|
|
405
453
|
var OptionRow = ({
|
|
406
454
|
testID,
|
|
407
455
|
label,
|
|
408
456
|
isSelected,
|
|
409
457
|
isHighlighted = false,
|
|
410
|
-
onSelect
|
|
458
|
+
onSelect,
|
|
459
|
+
selectedMarker = "bold" /* Bold */,
|
|
460
|
+
asMenuItem = false
|
|
411
461
|
}) => {
|
|
412
462
|
const { theme, t } = uiFeedback.useUi();
|
|
413
463
|
const { colors } = theme;
|
|
414
464
|
const handlePress = React10.useCallback(() => {
|
|
415
465
|
onSelect();
|
|
416
466
|
}, [onSelect]);
|
|
467
|
+
const accentColor = theme.palette.primary["500"];
|
|
468
|
+
const isMarked = selectedMarker === "accent-check" /* AccentCheck */;
|
|
417
469
|
const isActive = isSelected || isHighlighted;
|
|
418
|
-
const rowStyle = [
|
|
419
|
-
|
|
420
|
-
|
|
470
|
+
const rowStyle = [
|
|
471
|
+
styles6.option,
|
|
472
|
+
isMarked ? styles6.markedRow : null,
|
|
473
|
+
isActive ? { backgroundColor: colors.surfaceElevated } : null,
|
|
474
|
+
isMarked && isSelected ? { borderLeftColor: accentColor } : null
|
|
475
|
+
];
|
|
476
|
+
const textStyle = [
|
|
477
|
+
styles6.optionText,
|
|
478
|
+
{ color: colors.text },
|
|
479
|
+
isSelected ? styles6.selectedText : null,
|
|
480
|
+
isMarked ? styles6.markedText : null
|
|
481
|
+
];
|
|
482
|
+
const selectionProps = asMenuItem ? { "aria-current": isSelected ? "true" : void 0 } : { "aria-selected": isSelected };
|
|
483
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
421
484
|
reactNative.TouchableOpacity,
|
|
422
485
|
{
|
|
423
486
|
accessible: true,
|
|
424
487
|
accessibilityHint: t(LAYOUT_I18N.selectOptionHint),
|
|
425
488
|
accessibilityLabel: label,
|
|
426
|
-
accessibilityRole: "button",
|
|
427
|
-
|
|
489
|
+
accessibilityRole: asMenuItem ? "menuitem" : "button",
|
|
490
|
+
...selectionProps,
|
|
428
491
|
style: rowStyle,
|
|
429
492
|
testID,
|
|
430
493
|
onPress: handlePress,
|
|
431
|
-
children:
|
|
494
|
+
children: [
|
|
495
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: textStyle, children: label }),
|
|
496
|
+
isMarked && isSelected ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, testID: `${testID}-check`, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.selectedText, { color: accentColor }], children: CHECK_GLYPH }) }) : null
|
|
497
|
+
]
|
|
432
498
|
}
|
|
433
499
|
);
|
|
434
500
|
};
|
|
@@ -585,7 +651,7 @@ var IS_WEB2 = reactNative.Platform.OS === "web";
|
|
|
585
651
|
var BORDER_RADIUS2 = 8;
|
|
586
652
|
var BORDER_WIDTH3 = 1;
|
|
587
653
|
var MENU_PADDING2 = 4;
|
|
588
|
-
var
|
|
654
|
+
var styles7 = reactNative.StyleSheet.create({
|
|
589
655
|
/** Native (in-tree) popover — anchored absolutely just under the trigger. */
|
|
590
656
|
popover: {
|
|
591
657
|
position: "absolute",
|
|
@@ -620,7 +686,9 @@ var InlineMenu = ({
|
|
|
620
686
|
isOpen,
|
|
621
687
|
optionTestID,
|
|
622
688
|
menuMinWidth = 0,
|
|
689
|
+
menuHeading,
|
|
623
690
|
animatedStyle,
|
|
691
|
+
selectedMarker,
|
|
624
692
|
onSelect,
|
|
625
693
|
onClose
|
|
626
694
|
}) => {
|
|
@@ -670,7 +738,7 @@ var InlineMenu = ({
|
|
|
670
738
|
themed
|
|
671
739
|
];
|
|
672
740
|
}
|
|
673
|
-
return [
|
|
741
|
+
return [styles7.popover, { minWidth: menuMinWidth }, themed];
|
|
674
742
|
}, [colors.border, colors.surface, menuMinWidth, rect]);
|
|
675
743
|
const menu = /* @__PURE__ */ jsxRuntime.jsx(
|
|
676
744
|
reactNative.View,
|
|
@@ -678,25 +746,30 @@ var InlineMenu = ({
|
|
|
678
746
|
ref: menuRef,
|
|
679
747
|
accessibilityRole: "menu",
|
|
680
748
|
"aria-hidden": !isOpen,
|
|
681
|
-
"aria-label": accessibilityLabel,
|
|
749
|
+
"aria-label": menuHeading ?? accessibilityLabel,
|
|
682
750
|
style: popoverStyle,
|
|
683
751
|
testID: `${testID}-menu`,
|
|
684
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
752
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
685
753
|
reactNative.Animated.View,
|
|
686
754
|
{
|
|
687
755
|
pointerEvents: isOpen ? "auto" : "none",
|
|
688
|
-
style: [
|
|
689
|
-
children:
|
|
690
|
-
|
|
691
|
-
{
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
756
|
+
style: [styles7.animated, animatedStyle, isOpen ? null : styles7.inert],
|
|
757
|
+
children: [
|
|
758
|
+
menuHeading !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(MenuHeading, { testID, text: menuHeading }) : null,
|
|
759
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { style: styles7.scroll, keyboardShouldPersistTaps: "handled", children: options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
760
|
+
OptionRow,
|
|
761
|
+
{
|
|
762
|
+
asMenuItem: true,
|
|
763
|
+
isHighlighted: index === highlightedIndex,
|
|
764
|
+
isSelected: option.value === value,
|
|
765
|
+
label: option.label,
|
|
766
|
+
selectedMarker,
|
|
767
|
+
testID: optionTestID !== void 0 ? optionTestID(option.value) : `${testID}-option-${String(option.value)}`,
|
|
768
|
+
onSelect: () => handleSelect(option.value)
|
|
769
|
+
},
|
|
770
|
+
String(option.value)
|
|
771
|
+
)) })
|
|
772
|
+
]
|
|
700
773
|
}
|
|
701
774
|
)
|
|
702
775
|
}
|
|
@@ -739,7 +812,7 @@ var CARET_OPEN_ROTATION = "180deg";
|
|
|
739
812
|
var CARET_CLOSED_ROTATION = "0deg";
|
|
740
813
|
var POPOVER_ENTER_SCALE = 0.96;
|
|
741
814
|
var POPOVER_MOTION_MS = 120;
|
|
742
|
-
var
|
|
815
|
+
var styles8 = reactNative.StyleSheet.create({
|
|
743
816
|
anchor: { position: "relative" },
|
|
744
817
|
container: {
|
|
745
818
|
borderWidth: BORDER_WIDTH4,
|
|
@@ -801,7 +874,9 @@ var ModalDropdown = ({
|
|
|
801
874
|
optionTestID,
|
|
802
875
|
menuMinWidth,
|
|
803
876
|
showCaret = false,
|
|
804
|
-
showHamburger = false
|
|
877
|
+
showHamburger = false,
|
|
878
|
+
menuHeading,
|
|
879
|
+
selectedMarker
|
|
805
880
|
}) => {
|
|
806
881
|
const { theme, t } = uiFeedback.useUi();
|
|
807
882
|
const { colors } = theme;
|
|
@@ -816,6 +891,8 @@ var ModalDropdown = ({
|
|
|
816
891
|
testID
|
|
817
892
|
});
|
|
818
893
|
const anchorRef = React10.useRef(null);
|
|
894
|
+
const triggerRef = React10.useRef(null);
|
|
895
|
+
const popupProps = { "aria-haspopup": isMenu ? "menu" : "dialog" };
|
|
819
896
|
const dialogRef = React10.useRef(null);
|
|
820
897
|
useFocusTrap(dialogRef, isOpen && !isMenu);
|
|
821
898
|
const menuAnim = uiMotion.useEnterExit({
|
|
@@ -842,6 +919,7 @@ var ModalDropdown = ({
|
|
|
842
919
|
(optionValue) => {
|
|
843
920
|
onChange(optionValue);
|
|
844
921
|
setIsOpen(false);
|
|
922
|
+
triggerRef.current?.focus();
|
|
845
923
|
},
|
|
846
924
|
[onChange]
|
|
847
925
|
);
|
|
@@ -849,19 +927,19 @@ var ModalDropdown = ({
|
|
|
849
927
|
const isCaret = showCaret && !isHamburger;
|
|
850
928
|
const containerStyle = React10.useMemo(
|
|
851
929
|
() => renderTrigger !== void 0 ? void 0 : [
|
|
852
|
-
|
|
853
|
-
isHamburger ?
|
|
930
|
+
styles8.container,
|
|
931
|
+
isHamburger ? styles8.containerHamburger : isCaret ? styles8.containerMenu : null,
|
|
854
932
|
{ borderColor: colors.border, backgroundColor: colors.surface }
|
|
855
933
|
],
|
|
856
934
|
[colors.border, colors.surface, renderTrigger, isHamburger, isCaret]
|
|
857
935
|
);
|
|
858
936
|
const hamburgerStyle = React10.useMemo(
|
|
859
|
-
() => [
|
|
937
|
+
() => [styles8.hamburger, { color: colors.textSecondary }],
|
|
860
938
|
[colors.textSecondary]
|
|
861
939
|
);
|
|
862
940
|
const caretStyle = React10.useMemo(
|
|
863
941
|
() => [
|
|
864
|
-
|
|
942
|
+
styles8.caret,
|
|
865
943
|
{ color: colors.textSecondary, transform: [{ rotate: isOpen ? CARET_OPEN_ROTATION : CARET_CLOSED_ROTATION }] }
|
|
866
944
|
],
|
|
867
945
|
[colors.textSecondary, isOpen]
|
|
@@ -871,11 +949,11 @@ var ModalDropdown = ({
|
|
|
871
949
|
[optionTestID, testID]
|
|
872
950
|
);
|
|
873
951
|
const anchorStyle = React10.useMemo(
|
|
874
|
-
() => [
|
|
952
|
+
() => [styles8.anchor, buildAnchorStackStyle(isMenu && isOpen)],
|
|
875
953
|
[isMenu, isOpen]
|
|
876
954
|
);
|
|
877
955
|
const modalContentStyle = React10.useMemo(
|
|
878
|
-
() => [
|
|
956
|
+
() => [styles8.modalContent, { backgroundColor: colors.surface }],
|
|
879
957
|
[colors.surface]
|
|
880
958
|
);
|
|
881
959
|
const renderModalOption = React10.useCallback(
|
|
@@ -884,22 +962,23 @@ var ModalDropdown = ({
|
|
|
884
962
|
{
|
|
885
963
|
isSelected: item.value === value,
|
|
886
964
|
label: item.label,
|
|
965
|
+
selectedMarker,
|
|
887
966
|
testID: optionTestIDFor(item.value),
|
|
888
967
|
onSelect: () => handleSelect(item.value)
|
|
889
968
|
}
|
|
890
969
|
),
|
|
891
|
-
[handleSelect, optionTestIDFor, value]
|
|
970
|
+
[handleSelect, optionTestIDFor, selectedMarker, value]
|
|
892
971
|
);
|
|
893
972
|
const keyExtractor = React10.useCallback((item) => String(item.value), []);
|
|
894
973
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: anchorStyle, children: [
|
|
895
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.TouchableOpacity, { ...a11yProps, style: containerStyle, onPress: handleToggle, children: [
|
|
974
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.TouchableOpacity, { ...a11yProps, ...popupProps, ref: triggerRef, style: containerStyle, onPress: handleToggle, children: [
|
|
896
975
|
renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : isHamburger ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
897
976
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: hamburgerStyle, children: HAMBURGER_GLYPH }),
|
|
898
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [
|
|
977
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles8.selectedText, styles8.selectedTextMenu, { color: colors.text }], children: selectedLabel })
|
|
899
978
|
] }) : isCaret ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
900
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [
|
|
979
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles8.selectedText, styles8.selectedTextMenu, { color: colors.text }], children: selectedLabel }),
|
|
901
980
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: caretStyle, children: CARET_GLYPH })
|
|
902
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
981
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.selectedText, { color: colors.text }], children: selectedLabel }),
|
|
903
982
|
hintNode
|
|
904
983
|
] }),
|
|
905
984
|
isMenu && menuAnim.mounted ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -909,16 +988,18 @@ var ModalDropdown = ({
|
|
|
909
988
|
animatedStyle: menuAnim.style,
|
|
910
989
|
containerRef: anchorRef,
|
|
911
990
|
isOpen,
|
|
991
|
+
menuHeading,
|
|
912
992
|
menuMinWidth,
|
|
913
993
|
optionTestID: optionTestIDFor,
|
|
914
994
|
options,
|
|
995
|
+
selectedMarker,
|
|
915
996
|
testID,
|
|
916
997
|
value,
|
|
917
998
|
onClose: handleClose,
|
|
918
999
|
onSelect: handleSelect
|
|
919
1000
|
}
|
|
920
1001
|
) : null,
|
|
921
|
-
!isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: modalAnim.mounted, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1002
|
+
!isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: modalAnim.mounted, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.modalOverlay, children: [
|
|
922
1003
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
923
1004
|
reactNative.TouchableOpacity,
|
|
924
1005
|
{
|
|
@@ -937,10 +1018,18 @@ var ModalDropdown = ({
|
|
|
937
1018
|
{
|
|
938
1019
|
ref: dialogRef,
|
|
939
1020
|
accessibilityViewIsModal: true,
|
|
940
|
-
"aria-label": accessibilityLabel,
|
|
1021
|
+
"aria-label": menuHeading ?? accessibilityLabel,
|
|
941
1022
|
role: "dialog",
|
|
942
1023
|
style: [modalContentStyle, modalAnim.style],
|
|
943
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1024
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1025
|
+
reactNative.FlatList,
|
|
1026
|
+
{
|
|
1027
|
+
data: [...options],
|
|
1028
|
+
keyExtractor,
|
|
1029
|
+
ListHeaderComponent: menuHeading !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(MenuHeading, { testID, text: menuHeading }) : null,
|
|
1030
|
+
renderItem: renderModalOption
|
|
1031
|
+
}
|
|
1032
|
+
)
|
|
944
1033
|
}
|
|
945
1034
|
)
|
|
946
1035
|
] }) }) : null
|
|
@@ -1003,7 +1092,7 @@ var ROW_PAD_V = 8;
|
|
|
1003
1092
|
var PANEL_PAD_TOP = 16;
|
|
1004
1093
|
var BORDER_WIDTH5 = 1;
|
|
1005
1094
|
var TEXT_ON_PRIMARY = "#ffffff";
|
|
1006
|
-
var
|
|
1095
|
+
var styles9 = reactNative.StyleSheet.create({
|
|
1007
1096
|
root: {
|
|
1008
1097
|
width: "100%"
|
|
1009
1098
|
},
|
|
@@ -1057,7 +1146,7 @@ var WideTabStrip = ({
|
|
|
1057
1146
|
textSecondary,
|
|
1058
1147
|
surfaceElevated,
|
|
1059
1148
|
stripStyle
|
|
1060
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [
|
|
1149
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles9.stripOuter, { borderBottomColor: borderColor }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles9.strip, stripStyle], children: tabs.map((tab) => {
|
|
1061
1150
|
const selected = tab.key === activeKey;
|
|
1062
1151
|
const textColor = selected ? TEXT_ON_PRIMARY : textSecondary;
|
|
1063
1152
|
const pillColor = selected ? primaryColor : surfaceElevated;
|
|
@@ -1071,10 +1160,10 @@ var WideTabStrip = ({
|
|
|
1071
1160
|
accessibilityLabel: tab.accessibilityLabel ?? tab.label,
|
|
1072
1161
|
accessibilityHint: tab.accessibilityHint,
|
|
1073
1162
|
onPress: () => onChange(tab.key),
|
|
1074
|
-
style: [
|
|
1163
|
+
style: [styles9.pill, { backgroundColor: pillColor }],
|
|
1075
1164
|
testID: tab.testID,
|
|
1076
1165
|
...ariaTabProps(selected, panelId, tabId),
|
|
1077
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1166
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.pillText, { color: textColor }], children: tab.label })
|
|
1078
1167
|
},
|
|
1079
1168
|
tab.key
|
|
1080
1169
|
);
|
|
@@ -1099,7 +1188,7 @@ var Tabs = ({
|
|
|
1099
1188
|
const activePanelId = `${idPrefix}-panel-${activeKey}`;
|
|
1100
1189
|
const activeTabId = `${idPrefix}-tab-${activeKey}`;
|
|
1101
1190
|
const panelAria = { "aria-labelledby": activeTabId, id: activePanelId };
|
|
1102
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
1191
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles9.root, style], testID, children: [
|
|
1103
1192
|
collapsed ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1104
1193
|
TabsMenu,
|
|
1105
1194
|
{
|
|
@@ -1126,7 +1215,7 @@ var Tabs = ({
|
|
|
1126
1215
|
onChange
|
|
1127
1216
|
}
|
|
1128
1217
|
),
|
|
1129
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "none", style: [
|
|
1218
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "none", style: [styles9.panel, panelStyle], ...panelAria, children })
|
|
1130
1219
|
] });
|
|
1131
1220
|
};
|
|
1132
1221
|
var PROMPT_PADDING = 20;
|
|
@@ -1141,7 +1230,7 @@ var DISMISS_FONT_SIZE = 13;
|
|
|
1141
1230
|
var TITLE_MARGIN_BOTTOM = 8;
|
|
1142
1231
|
var MESSAGE_MARGIN_BOTTOM = 16;
|
|
1143
1232
|
var CTA_MARGIN_BOTTOM = 8;
|
|
1144
|
-
var
|
|
1233
|
+
var styles10 = reactNative.StyleSheet.create({
|
|
1145
1234
|
container: {
|
|
1146
1235
|
padding: PROMPT_PADDING,
|
|
1147
1236
|
borderRadius: PROMPT_BORDER_RADIUS,
|
|
@@ -1176,21 +1265,21 @@ var UpgradePrompt = ({
|
|
|
1176
1265
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1177
1266
|
reactNative.View,
|
|
1178
1267
|
{
|
|
1179
|
-
style: [
|
|
1268
|
+
style: [styles10.container, { borderColor: primary, backgroundColor: colors.surface }],
|
|
1180
1269
|
testID: LAYOUT_TEST_IDS.upgradePrompt,
|
|
1181
1270
|
children: [
|
|
1182
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1183
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1271
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
|
|
1272
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
|
|
1184
1273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1185
1274
|
reactNative.TouchableOpacity,
|
|
1186
1275
|
{
|
|
1187
1276
|
accessibilityHint: t(LAYOUT_I18N.upgradePromptCtaHint),
|
|
1188
1277
|
accessibilityLabel: t(LAYOUT_I18N.upgradePromptCta),
|
|
1189
1278
|
accessibilityRole: "button",
|
|
1190
|
-
style: [
|
|
1279
|
+
style: [styles10.cta, { backgroundColor: primary }],
|
|
1191
1280
|
testID: LAYOUT_TEST_IDS.upgradePromptCta,
|
|
1192
1281
|
onPress: handleUpgradePress,
|
|
1193
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1282
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
|
|
1194
1283
|
}
|
|
1195
1284
|
),
|
|
1196
1285
|
onDismiss ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1199,10 +1288,10 @@ var UpgradePrompt = ({
|
|
|
1199
1288
|
accessibilityHint: t(LAYOUT_I18N.upgradePromptDismissHint),
|
|
1200
1289
|
accessibilityLabel: t(LAYOUT_I18N.upgradePromptDismiss),
|
|
1201
1290
|
accessibilityRole: "button",
|
|
1202
|
-
style:
|
|
1291
|
+
style: styles10.dismiss,
|
|
1203
1292
|
testID: LAYOUT_TEST_IDS.upgradePromptDismiss,
|
|
1204
1293
|
onPress: onDismiss,
|
|
1205
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1294
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
|
|
1206
1295
|
}
|
|
1207
1296
|
) : null
|
|
1208
1297
|
]
|
|
@@ -1211,7 +1300,7 @@ var UpgradePrompt = ({
|
|
|
1211
1300
|
};
|
|
1212
1301
|
var CLOSE_ICON_SIZE = 18;
|
|
1213
1302
|
var PANEL_ENTER_SCALE = 0.96;
|
|
1214
|
-
var
|
|
1303
|
+
var styles11 = reactNative.StyleSheet.create({
|
|
1215
1304
|
animatedFill: { flex: 1 },
|
|
1216
1305
|
container: {
|
|
1217
1306
|
flex: 1,
|
|
@@ -1238,7 +1327,7 @@ var ModalShell = ({
|
|
|
1238
1327
|
const { theme, t } = uiFeedback.useUi();
|
|
1239
1328
|
const { style: sheetStyle, mounted } = uiMotion.useEnterExit({ visible, fromScale: PANEL_ENTER_SCALE });
|
|
1240
1329
|
const containerStyle = React10__default.default.useMemo(
|
|
1241
|
-
() => [
|
|
1330
|
+
() => [styles11.container, { backgroundColor: theme.colors.background }, contentStyle],
|
|
1242
1331
|
[theme.colors.background, contentStyle]
|
|
1243
1332
|
);
|
|
1244
1333
|
const closeA11yLabel = t(LAYOUT_I18N.close);
|
|
@@ -1250,7 +1339,7 @@ var ModalShell = ({
|
|
|
1250
1339
|
testID: LAYOUT_TEST_IDS.modalShell,
|
|
1251
1340
|
visible: mounted,
|
|
1252
1341
|
onRequestClose: onCancel,
|
|
1253
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
1342
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: [styles11.animatedFill, sheetStyle], children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1254
1343
|
reactNative.ScrollView,
|
|
1255
1344
|
{
|
|
1256
1345
|
accessibilityViewIsModal: true,
|
|
@@ -1258,7 +1347,7 @@ var ModalShell = ({
|
|
|
1258
1347
|
role: "dialog",
|
|
1259
1348
|
style: containerStyle,
|
|
1260
1349
|
children: [
|
|
1261
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1350
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.headerRow, children: [
|
|
1262
1351
|
/* @__PURE__ */ jsxRuntime.jsx(Heading, { children: title ?? t(LAYOUT_I18N.closeHeading) }),
|
|
1263
1352
|
showClose ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1264
1353
|
reactNative.TouchableOpacity,
|
|
@@ -1266,7 +1355,7 @@ var ModalShell = ({
|
|
|
1266
1355
|
accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
|
|
1267
1356
|
accessibilityLabel: closeA11yLabel,
|
|
1268
1357
|
accessibilityRole: "button",
|
|
1269
|
-
style:
|
|
1358
|
+
style: styles11.closeButton,
|
|
1270
1359
|
testID: LAYOUT_TEST_IDS.modalShellClose,
|
|
1271
1360
|
onPress: onCancel,
|
|
1272
1361
|
children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: theme.colors.textSecondary, name: "close", size: CLOSE_ICON_SIZE })
|
|
@@ -1312,7 +1401,7 @@ var HEADER_MARGIN = 12;
|
|
|
1312
1401
|
var DIALOG_MAX_HEIGHT = "90%";
|
|
1313
1402
|
var PANEL_ENTER_SCALE2 = 0.96;
|
|
1314
1403
|
var SIZE_MAX_WIDTH = { sm: 360, md: 480, lg: 640 };
|
|
1315
|
-
var
|
|
1404
|
+
var styles12 = reactNative.StyleSheet.create({
|
|
1316
1405
|
overlay: {
|
|
1317
1406
|
flex: 1,
|
|
1318
1407
|
justifyContent: "center",
|
|
@@ -1364,15 +1453,15 @@ var Modal3 = ({
|
|
|
1364
1453
|
const accessibleName = accessibilityLabel ?? title ?? t(LAYOUT_I18N.dialog);
|
|
1365
1454
|
const closeLabel = t(LAYOUT_I18N.dialogClose);
|
|
1366
1455
|
const dialogStyle = React10.useMemo(
|
|
1367
|
-
() => [
|
|
1456
|
+
() => [styles12.dialog, { backgroundColor: theme.colors.surface, maxWidth: SIZE_MAX_WIDTH[size] }],
|
|
1368
1457
|
[theme.colors.surface, size]
|
|
1369
1458
|
);
|
|
1370
1459
|
const hasHeader = title !== void 0 || showClose;
|
|
1371
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1460
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.overlay, children: [
|
|
1372
1461
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1373
1462
|
reactNative.Animated.View,
|
|
1374
1463
|
{
|
|
1375
|
-
style: [reactNative.StyleSheet.absoluteFill,
|
|
1464
|
+
style: [reactNative.StyleSheet.absoluteFill, styles12.scrim, { opacity: backdrop.style.opacity }]
|
|
1376
1465
|
}
|
|
1377
1466
|
),
|
|
1378
1467
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1398,8 +1487,8 @@ var Modal3 = ({
|
|
|
1398
1487
|
style: [dialogStyle, panel.style],
|
|
1399
1488
|
testID,
|
|
1400
1489
|
children: [
|
|
1401
|
-
hasHeader ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1402
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
1490
|
+
hasHeader ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.headerRow, children: [
|
|
1491
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.titleWrap, children: title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(Heading, { children: title }) : null }),
|
|
1403
1492
|
showClose ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1404
1493
|
uiButtons.IconButton,
|
|
1405
1494
|
{
|
|
@@ -1416,7 +1505,7 @@ var Modal3 = ({
|
|
|
1416
1505
|
) : null
|
|
1417
1506
|
] }) : null,
|
|
1418
1507
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { children }),
|
|
1419
|
-
footer !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
1508
|
+
footer !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.footer, children: footer }) : null
|
|
1420
1509
|
]
|
|
1421
1510
|
}
|
|
1422
1511
|
)
|
|
@@ -1425,7 +1514,7 @@ var Modal3 = ({
|
|
|
1425
1514
|
var MESSAGE_FONT_SIZE2 = 14;
|
|
1426
1515
|
var MESSAGE_LINE_HEIGHT = 20;
|
|
1427
1516
|
var BUTTON_GAP = 12;
|
|
1428
|
-
var
|
|
1517
|
+
var styles13 = reactNative.StyleSheet.create({
|
|
1429
1518
|
message: { fontSize: MESSAGE_FONT_SIZE2, lineHeight: MESSAGE_LINE_HEIGHT },
|
|
1430
1519
|
footer: { flexDirection: "row", justifyContent: "flex-end", columnGap: BUTTON_GAP }
|
|
1431
1520
|
});
|
|
@@ -1444,7 +1533,7 @@ var ConfirmDialog = ({
|
|
|
1444
1533
|
const { theme, t } = uiFeedback.useUi();
|
|
1445
1534
|
const resolvedConfirm = confirmLabel ?? t(LAYOUT_I18N.confirm);
|
|
1446
1535
|
const resolvedCancel = cancelLabel ?? t(LAYOUT_I18N.cancel);
|
|
1447
|
-
const footer = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1536
|
+
const footer = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles13.footer, children: [
|
|
1448
1537
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1449
1538
|
uiButtons.Button,
|
|
1450
1539
|
{
|
|
@@ -1480,7 +1569,7 @@ var ConfirmDialog = ({
|
|
|
1480
1569
|
title,
|
|
1481
1570
|
visible,
|
|
1482
1571
|
onClose: onCancel,
|
|
1483
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1572
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
|
|
1484
1573
|
}
|
|
1485
1574
|
);
|
|
1486
1575
|
};
|
|
@@ -1493,7 +1582,7 @@ function useAccordionContext() {
|
|
|
1493
1582
|
return value;
|
|
1494
1583
|
}
|
|
1495
1584
|
var BOXED_GAP = 12;
|
|
1496
|
-
var
|
|
1585
|
+
var styles14 = reactNative.StyleSheet.create({
|
|
1497
1586
|
container: { alignSelf: "stretch" },
|
|
1498
1587
|
boxed: { gap: BOXED_GAP }
|
|
1499
1588
|
});
|
|
@@ -1550,7 +1639,7 @@ var Accordion = ({
|
|
|
1550
1639
|
[openSet, toggle, allowMultiple, variant]
|
|
1551
1640
|
);
|
|
1552
1641
|
const containerStyle = React10.useMemo(() => {
|
|
1553
|
-
const base = variant === "boxed" ? [
|
|
1642
|
+
const base = variant === "boxed" ? [styles14.container, styles14.boxed] : [styles14.container];
|
|
1554
1643
|
if (style === void 0) return base;
|
|
1555
1644
|
return [...base, ...Array.isArray(style) ? style : [style]];
|
|
1556
1645
|
}, [style, variant]);
|
|
@@ -1582,7 +1671,7 @@ var BOX_TITLE_FONT_SIZE = 14;
|
|
|
1582
1671
|
var BOX_MARKER_FONT_SIZE = 13;
|
|
1583
1672
|
var BOX_MARKER_GAP = 6;
|
|
1584
1673
|
var BOX_MARKER = "\u25B8";
|
|
1585
|
-
var
|
|
1674
|
+
var styles15 = reactNative.StyleSheet.create({
|
|
1586
1675
|
item: { borderTopWidth: reactNative.StyleSheet.hairlineWidth },
|
|
1587
1676
|
boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
|
|
1588
1677
|
header: {
|
|
@@ -1658,19 +1747,19 @@ var AccordionItem = ({
|
|
|
1658
1747
|
);
|
|
1659
1748
|
const keyboardProps = reactNative.Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
|
|
1660
1749
|
const itemStyle = React10.useMemo(
|
|
1661
|
-
() => boxed ? [
|
|
1750
|
+
() => boxed ? [styles15.boxItem, { borderColor: colors.border }] : [styles15.item, { borderTopColor: colors.border }],
|
|
1662
1751
|
[boxed, colors.border]
|
|
1663
1752
|
);
|
|
1664
1753
|
const headerStyle = React10.useMemo(
|
|
1665
1754
|
() => [
|
|
1666
|
-
|
|
1667
|
-
...boxed ? [
|
|
1755
|
+
styles15.header,
|
|
1756
|
+
...boxed ? [styles15.boxHeader] : [],
|
|
1668
1757
|
{ opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
|
|
1669
1758
|
],
|
|
1670
1759
|
[boxed, disabled]
|
|
1671
1760
|
);
|
|
1672
1761
|
const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
|
|
1673
|
-
const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ?
|
|
1762
|
+
const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ? styles15.boxTitle : styles15.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
|
|
1674
1763
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: itemStyle, children: [
|
|
1675
1764
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1676
1765
|
reactNative.Pressable,
|
|
@@ -1687,7 +1776,7 @@ var AccordionItem = ({
|
|
|
1687
1776
|
onPress: handlePress,
|
|
1688
1777
|
...keyboardProps,
|
|
1689
1778
|
children: [
|
|
1690
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
1779
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles15.headerLeft, boxed ? styles15.headerLeftRow : null], children: [
|
|
1691
1780
|
boxed ? (
|
|
1692
1781
|
// Decorative — the open/closed state is already conveyed by aria-expanded on the header.
|
|
1693
1782
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1696,15 +1785,15 @@ var AccordionItem = ({
|
|
|
1696
1785
|
accessibilityElementsHidden: true,
|
|
1697
1786
|
"aria-hidden": true,
|
|
1698
1787
|
importantForAccessibility: "no-hide-descendants",
|
|
1699
|
-
style: [
|
|
1788
|
+
style: [styles15.marker, { transform: [{ rotate }] }],
|
|
1700
1789
|
testID: chevronTestID,
|
|
1701
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1790
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
|
|
1702
1791
|
}
|
|
1703
1792
|
)
|
|
1704
1793
|
) : null,
|
|
1705
1794
|
titleNode
|
|
1706
1795
|
] }),
|
|
1707
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1796
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.headerRight, children: [
|
|
1708
1797
|
right,
|
|
1709
1798
|
boxed ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1710
1799
|
reactNative.Animated.View,
|
|
@@ -1712,7 +1801,7 @@ var AccordionItem = ({
|
|
|
1712
1801
|
accessibilityElementsHidden: true,
|
|
1713
1802
|
"aria-hidden": true,
|
|
1714
1803
|
importantForAccessibility: "no-hide-descendants",
|
|
1715
|
-
style: [
|
|
1804
|
+
style: [styles15.chevron, { transform: [{ rotate }] }],
|
|
1716
1805
|
children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
|
|
1717
1806
|
}
|
|
1718
1807
|
)
|
|
@@ -1726,7 +1815,7 @@ var AccordionItem = ({
|
|
|
1726
1815
|
accessibilityLabel: resolvedLabel,
|
|
1727
1816
|
nativeID: bodyTestID,
|
|
1728
1817
|
role: ROLE_REGION,
|
|
1729
|
-
style: boxed ?
|
|
1818
|
+
style: boxed ? styles15.boxBody : styles15.body,
|
|
1730
1819
|
testID: bodyTestID,
|
|
1731
1820
|
children
|
|
1732
1821
|
}
|
|
@@ -1789,7 +1878,7 @@ function useAvailableWidth() {
|
|
|
1789
1878
|
var AVG_CHAR_WIDTH_RATIO = 0.58;
|
|
1790
1879
|
var DEFAULT_FONT_SIZE2 = 13;
|
|
1791
1880
|
var UNMEASURED2 = 0;
|
|
1792
|
-
var
|
|
1881
|
+
var styles16 = reactNative.StyleSheet.create({
|
|
1793
1882
|
base: { fontSize: DEFAULT_FONT_SIZE2 },
|
|
1794
1883
|
/** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
|
|
1795
1884
|
fill: { flexShrink: 1, minWidth: 0 }
|
|
@@ -1820,7 +1909,7 @@ var TruncatedText = ({
|
|
|
1820
1909
|
[value, measureRef]
|
|
1821
1910
|
);
|
|
1822
1911
|
const flatStyle = React10.useMemo(
|
|
1823
|
-
() => reactNative.StyleSheet.flatten([
|
|
1912
|
+
() => reactNative.StyleSheet.flatten([styles16.base, style]),
|
|
1824
1913
|
[style]
|
|
1825
1914
|
);
|
|
1826
1915
|
const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
|
|
@@ -1835,7 +1924,7 @@ var TruncatedText = ({
|
|
|
1835
1924
|
ref: attachRef,
|
|
1836
1925
|
onLayout,
|
|
1837
1926
|
numberOfLines: 1,
|
|
1838
|
-
style: [
|
|
1927
|
+
style: [styles16.base, styles16.fill, style],
|
|
1839
1928
|
testID,
|
|
1840
1929
|
accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
|
|
1841
1930
|
accessibilityLabel,
|
|
@@ -1938,7 +2027,7 @@ var LABEL_LETTER_SPACING = 0.4;
|
|
|
1938
2027
|
var ACTION_PADDING_H = 6;
|
|
1939
2028
|
var ACTION_PADDING_V = 2;
|
|
1940
2029
|
var ACTION_RADIUS = 6;
|
|
1941
|
-
var
|
|
2030
|
+
var styles17 = reactNative.StyleSheet.create({
|
|
1942
2031
|
cell: { gap: CELL_GAP },
|
|
1943
2032
|
label: {
|
|
1944
2033
|
fontSize: LABEL_FONT_SIZE,
|
|
@@ -2003,14 +2092,14 @@ var CopyableId = ({
|
|
|
2003
2092
|
const { colors } = theme;
|
|
2004
2093
|
const { status, copy } = useCopyToClipboard(value, writer);
|
|
2005
2094
|
const action = useActionState(status);
|
|
2006
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
2007
|
-
label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
2008
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
2009
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
2095
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles17.cell, style], testID, children: [
|
|
2096
|
+
label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.label, { color: colors.textSecondary }], children: label }),
|
|
2097
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.row, children: [
|
|
2098
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles17.valueWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2010
2099
|
TruncatedText,
|
|
2011
2100
|
{
|
|
2012
2101
|
value,
|
|
2013
|
-
style: [
|
|
2102
|
+
style: [styles17.value, { color: colors.text }],
|
|
2014
2103
|
testID: `${testID}-value`,
|
|
2015
2104
|
accessibilityLabel: accessibilityLabel ?? value,
|
|
2016
2105
|
accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
|
|
@@ -2024,7 +2113,7 @@ var CopyableId = ({
|
|
|
2024
2113
|
accessibilityLabel: t(action.key),
|
|
2025
2114
|
accessibilityHint: t(LAYOUT_I18N.copyHint),
|
|
2026
2115
|
testID: `${testID}-copy`,
|
|
2027
|
-
style: [
|
|
2116
|
+
style: [styles17.action, { color: action.color }],
|
|
2028
2117
|
children: t(action.key)
|
|
2029
2118
|
}
|
|
2030
2119
|
)
|
|
@@ -2079,7 +2168,7 @@ var FOOTER_PADDING_V = 6;
|
|
|
2079
2168
|
var FOOTER_PADDING_H = 12;
|
|
2080
2169
|
var FOOTER_FONT_SIZE = 11;
|
|
2081
2170
|
var FOOTER_OPACITY = 0.75;
|
|
2082
|
-
var
|
|
2171
|
+
var styles18 = reactNative.StyleSheet.create({
|
|
2083
2172
|
footer: {
|
|
2084
2173
|
paddingVertical: FOOTER_PADDING_V,
|
|
2085
2174
|
paddingHorizontal: FOOTER_PADDING_H,
|
|
@@ -2105,7 +2194,7 @@ var BuildInfoFooter = ({
|
|
|
2105
2194
|
const commit = apiCommit ?? fetchedCommit;
|
|
2106
2195
|
const label = formatBuildInfo(buildVersion, commit);
|
|
2107
2196
|
const textStyle = React10.useMemo(
|
|
2108
|
-
() => [
|
|
2197
|
+
() => [styles18.text, { color: theme.colors.textSecondary }],
|
|
2109
2198
|
[theme.colors.textSecondary]
|
|
2110
2199
|
);
|
|
2111
2200
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2113,7 +2202,7 @@ var BuildInfoFooter = ({
|
|
|
2113
2202
|
{
|
|
2114
2203
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
2115
2204
|
accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.buildInfoHint),
|
|
2116
|
-
style: [
|
|
2205
|
+
style: [styles18.footer, style],
|
|
2117
2206
|
testID,
|
|
2118
2207
|
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: textStyle, children: label })
|
|
2119
2208
|
}
|
|
@@ -2142,6 +2231,7 @@ exports.ModalDropdown = ModalDropdown;
|
|
|
2142
2231
|
exports.ModalShell = ModalShell;
|
|
2143
2232
|
exports.Section = Section;
|
|
2144
2233
|
exports.SegmentedControl = SegmentedControl;
|
|
2234
|
+
exports.SelectedMarker = SelectedMarker;
|
|
2145
2235
|
exports.StatusBadge = StatusBadge;
|
|
2146
2236
|
exports.TYPE_SCALE_BREAKPOINT = TYPE_SCALE_BREAKPOINT;
|
|
2147
2237
|
exports.Tabs = Tabs;
|