@dloizides/ui-layout 1.16.1 → 1.17.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 +16 -1
- package/dist/index.d.mts +59 -1
- package/dist/index.d.ts +59 -1
- package/dist/index.js +153 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +154 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.17.0
|
|
4
|
+
|
|
5
|
+
**New `Tabs` primitive — a controlled tabbed section shell.**
|
|
6
|
+
|
|
7
|
+
Adds `Tabs`: a wrapping/scrolling pill tab strip plus the active tab's panel, wired
|
|
8
|
+
as a proper `tablist` / `tab` / `tabpanel` (aria-selected, aria-controls,
|
|
9
|
+
aria-labelledby). Controlled (`activeKey` + `onChange`), so the selected tab can be
|
|
10
|
+
driven from a route param or storage. Labels are pre-localized strings; colours read
|
|
11
|
+
from the `@dloizides/ui-feedback` theme (no FM/router/store imports), consistent with
|
|
12
|
+
the rest of the kit.
|
|
13
|
+
|
|
14
|
+
Extracted so the seven portals share ONE tab shell instead of hand-rolling a bar per
|
|
15
|
+
app — first consumer is the kefi-web organizer dashboard, split from one enormous page
|
|
16
|
+
into menu tabs.
|
|
17
|
+
|
|
18
|
+
## 1.16.1
|
|
4
19
|
|
|
5
20
|
**`Heading` supports levels 1-6 instead of `<h1>` only.**
|
|
6
21
|
|
package/dist/index.d.mts
CHANGED
|
@@ -106,6 +106,64 @@ interface SegmentedControlProps<V extends string = string> {
|
|
|
106
106
|
*/
|
|
107
107
|
declare function SegmentedControl<V extends string = string>({ options, value, onChange, accessibilityLabel, style, testID, }: SegmentedControlProps<V>): React.ReactElement;
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Tabs — a wrapping strip of pill tabs plus the panel for the active tab. The
|
|
111
|
+
* cross-portal "section shell": one long dashboard split into named tabs so an
|
|
112
|
+
* operator can find a surface instead of scrolling past it.
|
|
113
|
+
*
|
|
114
|
+
* It is deliberately CONTROLLED — the host owns `activeKey` and `onChange`, so
|
|
115
|
+
* the selected tab can be driven from a route param, restored from storage, or
|
|
116
|
+
* changed programmatically. The active panel is passed as `children`; Tabs wraps
|
|
117
|
+
* it in a `tabpanel` and wires the `aria-labelledby` / `aria-controls`
|
|
118
|
+
* relationship so assistive tech announces "tab N of M, <label>" and links the
|
|
119
|
+
* panel back to its tab.
|
|
120
|
+
*
|
|
121
|
+
* Contract discipline (same as the rest of `@dloizides/ui-layout`): NO FM /
|
|
122
|
+
* router / store / icon imports. `label`s are pre-localized strings supplied by
|
|
123
|
+
* the caller; every colour is read from the `@dloizides/ui-feedback` UiProvider
|
|
124
|
+
* theme, so the strip re-skins on tenant swap. The tab row is horizontally
|
|
125
|
+
* scrollable AND wraps, so 3 tabs or 15 tabs both lay out sensibly.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/** One tab in the strip. `key` is what `onChange` emits and what selects the panel. */
|
|
129
|
+
interface TabDescriptor {
|
|
130
|
+
/** Stable identity — emitted by `onChange`, compared against `activeKey`. */
|
|
131
|
+
key: string;
|
|
132
|
+
/** Pre-localized, human-readable tab label. */
|
|
133
|
+
label: string;
|
|
134
|
+
testID?: string;
|
|
135
|
+
/** Accessible name; defaults to `label`. */
|
|
136
|
+
accessibilityLabel?: string;
|
|
137
|
+
/** Accessible hint announced after the label. */
|
|
138
|
+
accessibilityHint?: string;
|
|
139
|
+
}
|
|
140
|
+
interface TabsProps {
|
|
141
|
+
/** The tabs, left → right. */
|
|
142
|
+
tabs: ReadonlyArray<TabDescriptor>;
|
|
143
|
+
/** The currently-active tab `key`. */
|
|
144
|
+
activeKey: string;
|
|
145
|
+
/** Fired with a tab's `key` when it is pressed. */
|
|
146
|
+
onChange: (key: string) => void;
|
|
147
|
+
/** Accessible name for the whole tablist. */
|
|
148
|
+
accessibilityLabel: string;
|
|
149
|
+
/** The panel content for the active tab. */
|
|
150
|
+
children?: React.ReactNode;
|
|
151
|
+
/** Prefix for the generated tab / panel element ids (must be unique per Tabs on a page). */
|
|
152
|
+
idPrefix?: string;
|
|
153
|
+
/** Style override merged onto the root container. */
|
|
154
|
+
style?: StyleProp<ViewStyle>;
|
|
155
|
+
/** Style override merged onto the tab strip. */
|
|
156
|
+
stripStyle?: StyleProp<ViewStyle>;
|
|
157
|
+
/** Style override merged onto the panel wrapper. */
|
|
158
|
+
panelStyle?: StyleProp<ViewStyle>;
|
|
159
|
+
testID?: string;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A controlled tabbed section shell. Renders the tab strip and the active tab's
|
|
163
|
+
* panel. Generic-free by design — tab identity is a plain string `key`.
|
|
164
|
+
*/
|
|
165
|
+
declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, children, idPrefix, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
|
|
166
|
+
|
|
109
167
|
/**
|
|
110
168
|
* UpgradePrompt — shown when a free-tier user hits a feature limit. CTA navigates to the
|
|
111
169
|
* billing route via the injected navigate (default route overridable).
|
|
@@ -554,4 +612,4 @@ declare const LAYOUT_I18N: {
|
|
|
554
612
|
readonly copyableIdHint: "common.copyableIdHint";
|
|
555
613
|
};
|
|
556
614
|
|
|
557
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, COPY_FEEDBACK_MS, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, Heading, type HeadingLevel, type HeadingProps, LAYOUT_I18N, LAYOUT_TEST_IDS, ModalDropdown, type ModalDropdownProps, ModalShell, type ModalShellProps, Section, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, StatusBadge, type StatusBadgeProps, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, copyText, formatUrlForDisplay, truncateMiddle, useCopyToClipboard, useFocusTrap };
|
|
615
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, COPY_FEEDBACK_MS, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, Heading, type HeadingLevel, type HeadingProps, LAYOUT_I18N, LAYOUT_TEST_IDS, ModalDropdown, type ModalDropdownProps, ModalShell, type ModalShellProps, Section, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, StatusBadge, type StatusBadgeProps, type TabDescriptor, Tabs, type TabsProps, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, copyText, formatUrlForDisplay, truncateMiddle, useCopyToClipboard, useFocusTrap };
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,64 @@ interface SegmentedControlProps<V extends string = string> {
|
|
|
106
106
|
*/
|
|
107
107
|
declare function SegmentedControl<V extends string = string>({ options, value, onChange, accessibilityLabel, style, testID, }: SegmentedControlProps<V>): React.ReactElement;
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Tabs — a wrapping strip of pill tabs plus the panel for the active tab. The
|
|
111
|
+
* cross-portal "section shell": one long dashboard split into named tabs so an
|
|
112
|
+
* operator can find a surface instead of scrolling past it.
|
|
113
|
+
*
|
|
114
|
+
* It is deliberately CONTROLLED — the host owns `activeKey` and `onChange`, so
|
|
115
|
+
* the selected tab can be driven from a route param, restored from storage, or
|
|
116
|
+
* changed programmatically. The active panel is passed as `children`; Tabs wraps
|
|
117
|
+
* it in a `tabpanel` and wires the `aria-labelledby` / `aria-controls`
|
|
118
|
+
* relationship so assistive tech announces "tab N of M, <label>" and links the
|
|
119
|
+
* panel back to its tab.
|
|
120
|
+
*
|
|
121
|
+
* Contract discipline (same as the rest of `@dloizides/ui-layout`): NO FM /
|
|
122
|
+
* router / store / icon imports. `label`s are pre-localized strings supplied by
|
|
123
|
+
* the caller; every colour is read from the `@dloizides/ui-feedback` UiProvider
|
|
124
|
+
* theme, so the strip re-skins on tenant swap. The tab row is horizontally
|
|
125
|
+
* scrollable AND wraps, so 3 tabs or 15 tabs both lay out sensibly.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/** One tab in the strip. `key` is what `onChange` emits and what selects the panel. */
|
|
129
|
+
interface TabDescriptor {
|
|
130
|
+
/** Stable identity — emitted by `onChange`, compared against `activeKey`. */
|
|
131
|
+
key: string;
|
|
132
|
+
/** Pre-localized, human-readable tab label. */
|
|
133
|
+
label: string;
|
|
134
|
+
testID?: string;
|
|
135
|
+
/** Accessible name; defaults to `label`. */
|
|
136
|
+
accessibilityLabel?: string;
|
|
137
|
+
/** Accessible hint announced after the label. */
|
|
138
|
+
accessibilityHint?: string;
|
|
139
|
+
}
|
|
140
|
+
interface TabsProps {
|
|
141
|
+
/** The tabs, left → right. */
|
|
142
|
+
tabs: ReadonlyArray<TabDescriptor>;
|
|
143
|
+
/** The currently-active tab `key`. */
|
|
144
|
+
activeKey: string;
|
|
145
|
+
/** Fired with a tab's `key` when it is pressed. */
|
|
146
|
+
onChange: (key: string) => void;
|
|
147
|
+
/** Accessible name for the whole tablist. */
|
|
148
|
+
accessibilityLabel: string;
|
|
149
|
+
/** The panel content for the active tab. */
|
|
150
|
+
children?: React.ReactNode;
|
|
151
|
+
/** Prefix for the generated tab / panel element ids (must be unique per Tabs on a page). */
|
|
152
|
+
idPrefix?: string;
|
|
153
|
+
/** Style override merged onto the root container. */
|
|
154
|
+
style?: StyleProp<ViewStyle>;
|
|
155
|
+
/** Style override merged onto the tab strip. */
|
|
156
|
+
stripStyle?: StyleProp<ViewStyle>;
|
|
157
|
+
/** Style override merged onto the panel wrapper. */
|
|
158
|
+
panelStyle?: StyleProp<ViewStyle>;
|
|
159
|
+
testID?: string;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A controlled tabbed section shell. Renders the tab strip and the active tab's
|
|
163
|
+
* panel. Generic-free by design — tab identity is a plain string `key`.
|
|
164
|
+
*/
|
|
165
|
+
declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, children, idPrefix, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
|
|
166
|
+
|
|
109
167
|
/**
|
|
110
168
|
* UpgradePrompt — shown when a free-tier user hits a feature limit. CTA navigates to the
|
|
111
169
|
* billing route via the injected navigate (default route overridable).
|
|
@@ -554,4 +612,4 @@ declare const LAYOUT_I18N: {
|
|
|
554
612
|
readonly copyableIdHint: "common.copyableIdHint";
|
|
555
613
|
};
|
|
556
614
|
|
|
557
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, COPY_FEEDBACK_MS, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, Heading, type HeadingLevel, type HeadingProps, LAYOUT_I18N, LAYOUT_TEST_IDS, ModalDropdown, type ModalDropdownProps, ModalShell, type ModalShellProps, Section, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, StatusBadge, type StatusBadgeProps, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, copyText, formatUrlForDisplay, truncateMiddle, useCopyToClipboard, useFocusTrap };
|
|
615
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, COPY_FEEDBACK_MS, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, Heading, type HeadingLevel, type HeadingProps, LAYOUT_I18N, LAYOUT_TEST_IDS, ModalDropdown, type ModalDropdownProps, ModalShell, type ModalShellProps, Section, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, StatusBadge, type StatusBadgeProps, type TabDescriptor, Tabs, type TabsProps, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, copyText, formatUrlForDisplay, truncateMiddle, useCopyToClipboard, useFocusTrap };
|
package/dist/index.js
CHANGED
|
@@ -231,6 +231,104 @@ function SegmentedControl({
|
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
|
+
var PILL_RADIUS = 999;
|
|
235
|
+
var PILL_PAD_H = 16;
|
|
236
|
+
var PILL_PAD_V = 8;
|
|
237
|
+
var PILL_MIN_HEIGHT = 40;
|
|
238
|
+
var PILL_FONT = 14;
|
|
239
|
+
var PILL_WEIGHT = "600";
|
|
240
|
+
var ROW_GAP = 8;
|
|
241
|
+
var COLUMN_GAP = 8;
|
|
242
|
+
var ROW_PAD_V = 8;
|
|
243
|
+
var PANEL_PAD_TOP = 16;
|
|
244
|
+
var BORDER_WIDTH2 = 1;
|
|
245
|
+
var TEXT_ON_PRIMARY = "#ffffff";
|
|
246
|
+
var styles5 = reactNative.StyleSheet.create({
|
|
247
|
+
root: {
|
|
248
|
+
width: "100%"
|
|
249
|
+
},
|
|
250
|
+
strip: {
|
|
251
|
+
flexDirection: "row",
|
|
252
|
+
flexWrap: "wrap",
|
|
253
|
+
alignItems: "center",
|
|
254
|
+
columnGap: COLUMN_GAP,
|
|
255
|
+
rowGap: ROW_GAP,
|
|
256
|
+
paddingVertical: ROW_PAD_V,
|
|
257
|
+
borderBottomWidth: BORDER_WIDTH2
|
|
258
|
+
},
|
|
259
|
+
pill: {
|
|
260
|
+
paddingHorizontal: PILL_PAD_H,
|
|
261
|
+
paddingVertical: PILL_PAD_V,
|
|
262
|
+
borderRadius: PILL_RADIUS,
|
|
263
|
+
minHeight: PILL_MIN_HEIGHT,
|
|
264
|
+
flexDirection: "row",
|
|
265
|
+
alignItems: "center",
|
|
266
|
+
justifyContent: "center"
|
|
267
|
+
},
|
|
268
|
+
pillText: {
|
|
269
|
+
fontSize: PILL_FONT,
|
|
270
|
+
fontWeight: PILL_WEIGHT,
|
|
271
|
+
textAlign: "center"
|
|
272
|
+
},
|
|
273
|
+
panel: {
|
|
274
|
+
paddingTop: PANEL_PAD_TOP
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
function ariaTabProps(selected, panelId, tabId) {
|
|
278
|
+
return { "aria-selected": selected, "aria-controls": panelId, id: tabId };
|
|
279
|
+
}
|
|
280
|
+
var Tabs = ({
|
|
281
|
+
tabs,
|
|
282
|
+
activeKey,
|
|
283
|
+
onChange,
|
|
284
|
+
accessibilityLabel,
|
|
285
|
+
children,
|
|
286
|
+
idPrefix = "tabs",
|
|
287
|
+
style,
|
|
288
|
+
stripStyle,
|
|
289
|
+
panelStyle,
|
|
290
|
+
testID
|
|
291
|
+
}) => {
|
|
292
|
+
const { theme } = uiFeedback.useUi();
|
|
293
|
+
const { colors } = theme;
|
|
294
|
+
const primaryColor = theme.palette.primary["500"];
|
|
295
|
+
const activePanelId = `${idPrefix}-panel-${activeKey}`;
|
|
296
|
+
const activeTabId = `${idPrefix}-tab-${activeKey}`;
|
|
297
|
+
const panelAria = { "aria-labelledby": activeTabId, id: activePanelId };
|
|
298
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles5.root, style], testID, children: [
|
|
299
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
300
|
+
reactNative.View,
|
|
301
|
+
{
|
|
302
|
+
accessibilityRole: "tablist",
|
|
303
|
+
"aria-label": accessibilityLabel,
|
|
304
|
+
style: [styles5.strip, { borderBottomColor: colors.border }, stripStyle],
|
|
305
|
+
children: tabs.map((tab) => {
|
|
306
|
+
const selected = tab.key === activeKey;
|
|
307
|
+
const textColor = selected ? TEXT_ON_PRIMARY : colors.textSecondary;
|
|
308
|
+
const pillColor = selected ? primaryColor : colors.surfaceElevated;
|
|
309
|
+
const tabId = `${idPrefix}-tab-${tab.key}`;
|
|
310
|
+
const panelId = `${idPrefix}-panel-${tab.key}`;
|
|
311
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
312
|
+
reactNative.Pressable,
|
|
313
|
+
{
|
|
314
|
+
accessibilityRole: "tab",
|
|
315
|
+
accessibilityState: { selected },
|
|
316
|
+
accessibilityLabel: tab.accessibilityLabel ?? tab.label,
|
|
317
|
+
accessibilityHint: tab.accessibilityHint,
|
|
318
|
+
onPress: () => onChange(tab.key),
|
|
319
|
+
style: [styles5.pill, { backgroundColor: pillColor }],
|
|
320
|
+
testID: tab.testID,
|
|
321
|
+
...ariaTabProps(selected, panelId, tabId),
|
|
322
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.pillText, { color: textColor }], children: tab.label })
|
|
323
|
+
},
|
|
324
|
+
tab.key
|
|
325
|
+
);
|
|
326
|
+
})
|
|
327
|
+
}
|
|
328
|
+
) }),
|
|
329
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "none", style: [styles5.panel, panelStyle], ...panelAria, children })
|
|
330
|
+
] });
|
|
331
|
+
};
|
|
234
332
|
var PROMPT_PADDING = 20;
|
|
235
333
|
var PROMPT_BORDER_RADIUS = 12;
|
|
236
334
|
var PROMPT_BORDER_WIDTH = 1;
|
|
@@ -243,7 +341,7 @@ var DISMISS_FONT_SIZE = 13;
|
|
|
243
341
|
var TITLE_MARGIN_BOTTOM = 8;
|
|
244
342
|
var MESSAGE_MARGIN_BOTTOM = 16;
|
|
245
343
|
var CTA_MARGIN_BOTTOM = 8;
|
|
246
|
-
var
|
|
344
|
+
var styles6 = reactNative.StyleSheet.create({
|
|
247
345
|
container: {
|
|
248
346
|
padding: PROMPT_PADDING,
|
|
249
347
|
borderRadius: PROMPT_BORDER_RADIUS,
|
|
@@ -271,21 +369,21 @@ var UpgradePrompt = ({
|
|
|
271
369
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
272
370
|
reactNative.View,
|
|
273
371
|
{
|
|
274
|
-
style: [
|
|
372
|
+
style: [styles6.container, { borderColor: primary, backgroundColor: colors.surface }],
|
|
275
373
|
testID: LAYOUT_TEST_IDS.upgradePrompt,
|
|
276
374
|
children: [
|
|
277
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
278
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
375
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
|
|
376
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
|
|
279
377
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
280
378
|
reactNative.TouchableOpacity,
|
|
281
379
|
{
|
|
282
380
|
accessibilityHint: t(LAYOUT_I18N.upgradePromptCtaHint),
|
|
283
381
|
accessibilityLabel: t(LAYOUT_I18N.upgradePromptCta),
|
|
284
382
|
accessibilityRole: "button",
|
|
285
|
-
style: [
|
|
383
|
+
style: [styles6.cta, { backgroundColor: primary }],
|
|
286
384
|
testID: LAYOUT_TEST_IDS.upgradePromptCta,
|
|
287
385
|
onPress: handleUpgradePress,
|
|
288
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
386
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
|
|
289
387
|
}
|
|
290
388
|
),
|
|
291
389
|
onDismiss ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -294,10 +392,10 @@ var UpgradePrompt = ({
|
|
|
294
392
|
accessibilityHint: t(LAYOUT_I18N.upgradePromptDismissHint),
|
|
295
393
|
accessibilityLabel: t(LAYOUT_I18N.upgradePromptDismiss),
|
|
296
394
|
accessibilityRole: "button",
|
|
297
|
-
style:
|
|
395
|
+
style: styles6.dismiss,
|
|
298
396
|
testID: LAYOUT_TEST_IDS.upgradePromptDismiss,
|
|
299
397
|
onPress: onDismiss,
|
|
300
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
398
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
|
|
301
399
|
}
|
|
302
400
|
) : null
|
|
303
401
|
]
|
|
@@ -372,7 +470,7 @@ var MENU_ELEVATION = 8;
|
|
|
372
470
|
var MENU_TOP_GAP = 4;
|
|
373
471
|
var MENU_MAX_HEIGHT = 300;
|
|
374
472
|
var BORDER_RADIUS = 8;
|
|
375
|
-
var
|
|
473
|
+
var BORDER_WIDTH3 = 1;
|
|
376
474
|
var MENU_PADDING = 4;
|
|
377
475
|
var MENU_BOX_SHADOW = "0px 2px 8px rgba(0, 0, 0, 0.15)";
|
|
378
476
|
function buildPortalPopoverStyle(rect, minWidth = 0) {
|
|
@@ -384,7 +482,7 @@ function buildPortalPopoverStyle(rect, minWidth = 0) {
|
|
|
384
482
|
left: rect.left,
|
|
385
483
|
width: Math.max(rect.width, minWidth),
|
|
386
484
|
zIndex: MENU_Z_INDEX,
|
|
387
|
-
borderWidth:
|
|
485
|
+
borderWidth: BORDER_WIDTH3,
|
|
388
486
|
borderRadius: BORDER_RADIUS,
|
|
389
487
|
padding: MENU_PADDING,
|
|
390
488
|
maxHeight: MENU_MAX_HEIGHT,
|
|
@@ -409,7 +507,7 @@ var BODY_FONT_SIZE = 14;
|
|
|
409
507
|
var SELECTED_FONT_WEIGHT = "600";
|
|
410
508
|
var OPTION_PADDING_H = 16;
|
|
411
509
|
var OPTION_PADDING_V = 12;
|
|
412
|
-
var
|
|
510
|
+
var styles7 = reactNative.StyleSheet.create({
|
|
413
511
|
option: {
|
|
414
512
|
paddingHorizontal: OPTION_PADDING_H,
|
|
415
513
|
paddingVertical: OPTION_PADDING_V,
|
|
@@ -431,8 +529,8 @@ var OptionRow = ({
|
|
|
431
529
|
onSelect();
|
|
432
530
|
}, [onSelect]);
|
|
433
531
|
const isActive = isSelected || isHighlighted;
|
|
434
|
-
const rowStyle = [
|
|
435
|
-
const textStyle = [
|
|
532
|
+
const rowStyle = [styles7.option, isActive ? { backgroundColor: colors.surfaceElevated } : null];
|
|
533
|
+
const textStyle = [styles7.optionText, { color: colors.text }, isSelected ? styles7.selectedText : null];
|
|
436
534
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
437
535
|
reactNative.TouchableOpacity,
|
|
438
536
|
{
|
|
@@ -595,9 +693,9 @@ function useMenuKeyboard(params) {
|
|
|
595
693
|
}
|
|
596
694
|
var IS_WEB2 = reactNative.Platform.OS === "web";
|
|
597
695
|
var BORDER_RADIUS2 = 8;
|
|
598
|
-
var
|
|
696
|
+
var BORDER_WIDTH4 = 1;
|
|
599
697
|
var MENU_PADDING2 = 4;
|
|
600
|
-
var
|
|
698
|
+
var styles8 = reactNative.StyleSheet.create({
|
|
601
699
|
/** Native (in-tree) popover — anchored absolutely just under the trigger. */
|
|
602
700
|
popover: {
|
|
603
701
|
position: "absolute",
|
|
@@ -606,7 +704,7 @@ var styles7 = reactNative.StyleSheet.create({
|
|
|
606
704
|
right: 0,
|
|
607
705
|
marginTop: MENU_TOP_GAP,
|
|
608
706
|
zIndex: MENU_Z_INDEX,
|
|
609
|
-
borderWidth:
|
|
707
|
+
borderWidth: BORDER_WIDTH4,
|
|
610
708
|
borderRadius: BORDER_RADIUS2,
|
|
611
709
|
padding: MENU_PADDING2,
|
|
612
710
|
maxHeight: MENU_MAX_HEIGHT,
|
|
@@ -663,7 +761,7 @@ var InlineMenu = ({
|
|
|
663
761
|
buildPortalPopoverStyle(rect ?? { left: 0, width: 0, bottom: 0 }, menuMinWidth),
|
|
664
762
|
themed
|
|
665
763
|
];
|
|
666
|
-
return [
|
|
764
|
+
return [styles8.popover, { minWidth: menuMinWidth }, themed];
|
|
667
765
|
}, [colors.border, colors.surface, menuMinWidth, rect]);
|
|
668
766
|
const menu = /* @__PURE__ */ jsxRuntime.jsx(
|
|
669
767
|
reactNative.View,
|
|
@@ -701,17 +799,17 @@ function useResolvedDropdownVariant(explicit) {
|
|
|
701
799
|
return resolveDropdownVariant(explicit, width, reactNative.Platform.OS);
|
|
702
800
|
}
|
|
703
801
|
var BORDER_RADIUS3 = 8;
|
|
704
|
-
var
|
|
802
|
+
var BORDER_WIDTH5 = 1;
|
|
705
803
|
var BODY_FONT_SIZE2 = 14;
|
|
706
804
|
var MODAL_PADDING = 8;
|
|
707
805
|
var MODAL_MIN_WIDTH = 200;
|
|
708
806
|
var MODAL_MAX_HEIGHT = 300;
|
|
709
807
|
var CONTAINER_PADDING_H = 12;
|
|
710
808
|
var CONTAINER_PADDING_V = 10;
|
|
711
|
-
var
|
|
809
|
+
var styles9 = reactNative.StyleSheet.create({
|
|
712
810
|
anchor: { position: "relative" },
|
|
713
811
|
container: {
|
|
714
|
-
borderWidth:
|
|
812
|
+
borderWidth: BORDER_WIDTH5,
|
|
715
813
|
borderRadius: BORDER_RADIUS3,
|
|
716
814
|
paddingHorizontal: CONTAINER_PADDING_H,
|
|
717
815
|
paddingVertical: CONTAINER_PADDING_V
|
|
@@ -775,7 +873,7 @@ var ModalDropdown = ({
|
|
|
775
873
|
[onChange]
|
|
776
874
|
);
|
|
777
875
|
const containerStyle = React8.useMemo(
|
|
778
|
-
() => renderTrigger !== void 0 ? void 0 : [
|
|
876
|
+
() => renderTrigger !== void 0 ? void 0 : [styles9.container, { borderColor: colors.border, backgroundColor: colors.surface }],
|
|
779
877
|
[colors.border, colors.surface, renderTrigger]
|
|
780
878
|
);
|
|
781
879
|
const optionTestIDFor = React8.useCallback(
|
|
@@ -783,11 +881,11 @@ var ModalDropdown = ({
|
|
|
783
881
|
[optionTestID, testID]
|
|
784
882
|
);
|
|
785
883
|
const anchorStyle = React8.useMemo(
|
|
786
|
-
() => [
|
|
884
|
+
() => [styles9.anchor, buildAnchorStackStyle(isMenu && isOpen)],
|
|
787
885
|
[isMenu, isOpen]
|
|
788
886
|
);
|
|
789
887
|
const modalContentStyle = React8.useMemo(
|
|
790
|
-
() => [
|
|
888
|
+
() => [styles9.modalContent, { backgroundColor: colors.surface }],
|
|
791
889
|
[colors.surface]
|
|
792
890
|
);
|
|
793
891
|
const renderModalOption = React8.useCallback(
|
|
@@ -805,7 +903,7 @@ var ModalDropdown = ({
|
|
|
805
903
|
const keyExtractor = React8.useCallback((item) => String(item.value), []);
|
|
806
904
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: anchorStyle, children: [
|
|
807
905
|
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.TouchableOpacity, { ...a11yProps, style: containerStyle, onPress: handleToggle, children: [
|
|
808
|
-
renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
906
|
+
renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.selectedText, { color: colors.text }], children: selectedLabel }),
|
|
809
907
|
hintNode
|
|
810
908
|
] }),
|
|
811
909
|
isMenu && isOpen ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -822,7 +920,7 @@ var ModalDropdown = ({
|
|
|
822
920
|
onSelect: handleSelect
|
|
823
921
|
}
|
|
824
922
|
) : null,
|
|
825
|
-
!isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: isOpen, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
923
|
+
!isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: isOpen, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.modalOverlay, children: [
|
|
826
924
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
827
925
|
reactNative.TouchableOpacity,
|
|
828
926
|
{
|
|
@@ -851,7 +949,7 @@ var ModalDropdown = ({
|
|
|
851
949
|
] });
|
|
852
950
|
};
|
|
853
951
|
var CLOSE_ICON_SIZE = 18;
|
|
854
|
-
var
|
|
952
|
+
var styles10 = reactNative.StyleSheet.create({
|
|
855
953
|
container: {
|
|
856
954
|
flex: 1,
|
|
857
955
|
padding: 16
|
|
@@ -876,7 +974,7 @@ var ModalShell = ({
|
|
|
876
974
|
}) => {
|
|
877
975
|
const { theme, t } = uiFeedback.useUi();
|
|
878
976
|
const containerStyle = React8__default.default.useMemo(
|
|
879
|
-
() => [
|
|
977
|
+
() => [styles10.container, { backgroundColor: theme.colors.background }, contentStyle],
|
|
880
978
|
[theme.colors.background, contentStyle]
|
|
881
979
|
);
|
|
882
980
|
const closeA11yLabel = t(LAYOUT_I18N.close);
|
|
@@ -896,7 +994,7 @@ var ModalShell = ({
|
|
|
896
994
|
role: "dialog",
|
|
897
995
|
style: containerStyle,
|
|
898
996
|
children: [
|
|
899
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
997
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.headerRow, children: [
|
|
900
998
|
/* @__PURE__ */ jsxRuntime.jsx(Heading, { children: title ?? t(LAYOUT_I18N.closeHeading) }),
|
|
901
999
|
showClose ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
902
1000
|
reactNative.TouchableOpacity,
|
|
@@ -904,7 +1002,7 @@ var ModalShell = ({
|
|
|
904
1002
|
accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
|
|
905
1003
|
accessibilityLabel: closeA11yLabel,
|
|
906
1004
|
accessibilityRole: "button",
|
|
907
|
-
style:
|
|
1005
|
+
style: styles10.closeButton,
|
|
908
1006
|
testID: LAYOUT_TEST_IDS.modalShellClose,
|
|
909
1007
|
onPress: onCancel,
|
|
910
1008
|
children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: theme.colors.textSecondary, name: "close", size: CLOSE_ICON_SIZE })
|
|
@@ -947,7 +1045,7 @@ function animateNextLayout() {
|
|
|
947
1045
|
}
|
|
948
1046
|
}
|
|
949
1047
|
var BOXED_GAP = 12;
|
|
950
|
-
var
|
|
1048
|
+
var styles11 = reactNative.StyleSheet.create({
|
|
951
1049
|
container: { alignSelf: "stretch" },
|
|
952
1050
|
boxed: { gap: BOXED_GAP }
|
|
953
1051
|
});
|
|
@@ -1005,7 +1103,7 @@ var Accordion = ({
|
|
|
1005
1103
|
[openSet, toggle, allowMultiple, variant]
|
|
1006
1104
|
);
|
|
1007
1105
|
const containerStyle = React8.useMemo(() => {
|
|
1008
|
-
const base = variant === "boxed" ? [
|
|
1106
|
+
const base = variant === "boxed" ? [styles11.container, styles11.boxed] : [styles11.container];
|
|
1009
1107
|
if (style === void 0) return base;
|
|
1010
1108
|
return [...base, ...Array.isArray(style) ? style : [style]];
|
|
1011
1109
|
}, [style, variant]);
|
|
@@ -1037,7 +1135,7 @@ var BOX_TITLE_FONT_SIZE = 14;
|
|
|
1037
1135
|
var BOX_MARKER_FONT_SIZE = 13;
|
|
1038
1136
|
var BOX_MARKER_GAP = 6;
|
|
1039
1137
|
var BOX_MARKER = "\u25B8";
|
|
1040
|
-
var
|
|
1138
|
+
var styles12 = reactNative.StyleSheet.create({
|
|
1041
1139
|
item: { borderTopWidth: reactNative.StyleSheet.hairlineWidth },
|
|
1042
1140
|
boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
|
|
1043
1141
|
header: {
|
|
@@ -1111,19 +1209,19 @@ var AccordionItem = ({
|
|
|
1111
1209
|
);
|
|
1112
1210
|
const keyboardProps = reactNative.Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
|
|
1113
1211
|
const itemStyle = React8.useMemo(
|
|
1114
|
-
() => boxed ? [
|
|
1212
|
+
() => boxed ? [styles12.boxItem, { borderColor: colors.border }] : [styles12.item, { borderTopColor: colors.border }],
|
|
1115
1213
|
[boxed, colors.border]
|
|
1116
1214
|
);
|
|
1117
1215
|
const headerStyle = React8.useMemo(
|
|
1118
1216
|
() => [
|
|
1119
|
-
|
|
1120
|
-
...boxed ? [
|
|
1217
|
+
styles12.header,
|
|
1218
|
+
...boxed ? [styles12.boxHeader] : [],
|
|
1121
1219
|
{ opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
|
|
1122
1220
|
],
|
|
1123
1221
|
[boxed, disabled]
|
|
1124
1222
|
);
|
|
1125
1223
|
const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
|
|
1126
|
-
const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ?
|
|
1224
|
+
const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ? styles12.boxTitle : styles12.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
|
|
1127
1225
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: itemStyle, children: [
|
|
1128
1226
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1129
1227
|
reactNative.Pressable,
|
|
@@ -1140,7 +1238,7 @@ var AccordionItem = ({
|
|
|
1140
1238
|
onPress: handlePress,
|
|
1141
1239
|
...keyboardProps,
|
|
1142
1240
|
children: [
|
|
1143
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
1241
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles12.headerLeft, boxed ? styles12.headerLeftRow : null], children: [
|
|
1144
1242
|
boxed ? (
|
|
1145
1243
|
// Decorative — the open/closed state is already conveyed by aria-expanded on the header.
|
|
1146
1244
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1149,15 +1247,15 @@ var AccordionItem = ({
|
|
|
1149
1247
|
accessibilityElementsHidden: true,
|
|
1150
1248
|
"aria-hidden": true,
|
|
1151
1249
|
importantForAccessibility: "no-hide-descendants",
|
|
1152
|
-
style: [
|
|
1250
|
+
style: [styles12.marker, { transform: [{ rotate }] }],
|
|
1153
1251
|
testID: chevronTestID,
|
|
1154
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1252
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
|
|
1155
1253
|
}
|
|
1156
1254
|
)
|
|
1157
1255
|
) : null,
|
|
1158
1256
|
titleNode
|
|
1159
1257
|
] }),
|
|
1160
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1258
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.headerRight, children: [
|
|
1161
1259
|
right,
|
|
1162
1260
|
boxed ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1163
1261
|
reactNative.Animated.View,
|
|
@@ -1165,7 +1263,7 @@ var AccordionItem = ({
|
|
|
1165
1263
|
accessibilityElementsHidden: true,
|
|
1166
1264
|
"aria-hidden": true,
|
|
1167
1265
|
importantForAccessibility: "no-hide-descendants",
|
|
1168
|
-
style: [
|
|
1266
|
+
style: [styles12.chevron, { transform: [{ rotate }] }],
|
|
1169
1267
|
children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
|
|
1170
1268
|
}
|
|
1171
1269
|
)
|
|
@@ -1179,7 +1277,7 @@ var AccordionItem = ({
|
|
|
1179
1277
|
accessibilityLabel: resolvedLabel,
|
|
1180
1278
|
nativeID: bodyTestID,
|
|
1181
1279
|
role: ROLE_REGION,
|
|
1182
|
-
style: boxed ?
|
|
1280
|
+
style: boxed ? styles12.boxBody : styles12.body,
|
|
1183
1281
|
testID: bodyTestID,
|
|
1184
1282
|
children
|
|
1185
1283
|
}
|
|
@@ -1242,7 +1340,7 @@ function useAvailableWidth() {
|
|
|
1242
1340
|
var AVG_CHAR_WIDTH_RATIO = 0.58;
|
|
1243
1341
|
var DEFAULT_FONT_SIZE2 = 13;
|
|
1244
1342
|
var UNMEASURED2 = 0;
|
|
1245
|
-
var
|
|
1343
|
+
var styles13 = reactNative.StyleSheet.create({
|
|
1246
1344
|
base: { fontSize: DEFAULT_FONT_SIZE2 },
|
|
1247
1345
|
/** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
|
|
1248
1346
|
fill: { flexShrink: 1, minWidth: 0 }
|
|
@@ -1273,7 +1371,7 @@ var TruncatedText = ({
|
|
|
1273
1371
|
[value, measureRef]
|
|
1274
1372
|
);
|
|
1275
1373
|
const flatStyle = React8.useMemo(
|
|
1276
|
-
() => reactNative.StyleSheet.flatten([
|
|
1374
|
+
() => reactNative.StyleSheet.flatten([styles13.base, style]),
|
|
1277
1375
|
[style]
|
|
1278
1376
|
);
|
|
1279
1377
|
const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
|
|
@@ -1288,7 +1386,7 @@ var TruncatedText = ({
|
|
|
1288
1386
|
ref: attachRef,
|
|
1289
1387
|
onLayout,
|
|
1290
1388
|
numberOfLines: 1,
|
|
1291
|
-
style: [
|
|
1389
|
+
style: [styles13.base, styles13.fill, style],
|
|
1292
1390
|
testID,
|
|
1293
1391
|
accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
|
|
1294
1392
|
accessibilityLabel,
|
|
@@ -1385,13 +1483,13 @@ function useCopyToClipboard(value, writer) {
|
|
|
1385
1483
|
var LABEL_FONT_SIZE = 11;
|
|
1386
1484
|
var VALUE_FONT_SIZE = 12;
|
|
1387
1485
|
var ACTION_FONT_SIZE = 12;
|
|
1388
|
-
var
|
|
1486
|
+
var ROW_GAP2 = 8;
|
|
1389
1487
|
var CELL_GAP = 2;
|
|
1390
1488
|
var LABEL_LETTER_SPACING = 0.4;
|
|
1391
1489
|
var ACTION_PADDING_H = 6;
|
|
1392
1490
|
var ACTION_PADDING_V = 2;
|
|
1393
1491
|
var ACTION_RADIUS = 6;
|
|
1394
|
-
var
|
|
1492
|
+
var styles14 = reactNative.StyleSheet.create({
|
|
1395
1493
|
cell: { gap: CELL_GAP },
|
|
1396
1494
|
label: {
|
|
1397
1495
|
fontSize: LABEL_FONT_SIZE,
|
|
@@ -1399,7 +1497,7 @@ var styles13 = reactNative.StyleSheet.create({
|
|
|
1399
1497
|
letterSpacing: LABEL_LETTER_SPACING,
|
|
1400
1498
|
textTransform: "uppercase"
|
|
1401
1499
|
},
|
|
1402
|
-
row: { flexDirection: "row", alignItems: "center", gap:
|
|
1500
|
+
row: { flexDirection: "row", alignItems: "center", gap: ROW_GAP2 },
|
|
1403
1501
|
/**
|
|
1404
1502
|
* The truncation width comes from this wrapper, not from the row: `TruncatedText` measures its
|
|
1405
1503
|
* PARENT (see `useAvailableWidth`), and the row also holds the copy button.
|
|
@@ -1450,14 +1548,14 @@ var CopyableId = ({
|
|
|
1450
1548
|
const { colors } = theme;
|
|
1451
1549
|
const { status, copy } = useCopyToClipboard(value, writer);
|
|
1452
1550
|
const action = useActionState(status);
|
|
1453
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
1454
|
-
label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
1455
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
1456
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
1551
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles14.cell, style], testID, children: [
|
|
1552
|
+
label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.label, { color: colors.textSecondary }], children: label }),
|
|
1553
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.row, children: [
|
|
1554
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.valueWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1457
1555
|
TruncatedText,
|
|
1458
1556
|
{
|
|
1459
1557
|
value,
|
|
1460
|
-
style: [
|
|
1558
|
+
style: [styles14.value, { color: colors.text }],
|
|
1461
1559
|
testID: `${testID}-value`,
|
|
1462
1560
|
accessibilityLabel: accessibilityLabel ?? value,
|
|
1463
1561
|
accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
|
|
@@ -1471,7 +1569,7 @@ var CopyableId = ({
|
|
|
1471
1569
|
accessibilityLabel: t(action.key),
|
|
1472
1570
|
accessibilityHint: t(LAYOUT_I18N.copyHint),
|
|
1473
1571
|
testID: `${testID}-copy`,
|
|
1474
|
-
style: [
|
|
1572
|
+
style: [styles14.action, { color: action.color }],
|
|
1475
1573
|
children: t(action.key)
|
|
1476
1574
|
}
|
|
1477
1575
|
)
|
|
@@ -1495,6 +1593,7 @@ exports.ModalShell = ModalShell;
|
|
|
1495
1593
|
exports.Section = Section;
|
|
1496
1594
|
exports.SegmentedControl = SegmentedControl;
|
|
1497
1595
|
exports.StatusBadge = StatusBadge;
|
|
1596
|
+
exports.Tabs = Tabs;
|
|
1498
1597
|
exports.TruncatedText = TruncatedText;
|
|
1499
1598
|
exports.UpgradePrompt = UpgradePrompt;
|
|
1500
1599
|
exports.copyText = copyText;
|