@yenio-pld/blocks 1.2.0-rc.2 → 1.2.0-rc.4
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.cjs +1545 -329
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +111 -70
- package/dist/index.d.ts +111 -70
- package/dist/index.js +1444 -254
- package/dist/index.js.map +1 -1
- package/dist/ui/combobox.d.ts +1 -0
- package/dist/ui/combobox.js +4 -0
- package/dist/ui/combobox.js.map +1 -0
- package/package.json +5 -1
package/dist/index.d.cts
CHANGED
|
@@ -68,66 +68,6 @@ declare function TableSkeleton({ columns, rows, }: {
|
|
|
68
68
|
rows?: number;
|
|
69
69
|
}): react.JSX.Element;
|
|
70
70
|
|
|
71
|
-
type Language = {
|
|
72
|
-
/** Language key/code (e.g., "en", "es") */
|
|
73
|
-
key: string;
|
|
74
|
-
/** Short label kept for callers that still pass segmented copy */
|
|
75
|
-
label: string;
|
|
76
|
-
/** Full native name for the menu (e.g., "English", "Español") */
|
|
77
|
-
nativeName: string;
|
|
78
|
-
};
|
|
79
|
-
type LanguageSwitcherLabels = {
|
|
80
|
-
/** Accessible name for the language trigger */
|
|
81
|
-
language?: string;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Default languages when none are provided via props or context.
|
|
85
|
-
*/
|
|
86
|
-
declare const defaultLanguages: Language[];
|
|
87
|
-
type LanguageSwitcherProps = {
|
|
88
|
-
/**
|
|
89
|
-
* Available languages. Optional if using LanguageContext.
|
|
90
|
-
* When context is available, context.languages is used; props override context.
|
|
91
|
-
* Falls back to defaultLanguages if neither provided.
|
|
92
|
-
*/
|
|
93
|
-
languages?: Language[];
|
|
94
|
-
/**
|
|
95
|
-
* Current selected language key. Optional if using LanguageContext.
|
|
96
|
-
* When context is available, context.language is used; props override context.
|
|
97
|
-
*/
|
|
98
|
-
currentLanguage?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Callback when language changes. Optional if using LanguageContext.
|
|
101
|
-
* When context is available, context.setLanguage is used; props override context.
|
|
102
|
-
*/
|
|
103
|
-
onLanguageChange?: (languageKey: string) => void;
|
|
104
|
-
/** Accessible name for the trigger */
|
|
105
|
-
labels?: LanguageSwitcherLabels;
|
|
106
|
-
className?: string;
|
|
107
|
-
/** Size of the trigger */
|
|
108
|
-
size?: "sm" | "md" | "lg";
|
|
109
|
-
/** Shape of the trigger */
|
|
110
|
-
shape?: "rounded" | "squared" | "pill";
|
|
111
|
-
/**
|
|
112
|
-
* Kept for existing callers. Both variants render the languages glyph
|
|
113
|
-
* and open the locale menu.
|
|
114
|
-
*/
|
|
115
|
-
variant?: "default" | "mini";
|
|
116
|
-
/** @deprecated The trigger is always the languages glyph. */
|
|
117
|
-
showIcon?: boolean;
|
|
118
|
-
/** Dropdown alignment */
|
|
119
|
-
align?: "start" | "center" | "end";
|
|
120
|
-
/** Dropdown side */
|
|
121
|
-
side?: "top" | "bottom" | "left" | "right";
|
|
122
|
-
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
123
|
-
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
124
|
-
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
125
|
-
tooltipAlign?: "start" | "center" | "end";
|
|
126
|
-
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
127
|
-
tooltipSideOffset?: number;
|
|
128
|
-
};
|
|
129
|
-
declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, align, side, }: LanguageSwitcherProps): react.JSX.Element;
|
|
130
|
-
|
|
131
71
|
/** Fixed row height shared with `DataTableSkeleton` so list swaps do not jump. */
|
|
132
72
|
declare const DATA_TABLE_ROW_CLASS = "h-14";
|
|
133
73
|
/** Any icon component. Avoids pinning a Lucide type across package copies. */
|
|
@@ -200,27 +140,23 @@ type NavTabsProps = {
|
|
|
200
140
|
declare function NavTabs({ tabs, label, renderLink, className, }: NavTabsProps): react.JSX.Element;
|
|
201
141
|
type AccountMenuLabels = {
|
|
202
142
|
menu?: string;
|
|
143
|
+
account?: string;
|
|
203
144
|
signOut?: string;
|
|
204
|
-
theme?: string;
|
|
205
|
-
language?: string;
|
|
206
|
-
system?: string;
|
|
207
|
-
light?: string;
|
|
208
|
-
dark?: string;
|
|
209
145
|
};
|
|
210
146
|
type AccountMenuProps = {
|
|
211
147
|
name: string;
|
|
212
148
|
email: string;
|
|
149
|
+
/** Kept for callers; org belongs in the shell brand, not the account menu. */
|
|
213
150
|
organization?: string;
|
|
214
151
|
imageSrc?: string;
|
|
215
152
|
/** Passed to the avatar image. Empty when the image is decorative. */
|
|
216
153
|
imageAlt?: string;
|
|
217
154
|
labels?: AccountMenuLabels;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
onLanguageChange?: (language: string) => void;
|
|
155
|
+
/** When set, shows an Account item above Sign out. */
|
|
156
|
+
onAccount?: () => void;
|
|
221
157
|
onSignOut?: () => void;
|
|
222
158
|
};
|
|
223
|
-
declare function AccountMenu({ name, email,
|
|
159
|
+
declare function AccountMenu({ name, email, imageSrc, imageAlt, labels: userLabels, onAccount, onSignOut, }: AccountMenuProps): react.JSX.Element;
|
|
224
160
|
type DataTableColumn<T> = {
|
|
225
161
|
key: string;
|
|
226
162
|
header: ReactNode;
|
|
@@ -591,6 +527,111 @@ type ThemeSwitcherProps = {
|
|
|
591
527
|
};
|
|
592
528
|
declare function ThemeSwitcher({ className, size, shape, align, side, labels: userLabels, }: ThemeSwitcherProps): react.JSX.Element;
|
|
593
529
|
|
|
530
|
+
type Language = {
|
|
531
|
+
/** Language key/code (e.g., "en", "es") */
|
|
532
|
+
key: string;
|
|
533
|
+
/** Short label kept for callers that still pass segmented copy */
|
|
534
|
+
label: string;
|
|
535
|
+
/** Full native name for the menu (e.g., "English", "Español") */
|
|
536
|
+
nativeName: string;
|
|
537
|
+
};
|
|
538
|
+
type LanguageSwitcherLabels = {
|
|
539
|
+
/** Accessible name for the language trigger */
|
|
540
|
+
language?: string;
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* Default languages when none are provided via props or context.
|
|
544
|
+
*/
|
|
545
|
+
declare const defaultLanguages: Language[];
|
|
546
|
+
type LanguageSwitcherProps = {
|
|
547
|
+
/**
|
|
548
|
+
* Available languages. Optional if using LanguageContext.
|
|
549
|
+
* When context is available, context.languages is used; props override context.
|
|
550
|
+
* Falls back to defaultLanguages if neither provided.
|
|
551
|
+
*/
|
|
552
|
+
languages?: Language[];
|
|
553
|
+
/**
|
|
554
|
+
* Current selected language key. Optional if using LanguageContext.
|
|
555
|
+
* When context is available, context.language is used; props override context.
|
|
556
|
+
*/
|
|
557
|
+
currentLanguage?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Callback when language changes. Optional if using LanguageContext.
|
|
560
|
+
* When context is available, context.setLanguage is used; props override context.
|
|
561
|
+
*/
|
|
562
|
+
onLanguageChange?: (languageKey: string) => void;
|
|
563
|
+
/** Accessible name for the trigger */
|
|
564
|
+
labels?: LanguageSwitcherLabels;
|
|
565
|
+
className?: string;
|
|
566
|
+
/** Size of the trigger */
|
|
567
|
+
size?: "sm" | "md" | "lg";
|
|
568
|
+
/** Shape of the trigger */
|
|
569
|
+
shape?: "rounded" | "squared" | "pill";
|
|
570
|
+
/**
|
|
571
|
+
* Kept for existing callers. Both variants render the languages glyph
|
|
572
|
+
* and open the locale menu.
|
|
573
|
+
*/
|
|
574
|
+
variant?: "default" | "mini";
|
|
575
|
+
/** @deprecated The trigger is always the languages glyph. */
|
|
576
|
+
showIcon?: boolean;
|
|
577
|
+
/** Dropdown alignment */
|
|
578
|
+
align?: "start" | "center" | "end";
|
|
579
|
+
/** Dropdown side */
|
|
580
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
581
|
+
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
582
|
+
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
583
|
+
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
584
|
+
tooltipAlign?: "start" | "center" | "end";
|
|
585
|
+
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
586
|
+
tooltipSideOffset?: number;
|
|
587
|
+
};
|
|
588
|
+
declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, align, side, }: LanguageSwitcherProps): react.JSX.Element;
|
|
589
|
+
|
|
590
|
+
type CountryLocale = "es-MX" | "en";
|
|
591
|
+
type CountryRecord = {
|
|
592
|
+
code: string;
|
|
593
|
+
labelEs: string;
|
|
594
|
+
};
|
|
595
|
+
type CountryOption = {
|
|
596
|
+
code: string;
|
|
597
|
+
labelEs: string;
|
|
598
|
+
};
|
|
599
|
+
declare const COUNTRY_OPTIONS: readonly CountryOption[];
|
|
600
|
+
declare function isKnownCountryCode(code: string): boolean;
|
|
601
|
+
declare function countryLabel(code: string, locale: CountryLocale): string;
|
|
602
|
+
declare function formatCountryOptionLabel(code: string, locale: CountryLocale): string;
|
|
603
|
+
type CountryPickerItem = {
|
|
604
|
+
value: string;
|
|
605
|
+
label: string;
|
|
606
|
+
};
|
|
607
|
+
declare function countryPickerItems(locale: CountryLocale): CountryPickerItem[];
|
|
608
|
+
declare function filterCountries(query: string, locale: CountryLocale): CountryPickerItem[];
|
|
609
|
+
|
|
610
|
+
type CountryPickerPurpose = "country" | "nationality";
|
|
611
|
+
type CountryPickerLabels = {
|
|
612
|
+
ariaLabel?: string;
|
|
613
|
+
placeholder?: string;
|
|
614
|
+
search?: string;
|
|
615
|
+
noResults?: string;
|
|
616
|
+
clear?: string;
|
|
617
|
+
open?: string;
|
|
618
|
+
};
|
|
619
|
+
type CountryPickerProps = {
|
|
620
|
+
value: string;
|
|
621
|
+
onValueChange: (code: string) => void;
|
|
622
|
+
purpose: CountryPickerPurpose;
|
|
623
|
+
locale?: CountryLocale;
|
|
624
|
+
id?: string;
|
|
625
|
+
name?: string;
|
|
626
|
+
disabled?: boolean;
|
|
627
|
+
required?: boolean;
|
|
628
|
+
allowEmpty?: boolean;
|
|
629
|
+
className?: string;
|
|
630
|
+
labels?: CountryPickerLabels;
|
|
631
|
+
"aria-invalid"?: boolean;
|
|
632
|
+
};
|
|
633
|
+
declare function CountryPicker({ value, onValueChange, purpose, locale, id, name, disabled, required, allowEmpty, className, labels: labelsProp, "aria-invalid": ariaInvalid, }: CountryPickerProps): react.JSX.Element;
|
|
634
|
+
|
|
594
635
|
type AvatarEditorLabels = {
|
|
595
636
|
uploadAria?: string;
|
|
596
637
|
uploadHint?: string;
|
|
@@ -1050,4 +1091,4 @@ declare function sourceUrlIsHttps(url: string): boolean;
|
|
|
1050
1091
|
declare function matchClaimIsUnverified(hit: MatchReviewHit): boolean;
|
|
1051
1092
|
declare function MatchReview({ hit, onResolve, labels, sourceLabels, emptyAction, className, }: MatchReviewProps): react.JSX.Element;
|
|
1052
1093
|
|
|
1053
|
-
export { AccountMenu, type AccountMenuLabels, type AccountMenuProps, type AppNavGroup, type AppNavItem, AppShell, type AppShellProps, type AuditActor, type AuditSubject, AuditTimeline, type AuditTimelineItem, type AuditTimelineLabels, type AuditTimelineProps, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ControlKind, CookieConsentBanner, type CookieConsentBannerLabels, type CookieConsentBannerProps, CookieConsentValue, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CreateMultipartUploadControllerOptions, DATA_TABLE_ROW_CLASS, DEFAULT_AUDIT_TIMELINE_LABELS, DEFAULT_COOKIE_CONSENT_BANNER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_ENTITY_GRAPH_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_LEGAL_ACCEPT_CHECKBOX_LABELS, DEFAULT_LEGAL_ACCEPT_DIALOG_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DEFAULT_RISK_BADGE_LABELS, DashboardSkeleton, DataList, DataListItem, type DataListItemProps, type DataListProps, DataTable, type DataTableColumn, type DataTableProps, DataTableSkeleton, DetailPageSkeleton, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, EntityGraph, type EntityGraphEdge, type EntityGraphLabels, type EntityGraphNode, type EntityGraphProps, ErrorState, Field, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, FormCardSkeleton, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LegalAcceptCheckbox, type LegalAcceptCheckboxLabels, type LegalAcceptCheckboxProps, LegalAcceptDialog, type LegalAcceptDialogLabels, type LegalAcceptDialogProps, LegalMarkdown, type LegalMarkdownProps, ListSkeleton, LoadingState, MatchReview, type MatchReviewHit, type MatchReviewLabels, type MatchReviewProps, type MatchReviewSource, type MatchReviewStatus, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type NavTab, NavTabs, type NavTabsProps, NavigationProgress, type NavigationProgressProps, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, PageContainer, PageTitle, type PageTitleProps, PageTitleSkeleton, type PartRange, RiskBadge, type RiskBadgeLabels, type RiskBadgeProps, type RiskSeverity, RouteLoading, SafeImage, type SafeImageProps, type ShellIcon, type ShellLinkProps, type ShellLinkRenderer, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, TableSkeleton, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, cn, createMultipartUploadController, defaultLanguages, fileMatchesAccept, matchClaimIsUnverified, partRanges, progressFromBytes, renderShellLink, signalNavigationStart, sourceUrlIsHttps, suppressNavigationProgress, useEditableSection, useLanguageContext, useMediaQuery };
|
|
1094
|
+
export { AccountMenu, type AccountMenuLabels, type AccountMenuProps, type AppNavGroup, type AppNavItem, AppShell, type AppShellProps, type AuditActor, type AuditSubject, AuditTimeline, type AuditTimelineItem, type AuditTimelineLabels, type AuditTimelineProps, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, COUNTRY_OPTIONS, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ControlKind, CookieConsentBanner, type CookieConsentBannerLabels, type CookieConsentBannerProps, CookieConsentValue, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CountryLocale, type CountryOption, CountryPicker, type CountryPickerItem, type CountryPickerLabels, type CountryPickerProps, type CountryPickerPurpose, type CountryRecord, type CreateMultipartUploadControllerOptions, DATA_TABLE_ROW_CLASS, DEFAULT_AUDIT_TIMELINE_LABELS, DEFAULT_COOKIE_CONSENT_BANNER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_ENTITY_GRAPH_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_LEGAL_ACCEPT_CHECKBOX_LABELS, DEFAULT_LEGAL_ACCEPT_DIALOG_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DEFAULT_RISK_BADGE_LABELS, DashboardSkeleton, DataList, DataListItem, type DataListItemProps, type DataListProps, DataTable, type DataTableColumn, type DataTableProps, DataTableSkeleton, DetailPageSkeleton, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, EntityGraph, type EntityGraphEdge, type EntityGraphLabels, type EntityGraphNode, type EntityGraphProps, ErrorState, Field, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, FormCardSkeleton, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LegalAcceptCheckbox, type LegalAcceptCheckboxLabels, type LegalAcceptCheckboxProps, LegalAcceptDialog, type LegalAcceptDialogLabels, type LegalAcceptDialogProps, LegalMarkdown, type LegalMarkdownProps, ListSkeleton, LoadingState, MatchReview, type MatchReviewHit, type MatchReviewLabels, type MatchReviewProps, type MatchReviewSource, type MatchReviewStatus, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type NavTab, NavTabs, type NavTabsProps, NavigationProgress, type NavigationProgressProps, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, PageContainer, PageTitle, type PageTitleProps, PageTitleSkeleton, type PartRange, RiskBadge, type RiskBadgeLabels, type RiskBadgeProps, type RiskSeverity, RouteLoading, SafeImage, type SafeImageProps, type ShellIcon, type ShellLinkProps, type ShellLinkRenderer, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, TableSkeleton, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, cn, countryLabel, countryPickerItems, createMultipartUploadController, defaultLanguages, fileMatchesAccept, filterCountries, formatCountryOptionLabel, isKnownCountryCode, matchClaimIsUnverified, partRanges, progressFromBytes, renderShellLink, signalNavigationStart, sourceUrlIsHttps, suppressNavigationProgress, useEditableSection, useLanguageContext, useMediaQuery };
|
package/dist/index.d.ts
CHANGED
|
@@ -68,66 +68,6 @@ declare function TableSkeleton({ columns, rows, }: {
|
|
|
68
68
|
rows?: number;
|
|
69
69
|
}): react.JSX.Element;
|
|
70
70
|
|
|
71
|
-
type Language = {
|
|
72
|
-
/** Language key/code (e.g., "en", "es") */
|
|
73
|
-
key: string;
|
|
74
|
-
/** Short label kept for callers that still pass segmented copy */
|
|
75
|
-
label: string;
|
|
76
|
-
/** Full native name for the menu (e.g., "English", "Español") */
|
|
77
|
-
nativeName: string;
|
|
78
|
-
};
|
|
79
|
-
type LanguageSwitcherLabels = {
|
|
80
|
-
/** Accessible name for the language trigger */
|
|
81
|
-
language?: string;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Default languages when none are provided via props or context.
|
|
85
|
-
*/
|
|
86
|
-
declare const defaultLanguages: Language[];
|
|
87
|
-
type LanguageSwitcherProps = {
|
|
88
|
-
/**
|
|
89
|
-
* Available languages. Optional if using LanguageContext.
|
|
90
|
-
* When context is available, context.languages is used; props override context.
|
|
91
|
-
* Falls back to defaultLanguages if neither provided.
|
|
92
|
-
*/
|
|
93
|
-
languages?: Language[];
|
|
94
|
-
/**
|
|
95
|
-
* Current selected language key. Optional if using LanguageContext.
|
|
96
|
-
* When context is available, context.language is used; props override context.
|
|
97
|
-
*/
|
|
98
|
-
currentLanguage?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Callback when language changes. Optional if using LanguageContext.
|
|
101
|
-
* When context is available, context.setLanguage is used; props override context.
|
|
102
|
-
*/
|
|
103
|
-
onLanguageChange?: (languageKey: string) => void;
|
|
104
|
-
/** Accessible name for the trigger */
|
|
105
|
-
labels?: LanguageSwitcherLabels;
|
|
106
|
-
className?: string;
|
|
107
|
-
/** Size of the trigger */
|
|
108
|
-
size?: "sm" | "md" | "lg";
|
|
109
|
-
/** Shape of the trigger */
|
|
110
|
-
shape?: "rounded" | "squared" | "pill";
|
|
111
|
-
/**
|
|
112
|
-
* Kept for existing callers. Both variants render the languages glyph
|
|
113
|
-
* and open the locale menu.
|
|
114
|
-
*/
|
|
115
|
-
variant?: "default" | "mini";
|
|
116
|
-
/** @deprecated The trigger is always the languages glyph. */
|
|
117
|
-
showIcon?: boolean;
|
|
118
|
-
/** Dropdown alignment */
|
|
119
|
-
align?: "start" | "center" | "end";
|
|
120
|
-
/** Dropdown side */
|
|
121
|
-
side?: "top" | "bottom" | "left" | "right";
|
|
122
|
-
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
123
|
-
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
124
|
-
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
125
|
-
tooltipAlign?: "start" | "center" | "end";
|
|
126
|
-
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
127
|
-
tooltipSideOffset?: number;
|
|
128
|
-
};
|
|
129
|
-
declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, align, side, }: LanguageSwitcherProps): react.JSX.Element;
|
|
130
|
-
|
|
131
71
|
/** Fixed row height shared with `DataTableSkeleton` so list swaps do not jump. */
|
|
132
72
|
declare const DATA_TABLE_ROW_CLASS = "h-14";
|
|
133
73
|
/** Any icon component. Avoids pinning a Lucide type across package copies. */
|
|
@@ -200,27 +140,23 @@ type NavTabsProps = {
|
|
|
200
140
|
declare function NavTabs({ tabs, label, renderLink, className, }: NavTabsProps): react.JSX.Element;
|
|
201
141
|
type AccountMenuLabels = {
|
|
202
142
|
menu?: string;
|
|
143
|
+
account?: string;
|
|
203
144
|
signOut?: string;
|
|
204
|
-
theme?: string;
|
|
205
|
-
language?: string;
|
|
206
|
-
system?: string;
|
|
207
|
-
light?: string;
|
|
208
|
-
dark?: string;
|
|
209
145
|
};
|
|
210
146
|
type AccountMenuProps = {
|
|
211
147
|
name: string;
|
|
212
148
|
email: string;
|
|
149
|
+
/** Kept for callers; org belongs in the shell brand, not the account menu. */
|
|
213
150
|
organization?: string;
|
|
214
151
|
imageSrc?: string;
|
|
215
152
|
/** Passed to the avatar image. Empty when the image is decorative. */
|
|
216
153
|
imageAlt?: string;
|
|
217
154
|
labels?: AccountMenuLabels;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
onLanguageChange?: (language: string) => void;
|
|
155
|
+
/** When set, shows an Account item above Sign out. */
|
|
156
|
+
onAccount?: () => void;
|
|
221
157
|
onSignOut?: () => void;
|
|
222
158
|
};
|
|
223
|
-
declare function AccountMenu({ name, email,
|
|
159
|
+
declare function AccountMenu({ name, email, imageSrc, imageAlt, labels: userLabels, onAccount, onSignOut, }: AccountMenuProps): react.JSX.Element;
|
|
224
160
|
type DataTableColumn<T> = {
|
|
225
161
|
key: string;
|
|
226
162
|
header: ReactNode;
|
|
@@ -591,6 +527,111 @@ type ThemeSwitcherProps = {
|
|
|
591
527
|
};
|
|
592
528
|
declare function ThemeSwitcher({ className, size, shape, align, side, labels: userLabels, }: ThemeSwitcherProps): react.JSX.Element;
|
|
593
529
|
|
|
530
|
+
type Language = {
|
|
531
|
+
/** Language key/code (e.g., "en", "es") */
|
|
532
|
+
key: string;
|
|
533
|
+
/** Short label kept for callers that still pass segmented copy */
|
|
534
|
+
label: string;
|
|
535
|
+
/** Full native name for the menu (e.g., "English", "Español") */
|
|
536
|
+
nativeName: string;
|
|
537
|
+
};
|
|
538
|
+
type LanguageSwitcherLabels = {
|
|
539
|
+
/** Accessible name for the language trigger */
|
|
540
|
+
language?: string;
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* Default languages when none are provided via props or context.
|
|
544
|
+
*/
|
|
545
|
+
declare const defaultLanguages: Language[];
|
|
546
|
+
type LanguageSwitcherProps = {
|
|
547
|
+
/**
|
|
548
|
+
* Available languages. Optional if using LanguageContext.
|
|
549
|
+
* When context is available, context.languages is used; props override context.
|
|
550
|
+
* Falls back to defaultLanguages if neither provided.
|
|
551
|
+
*/
|
|
552
|
+
languages?: Language[];
|
|
553
|
+
/**
|
|
554
|
+
* Current selected language key. Optional if using LanguageContext.
|
|
555
|
+
* When context is available, context.language is used; props override context.
|
|
556
|
+
*/
|
|
557
|
+
currentLanguage?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Callback when language changes. Optional if using LanguageContext.
|
|
560
|
+
* When context is available, context.setLanguage is used; props override context.
|
|
561
|
+
*/
|
|
562
|
+
onLanguageChange?: (languageKey: string) => void;
|
|
563
|
+
/** Accessible name for the trigger */
|
|
564
|
+
labels?: LanguageSwitcherLabels;
|
|
565
|
+
className?: string;
|
|
566
|
+
/** Size of the trigger */
|
|
567
|
+
size?: "sm" | "md" | "lg";
|
|
568
|
+
/** Shape of the trigger */
|
|
569
|
+
shape?: "rounded" | "squared" | "pill";
|
|
570
|
+
/**
|
|
571
|
+
* Kept for existing callers. Both variants render the languages glyph
|
|
572
|
+
* and open the locale menu.
|
|
573
|
+
*/
|
|
574
|
+
variant?: "default" | "mini";
|
|
575
|
+
/** @deprecated The trigger is always the languages glyph. */
|
|
576
|
+
showIcon?: boolean;
|
|
577
|
+
/** Dropdown alignment */
|
|
578
|
+
align?: "start" | "center" | "end";
|
|
579
|
+
/** Dropdown side */
|
|
580
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
581
|
+
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
582
|
+
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
583
|
+
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
584
|
+
tooltipAlign?: "start" | "center" | "end";
|
|
585
|
+
/** @deprecated No longer used; the trigger no longer renders a tooltip. */
|
|
586
|
+
tooltipSideOffset?: number;
|
|
587
|
+
};
|
|
588
|
+
declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, align, side, }: LanguageSwitcherProps): react.JSX.Element;
|
|
589
|
+
|
|
590
|
+
type CountryLocale = "es-MX" | "en";
|
|
591
|
+
type CountryRecord = {
|
|
592
|
+
code: string;
|
|
593
|
+
labelEs: string;
|
|
594
|
+
};
|
|
595
|
+
type CountryOption = {
|
|
596
|
+
code: string;
|
|
597
|
+
labelEs: string;
|
|
598
|
+
};
|
|
599
|
+
declare const COUNTRY_OPTIONS: readonly CountryOption[];
|
|
600
|
+
declare function isKnownCountryCode(code: string): boolean;
|
|
601
|
+
declare function countryLabel(code: string, locale: CountryLocale): string;
|
|
602
|
+
declare function formatCountryOptionLabel(code: string, locale: CountryLocale): string;
|
|
603
|
+
type CountryPickerItem = {
|
|
604
|
+
value: string;
|
|
605
|
+
label: string;
|
|
606
|
+
};
|
|
607
|
+
declare function countryPickerItems(locale: CountryLocale): CountryPickerItem[];
|
|
608
|
+
declare function filterCountries(query: string, locale: CountryLocale): CountryPickerItem[];
|
|
609
|
+
|
|
610
|
+
type CountryPickerPurpose = "country" | "nationality";
|
|
611
|
+
type CountryPickerLabels = {
|
|
612
|
+
ariaLabel?: string;
|
|
613
|
+
placeholder?: string;
|
|
614
|
+
search?: string;
|
|
615
|
+
noResults?: string;
|
|
616
|
+
clear?: string;
|
|
617
|
+
open?: string;
|
|
618
|
+
};
|
|
619
|
+
type CountryPickerProps = {
|
|
620
|
+
value: string;
|
|
621
|
+
onValueChange: (code: string) => void;
|
|
622
|
+
purpose: CountryPickerPurpose;
|
|
623
|
+
locale?: CountryLocale;
|
|
624
|
+
id?: string;
|
|
625
|
+
name?: string;
|
|
626
|
+
disabled?: boolean;
|
|
627
|
+
required?: boolean;
|
|
628
|
+
allowEmpty?: boolean;
|
|
629
|
+
className?: string;
|
|
630
|
+
labels?: CountryPickerLabels;
|
|
631
|
+
"aria-invalid"?: boolean;
|
|
632
|
+
};
|
|
633
|
+
declare function CountryPicker({ value, onValueChange, purpose, locale, id, name, disabled, required, allowEmpty, className, labels: labelsProp, "aria-invalid": ariaInvalid, }: CountryPickerProps): react.JSX.Element;
|
|
634
|
+
|
|
594
635
|
type AvatarEditorLabels = {
|
|
595
636
|
uploadAria?: string;
|
|
596
637
|
uploadHint?: string;
|
|
@@ -1050,4 +1091,4 @@ declare function sourceUrlIsHttps(url: string): boolean;
|
|
|
1050
1091
|
declare function matchClaimIsUnverified(hit: MatchReviewHit): boolean;
|
|
1051
1092
|
declare function MatchReview({ hit, onResolve, labels, sourceLabels, emptyAction, className, }: MatchReviewProps): react.JSX.Element;
|
|
1052
1093
|
|
|
1053
|
-
export { AccountMenu, type AccountMenuLabels, type AccountMenuProps, type AppNavGroup, type AppNavItem, AppShell, type AppShellProps, type AuditActor, type AuditSubject, AuditTimeline, type AuditTimelineItem, type AuditTimelineLabels, type AuditTimelineProps, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ControlKind, CookieConsentBanner, type CookieConsentBannerLabels, type CookieConsentBannerProps, CookieConsentValue, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CreateMultipartUploadControllerOptions, DATA_TABLE_ROW_CLASS, DEFAULT_AUDIT_TIMELINE_LABELS, DEFAULT_COOKIE_CONSENT_BANNER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_ENTITY_GRAPH_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_LEGAL_ACCEPT_CHECKBOX_LABELS, DEFAULT_LEGAL_ACCEPT_DIALOG_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DEFAULT_RISK_BADGE_LABELS, DashboardSkeleton, DataList, DataListItem, type DataListItemProps, type DataListProps, DataTable, type DataTableColumn, type DataTableProps, DataTableSkeleton, DetailPageSkeleton, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, EntityGraph, type EntityGraphEdge, type EntityGraphLabels, type EntityGraphNode, type EntityGraphProps, ErrorState, Field, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, FormCardSkeleton, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LegalAcceptCheckbox, type LegalAcceptCheckboxLabels, type LegalAcceptCheckboxProps, LegalAcceptDialog, type LegalAcceptDialogLabels, type LegalAcceptDialogProps, LegalMarkdown, type LegalMarkdownProps, ListSkeleton, LoadingState, MatchReview, type MatchReviewHit, type MatchReviewLabels, type MatchReviewProps, type MatchReviewSource, type MatchReviewStatus, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type NavTab, NavTabs, type NavTabsProps, NavigationProgress, type NavigationProgressProps, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, PageContainer, PageTitle, type PageTitleProps, PageTitleSkeleton, type PartRange, RiskBadge, type RiskBadgeLabels, type RiskBadgeProps, type RiskSeverity, RouteLoading, SafeImage, type SafeImageProps, type ShellIcon, type ShellLinkProps, type ShellLinkRenderer, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, TableSkeleton, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, cn, createMultipartUploadController, defaultLanguages, fileMatchesAccept, matchClaimIsUnverified, partRanges, progressFromBytes, renderShellLink, signalNavigationStart, sourceUrlIsHttps, suppressNavigationProgress, useEditableSection, useLanguageContext, useMediaQuery };
|
|
1094
|
+
export { AccountMenu, type AccountMenuLabels, type AccountMenuProps, type AppNavGroup, type AppNavItem, AppShell, type AppShellProps, type AuditActor, type AuditSubject, AuditTimeline, type AuditTimelineItem, type AuditTimelineLabels, type AuditTimelineProps, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, COUNTRY_OPTIONS, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ControlKind, CookieConsentBanner, type CookieConsentBannerLabels, type CookieConsentBannerProps, CookieConsentValue, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CountryLocale, type CountryOption, CountryPicker, type CountryPickerItem, type CountryPickerLabels, type CountryPickerProps, type CountryPickerPurpose, type CountryRecord, type CreateMultipartUploadControllerOptions, DATA_TABLE_ROW_CLASS, DEFAULT_AUDIT_TIMELINE_LABELS, DEFAULT_COOKIE_CONSENT_BANNER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_ENTITY_GRAPH_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_LEGAL_ACCEPT_CHECKBOX_LABELS, DEFAULT_LEGAL_ACCEPT_DIALOG_LABELS, DEFAULT_MATCH_REVIEW_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DEFAULT_RISK_BADGE_LABELS, DashboardSkeleton, DataList, DataListItem, type DataListItemProps, type DataListProps, DataTable, type DataTableColumn, type DataTableProps, DataTableSkeleton, DetailPageSkeleton, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, EntityGraph, type EntityGraphEdge, type EntityGraphLabels, type EntityGraphNode, type EntityGraphProps, ErrorState, Field, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, FormCardSkeleton, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LegalAcceptCheckbox, type LegalAcceptCheckboxLabels, type LegalAcceptCheckboxProps, LegalAcceptDialog, type LegalAcceptDialogLabels, type LegalAcceptDialogProps, LegalMarkdown, type LegalMarkdownProps, ListSkeleton, LoadingState, MatchReview, type MatchReviewHit, type MatchReviewLabels, type MatchReviewProps, type MatchReviewSource, type MatchReviewStatus, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type NavTab, NavTabs, type NavTabsProps, NavigationProgress, type NavigationProgressProps, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, PageContainer, PageTitle, type PageTitleProps, PageTitleSkeleton, type PartRange, RiskBadge, type RiskBadgeLabels, type RiskBadgeProps, type RiskSeverity, RouteLoading, SafeImage, type SafeImageProps, type ShellIcon, type ShellLinkProps, type ShellLinkRenderer, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, TableSkeleton, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, cn, countryLabel, countryPickerItems, createMultipartUploadController, defaultLanguages, fileMatchesAccept, filterCountries, formatCountryOptionLabel, isKnownCountryCode, matchClaimIsUnverified, partRanges, progressFromBytes, renderShellLink, signalNavigationStart, sourceUrlIsHttps, suppressNavigationProgress, useEditableSection, useLanguageContext, useMediaQuery };
|