@dloizides/ui-layout 1.61.0 → 1.62.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/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -93,6 +93,15 @@ interface ScreenColumnProps {
|
|
|
93
93
|
}
|
|
94
94
|
declare const ScreenColumn: ({ children, narrow }: ScreenColumnProps) => React.ReactElement;
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* StatusBadge box: `Regular` is the default 10x4 px pill with a 12 px radius; `Compact` is the
|
|
98
|
+
* table-cell chip (8x1 px padding, fully round, 17 px line), sized to sit inside a 34 px compact row.
|
|
99
|
+
*/
|
|
100
|
+
declare const enum BadgeSize {
|
|
101
|
+
Regular = "regular",
|
|
102
|
+
Compact = "compact"
|
|
103
|
+
}
|
|
104
|
+
|
|
96
105
|
declare const enum BadgeTone {
|
|
97
106
|
Neutral = "neutral",
|
|
98
107
|
Info = "info",
|
|
@@ -113,11 +122,13 @@ interface StatusBadgeProps {
|
|
|
113
122
|
backgroundColor?: string;
|
|
114
123
|
icon?: React.ReactNode;
|
|
115
124
|
dashed?: boolean;
|
|
125
|
+
/** `BadgeSize.Compact` is the chip for a compact table cell. Default regular. */
|
|
126
|
+
size?: BadgeSize;
|
|
116
127
|
testID?: string;
|
|
117
128
|
accessibilityLabel?: string;
|
|
118
129
|
accessibilityHint?: string;
|
|
119
130
|
}
|
|
120
|
-
declare const StatusBadge: ({ label, tone, color: rawColor, backgroundColor: rawBackground, icon, dashed, testID, accessibilityLabel, accessibilityHint, }: StatusBadgeProps) => React.ReactElement;
|
|
131
|
+
declare const StatusBadge: ({ label, tone, color: rawColor, backgroundColor: rawBackground, icon, dashed, size, testID, accessibilityLabel, accessibilityHint, }: StatusBadgeProps) => React.ReactElement;
|
|
121
132
|
|
|
122
133
|
interface ToneColors {
|
|
123
134
|
color: string;
|
|
@@ -1575,4 +1586,4 @@ interface ListDetailVisibility {
|
|
|
1575
1586
|
/** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
|
|
1576
1587
|
declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
|
|
1577
1588
|
|
|
1578
|
-
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, 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, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
|
1589
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, 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, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
package/dist/index.d.ts
CHANGED
|
@@ -93,6 +93,15 @@ interface ScreenColumnProps {
|
|
|
93
93
|
}
|
|
94
94
|
declare const ScreenColumn: ({ children, narrow }: ScreenColumnProps) => React.ReactElement;
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* StatusBadge box: `Regular` is the default 10x4 px pill with a 12 px radius; `Compact` is the
|
|
98
|
+
* table-cell chip (8x1 px padding, fully round, 17 px line), sized to sit inside a 34 px compact row.
|
|
99
|
+
*/
|
|
100
|
+
declare const enum BadgeSize {
|
|
101
|
+
Regular = "regular",
|
|
102
|
+
Compact = "compact"
|
|
103
|
+
}
|
|
104
|
+
|
|
96
105
|
declare const enum BadgeTone {
|
|
97
106
|
Neutral = "neutral",
|
|
98
107
|
Info = "info",
|
|
@@ -113,11 +122,13 @@ interface StatusBadgeProps {
|
|
|
113
122
|
backgroundColor?: string;
|
|
114
123
|
icon?: React.ReactNode;
|
|
115
124
|
dashed?: boolean;
|
|
125
|
+
/** `BadgeSize.Compact` is the chip for a compact table cell. Default regular. */
|
|
126
|
+
size?: BadgeSize;
|
|
116
127
|
testID?: string;
|
|
117
128
|
accessibilityLabel?: string;
|
|
118
129
|
accessibilityHint?: string;
|
|
119
130
|
}
|
|
120
|
-
declare const StatusBadge: ({ label, tone, color: rawColor, backgroundColor: rawBackground, icon, dashed, testID, accessibilityLabel, accessibilityHint, }: StatusBadgeProps) => React.ReactElement;
|
|
131
|
+
declare const StatusBadge: ({ label, tone, color: rawColor, backgroundColor: rawBackground, icon, dashed, size, testID, accessibilityLabel, accessibilityHint, }: StatusBadgeProps) => React.ReactElement;
|
|
121
132
|
|
|
122
133
|
interface ToneColors {
|
|
123
134
|
color: string;
|
|
@@ -1575,4 +1586,4 @@ interface ListDetailVisibility {
|
|
|
1575
1586
|
/** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
|
|
1576
1587
|
declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
|
|
1577
1588
|
|
|
1578
|
-
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, 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, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
|
1589
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, 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, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
package/dist/index.js
CHANGED
|
@@ -264,6 +264,13 @@ var ScreenColumn = ({ children, narrow = false }) => {
|
|
|
264
264
|
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles3.outer, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles3.column, isWide ? styles3.desktop : styles3.mobile, narrow ? styles3.narrow : styles3.wide], children }) });
|
|
265
265
|
};
|
|
266
266
|
|
|
267
|
+
// src/StatusBadge/BadgeSize.ts
|
|
268
|
+
var BadgeSize = /* @__PURE__ */ ((BadgeSize2) => {
|
|
269
|
+
BadgeSize2["Regular"] = "regular";
|
|
270
|
+
BadgeSize2["Compact"] = "compact";
|
|
271
|
+
return BadgeSize2;
|
|
272
|
+
})(BadgeSize || {});
|
|
273
|
+
|
|
267
274
|
// src/StatusBadge/BadgeTone.ts
|
|
268
275
|
var BadgeTone = /* @__PURE__ */ ((BadgeTone2) => {
|
|
269
276
|
BadgeTone2["Neutral"] = "neutral";
|
|
@@ -347,6 +354,10 @@ var DEFAULT_PADDING_V = 4;
|
|
|
347
354
|
var DEFAULT_BORDER_RADIUS = 12;
|
|
348
355
|
var DEFAULT_FONT_SIZE = 12;
|
|
349
356
|
var ICON_GAP = 4;
|
|
357
|
+
var COMPACT_PADDING_H = 8;
|
|
358
|
+
var COMPACT_PADDING_V = 1;
|
|
359
|
+
var COMPACT_RADIUS = 999;
|
|
360
|
+
var COMPACT_LINE_HEIGHT = 17;
|
|
350
361
|
var styles4 = reactNative.StyleSheet.create({
|
|
351
362
|
badge: {
|
|
352
363
|
paddingHorizontal: DEFAULT_PADDING_H,
|
|
@@ -365,6 +376,14 @@ var styles4 = reactNative.StyleSheet.create({
|
|
|
365
376
|
borderWidth: 1,
|
|
366
377
|
borderStyle: "dashed"
|
|
367
378
|
},
|
|
379
|
+
badgeCompact: {
|
|
380
|
+
paddingHorizontal: COMPACT_PADDING_H,
|
|
381
|
+
paddingVertical: COMPACT_PADDING_V,
|
|
382
|
+
borderRadius: COMPACT_RADIUS
|
|
383
|
+
},
|
|
384
|
+
textCompact: {
|
|
385
|
+
lineHeight: COMPACT_LINE_HEIGHT
|
|
386
|
+
},
|
|
368
387
|
text: {
|
|
369
388
|
fontSize: DEFAULT_FONT_SIZE,
|
|
370
389
|
fontWeight: "600",
|
|
@@ -378,6 +397,7 @@ var StatusBadge = ({
|
|
|
378
397
|
backgroundColor: rawBackground,
|
|
379
398
|
icon,
|
|
380
399
|
dashed = false,
|
|
400
|
+
size = "regular" /* Regular */,
|
|
381
401
|
testID = LAYOUT_TEST_IDS.statusLabel,
|
|
382
402
|
accessibilityLabel,
|
|
383
403
|
accessibilityHint
|
|
@@ -393,16 +413,17 @@ var StatusBadge = ({
|
|
|
393
413
|
const dashedColor = React16.useMemo(() => ({ borderColor: color }), [color]);
|
|
394
414
|
const dynamicText = React16.useMemo(() => ({ color }), [color]);
|
|
395
415
|
const hasIcon = icon !== void 0 && icon !== null;
|
|
416
|
+
const compact = size === "compact" /* Compact */;
|
|
396
417
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
397
418
|
reactNative.View,
|
|
398
419
|
{
|
|
399
420
|
accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.statusBadgeHint),
|
|
400
421
|
accessibilityLabel: accessibilityLabel ?? label,
|
|
401
|
-
style: [styles4.badge, hasIcon && styles4.badgeWithIcon, dynamicBadge, dashed && styles4.badgeDashed, dashed && dashedColor],
|
|
422
|
+
style: [styles4.badge, compact && styles4.badgeCompact, hasIcon && styles4.badgeWithIcon, dynamicBadge, dashed && styles4.badgeDashed, dashed && dashedColor],
|
|
402
423
|
testID,
|
|
403
424
|
children: [
|
|
404
425
|
hasIcon ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }) : null,
|
|
405
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles4.text, dynamicText], children: label })
|
|
426
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles4.text, compact && styles4.textCompact, dynamicText], children: label })
|
|
406
427
|
]
|
|
407
428
|
}
|
|
408
429
|
);
|
|
@@ -4176,6 +4197,7 @@ exports.Accordion = Accordion;
|
|
|
4176
4197
|
exports.AccordionItem = AccordionItem;
|
|
4177
4198
|
exports.AppText = AppText;
|
|
4178
4199
|
exports.BUILD_INFO_PREFIX = BUILD_INFO_PREFIX;
|
|
4200
|
+
exports.BadgeSize = BadgeSize;
|
|
4179
4201
|
exports.BadgeTone = BadgeTone;
|
|
4180
4202
|
exports.BottomSheet = BottomSheet;
|
|
4181
4203
|
exports.Breadcrumb = Breadcrumb;
|