@dloizides/ui-layout 1.42.0 → 1.44.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 +8 -0
- package/dist/index.d.mts +73 -8
- package/dist/index.d.ts +73 -8
- package/dist/index.js +434 -253
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +328 -155
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.44.0
|
|
4
|
+
|
|
5
|
+
MODC-1 "Module C unified console" (AC-UI-1, AC-UI-7), UI-ATOMIC-1 "Reuse first, extract what is new, layer atom / molecule / organism".
|
|
6
|
+
|
|
7
|
+
- `StatusBadge` takes `tone` (`BadgeTone`: neutral, info, success, warning, danger) with the fill from the theme scale main (or deep) step and the ink from `resolveOnBrand`, so text is >= 4.5:1; `color` / `backgroundColor` are now optional and still win when passed. A tone no theme fill can carry falls back to theme text on the elevated surface. ui-tables `StatusTone` is to map onto `BadgeTone`.
|
|
8
|
+
- New atom `CountBadge`: a count pill capped as `max+` (default 99), hidden at zero unless `showZero`, tone from `BadgeTone`. Plain text, no live region; new i18n key `common.countBadgeLabel` (`{{p1}}` = count).
|
|
9
|
+
- New organism `SplitPanes`: two panes side by side or stacked (`SplitLayout` auto / stack / side); side by side each pane has `minWidth: 0` so its text wraps at 360 (TEXT-FIT-1).
|
|
10
|
+
|
|
3
11
|
## 1.39.0
|
|
4
12
|
|
|
5
13
|
INVOICE-6 "Ready-to-send invoice emails with contacts and a sent log", UI-COMPOSE-1 "Extract shared UI from the start": extracted from invoice-web.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, TextStyle, Text, View } from 'react-native';
|
|
3
|
+
import { UiTheme } from '@dloizides/ui-feedback';
|
|
3
4
|
|
|
4
5
|
declare enum SectionVariant {
|
|
5
6
|
Panel = "panel",
|
|
@@ -81,22 +82,74 @@ interface HeadingProps {
|
|
|
81
82
|
}
|
|
82
83
|
declare const Heading: ({ text, children, level, style, testID, }: HeadingProps) => React.ReactElement;
|
|
83
84
|
|
|
85
|
+
declare const enum BadgeTone {
|
|
86
|
+
Neutral = "neutral",
|
|
87
|
+
Info = "info",
|
|
88
|
+
Success = "success",
|
|
89
|
+
Warning = "warning",
|
|
90
|
+
Danger = "danger"
|
|
91
|
+
}
|
|
92
|
+
|
|
84
93
|
/**
|
|
85
|
-
* StatusBadge — unified status pill.
|
|
86
|
-
*
|
|
94
|
+
* StatusBadge — unified status pill. Colour comes from `tone` (theme scales); raw
|
|
95
|
+
* `color`/`backgroundColor` still win, for existing callers.
|
|
87
96
|
*/
|
|
88
97
|
|
|
89
98
|
interface StatusBadgeProps {
|
|
90
99
|
label: string;
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
tone?: BadgeTone;
|
|
101
|
+
color?: string;
|
|
102
|
+
backgroundColor?: string;
|
|
93
103
|
icon?: React.ReactNode;
|
|
94
104
|
dashed?: boolean;
|
|
95
105
|
testID?: string;
|
|
96
106
|
accessibilityLabel?: string;
|
|
97
107
|
accessibilityHint?: string;
|
|
98
108
|
}
|
|
99
|
-
declare const StatusBadge: ({ label, color, backgroundColor, icon, dashed, testID, accessibilityLabel, accessibilityHint, }: StatusBadgeProps) => React.ReactElement;
|
|
109
|
+
declare const StatusBadge: ({ label, tone, color: rawColor, backgroundColor: rawBackground, icon, dashed, testID, accessibilityLabel, accessibilityHint, }: StatusBadgeProps) => React.ReactElement;
|
|
110
|
+
|
|
111
|
+
interface ToneColors {
|
|
112
|
+
color: string;
|
|
113
|
+
backgroundColor: string;
|
|
114
|
+
}
|
|
115
|
+
/** Fill and ink (>= 4.5:1 on the fill) for a tone; a tone no theme fill can carry falls back to neutral. */
|
|
116
|
+
declare function resolveToneColors(theme: UiTheme, tone: BadgeTone): ToneColors;
|
|
117
|
+
|
|
118
|
+
interface CountBadgeProps {
|
|
119
|
+
count: number;
|
|
120
|
+
max?: number;
|
|
121
|
+
tone?: BadgeTone;
|
|
122
|
+
showZero?: boolean;
|
|
123
|
+
testID?: string;
|
|
124
|
+
accessibilityLabel?: string;
|
|
125
|
+
}
|
|
126
|
+
/** A small count pill (unread, open items); hidden at zero unless `showZero`. */
|
|
127
|
+
declare const CountBadge: ({ count, max, tone, showZero, testID, accessibilityLabel, }: CountBadgeProps) => React.ReactElement | null;
|
|
128
|
+
|
|
129
|
+
/** The text a count badge shows: a whole non-negative count, capped as `max+`. */
|
|
130
|
+
declare function formatCount(count: number, max: number): string;
|
|
131
|
+
|
|
132
|
+
declare const enum SplitLayout {
|
|
133
|
+
Auto = "auto",
|
|
134
|
+
Stack = "stack",
|
|
135
|
+
Side = "side"
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface SplitPanesProps {
|
|
139
|
+
start: React.ReactNode;
|
|
140
|
+
end: React.ReactNode;
|
|
141
|
+
layout?: SplitLayout;
|
|
142
|
+
startWeight?: number;
|
|
143
|
+
endWeight?: number;
|
|
144
|
+
gap?: number;
|
|
145
|
+
breakpoint?: number;
|
|
146
|
+
testID?: string;
|
|
147
|
+
}
|
|
148
|
+
/** Two panes; the default Auto stacks below `breakpoint` (phones), pass Side to keep them side by side at 360. */
|
|
149
|
+
declare const SplitPanes: ({ start, end, layout, startWeight, endWeight, gap, breakpoint, testID, }: SplitPanesProps) => React.ReactElement;
|
|
150
|
+
|
|
151
|
+
/** Whether the panes sit side by side: always for Side, never for Stack, from `breakpoint` up for Auto. */
|
|
152
|
+
declare function isSplitSideBySide(layout: SplitLayout, width: number, breakpoint: number): boolean;
|
|
100
153
|
|
|
101
154
|
interface StickyPreviewProps {
|
|
102
155
|
full: React.ReactNode;
|
|
@@ -489,7 +542,7 @@ interface ModalProps {
|
|
|
489
542
|
testID?: string;
|
|
490
543
|
/** Accessible name of the dialog. Falls back to `title`, then the neutral "dialog" key. */
|
|
491
544
|
accessibilityLabel?: string;
|
|
492
|
-
/** testID
|
|
545
|
+
/** testID focused on open (web); the dialog's own testID focuses the dialog. Default: autoFocus child, else first focusable. */
|
|
493
546
|
initialFocusTestID?: string;
|
|
494
547
|
}
|
|
495
548
|
declare const Modal: ({ visible, onClose, title, children, footer, size, showClose, testID, accessibilityLabel, initialFocusTestID, }: ModalProps) => React.ReactElement;
|
|
@@ -521,6 +574,13 @@ interface BottomSheetProps {
|
|
|
521
574
|
/** A content-height panel docked to the screen bottom, with a dimmed backdrop and an optional pinned footer. */
|
|
522
575
|
declare const BottomSheet: ({ visible, onClose, title, children, footer, maxHeightFraction, testID, accessibilityLabel, initialFocusTestID, }: BottomSheetProps) => React.ReactElement;
|
|
523
576
|
|
|
577
|
+
/** Which control a {@link ConfirmDialog} focuses on open (web). `None` focuses the dialog itself. */
|
|
578
|
+
declare const enum ConfirmDialogFocus {
|
|
579
|
+
Cancel = "cancel",
|
|
580
|
+
Confirm = "confirm",
|
|
581
|
+
None = "none"
|
|
582
|
+
}
|
|
583
|
+
|
|
524
584
|
/**
|
|
525
585
|
* ConfirmDialog — a confirm/cancel popup built ON {@link Modal}, for the "are you sure?" moment.
|
|
526
586
|
*
|
|
@@ -554,10 +614,12 @@ interface ConfirmDialogProps {
|
|
|
554
614
|
onCancel: () => void;
|
|
555
615
|
/** In-flight: Confirm shows a spinner and Cancel is disabled. Default `false`. */
|
|
556
616
|
busy?: boolean;
|
|
617
|
+
/** Control focused on open (web). Default `Cancel`; never use `Confirm` for a destructive action. */
|
|
618
|
+
initialFocus?: ConfirmDialogFocus;
|
|
557
619
|
/** Base testID. Default `confirm-dialog`. Confirm is `${testID}-confirm`, Cancel `${testID}-cancel`. */
|
|
558
620
|
testID?: string;
|
|
559
621
|
}
|
|
560
|
-
declare const ConfirmDialog: ({ visible, title, message, confirmLabel, cancelLabel, destructive, onConfirm, onCancel, busy, testID, }: ConfirmDialogProps) => React.ReactElement;
|
|
622
|
+
declare const ConfirmDialog: ({ visible, title, message, confirmLabel, cancelLabel, destructive, onConfirm, onCancel, busy, initialFocus, testID, }: ConfirmDialogProps) => React.ReactElement;
|
|
561
623
|
|
|
562
624
|
interface FormDialogProps {
|
|
563
625
|
visible: boolean;
|
|
@@ -913,6 +975,8 @@ declare function useIsWideViewport(breakpoint?: number): boolean;
|
|
|
913
975
|
declare const LAYOUT_TEST_IDS: {
|
|
914
976
|
readonly headingText: "heading-text";
|
|
915
977
|
readonly statusLabel: "status-label";
|
|
978
|
+
readonly countBadge: "count-badge";
|
|
979
|
+
readonly splitPanes: "split-panes";
|
|
916
980
|
readonly stickyPreview: "sticky-preview";
|
|
917
981
|
readonly pageFrame: "page-frame";
|
|
918
982
|
readonly upgradePrompt: "upgrade-prompt";
|
|
@@ -967,6 +1031,7 @@ declare const LAYOUT_I18N: {
|
|
|
967
1031
|
readonly accordionToggleHint: "common.accordionToggleHint";
|
|
968
1032
|
/** Default accessible hint on a `StatusBadge` when the caller supplies none. */
|
|
969
1033
|
readonly statusBadgeHint: "common.statusBadgeHint";
|
|
1034
|
+
readonly countBadgeLabel: "common.countBadgeLabel";
|
|
970
1035
|
/** `ModalShell`: accessible name of the dialog when its title is not a plain string. */
|
|
971
1036
|
readonly dialog: "common.dialog";
|
|
972
1037
|
/** `ModalShell`: accessible hint on the close button. */
|
|
@@ -1106,4 +1171,4 @@ interface RowLook {
|
|
|
1106
1171
|
/** Resolves a row's container style and text colours from its selected style and state. */
|
|
1107
1172
|
declare function resolveRowLook(style: RowSelectedStyle, state: RowState, palette: RowPalette): RowLook;
|
|
1108
1173
|
|
|
1109
|
-
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BottomSheet, type BottomSheetProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, type PageSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, formatBuildInfo, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isWideWebViewport, pageScale, resolveRowLook, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
|
1174
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, type PageSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, type ToneColors, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, TextStyle, Text, View } from 'react-native';
|
|
3
|
+
import { UiTheme } from '@dloizides/ui-feedback';
|
|
3
4
|
|
|
4
5
|
declare enum SectionVariant {
|
|
5
6
|
Panel = "panel",
|
|
@@ -81,22 +82,74 @@ interface HeadingProps {
|
|
|
81
82
|
}
|
|
82
83
|
declare const Heading: ({ text, children, level, style, testID, }: HeadingProps) => React.ReactElement;
|
|
83
84
|
|
|
85
|
+
declare const enum BadgeTone {
|
|
86
|
+
Neutral = "neutral",
|
|
87
|
+
Info = "info",
|
|
88
|
+
Success = "success",
|
|
89
|
+
Warning = "warning",
|
|
90
|
+
Danger = "danger"
|
|
91
|
+
}
|
|
92
|
+
|
|
84
93
|
/**
|
|
85
|
-
* StatusBadge — unified status pill.
|
|
86
|
-
*
|
|
94
|
+
* StatusBadge — unified status pill. Colour comes from `tone` (theme scales); raw
|
|
95
|
+
* `color`/`backgroundColor` still win, for existing callers.
|
|
87
96
|
*/
|
|
88
97
|
|
|
89
98
|
interface StatusBadgeProps {
|
|
90
99
|
label: string;
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
tone?: BadgeTone;
|
|
101
|
+
color?: string;
|
|
102
|
+
backgroundColor?: string;
|
|
93
103
|
icon?: React.ReactNode;
|
|
94
104
|
dashed?: boolean;
|
|
95
105
|
testID?: string;
|
|
96
106
|
accessibilityLabel?: string;
|
|
97
107
|
accessibilityHint?: string;
|
|
98
108
|
}
|
|
99
|
-
declare const StatusBadge: ({ label, color, backgroundColor, icon, dashed, testID, accessibilityLabel, accessibilityHint, }: StatusBadgeProps) => React.ReactElement;
|
|
109
|
+
declare const StatusBadge: ({ label, tone, color: rawColor, backgroundColor: rawBackground, icon, dashed, testID, accessibilityLabel, accessibilityHint, }: StatusBadgeProps) => React.ReactElement;
|
|
110
|
+
|
|
111
|
+
interface ToneColors {
|
|
112
|
+
color: string;
|
|
113
|
+
backgroundColor: string;
|
|
114
|
+
}
|
|
115
|
+
/** Fill and ink (>= 4.5:1 on the fill) for a tone; a tone no theme fill can carry falls back to neutral. */
|
|
116
|
+
declare function resolveToneColors(theme: UiTheme, tone: BadgeTone): ToneColors;
|
|
117
|
+
|
|
118
|
+
interface CountBadgeProps {
|
|
119
|
+
count: number;
|
|
120
|
+
max?: number;
|
|
121
|
+
tone?: BadgeTone;
|
|
122
|
+
showZero?: boolean;
|
|
123
|
+
testID?: string;
|
|
124
|
+
accessibilityLabel?: string;
|
|
125
|
+
}
|
|
126
|
+
/** A small count pill (unread, open items); hidden at zero unless `showZero`. */
|
|
127
|
+
declare const CountBadge: ({ count, max, tone, showZero, testID, accessibilityLabel, }: CountBadgeProps) => React.ReactElement | null;
|
|
128
|
+
|
|
129
|
+
/** The text a count badge shows: a whole non-negative count, capped as `max+`. */
|
|
130
|
+
declare function formatCount(count: number, max: number): string;
|
|
131
|
+
|
|
132
|
+
declare const enum SplitLayout {
|
|
133
|
+
Auto = "auto",
|
|
134
|
+
Stack = "stack",
|
|
135
|
+
Side = "side"
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface SplitPanesProps {
|
|
139
|
+
start: React.ReactNode;
|
|
140
|
+
end: React.ReactNode;
|
|
141
|
+
layout?: SplitLayout;
|
|
142
|
+
startWeight?: number;
|
|
143
|
+
endWeight?: number;
|
|
144
|
+
gap?: number;
|
|
145
|
+
breakpoint?: number;
|
|
146
|
+
testID?: string;
|
|
147
|
+
}
|
|
148
|
+
/** Two panes; the default Auto stacks below `breakpoint` (phones), pass Side to keep them side by side at 360. */
|
|
149
|
+
declare const SplitPanes: ({ start, end, layout, startWeight, endWeight, gap, breakpoint, testID, }: SplitPanesProps) => React.ReactElement;
|
|
150
|
+
|
|
151
|
+
/** Whether the panes sit side by side: always for Side, never for Stack, from `breakpoint` up for Auto. */
|
|
152
|
+
declare function isSplitSideBySide(layout: SplitLayout, width: number, breakpoint: number): boolean;
|
|
100
153
|
|
|
101
154
|
interface StickyPreviewProps {
|
|
102
155
|
full: React.ReactNode;
|
|
@@ -489,7 +542,7 @@ interface ModalProps {
|
|
|
489
542
|
testID?: string;
|
|
490
543
|
/** Accessible name of the dialog. Falls back to `title`, then the neutral "dialog" key. */
|
|
491
544
|
accessibilityLabel?: string;
|
|
492
|
-
/** testID
|
|
545
|
+
/** testID focused on open (web); the dialog's own testID focuses the dialog. Default: autoFocus child, else first focusable. */
|
|
493
546
|
initialFocusTestID?: string;
|
|
494
547
|
}
|
|
495
548
|
declare const Modal: ({ visible, onClose, title, children, footer, size, showClose, testID, accessibilityLabel, initialFocusTestID, }: ModalProps) => React.ReactElement;
|
|
@@ -521,6 +574,13 @@ interface BottomSheetProps {
|
|
|
521
574
|
/** A content-height panel docked to the screen bottom, with a dimmed backdrop and an optional pinned footer. */
|
|
522
575
|
declare const BottomSheet: ({ visible, onClose, title, children, footer, maxHeightFraction, testID, accessibilityLabel, initialFocusTestID, }: BottomSheetProps) => React.ReactElement;
|
|
523
576
|
|
|
577
|
+
/** Which control a {@link ConfirmDialog} focuses on open (web). `None` focuses the dialog itself. */
|
|
578
|
+
declare const enum ConfirmDialogFocus {
|
|
579
|
+
Cancel = "cancel",
|
|
580
|
+
Confirm = "confirm",
|
|
581
|
+
None = "none"
|
|
582
|
+
}
|
|
583
|
+
|
|
524
584
|
/**
|
|
525
585
|
* ConfirmDialog — a confirm/cancel popup built ON {@link Modal}, for the "are you sure?" moment.
|
|
526
586
|
*
|
|
@@ -554,10 +614,12 @@ interface ConfirmDialogProps {
|
|
|
554
614
|
onCancel: () => void;
|
|
555
615
|
/** In-flight: Confirm shows a spinner and Cancel is disabled. Default `false`. */
|
|
556
616
|
busy?: boolean;
|
|
617
|
+
/** Control focused on open (web). Default `Cancel`; never use `Confirm` for a destructive action. */
|
|
618
|
+
initialFocus?: ConfirmDialogFocus;
|
|
557
619
|
/** Base testID. Default `confirm-dialog`. Confirm is `${testID}-confirm`, Cancel `${testID}-cancel`. */
|
|
558
620
|
testID?: string;
|
|
559
621
|
}
|
|
560
|
-
declare const ConfirmDialog: ({ visible, title, message, confirmLabel, cancelLabel, destructive, onConfirm, onCancel, busy, testID, }: ConfirmDialogProps) => React.ReactElement;
|
|
622
|
+
declare const ConfirmDialog: ({ visible, title, message, confirmLabel, cancelLabel, destructive, onConfirm, onCancel, busy, initialFocus, testID, }: ConfirmDialogProps) => React.ReactElement;
|
|
561
623
|
|
|
562
624
|
interface FormDialogProps {
|
|
563
625
|
visible: boolean;
|
|
@@ -913,6 +975,8 @@ declare function useIsWideViewport(breakpoint?: number): boolean;
|
|
|
913
975
|
declare const LAYOUT_TEST_IDS: {
|
|
914
976
|
readonly headingText: "heading-text";
|
|
915
977
|
readonly statusLabel: "status-label";
|
|
978
|
+
readonly countBadge: "count-badge";
|
|
979
|
+
readonly splitPanes: "split-panes";
|
|
916
980
|
readonly stickyPreview: "sticky-preview";
|
|
917
981
|
readonly pageFrame: "page-frame";
|
|
918
982
|
readonly upgradePrompt: "upgrade-prompt";
|
|
@@ -967,6 +1031,7 @@ declare const LAYOUT_I18N: {
|
|
|
967
1031
|
readonly accordionToggleHint: "common.accordionToggleHint";
|
|
968
1032
|
/** Default accessible hint on a `StatusBadge` when the caller supplies none. */
|
|
969
1033
|
readonly statusBadgeHint: "common.statusBadgeHint";
|
|
1034
|
+
readonly countBadgeLabel: "common.countBadgeLabel";
|
|
970
1035
|
/** `ModalShell`: accessible name of the dialog when its title is not a plain string. */
|
|
971
1036
|
readonly dialog: "common.dialog";
|
|
972
1037
|
/** `ModalShell`: accessible hint on the close button. */
|
|
@@ -1106,4 +1171,4 @@ interface RowLook {
|
|
|
1106
1171
|
/** Resolves a row's container style and text colours from its selected style and state. */
|
|
1107
1172
|
declare function resolveRowLook(style: RowSelectedStyle, state: RowState, palette: RowPalette): RowLook;
|
|
1108
1173
|
|
|
1109
|
-
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BottomSheet, type BottomSheetProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, type PageSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, formatBuildInfo, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isWideWebViewport, pageScale, resolveRowLook, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
|
1174
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, type PageSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, type ToneColors, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|