@dloizides/ui-layout 1.18.0 → 1.20.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 +62 -0
- package/README.md +1 -0
- package/dist/index.d.mts +43 -25
- package/dist/index.d.ts +43 -25
- package/dist/index.js +373 -261
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +319 -207
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.20.0
|
|
4
|
+
|
|
5
|
+
**The collapsed `Tabs` menu now READS as a menu — a caret affordance + guaranteed focus.**
|
|
6
|
+
|
|
7
|
+
On the live phone-width organizer nav (`app.kefi.dloizides.com/organizer/passes`) the
|
|
8
|
+
collapsed trigger showed only the active label ("Passes") with no menu cue — styled like a
|
|
9
|
+
static chip/pill — so users could not tell it was a section switcher. This adds a clear
|
|
10
|
+
menu affordance and locks in keyboard focusability.
|
|
11
|
+
|
|
12
|
+
- **New opt-in prop `ModalDropdown.showCaret?: boolean` (default `false`).** When set, the
|
|
13
|
+
DEFAULT trigger renders a ▾ caret pinned to its trailing edge that rotates to point up
|
|
14
|
+
while the menu is open, with a ≥44dp (`MIN_TOUCH_TARGET`) hit target and the existing
|
|
15
|
+
bordered field box + theme tokens. **Every existing field-style dropdown in the kit is
|
|
16
|
+
unchanged** because the caret is off by default, and it is ignored when a custom
|
|
17
|
+
`renderTrigger` is supplied (that caller owns its own visuals). The caret is a font glyph
|
|
18
|
+
(U+25BE), so no icon package enters this contract-pure kit, and its colour comes from
|
|
19
|
+
`colors.textSecondary` (no raw literals). It is decorative — the trigger's `aria-label`
|
|
20
|
+
still names the control, so screen readers do not announce the glyph.
|
|
21
|
+
- **`TabsMenu` opts into `showCaret`**, so the collapsed `Tabs` section switcher now looks
|
|
22
|
+
like a proper control instead of a chip. No change to the public `Tabs` / `TabsMenu` API.
|
|
23
|
+
- **Focusability:** under react-native-web the trigger renders as a native `<button>`
|
|
24
|
+
(role=button, no `tabindex="-1"`), so it is keyboard-reachable and Enter/Space activate
|
|
25
|
+
it. A regression test asserts the collapsed trigger is not `tabindex="-1"`. (The
|
|
26
|
+
`tabindex="-1"` seen on the live DOM came from the older deployed version; it does not
|
|
27
|
+
reproduce on this source — proven by the rendered-DOM assertion, not assumed.)
|
|
28
|
+
|
|
29
|
+
Backward-compatible: one new optional prop, no testID/selector changes. Per-tab E2E
|
|
30
|
+
selectors (`{idPrefix}-menu` trigger, `{idPrefix}-tab-{key}` / descriptor option testIDs)
|
|
31
|
+
are untouched. No new i18n keys.
|
|
32
|
+
|
|
33
|
+
`ui-showcase` does not yet import `Tabs`/`ModalDropdown` (only `SegmentedControl`,
|
|
34
|
+
`CopyableId`, `TruncatedText`), so this is covered by component tests
|
|
35
|
+
(`ModalDropdown.test.tsx`, `Tabs.collapsed.test.tsx`); a showcase specimen is a follow-up.
|
|
36
|
+
|
|
37
|
+
## 1.19.0
|
|
38
|
+
|
|
39
|
+
**`Tabs` collapses to a real mobile menu below a breakpoint.**
|
|
40
|
+
|
|
41
|
+
On a phone the horizontal pill strip "is not a real menu and not mobile friendly" — a
|
|
42
|
+
scrolling chip row is hard to use with 7–8 tabs (the kefi organizer dashboard:
|
|
43
|
+
Overview / Passes / Attendees / Promoters / Door / Ledger / Messaging / Settings). `Tabs`
|
|
44
|
+
now renders responsively:
|
|
45
|
+
|
|
46
|
+
- **Wide (>= `collapseBelow`, default 768, web only):** the existing horizontal
|
|
47
|
+
`role=tablist` / `role=tab` strip — unchanged, fully backward-compatible.
|
|
48
|
+
- **Narrow (< breakpoint) or native:** a genuine menu — a trigger button showing the
|
|
49
|
+
active section that opens a vertical list of all sections. Delegates to the kit's
|
|
50
|
+
existing `ModalDropdown` (menu/listbox semantics, focus trap, dismiss backdrop, dual-
|
|
51
|
+
platform a11y) rather than reimplementing a dropdown.
|
|
52
|
+
|
|
53
|
+
Backward-compatible: the public API is unchanged except one new optional prop,
|
|
54
|
+
`collapseBelow?: number` (default = the shared kit breakpoint, 768; pass `0` to keep the
|
|
55
|
+
row on any web width, or a large number to force the menu). The collapse threshold reuses
|
|
56
|
+
the SAME viewport rule (`MENU_BREAKPOINT`) that `ModalDropdown` uses for its menu-vs-modal
|
|
57
|
+
split, so the whole layout kit changes shape at one consistent breakpoint.
|
|
58
|
+
|
|
59
|
+
**E2E survival:** per-tab selectors keep working in BOTH modes. Each collapsed menu row's
|
|
60
|
+
`testID` is the tab descriptor's own `testID` when supplied, otherwise the same
|
|
61
|
+
`{idPrefix}-tab-{key}` pattern the wide strip uses for its tab element ids (the menu must
|
|
62
|
+
be opened first, as with any select). Requires one new host i18n key,
|
|
63
|
+
`common.tabsMenuHint` (the accessible hint on the collapsed trigger).
|
|
64
|
+
|
|
3
65
|
## 1.17.0
|
|
4
66
|
|
|
5
67
|
**New `Tabs` primitive — a controlled tabbed section shell.**
|
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ Read theme + translations from the shared `@dloizides/ui-feedback` context (`use
|
|
|
11
11
|
| `Heading` | Themed section heading text. |
|
|
12
12
|
| `StatusBadge` | Status pill — caller supplies `label`/`color`/`backgroundColor`. |
|
|
13
13
|
| `UpgradePrompt` | Free-tier upgrade nudge; CTA navigates to the billing route via `useUi().navigate`. |
|
|
14
|
+
| `Tabs` | Controlled tabbed section shell. **Responsive**: a horizontal `role=tablist` pill strip on wide web, collapsing to a real mobile MENU (a trigger + vertical section list, via `ModalDropdown`) below `collapseBelow` (default 768) or on native. Per-tab `testID`s survive in both modes. Requires the `common.tabsMenuHint` key. |
|
|
14
15
|
| `ModalDropdown` | Generic dropdown selector. **Responsive by default**: an inline anchored menu on wide/desktop web, a modal on narrow/mobile — override per screen with `variant`. |
|
|
15
16
|
| `DropdownVariant` | Enum (`Menu` / `Modal`) to force a `ModalDropdown` rendering variant. |
|
|
16
17
|
| `Accordion` / `AccordionItem` | Themed expand/collapse disclosure group (replaces hand-rolled `<details>`/expanders). Controlled or uncontrolled, single- or multi-open, animated, keyboard + screen-reader accessible. |
|
package/dist/index.d.mts
CHANGED
|
@@ -107,31 +107,27 @@ interface SegmentedControlProps<V extends string = string> {
|
|
|
107
107
|
declare function SegmentedControl<V extends string = string>({ options, value, onChange, accessibilityLabel, style, testID, }: SegmentedControlProps<V>): React.ReactElement;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
* Tabs — a
|
|
111
|
-
*
|
|
112
|
-
*
|
|
110
|
+
* Tabs — a named-section shell for a long dashboard. On WIDE viewports it is a
|
|
111
|
+
* horizontal strip of pill tabs (a single scrollable `nowrap` row) plus the
|
|
112
|
+
* active tab's panel. BELOW the collapse breakpoint it becomes a genuine mobile
|
|
113
|
+
* MENU — a button showing the active section that opens a vertical list of all
|
|
114
|
+
* sections — because a scrolling chip strip "is not a real menu and not mobile
|
|
115
|
+
* friendly" on a phone. The active panel renders identically in both modes.
|
|
113
116
|
*
|
|
114
117
|
* It is deliberately CONTROLLED — the host owns `activeKey` and `onChange`, so
|
|
115
118
|
* the selected tab can be driven from a route param, restored from storage, or
|
|
116
|
-
* changed programmatically. The active panel is passed as `children
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* panel
|
|
119
|
+
* changed programmatically. The active panel is passed as `children`.
|
|
120
|
+
*
|
|
121
|
+
* A11y: WIDE mode keeps `role=tablist` / `role=tab` with `aria-selected` and the
|
|
122
|
+
* `aria-controls` / `aria-labelledby` tab⇄panel wiring. COLLAPSED mode delegates
|
|
123
|
+
* to {@link ModalDropdown}'s menu/listbox semantics (a `role=button` trigger that
|
|
124
|
+
* opens a selectable list). The rendered panel is `aria-labelledby` the active
|
|
125
|
+
* tab id in BOTH modes.
|
|
120
126
|
*
|
|
121
127
|
* Contract discipline (same as the rest of `@dloizides/ui-layout`): NO FM /
|
|
122
128
|
* router / store / icon imports. `label`s are pre-localized strings supplied by
|
|
123
129
|
* the caller; every colour is read from the `@dloizides/ui-feedback` UiProvider
|
|
124
|
-
* theme, so the
|
|
125
|
-
*
|
|
126
|
-
* RESPONSIVE ROW: the tab row is a SINGLE horizontally-scrollable line, never a
|
|
127
|
-
* wrapping pile. Pills sit on one `nowrap` row inside a horizontal `ScrollView`
|
|
128
|
-
* and do not shrink (`flexShrink: 0`), so on a phone the extra tabs scroll off to
|
|
129
|
-
* the right (swipeable) instead of wrapping into an unusable multi-row chip pile;
|
|
130
|
-
* on desktop the same row lays out cleanly and, when the tabs fit, simply doesn't
|
|
131
|
-
* scroll. A full-width underline lives on the outer wrapper so it spans the whole
|
|
132
|
-
* width in both cases. (An earlier version used `flexWrap: 'wrap'` INSIDE the
|
|
133
|
-
* scroller, which made the content wrap to the viewport so the scroller never
|
|
134
|
-
* scrolled — the classic "wrap defeats the horizontal scroll" trap.)
|
|
130
|
+
* theme, so the shell re-skins on tenant swap.
|
|
135
131
|
*/
|
|
136
132
|
|
|
137
133
|
/** One tab in the strip. `key` is what `onChange` emits and what selects the panel. */
|
|
@@ -151,27 +147,35 @@ interface TabsProps {
|
|
|
151
147
|
tabs: ReadonlyArray<TabDescriptor>;
|
|
152
148
|
/** The currently-active tab `key`. */
|
|
153
149
|
activeKey: string;
|
|
154
|
-
/** Fired with a tab's `key` when it is pressed. */
|
|
150
|
+
/** Fired with a tab's `key` when it is pressed (wide) or chosen (collapsed). */
|
|
155
151
|
onChange: (key: string) => void;
|
|
156
|
-
/** Accessible name for the whole tablist. */
|
|
152
|
+
/** Accessible name for the whole tablist / collapsed menu. */
|
|
157
153
|
accessibilityLabel: string;
|
|
158
154
|
/** The panel content for the active tab. */
|
|
159
155
|
children?: React.ReactNode;
|
|
160
156
|
/** Prefix for the generated tab / panel element ids (must be unique per Tabs on a page). */
|
|
161
157
|
idPrefix?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Viewport width (dp) at/above which the tabs stay a horizontal ROW; below it
|
|
160
|
+
* (or on native) they collapse to the mobile menu. Defaults to the shared kit
|
|
161
|
+
* breakpoint ({@link TABS_COLLAPSE_BREAKPOINT}, 768). Pass a large number to
|
|
162
|
+
* force the menu, or `0` to keep the row on any web width.
|
|
163
|
+
*/
|
|
164
|
+
collapseBelow?: number;
|
|
162
165
|
/** Style override merged onto the root container. */
|
|
163
166
|
style?: StyleProp<ViewStyle>;
|
|
164
|
-
/** Style override merged onto the tab strip. */
|
|
167
|
+
/** Style override merged onto the tab strip (wide mode only). */
|
|
165
168
|
stripStyle?: StyleProp<ViewStyle>;
|
|
166
169
|
/** Style override merged onto the panel wrapper. */
|
|
167
170
|
panelStyle?: StyleProp<ViewStyle>;
|
|
168
171
|
testID?: string;
|
|
169
172
|
}
|
|
170
173
|
/**
|
|
171
|
-
* A controlled tabbed section shell. Renders the
|
|
172
|
-
*
|
|
174
|
+
* A controlled tabbed section shell. Renders the active tab's panel plus either
|
|
175
|
+
* the wide pill strip or — below `collapseBelow` — the mobile menu. Generic-free
|
|
176
|
+
* by design: tab identity is a plain string `key`.
|
|
173
177
|
*/
|
|
174
|
-
declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, children, idPrefix, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
|
|
178
|
+
declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, children, idPrefix, collapseBelow, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
|
|
175
179
|
|
|
176
180
|
/**
|
|
177
181
|
* UpgradePrompt — shown when a free-tier user hits a feature limit. CTA navigates to the
|
|
@@ -265,8 +269,17 @@ interface ModalDropdownProps<T> {
|
|
|
265
269
|
* a floor only: a wider trigger still wins. Omit to keep the trigger-width behaviour.
|
|
266
270
|
*/
|
|
267
271
|
menuMinWidth?: number;
|
|
272
|
+
/**
|
|
273
|
+
* Show a MENU affordance on the DEFAULT trigger: a caret (▾) pinned to the trailing edge that
|
|
274
|
+
* rotates to point up while the menu is open, and a ≥44dp hit target. Opt-in and OFF by default,
|
|
275
|
+
* so every existing field-style dropdown in the kit renders unchanged; a control that must read
|
|
276
|
+
* as a tappable menu rather than a static chip (the collapsed {@link import('../Tabs/Tabs').Tabs}
|
|
277
|
+
* section switcher) sets it. Ignored when a custom `renderTrigger` is supplied — that caller owns
|
|
278
|
+
* its own visuals, affordance included.
|
|
279
|
+
*/
|
|
280
|
+
showCaret?: boolean;
|
|
268
281
|
}
|
|
269
|
-
declare const ModalDropdown: <T extends string | number>({ testID, accessibilityLabel, accessibilityHint, value, options, onChange, variant, renderTrigger, optionTestID, menuMinWidth, }: ModalDropdownProps<T>) => React.ReactElement;
|
|
282
|
+
declare const ModalDropdown: <T extends string | number>({ testID, accessibilityLabel, accessibilityHint, value, options, onChange, variant, renderTrigger, optionTestID, menuMinWidth, showCaret, }: ModalDropdownProps<T>) => React.ReactElement;
|
|
270
283
|
|
|
271
284
|
/**
|
|
272
285
|
* ModalShell — a slide-up full-screen modal with a themed header (title + close button)
|
|
@@ -583,6 +596,11 @@ declare const DEFAULT_BILLING_ROUTE = "/settings/billing";
|
|
|
583
596
|
declare const LAYOUT_I18N: {
|
|
584
597
|
/** Placeholder shown by `ModalDropdown` when no option matches the current value. */
|
|
585
598
|
readonly selectPlaceholder: "common.selectPlaceholder";
|
|
599
|
+
/**
|
|
600
|
+
* Accessible hint on the collapsed (mobile) `Tabs` menu trigger — the button
|
|
601
|
+
* that shows the active section and opens the vertical list of sections.
|
|
602
|
+
*/
|
|
603
|
+
readonly tabsMenuHint: "common.tabsMenuHint";
|
|
586
604
|
/** Accessible name + hint of the modal-variant dropdown's dismiss backdrop. */
|
|
587
605
|
readonly dismissDropdown: "common.dismissDropdown";
|
|
588
606
|
readonly dismissDropdownHint: "common.dismissDropdownHint";
|
package/dist/index.d.ts
CHANGED
|
@@ -107,31 +107,27 @@ interface SegmentedControlProps<V extends string = string> {
|
|
|
107
107
|
declare function SegmentedControl<V extends string = string>({ options, value, onChange, accessibilityLabel, style, testID, }: SegmentedControlProps<V>): React.ReactElement;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
* Tabs — a
|
|
111
|
-
*
|
|
112
|
-
*
|
|
110
|
+
* Tabs — a named-section shell for a long dashboard. On WIDE viewports it is a
|
|
111
|
+
* horizontal strip of pill tabs (a single scrollable `nowrap` row) plus the
|
|
112
|
+
* active tab's panel. BELOW the collapse breakpoint it becomes a genuine mobile
|
|
113
|
+
* MENU — a button showing the active section that opens a vertical list of all
|
|
114
|
+
* sections — because a scrolling chip strip "is not a real menu and not mobile
|
|
115
|
+
* friendly" on a phone. The active panel renders identically in both modes.
|
|
113
116
|
*
|
|
114
117
|
* It is deliberately CONTROLLED — the host owns `activeKey` and `onChange`, so
|
|
115
118
|
* the selected tab can be driven from a route param, restored from storage, or
|
|
116
|
-
* changed programmatically. The active panel is passed as `children
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* panel
|
|
119
|
+
* changed programmatically. The active panel is passed as `children`.
|
|
120
|
+
*
|
|
121
|
+
* A11y: WIDE mode keeps `role=tablist` / `role=tab` with `aria-selected` and the
|
|
122
|
+
* `aria-controls` / `aria-labelledby` tab⇄panel wiring. COLLAPSED mode delegates
|
|
123
|
+
* to {@link ModalDropdown}'s menu/listbox semantics (a `role=button` trigger that
|
|
124
|
+
* opens a selectable list). The rendered panel is `aria-labelledby` the active
|
|
125
|
+
* tab id in BOTH modes.
|
|
120
126
|
*
|
|
121
127
|
* Contract discipline (same as the rest of `@dloizides/ui-layout`): NO FM /
|
|
122
128
|
* router / store / icon imports. `label`s are pre-localized strings supplied by
|
|
123
129
|
* the caller; every colour is read from the `@dloizides/ui-feedback` UiProvider
|
|
124
|
-
* theme, so the
|
|
125
|
-
*
|
|
126
|
-
* RESPONSIVE ROW: the tab row is a SINGLE horizontally-scrollable line, never a
|
|
127
|
-
* wrapping pile. Pills sit on one `nowrap` row inside a horizontal `ScrollView`
|
|
128
|
-
* and do not shrink (`flexShrink: 0`), so on a phone the extra tabs scroll off to
|
|
129
|
-
* the right (swipeable) instead of wrapping into an unusable multi-row chip pile;
|
|
130
|
-
* on desktop the same row lays out cleanly and, when the tabs fit, simply doesn't
|
|
131
|
-
* scroll. A full-width underline lives on the outer wrapper so it spans the whole
|
|
132
|
-
* width in both cases. (An earlier version used `flexWrap: 'wrap'` INSIDE the
|
|
133
|
-
* scroller, which made the content wrap to the viewport so the scroller never
|
|
134
|
-
* scrolled — the classic "wrap defeats the horizontal scroll" trap.)
|
|
130
|
+
* theme, so the shell re-skins on tenant swap.
|
|
135
131
|
*/
|
|
136
132
|
|
|
137
133
|
/** One tab in the strip. `key` is what `onChange` emits and what selects the panel. */
|
|
@@ -151,27 +147,35 @@ interface TabsProps {
|
|
|
151
147
|
tabs: ReadonlyArray<TabDescriptor>;
|
|
152
148
|
/** The currently-active tab `key`. */
|
|
153
149
|
activeKey: string;
|
|
154
|
-
/** Fired with a tab's `key` when it is pressed. */
|
|
150
|
+
/** Fired with a tab's `key` when it is pressed (wide) or chosen (collapsed). */
|
|
155
151
|
onChange: (key: string) => void;
|
|
156
|
-
/** Accessible name for the whole tablist. */
|
|
152
|
+
/** Accessible name for the whole tablist / collapsed menu. */
|
|
157
153
|
accessibilityLabel: string;
|
|
158
154
|
/** The panel content for the active tab. */
|
|
159
155
|
children?: React.ReactNode;
|
|
160
156
|
/** Prefix for the generated tab / panel element ids (must be unique per Tabs on a page). */
|
|
161
157
|
idPrefix?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Viewport width (dp) at/above which the tabs stay a horizontal ROW; below it
|
|
160
|
+
* (or on native) they collapse to the mobile menu. Defaults to the shared kit
|
|
161
|
+
* breakpoint ({@link TABS_COLLAPSE_BREAKPOINT}, 768). Pass a large number to
|
|
162
|
+
* force the menu, or `0` to keep the row on any web width.
|
|
163
|
+
*/
|
|
164
|
+
collapseBelow?: number;
|
|
162
165
|
/** Style override merged onto the root container. */
|
|
163
166
|
style?: StyleProp<ViewStyle>;
|
|
164
|
-
/** Style override merged onto the tab strip. */
|
|
167
|
+
/** Style override merged onto the tab strip (wide mode only). */
|
|
165
168
|
stripStyle?: StyleProp<ViewStyle>;
|
|
166
169
|
/** Style override merged onto the panel wrapper. */
|
|
167
170
|
panelStyle?: StyleProp<ViewStyle>;
|
|
168
171
|
testID?: string;
|
|
169
172
|
}
|
|
170
173
|
/**
|
|
171
|
-
* A controlled tabbed section shell. Renders the
|
|
172
|
-
*
|
|
174
|
+
* A controlled tabbed section shell. Renders the active tab's panel plus either
|
|
175
|
+
* the wide pill strip or — below `collapseBelow` — the mobile menu. Generic-free
|
|
176
|
+
* by design: tab identity is a plain string `key`.
|
|
173
177
|
*/
|
|
174
|
-
declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, children, idPrefix, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
|
|
178
|
+
declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, children, idPrefix, collapseBelow, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
|
|
175
179
|
|
|
176
180
|
/**
|
|
177
181
|
* UpgradePrompt — shown when a free-tier user hits a feature limit. CTA navigates to the
|
|
@@ -265,8 +269,17 @@ interface ModalDropdownProps<T> {
|
|
|
265
269
|
* a floor only: a wider trigger still wins. Omit to keep the trigger-width behaviour.
|
|
266
270
|
*/
|
|
267
271
|
menuMinWidth?: number;
|
|
272
|
+
/**
|
|
273
|
+
* Show a MENU affordance on the DEFAULT trigger: a caret (▾) pinned to the trailing edge that
|
|
274
|
+
* rotates to point up while the menu is open, and a ≥44dp hit target. Opt-in and OFF by default,
|
|
275
|
+
* so every existing field-style dropdown in the kit renders unchanged; a control that must read
|
|
276
|
+
* as a tappable menu rather than a static chip (the collapsed {@link import('../Tabs/Tabs').Tabs}
|
|
277
|
+
* section switcher) sets it. Ignored when a custom `renderTrigger` is supplied — that caller owns
|
|
278
|
+
* its own visuals, affordance included.
|
|
279
|
+
*/
|
|
280
|
+
showCaret?: boolean;
|
|
268
281
|
}
|
|
269
|
-
declare const ModalDropdown: <T extends string | number>({ testID, accessibilityLabel, accessibilityHint, value, options, onChange, variant, renderTrigger, optionTestID, menuMinWidth, }: ModalDropdownProps<T>) => React.ReactElement;
|
|
282
|
+
declare const ModalDropdown: <T extends string | number>({ testID, accessibilityLabel, accessibilityHint, value, options, onChange, variant, renderTrigger, optionTestID, menuMinWidth, showCaret, }: ModalDropdownProps<T>) => React.ReactElement;
|
|
270
283
|
|
|
271
284
|
/**
|
|
272
285
|
* ModalShell — a slide-up full-screen modal with a themed header (title + close button)
|
|
@@ -583,6 +596,11 @@ declare const DEFAULT_BILLING_ROUTE = "/settings/billing";
|
|
|
583
596
|
declare const LAYOUT_I18N: {
|
|
584
597
|
/** Placeholder shown by `ModalDropdown` when no option matches the current value. */
|
|
585
598
|
readonly selectPlaceholder: "common.selectPlaceholder";
|
|
599
|
+
/**
|
|
600
|
+
* Accessible hint on the collapsed (mobile) `Tabs` menu trigger — the button
|
|
601
|
+
* that shows the active section and opens the vertical list of sections.
|
|
602
|
+
*/
|
|
603
|
+
readonly tabsMenuHint: "common.tabsMenuHint";
|
|
586
604
|
/** Accessible name + hint of the modal-variant dropdown's dismiss backdrop. */
|
|
587
605
|
readonly dismissDropdown: "common.dismissDropdown";
|
|
588
606
|
readonly dismissDropdownHint: "common.dismissDropdownHint";
|