@yenio-pld/blocks 1.2.0-rc.3 → 1.2.0-rc.31
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/README.md +23 -4
- package/dist/brand.cjs +211 -0
- package/dist/brand.cjs.map +1 -0
- package/dist/brand.d.cts +16 -0
- package/dist/brand.d.ts +16 -0
- package/dist/brand.js +199 -0
- package/dist/brand.js.map +1 -0
- package/dist/gem-loader-BFxCP0pU.d.cts +43 -0
- package/dist/gem-loader-BFxCP0pU.d.ts +43 -0
- package/dist/index.cjs +5477 -1379
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +555 -17
- package/dist/index.d.ts +555 -17
- package/dist/index.js +5342 -1320
- package/dist/index.js.map +1 -1
- package/dist/theme-init.cjs +1 -1
- package/dist/theme-init.cjs.map +1 -1
- package/dist/theme-init.d.cts +1 -1
- package/dist/theme-init.d.ts +1 -1
- package/dist/theme-init.js +1 -1
- package/dist/theme-init.js.map +1 -1
- package/dist/ui/alert-dialog.js +4 -1
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/button.d.ts +8 -3
- package/dist/ui/button.js +28 -9
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.js +1 -0
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/checkbox.d.ts +16 -0
- package/dist/ui/checkbox.js +66 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/combobox.d.ts +1 -0
- package/dist/ui/combobox.js +4 -0
- package/dist/ui/combobox.js.map +1 -0
- package/dist/ui/dialog.d.ts +4 -2
- package/dist/ui/dialog.js +61 -5
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/select.d.ts +5 -1
- package/dist/ui/select.js +137 -10
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/sheet.js +3 -3
- package/dist/ui/sheet.js.map +1 -1
- package/dist/ui/table.js +2 -2
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/textarea.js.map +1 -1
- package/package.json +21 -1
- package/scripts/check-theme.mjs +6 -5
- package/src/theme.css +343 -90
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ComponentType, ReactElement, FormEvent, KeyboardEvent, RefObject, CSSProperties, ComponentProps, ImgHTMLAttributes, SyntheticEvent } from 'react';
|
|
2
|
+
import { ReactNode, ComponentType, ReactElement, FormEvent, KeyboardEvent, RefObject, CSSProperties, ComponentProps, ImgHTMLAttributes, SyntheticEvent, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
@@ -7,6 +7,7 @@ export { AvatarColors, avatarFallbackStyle, getAvatarColors, getInitials } from
|
|
|
7
7
|
import { CookieConsentValue } from './consent.js';
|
|
8
8
|
export { COOKIE_CONSENT_MAX_AGE, COOKIE_CONSENT_NAME, COOKIE_CONSENT_VALUES, WriteCookieConsentOptions, cookieConsentAllowsReplay, cookieDomainFromHostname, isCookieConsentValue, isEmbeddedWindow, parseCookieConsent, readCookieConsent, serializeCookieConsent, writeCookieConsent } from './consent.js';
|
|
9
9
|
export { THEME_INIT_SCRIPT, THEME_INIT_SCRIPT_ID, THEME_STORAGE_KEY } from './theme-init.js';
|
|
10
|
+
export { A as AnimatedBrand, a as AnimatedBrandProps, B as BrandLockup, b as BrandLockupProps, G as GemLoader, c as GemLoaderProps } from './gem-loader-BFxCP0pU.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Blocks Context Interfaces
|
|
@@ -70,6 +71,15 @@ declare function TableSkeleton({ columns, rows, }: {
|
|
|
70
71
|
|
|
71
72
|
/** Fixed row height shared with `DataTableSkeleton` so list swaps do not jump. */
|
|
72
73
|
declare const DATA_TABLE_ROW_CLASS = "h-14";
|
|
74
|
+
/** Default skeleton row count; body min-height locks to this box. */
|
|
75
|
+
declare const DATA_TABLE_DEFAULT_SKELETON_ROWS = 5;
|
|
76
|
+
/**
|
|
77
|
+
* Tailwind min-height for the default 5×`h-14` body box. Loading, empty, and
|
|
78
|
+
* short result sets share this so list swaps do not jump.
|
|
79
|
+
*/
|
|
80
|
+
declare const DATA_TABLE_BODY_MIN_CLASS = "min-h-[calc(5*3.5rem)]";
|
|
81
|
+
/** Body min-height for a given skeleton row count (`h-14` = 3.5rem). */
|
|
82
|
+
declare function dataTableBodyMinClass(rows?: number): string;
|
|
73
83
|
/** Any icon component. Avoids pinning a Lucide type across package copies. */
|
|
74
84
|
type ShellIcon = ComponentType<{
|
|
75
85
|
className?: string;
|
|
@@ -99,6 +109,12 @@ type AppNavItem = {
|
|
|
99
109
|
type AppNavGroup = {
|
|
100
110
|
label: string;
|
|
101
111
|
items: AppNavItem[];
|
|
112
|
+
/** When true, the group starts collapsed and can be toggled. */
|
|
113
|
+
collapsible?: boolean;
|
|
114
|
+
/** Optional badge next to the group label (e.g. pending compliance count). */
|
|
115
|
+
badge?: string | number;
|
|
116
|
+
/** Initial open state for collapsible groups. Falls back to “any item active”. */
|
|
117
|
+
defaultOpen?: boolean;
|
|
102
118
|
};
|
|
103
119
|
type AppShellProps = {
|
|
104
120
|
/** Sidebar header. Usually the mark, product name, and organization. */
|
|
@@ -107,7 +123,16 @@ type AppShellProps = {
|
|
|
107
123
|
/** Accessible name for the single sidebar landmark. */
|
|
108
124
|
navLabel?: string;
|
|
109
125
|
sidebarFooter?: ReactNode;
|
|
110
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* Optional header lead (breadcrumbs). Sits after the sidebar trigger.
|
|
128
|
+
*/
|
|
129
|
+
headerStart?: ReactNode;
|
|
130
|
+
/**
|
|
131
|
+
* Flexible middle of the sticky header (rates ticker, search).
|
|
132
|
+
* Keeps utilities in `headerEnd` from competing for space.
|
|
133
|
+
*/
|
|
134
|
+
headerMiddle?: ReactNode;
|
|
135
|
+
/** Sticky header end slot (environment select, theme, language). */
|
|
111
136
|
headerEnd?: ReactNode;
|
|
112
137
|
/**
|
|
113
138
|
* Initial desktop open state. Read the `sidebar_state` cookie in the
|
|
@@ -120,7 +145,7 @@ type AppShellProps = {
|
|
|
120
145
|
children: ReactNode;
|
|
121
146
|
className?: string;
|
|
122
147
|
};
|
|
123
|
-
declare function AppShell({ brand, nav, navLabel, sidebarFooter, headerEnd, defaultOpen, pathname, renderLink, children, className, }: AppShellProps): react.JSX.Element;
|
|
148
|
+
declare function AppShell({ brand, nav, navLabel, sidebarFooter, headerStart, headerMiddle, headerEnd, defaultOpen, pathname, renderLink, children, className, }: AppShellProps): react.JSX.Element;
|
|
124
149
|
declare function PageContainer({ children, className, }: {
|
|
125
150
|
children: ReactNode;
|
|
126
151
|
className?: string;
|
|
@@ -129,6 +154,8 @@ type NavTab = {
|
|
|
129
154
|
label: string;
|
|
130
155
|
href: string;
|
|
131
156
|
active?: boolean;
|
|
157
|
+
/** Optional count shown beside the label (Attio-style). */
|
|
158
|
+
count?: number;
|
|
132
159
|
};
|
|
133
160
|
type NavTabsProps = {
|
|
134
161
|
tabs: NavTab[];
|
|
@@ -172,6 +199,10 @@ type DataTableProps<T> = {
|
|
|
172
199
|
toolbar?: ReactNode;
|
|
173
200
|
emptyTitle: string;
|
|
174
201
|
emptyDescription?: string;
|
|
202
|
+
emptyIllustration?: {
|
|
203
|
+
src: string;
|
|
204
|
+
alt?: string;
|
|
205
|
+
};
|
|
175
206
|
loading?: boolean;
|
|
176
207
|
skeletonRows?: number;
|
|
177
208
|
/** Omit when there is no next page. Keep it mounted, with `pending`, while a page appends. */
|
|
@@ -183,7 +214,7 @@ type DataTableProps<T> = {
|
|
|
183
214
|
label?: string;
|
|
184
215
|
className?: string;
|
|
185
216
|
};
|
|
186
|
-
declare function DataTable<T>({ columns, rows, rowKey, toolbar, emptyTitle, emptyDescription, loading, skeletonRows, loadMore, label, className, }: DataTableProps<T>): react.JSX.Element;
|
|
217
|
+
declare function DataTable<T>({ columns, rows, rowKey, toolbar, emptyTitle, emptyDescription, emptyIllustration, loading, skeletonRows, loadMore, label, className, }: DataTableProps<T>): react.JSX.Element;
|
|
187
218
|
|
|
188
219
|
/**
|
|
189
220
|
* Ignore navigation-start signals for the rest of this turn. An in-flight
|
|
@@ -218,13 +249,19 @@ declare function NavigationProgress({ pathname, search, ariaLabel, forceVisible,
|
|
|
218
249
|
declare function RouteLoading({ children }: {
|
|
219
250
|
children: ReactNode;
|
|
220
251
|
}): react.JSX.Element;
|
|
221
|
-
declare function PageTitleSkeleton({ label, action, }: {
|
|
252
|
+
declare function PageTitleSkeleton({ label, actions, action, }: {
|
|
222
253
|
label: string;
|
|
254
|
+
/** Number of action-button slots (0–3). Prefer this over `action`. */
|
|
255
|
+
actions?: number;
|
|
256
|
+
/** @deprecated Prefer `actions={1}`. */
|
|
223
257
|
action?: boolean;
|
|
224
258
|
}): react.JSX.Element;
|
|
225
|
-
declare function DataTableSkeleton({ label, rows, }: {
|
|
259
|
+
declare function DataTableSkeleton({ label, rows, columns, showSearch, toolbarSkeleton, }: {
|
|
226
260
|
label: string;
|
|
227
261
|
rows?: number;
|
|
262
|
+
columns?: number;
|
|
263
|
+
showSearch?: boolean;
|
|
264
|
+
toolbarSkeleton?: ReactNode;
|
|
228
265
|
}): react.JSX.Element;
|
|
229
266
|
declare function DetailPageSkeleton({ label }: {
|
|
230
267
|
label: string;
|
|
@@ -233,11 +270,16 @@ declare function FormCardSkeleton({ label, fields, }: {
|
|
|
233
270
|
label: string;
|
|
234
271
|
fields?: number;
|
|
235
272
|
}): react.JSX.Element;
|
|
236
|
-
|
|
273
|
+
type DashboardSkeletonVariant = "store" | "admin";
|
|
274
|
+
declare function DashboardSkeleton({ label, variant, showTitle, }: {
|
|
237
275
|
label: string;
|
|
276
|
+
variant?: DashboardSkeletonVariant;
|
|
277
|
+
/** Store only. Omit when a real `PageTitle` already paints above. */
|
|
278
|
+
showTitle?: boolean;
|
|
238
279
|
}): react.JSX.Element;
|
|
239
280
|
|
|
240
281
|
declare function LoadingState({ label, className, }: {
|
|
282
|
+
/** Visible label. Prefer a translated phrase; omit for a spinner-only state. */
|
|
241
283
|
label?: string;
|
|
242
284
|
className?: string;
|
|
243
285
|
}): react.JSX.Element;
|
|
@@ -253,15 +295,30 @@ type EmptyStateIcon = react.ComponentType<{
|
|
|
253
295
|
className?: string;
|
|
254
296
|
"aria-hidden"?: boolean | "true" | "false";
|
|
255
297
|
}>;
|
|
298
|
+
type EmptyStateIllustration = {
|
|
299
|
+
src: string;
|
|
300
|
+
alt?: string;
|
|
301
|
+
};
|
|
256
302
|
type EmptyStateProps = {
|
|
257
303
|
title: string;
|
|
258
304
|
description?: string;
|
|
259
305
|
action?: react.ReactNode;
|
|
260
306
|
icon?: EmptyStateIcon;
|
|
307
|
+
illustration?: EmptyStateIllustration;
|
|
261
308
|
variant?: "default" | "compact";
|
|
262
309
|
className?: string;
|
|
263
310
|
};
|
|
264
|
-
declare function EmptyState({ title, description, action, icon: Icon, variant, className, }: EmptyStateProps): react.JSX.Element;
|
|
311
|
+
declare function EmptyState({ title, description, action, icon: Icon, illustration, variant, className, }: EmptyStateProps): react.JSX.Element;
|
|
312
|
+
|
|
313
|
+
type ProductIllustrationProps = {
|
|
314
|
+
src: string;
|
|
315
|
+
/** Decorative product art: default empty alt. */
|
|
316
|
+
alt?: string;
|
|
317
|
+
className?: string;
|
|
318
|
+
size?: "sm" | "md" | "lg";
|
|
319
|
+
};
|
|
320
|
+
/** Transparent PNG product illustration sized for empty states and intro panels. */
|
|
321
|
+
declare function ProductIllustration({ src, alt, className, size, }: ProductIllustrationProps): react.JSX.Element;
|
|
265
322
|
|
|
266
323
|
declare function Empty({ className, ...props }: react.ComponentProps<"div">): react.JSX.Element;
|
|
267
324
|
declare function EmptyHeader({ className, ...props }: react.ComponentProps<"div">): react.JSX.Element;
|
|
@@ -280,13 +337,16 @@ type ConfirmDestructiveDialogProps = {
|
|
|
280
337
|
description: string;
|
|
281
338
|
confirmLabel?: string;
|
|
282
339
|
cancelLabel?: string;
|
|
340
|
+
/** When false, confirm uses the primary button style (deliver/receive/convert). */
|
|
341
|
+
destructive?: boolean;
|
|
283
342
|
onConfirm: () => void;
|
|
284
343
|
};
|
|
285
344
|
/**
|
|
286
345
|
* Shared confirm step for destructive actions (delete, mute, etc.).
|
|
287
346
|
* Prefer this over window.confirm so focus stays in the app and copy is clear.
|
|
347
|
+
* Set `destructive={false}` for irreversible but constructive confirms.
|
|
288
348
|
*/
|
|
289
|
-
declare function ConfirmDestructiveDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, }: ConfirmDestructiveDialogProps): react.JSX.Element;
|
|
349
|
+
declare function ConfirmDestructiveDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, onConfirm, }: ConfirmDestructiveDialogProps): react.JSX.Element;
|
|
290
350
|
|
|
291
351
|
type NotificationBellItem = {
|
|
292
352
|
id: string;
|
|
@@ -481,15 +541,18 @@ declare function FieldMessage({ id, children, className, ...props }: FieldMessag
|
|
|
481
541
|
|
|
482
542
|
type SafeImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "onError"> & {
|
|
483
543
|
src?: string | null;
|
|
544
|
+
/**
|
|
545
|
+
* Tiny JPEG data URL painted as a clipped cover background until the image
|
|
546
|
+
* loads. No CSS `filter: blur()` — the LQIP is already soft, and filters
|
|
547
|
+
* paint outside the box even when a parent sets `overflow: hidden`.
|
|
548
|
+
* `null` and omission keep the image with no placeholder.
|
|
549
|
+
*/
|
|
550
|
+
blurDataUrl?: string | null;
|
|
484
551
|
/** Rendered when `src` is missing/empty or the image fails to load. */
|
|
485
552
|
fallback: ReactNode;
|
|
486
553
|
onError?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
487
554
|
};
|
|
488
|
-
|
|
489
|
-
* `<img>` that swaps to `fallback` when the source is missing or fails to load,
|
|
490
|
-
* so the browser never shows its default broken-image glyph.
|
|
491
|
-
*/
|
|
492
|
-
declare function SafeImage({ src, fallback, alt, onError, ...imgProps }: SafeImageProps): react.JSX.Element;
|
|
555
|
+
declare function SafeImage({ src, fallback, alt, onError, onLoad, blurDataUrl, style, className, ...imgProps }: SafeImageProps): react.JSX.Element;
|
|
493
556
|
|
|
494
557
|
type ThemeSwitcherLabels = {
|
|
495
558
|
/** Accessible name for the theme trigger */
|
|
@@ -587,6 +650,259 @@ type LanguageSwitcherProps = {
|
|
|
587
650
|
};
|
|
588
651
|
declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, align, side, }: LanguageSwitcherProps): react.JSX.Element;
|
|
589
652
|
|
|
653
|
+
type CountryLocale = "es-MX" | "en";
|
|
654
|
+
type CountryRecord = {
|
|
655
|
+
code: string;
|
|
656
|
+
labelEs: string;
|
|
657
|
+
};
|
|
658
|
+
type CountryOption = {
|
|
659
|
+
code: string;
|
|
660
|
+
labelEs: string;
|
|
661
|
+
};
|
|
662
|
+
declare const COUNTRY_OPTIONS: readonly CountryOption[];
|
|
663
|
+
declare function isKnownCountryCode(code: string): boolean;
|
|
664
|
+
declare function countryLabel(code: string, locale: CountryLocale): string;
|
|
665
|
+
declare function formatCountryOptionLabel(code: string, locale: CountryLocale): string;
|
|
666
|
+
type CountryPickerItem = {
|
|
667
|
+
value: string;
|
|
668
|
+
label: string;
|
|
669
|
+
};
|
|
670
|
+
declare function countryPickerItems(locale: CountryLocale): CountryPickerItem[];
|
|
671
|
+
declare function filterCountries(query: string, locale: CountryLocale): CountryPickerItem[];
|
|
672
|
+
|
|
673
|
+
type CountryPickerPurpose = "country" | "nationality";
|
|
674
|
+
type CountryPickerLabels = {
|
|
675
|
+
ariaLabel?: string;
|
|
676
|
+
placeholder?: string;
|
|
677
|
+
search?: string;
|
|
678
|
+
noResults?: string;
|
|
679
|
+
clear?: string;
|
|
680
|
+
open?: string;
|
|
681
|
+
};
|
|
682
|
+
type CountryPickerProps = {
|
|
683
|
+
value: string;
|
|
684
|
+
onValueChange: (code: string) => void;
|
|
685
|
+
purpose: CountryPickerPurpose;
|
|
686
|
+
locale?: CountryLocale;
|
|
687
|
+
id?: string;
|
|
688
|
+
name?: string;
|
|
689
|
+
disabled?: boolean;
|
|
690
|
+
required?: boolean;
|
|
691
|
+
allowEmpty?: boolean;
|
|
692
|
+
className?: string;
|
|
693
|
+
labels?: CountryPickerLabels;
|
|
694
|
+
"aria-invalid"?: boolean;
|
|
695
|
+
};
|
|
696
|
+
declare function CountryPicker({ value, onValueChange, purpose, locale, id, name, disabled, required, allowEmpty, className, labels: labelsProp, "aria-invalid": ariaInvalid, }: CountryPickerProps): react.JSX.Element;
|
|
697
|
+
|
|
698
|
+
type TaxRegimeLocale = "es-MX" | "en";
|
|
699
|
+
type TaxRegimeRecord = {
|
|
700
|
+
code: string;
|
|
701
|
+
labelEs: string;
|
|
702
|
+
labelEn: string;
|
|
703
|
+
};
|
|
704
|
+
type TaxRegimeOption = {
|
|
705
|
+
code: string;
|
|
706
|
+
labelEs: string;
|
|
707
|
+
labelEn: string;
|
|
708
|
+
};
|
|
709
|
+
declare const SAT_TAX_REGIME_CODES: readonly string[];
|
|
710
|
+
declare const TAX_REGIME_OPTIONS: readonly TaxRegimeOption[];
|
|
711
|
+
declare function isKnownTaxRegimeCode(code: string): boolean;
|
|
712
|
+
declare function taxRegimeLabel(code: string, locale: TaxRegimeLocale): string;
|
|
713
|
+
declare function formatTaxRegimeOptionLabel(code: string, locale: TaxRegimeLocale): string;
|
|
714
|
+
type TaxRegimePickerItem = {
|
|
715
|
+
value: string;
|
|
716
|
+
label: string;
|
|
717
|
+
};
|
|
718
|
+
declare function taxRegimePickerItems(locale: TaxRegimeLocale): TaxRegimePickerItem[];
|
|
719
|
+
declare function filterTaxRegimes(query: string, locale: TaxRegimeLocale): TaxRegimePickerItem[];
|
|
720
|
+
|
|
721
|
+
type TaxRegimePickerLabels = {
|
|
722
|
+
ariaLabel?: string;
|
|
723
|
+
placeholder?: string;
|
|
724
|
+
search?: string;
|
|
725
|
+
noResults?: string;
|
|
726
|
+
clear?: string;
|
|
727
|
+
open?: string;
|
|
728
|
+
/** Drawer title on narrow viewports. Defaults to placeholder. */
|
|
729
|
+
title?: string;
|
|
730
|
+
};
|
|
731
|
+
type TaxRegimePickerProps = {
|
|
732
|
+
value: string;
|
|
733
|
+
onValueChange: (code: string) => void;
|
|
734
|
+
locale?: TaxRegimeLocale;
|
|
735
|
+
id?: string;
|
|
736
|
+
name?: string;
|
|
737
|
+
disabled?: boolean;
|
|
738
|
+
required?: boolean;
|
|
739
|
+
allowEmpty?: boolean;
|
|
740
|
+
className?: string;
|
|
741
|
+
labels?: TaxRegimePickerLabels;
|
|
742
|
+
"aria-invalid"?: boolean;
|
|
743
|
+
};
|
|
744
|
+
declare function TaxRegimePicker({ value, onValueChange, locale, id, name, disabled, required, allowEmpty, className, labels: labelsProp, "aria-invalid": ariaInvalid, }: TaxRegimePickerProps): react.JSX.Element;
|
|
745
|
+
|
|
746
|
+
type SearchablePickerOption = {
|
|
747
|
+
id: string;
|
|
748
|
+
label: string;
|
|
749
|
+
sublabel?: string;
|
|
750
|
+
};
|
|
751
|
+
type SearchablePickerProps = {
|
|
752
|
+
value: string;
|
|
753
|
+
selectedLabel?: string | null;
|
|
754
|
+
onChange: (id: string, option?: SearchablePickerOption) => void;
|
|
755
|
+
options: SearchablePickerOption[];
|
|
756
|
+
query: string;
|
|
757
|
+
onQueryChange: (query: string) => void;
|
|
758
|
+
loading?: boolean;
|
|
759
|
+
loadingMore?: boolean;
|
|
760
|
+
hasMore?: boolean;
|
|
761
|
+
onLoadMore?: () => void;
|
|
762
|
+
placeholder?: string;
|
|
763
|
+
emptyLabel?: string;
|
|
764
|
+
loadMoreLabel?: string;
|
|
765
|
+
clearLabel?: string;
|
|
766
|
+
searchPlaceholder?: string;
|
|
767
|
+
openLabel?: string;
|
|
768
|
+
disabled?: boolean;
|
|
769
|
+
allowClear?: boolean;
|
|
770
|
+
title?: string;
|
|
771
|
+
id?: string;
|
|
772
|
+
className?: string;
|
|
773
|
+
"aria-invalid"?: boolean;
|
|
774
|
+
onOpenChange?: (open: boolean) => void;
|
|
775
|
+
/** When set, a create action appears for a non-empty query (not while loading). Presentation only. */
|
|
776
|
+
onCreate?: (query: string) => void;
|
|
777
|
+
/** Label for the create action. Defaults to `Add "{query}"`. */
|
|
778
|
+
createLabel?: string;
|
|
779
|
+
/**
|
|
780
|
+
* Always-visible footer action (e.g. "Add client"), independent of the
|
|
781
|
+
* query. Closes the picker before calling `onAction`.
|
|
782
|
+
*/
|
|
783
|
+
actionLabel?: string;
|
|
784
|
+
onAction?: () => void;
|
|
785
|
+
};
|
|
786
|
+
declare function SearchablePicker({ value, selectedLabel, onChange, options, query, onQueryChange, loading, loadingMore, hasMore, onLoadMore, placeholder, emptyLabel, loadMoreLabel, clearLabel, searchPlaceholder, openLabel, disabled, allowClear, title, id, className, "aria-invalid": ariaInvalid, onOpenChange, onCreate, createLabel, actionLabel, onAction, }: SearchablePickerProps): react.JSX.Element;
|
|
787
|
+
|
|
788
|
+
type PaginatedComboboxItem = {
|
|
789
|
+
value: string;
|
|
790
|
+
label: string;
|
|
791
|
+
secondary?: string;
|
|
792
|
+
};
|
|
793
|
+
type PaginatedComboboxLabels = {
|
|
794
|
+
ariaLabel?: string;
|
|
795
|
+
placeholder?: string;
|
|
796
|
+
noResults?: string;
|
|
797
|
+
clear?: string;
|
|
798
|
+
open?: string;
|
|
799
|
+
loadMore?: string;
|
|
800
|
+
loading?: string;
|
|
801
|
+
};
|
|
802
|
+
type PaginatedComboboxProps = {
|
|
803
|
+
value: string;
|
|
804
|
+
onValueChange: (value: string, item: PaginatedComboboxItem | null) => void;
|
|
805
|
+
items: PaginatedComboboxItem[];
|
|
806
|
+
/** Label for the current value when it is not in the loaded page. */
|
|
807
|
+
selectedItem?: PaginatedComboboxItem | null;
|
|
808
|
+
onQueryChange: (query: string) => void;
|
|
809
|
+
loading?: boolean;
|
|
810
|
+
loadingMore?: boolean;
|
|
811
|
+
nextCursor?: string | null;
|
|
812
|
+
onLoadMore?: () => void;
|
|
813
|
+
onOpenChange?: (open: boolean) => void;
|
|
814
|
+
debounceMs?: number;
|
|
815
|
+
id?: string;
|
|
816
|
+
name?: string;
|
|
817
|
+
disabled?: boolean;
|
|
818
|
+
required?: boolean;
|
|
819
|
+
allowEmpty?: boolean;
|
|
820
|
+
className?: string;
|
|
821
|
+
labels?: PaginatedComboboxLabels;
|
|
822
|
+
"aria-invalid"?: boolean;
|
|
823
|
+
};
|
|
824
|
+
declare function PaginatedCombobox({ value, onValueChange, items, selectedItem, onQueryChange, loading, loadingMore, nextCursor, onLoadMore, onOpenChange, debounceMs, id, name, disabled, required, allowEmpty, className, labels: labelsProp, "aria-invalid": ariaInvalid, }: PaginatedComboboxProps): react.JSX.Element;
|
|
825
|
+
|
|
826
|
+
/** Mexican RFC and CURP normalize + validate (UI + app shared). */
|
|
827
|
+
type PersonKindForRfc = "natural_person_mx" | "natural_person_foreign" | "legal_entity_mx" | "legal_entity_foreign" | "trust" | "other";
|
|
828
|
+
type RfcValidationError = "moral" | "natural" | "length";
|
|
829
|
+
type CurpValidationError = "format" | "check_digit";
|
|
830
|
+
declare const CURP_REGEX: RegExp;
|
|
831
|
+
declare function normalizeRfc(raw: string): string;
|
|
832
|
+
declare function rfcMaxLengthForPersonKind(personKind?: PersonKindForRfc | null): number;
|
|
833
|
+
declare function validateRfcForPersonKind(rfc: string, personKind: PersonKindForRfc): {
|
|
834
|
+
ok: true;
|
|
835
|
+
} | {
|
|
836
|
+
ok: false;
|
|
837
|
+
code: RfcValidationError;
|
|
838
|
+
};
|
|
839
|
+
/** Trim + uppercase. Does not require a valid CURP. */
|
|
840
|
+
declare function normalizeCurpInput(raw: string): string;
|
|
841
|
+
declare function curpCheckDigit(curp17: string): number;
|
|
842
|
+
declare function validateCurp(curp: string): {
|
|
843
|
+
ok: true;
|
|
844
|
+
} | {
|
|
845
|
+
ok: false;
|
|
846
|
+
code: CurpValidationError;
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
type RfcInputProps = Omit<react.ComponentProps<"input">, "value" | "onChange" | "type" | "maxLength" | "autoCapitalize" | "spellCheck"> & {
|
|
850
|
+
value: string;
|
|
851
|
+
onValueChange: (value: string) => void;
|
|
852
|
+
personKind?: PersonKindForRfc | null;
|
|
853
|
+
};
|
|
854
|
+
declare function RfcInput({ value, onValueChange, personKind, className, ...props }: RfcInputProps): react.JSX.Element;
|
|
855
|
+
|
|
856
|
+
type CurpInputProps = Omit<react.ComponentProps<"input">, "value" | "onChange" | "type" | "maxLength" | "autoCapitalize" | "spellCheck"> & {
|
|
857
|
+
value: string;
|
|
858
|
+
onValueChange: (value: string) => void;
|
|
859
|
+
};
|
|
860
|
+
declare function CurpInput({ value, onValueChange, className, ...props }: CurpInputProps): react.JSX.Element;
|
|
861
|
+
|
|
862
|
+
type PasswordInputProps = Omit<react.ComponentProps<"input">, "type"> & {
|
|
863
|
+
/** Accessible label for the toggle when the value is masked. */
|
|
864
|
+
showLabel?: string;
|
|
865
|
+
/** Accessible label for the toggle when the value is visible. */
|
|
866
|
+
hideLabel?: string;
|
|
867
|
+
};
|
|
868
|
+
declare function PasswordInput({ className, disabled, showLabel, hideLabel, ...props }: PasswordInputProps): react.JSX.Element;
|
|
869
|
+
|
|
870
|
+
type PhoneInputProps = Omit<react.ComponentProps<"input">, "value" | "onChange" | "type" | "inputMode"> & {
|
|
871
|
+
value: string;
|
|
872
|
+
onValueChange: (value: string) => void;
|
|
873
|
+
/** ISO 3166-1 alpha-2. Defaults to Mexico (`MX` / +52). */
|
|
874
|
+
defaultCountry?: string;
|
|
875
|
+
searchPlaceholder?: string;
|
|
876
|
+
countryListLabel?: string;
|
|
877
|
+
countryTriggerLabel?: string;
|
|
878
|
+
emptyLabel?: string;
|
|
879
|
+
};
|
|
880
|
+
declare function PhoneInput({ value, onValueChange, defaultCountry, searchPlaceholder, countryListLabel, countryTriggerLabel, emptyLabel, className, disabled, id, name, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, placeholder, ...props }: PhoneInputProps): react.JSX.Element;
|
|
881
|
+
|
|
882
|
+
type MoneyCurrency = "MXN" | "USD";
|
|
883
|
+
/** Format integer minor units for display (major units with currency symbol). */
|
|
884
|
+
declare function formatMoney(valueMinor: number | null, currency: MoneyCurrency, locale?: string): string;
|
|
885
|
+
/** Cents-first: append a digit (0–9) to minor units. */
|
|
886
|
+
declare function appendMoneyDigit(valueMinor: number | null, digit: number): number | null;
|
|
887
|
+
/** Cents-first: remove the least significant digit. */
|
|
888
|
+
declare function backspaceMoneyMinor(valueMinor: number | null): number | null;
|
|
889
|
+
/** Parse a pasted or typed major-unit decimal into minor units. */
|
|
890
|
+
declare function parseMoneyToMinor(raw: string): number | null;
|
|
891
|
+
|
|
892
|
+
type MoneyInputProps = Omit<react.ComponentProps<"input">, "value" | "onChange" | "type" | "inputMode" | "defaultValue" | "size"> & {
|
|
893
|
+
valueMinor: number | null;
|
|
894
|
+
onValueMinorChange: (valueMinor: number | null) => void;
|
|
895
|
+
currency?: MoneyCurrency;
|
|
896
|
+
currencies?: MoneyCurrency[];
|
|
897
|
+
showCurrencySwitch?: boolean;
|
|
898
|
+
onCurrencyChange?: (currency: MoneyCurrency) => void;
|
|
899
|
+
locale?: string;
|
|
900
|
+
moneySize?: "default" | "large";
|
|
901
|
+
mxnLabel?: string;
|
|
902
|
+
usdLabel?: string;
|
|
903
|
+
};
|
|
904
|
+
declare function MoneyInput({ valueMinor, onValueMinorChange, currency, currencies, showCurrencySwitch, onCurrencyChange, locale, moneySize, mxnLabel, usdLabel, className, disabled, id, name, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, placeholder, ...props }: MoneyInputProps): react.JSX.Element;
|
|
905
|
+
|
|
590
906
|
type AvatarEditorLabels = {
|
|
591
907
|
uploadAria?: string;
|
|
592
908
|
uploadHint?: string;
|
|
@@ -718,13 +1034,15 @@ declare const DEFAULT_FILE_UPLOAD_LABELS: {
|
|
|
718
1034
|
type FileDropzoneProps = {
|
|
719
1035
|
accept?: string;
|
|
720
1036
|
maxSize?: number;
|
|
1037
|
+
/** When true, drop/browse can accept several files; `onFile` runs once per file. */
|
|
1038
|
+
multiple?: boolean;
|
|
721
1039
|
disabled?: boolean;
|
|
722
1040
|
labels?: Partial<FileDropzoneLabels>;
|
|
723
1041
|
onFile: (file: File) => void;
|
|
724
1042
|
onReject?: (reason: "type" | "size") => void;
|
|
725
1043
|
className?: string;
|
|
726
1044
|
};
|
|
727
|
-
declare function FileDropzone({ accept, maxSize, disabled, labels: labelOverrides, onFile, onReject, className, }: FileDropzoneProps): react.JSX.Element;
|
|
1045
|
+
declare function FileDropzone({ accept, maxSize, multiple, disabled, labels: labelOverrides, onFile, onReject, className, }: FileDropzoneProps): react.JSX.Element;
|
|
728
1046
|
|
|
729
1047
|
type FileUploadTrayProps = {
|
|
730
1048
|
jobs: UploadJob[];
|
|
@@ -919,6 +1237,224 @@ type LegalAcceptCheckboxProps = {
|
|
|
919
1237
|
};
|
|
920
1238
|
declare function LegalAcceptCheckbox({ id, checked, onCheckedChange, termsHref, privacyHref, labels, disabled, className, }: LegalAcceptCheckboxProps): react.JSX.Element;
|
|
921
1239
|
|
|
1240
|
+
type StepProgressSegment = {
|
|
1241
|
+
id: string;
|
|
1242
|
+
label: string;
|
|
1243
|
+
};
|
|
1244
|
+
type StepProgressProps = {
|
|
1245
|
+
segments: readonly StepProgressSegment[];
|
|
1246
|
+
/** Zero-based index of the active segment. */
|
|
1247
|
+
current: number;
|
|
1248
|
+
className?: string;
|
|
1249
|
+
/** Accessible name for the progress region. */
|
|
1250
|
+
"aria-label"?: string;
|
|
1251
|
+
};
|
|
1252
|
+
/**
|
|
1253
|
+
* Segmented wizard progress (filled bars + current label).
|
|
1254
|
+
* Labels stay visible for the active segment only on narrow screens.
|
|
1255
|
+
*/
|
|
1256
|
+
declare function StepProgress({ segments, current, className, "aria-label": ariaLabel, }: StepProgressProps): react.JSX.Element;
|
|
1257
|
+
|
|
1258
|
+
type OptionRowProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
1259
|
+
icon?: ReactNode;
|
|
1260
|
+
title: string;
|
|
1261
|
+
description?: string;
|
|
1262
|
+
badge?: string;
|
|
1263
|
+
badgeVariant?: "default" | "secondary" | "outline" | "success" | "warning";
|
|
1264
|
+
showChevron?: boolean;
|
|
1265
|
+
};
|
|
1266
|
+
/** List row with icon, title, description, optional badge, and chevron. */
|
|
1267
|
+
declare function OptionRow({ icon, title, description, badge, badgeVariant, showChevron, className, type, ...props }: OptionRowProps): react.JSX.Element;
|
|
1268
|
+
|
|
1269
|
+
type StickyActionBarProps = HTMLAttributes<HTMLDivElement> & {
|
|
1270
|
+
children: ReactNode;
|
|
1271
|
+
/** Optional secondary action on the left (e.g. decline / skip). */
|
|
1272
|
+
secondary?: ReactNode;
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* Bottom-pinned action strip for mobile wizard steps.
|
|
1276
|
+
* Use inside a full-height flex column so it stays at the foot of the viewport.
|
|
1277
|
+
*/
|
|
1278
|
+
declare function StickyActionBar({ children, secondary, className, ...props }: StickyActionBarProps): react.JSX.Element;
|
|
1279
|
+
|
|
1280
|
+
type StatusTone = "neutral" | "info" | "success" | "warning" | "danger";
|
|
1281
|
+
type StatusBadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
|
1282
|
+
label: string;
|
|
1283
|
+
tone?: StatusTone;
|
|
1284
|
+
};
|
|
1285
|
+
/** Shared status chip for list cells and detail headers. */
|
|
1286
|
+
declare function StatusBadge({ label, tone, className, ...props }: StatusBadgeProps): react.JSX.Element;
|
|
1287
|
+
|
|
1288
|
+
type DetailFact = {
|
|
1289
|
+
label: string;
|
|
1290
|
+
value?: ReactNode;
|
|
1291
|
+
};
|
|
1292
|
+
type DetailHeaderProps = {
|
|
1293
|
+
title: string;
|
|
1294
|
+
badge?: ReactNode;
|
|
1295
|
+
subtitle?: ReactNode;
|
|
1296
|
+
/** Key facts rendered as a DataList under the title row. */
|
|
1297
|
+
facts?: DetailFact[];
|
|
1298
|
+
/** Empty placeholder for fact values. Default: "—" */
|
|
1299
|
+
factsEmpty?: ReactNode;
|
|
1300
|
+
primaryAction?: ReactNode;
|
|
1301
|
+
/** Secondary actions beside the primary (callers typically pass ≤2). */
|
|
1302
|
+
secondaryActions?: ReactNode[];
|
|
1303
|
+
/** Overflow menu items (DropdownMenuItem children). */
|
|
1304
|
+
moreMenu?: ReactNode;
|
|
1305
|
+
moreLabel?: string;
|
|
1306
|
+
/** Optional tab strip (caller usually passes NavTabs). */
|
|
1307
|
+
tabs?: ReactNode;
|
|
1308
|
+
className?: string;
|
|
1309
|
+
};
|
|
1310
|
+
/**
|
|
1311
|
+
* Shared detail page chrome: title, status, facts, and action hierarchy.
|
|
1312
|
+
*/
|
|
1313
|
+
declare function DetailHeader({ title, badge, subtitle, facts, factsEmpty, primaryAction, secondaryActions, moreMenu, moreLabel, tabs, className, }: DetailHeaderProps): react.JSX.Element;
|
|
1314
|
+
|
|
1315
|
+
type FormSectionProps = HTMLAttributes<HTMLElement> & {
|
|
1316
|
+
title: string;
|
|
1317
|
+
description?: string;
|
|
1318
|
+
children: ReactNode;
|
|
1319
|
+
/** Extra content beside the title (e.g. a counter). */
|
|
1320
|
+
aside?: ReactNode;
|
|
1321
|
+
};
|
|
1322
|
+
/**
|
|
1323
|
+
* Labeled form section with a short reason and a one→two column field grid.
|
|
1324
|
+
*/
|
|
1325
|
+
declare function FormSection({ title, description, children, aside, className, ...props }: FormSectionProps): react.JSX.Element;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Registers `beforeunload` while `dirty` is true.
|
|
1329
|
+
* App Router cannot block in-app navigation; pair with confirms on controlled links.
|
|
1330
|
+
*/
|
|
1331
|
+
declare function useDirtyGuard(dirty: boolean): void;
|
|
1332
|
+
|
|
1333
|
+
type WizardLayoutProps = {
|
|
1334
|
+
steps: readonly StepProgressSegment[];
|
|
1335
|
+
current: number;
|
|
1336
|
+
children: ReactNode;
|
|
1337
|
+
onBack?: () => void;
|
|
1338
|
+
onNext?: () => void;
|
|
1339
|
+
backLabel?: string;
|
|
1340
|
+
nextLabel?: string;
|
|
1341
|
+
nextDisabled?: boolean;
|
|
1342
|
+
pending?: boolean;
|
|
1343
|
+
/** Replaces the default Back button. */
|
|
1344
|
+
secondary?: ReactNode;
|
|
1345
|
+
/** Replaces the default Continue button. */
|
|
1346
|
+
primary?: ReactNode;
|
|
1347
|
+
progressLabel?: string;
|
|
1348
|
+
className?: string;
|
|
1349
|
+
};
|
|
1350
|
+
/**
|
|
1351
|
+
* Composes StepProgress + content + StickyActionBar for multi-step flows.
|
|
1352
|
+
*/
|
|
1353
|
+
declare function WizardLayout({ steps, current, children, onBack, onNext, backLabel, nextLabel, nextDisabled, pending, secondary, primary, progressLabel, className, }: WizardLayoutProps): react.JSX.Element;
|
|
1354
|
+
type SectionSummaryProps = {
|
|
1355
|
+
title: string;
|
|
1356
|
+
children: ReactNode;
|
|
1357
|
+
editLabel?: string;
|
|
1358
|
+
onEdit?: () => void;
|
|
1359
|
+
className?: string;
|
|
1360
|
+
};
|
|
1361
|
+
/** Review-step card with an Edit affordance that jumps back to a prior step. */
|
|
1362
|
+
declare function SectionSummary({ title, children, editLabel, onEdit, className, }: SectionSummaryProps): react.JSX.Element;
|
|
1363
|
+
|
|
1364
|
+
type QueueLayoutProps = {
|
|
1365
|
+
list: ReactNode;
|
|
1366
|
+
review: ReactNode;
|
|
1367
|
+
/** Shown in the review pane when nothing is selected. */
|
|
1368
|
+
emptyReview?: ReactNode;
|
|
1369
|
+
selectedId?: string | null;
|
|
1370
|
+
/** Accessible name for the split region. */
|
|
1371
|
+
"aria-label"?: string;
|
|
1372
|
+
className?: string;
|
|
1373
|
+
/** Optional shortcut hint under the list (e.g. "j / k to move"). */
|
|
1374
|
+
shortcutHint?: string;
|
|
1375
|
+
};
|
|
1376
|
+
/**
|
|
1377
|
+
* Split review queue: list left, review right. Stacks below `lg`.
|
|
1378
|
+
*/
|
|
1379
|
+
declare function QueueLayout({ list, review, emptyReview, selectedId, "aria-label": ariaLabel, className, shortcutHint, }: QueueLayoutProps): react.JSX.Element;
|
|
1380
|
+
type UseQueueKeysOptions = {
|
|
1381
|
+
enabled?: boolean;
|
|
1382
|
+
ids: readonly string[];
|
|
1383
|
+
selectedId: string | null | undefined;
|
|
1384
|
+
onSelect: (id: string | null) => void;
|
|
1385
|
+
};
|
|
1386
|
+
/**
|
|
1387
|
+
* `j` / `k` move selection, `Enter` keeps selection (focus review), `Esc` clears.
|
|
1388
|
+
* Ignored while typing in inputs or when a dialog is focused.
|
|
1389
|
+
*/
|
|
1390
|
+
declare function useQueueKeys({ enabled, ids, selectedId, onSelect, }: UseQueueKeysOptions): void;
|
|
1391
|
+
/** Optional helper for list rows that should advance with Enter. */
|
|
1392
|
+
declare function queueRowKeyDown(event: KeyboardEvent, onOpen: () => void): void;
|
|
1393
|
+
|
|
1394
|
+
type SectionCardTone = "default" | "danger";
|
|
1395
|
+
type SectionCardProps = {
|
|
1396
|
+
id: string;
|
|
1397
|
+
title: ReactNode;
|
|
1398
|
+
description?: string;
|
|
1399
|
+
badge?: ReactNode;
|
|
1400
|
+
headerAction?: ReactNode;
|
|
1401
|
+
footer?: ReactNode;
|
|
1402
|
+
children: ReactNode;
|
|
1403
|
+
tone?: SectionCardTone;
|
|
1404
|
+
className?: string;
|
|
1405
|
+
/** Skip entrance motion (useful in tests). */
|
|
1406
|
+
animate?: boolean;
|
|
1407
|
+
};
|
|
1408
|
+
/**
|
|
1409
|
+
* Settings / account section card with optional danger tone.
|
|
1410
|
+
* Motion honors prefers-reduced-motion via framer-motion.
|
|
1411
|
+
*/
|
|
1412
|
+
declare function SectionCard({ id, title, description, badge, headerAction, footer, children, tone, className, animate, }: SectionCardProps): react.JSX.Element;
|
|
1413
|
+
|
|
1414
|
+
type SectionNavItem = {
|
|
1415
|
+
id: string;
|
|
1416
|
+
label: string;
|
|
1417
|
+
};
|
|
1418
|
+
type UseSectionNavResult = {
|
|
1419
|
+
active: string;
|
|
1420
|
+
scrollToSection: (id: string) => void;
|
|
1421
|
+
};
|
|
1422
|
+
/**
|
|
1423
|
+
* IntersectionObserver-backed active section for a long settings page.
|
|
1424
|
+
*/
|
|
1425
|
+
declare function useSectionNav(sections: readonly SectionNavItem[]): UseSectionNavResult;
|
|
1426
|
+
type SectionNavListProps = {
|
|
1427
|
+
sections: readonly SectionNavItem[];
|
|
1428
|
+
active: string;
|
|
1429
|
+
onSelect: (id: string) => void;
|
|
1430
|
+
/** Localized accessible name for the nav landmark. */
|
|
1431
|
+
ariaLabel: string;
|
|
1432
|
+
className?: string;
|
|
1433
|
+
layout: "mobile" | "desktop";
|
|
1434
|
+
};
|
|
1435
|
+
declare function SectionNavList({ sections, active, onSelect, ariaLabel, className, layout, }: SectionNavListProps): react.JSX.Element;
|
|
1436
|
+
type SectionNavProps = {
|
|
1437
|
+
sections: readonly SectionNavItem[];
|
|
1438
|
+
ariaLabel: string;
|
|
1439
|
+
className?: string;
|
|
1440
|
+
};
|
|
1441
|
+
/**
|
|
1442
|
+
* Responsive settings section nav: chip strip on small screens, sticky list on md+.
|
|
1443
|
+
*/
|
|
1444
|
+
declare function SectionNav({ sections, ariaLabel, className, }: SectionNavProps): react.JSX.Element;
|
|
1445
|
+
|
|
1446
|
+
type SettingRowProps = {
|
|
1447
|
+
label: string;
|
|
1448
|
+
description?: string;
|
|
1449
|
+
control: ReactNode;
|
|
1450
|
+
className?: string;
|
|
1451
|
+
htmlFor?: string;
|
|
1452
|
+
};
|
|
1453
|
+
/**
|
|
1454
|
+
* Settings row: label + description on the left, control on the right.
|
|
1455
|
+
*/
|
|
1456
|
+
declare function SettingRow({ label, description, control, className, htmlFor, }: SettingRowProps): react.JSX.Element;
|
|
1457
|
+
|
|
922
1458
|
type LegalMarkdownProps = {
|
|
923
1459
|
markdown: string;
|
|
924
1460
|
className?: string;
|
|
@@ -955,9 +1491,11 @@ type AuditTimelineProps = {
|
|
|
955
1491
|
/** Single primary action shown only when the timeline is empty. */
|
|
956
1492
|
emptyAction?: ReactNode;
|
|
957
1493
|
className?: string;
|
|
1494
|
+
/** BCP 47 locale for the default formatter (next-intl). Default: `en`. */
|
|
1495
|
+
locale?: string;
|
|
958
1496
|
formatOccurredAt?: (occurredAt: number) => string;
|
|
959
1497
|
};
|
|
960
|
-
declare function AuditTimeline({ items, labels, emptyAction, className, formatOccurredAt: format, }: AuditTimelineProps): react.JSX.Element;
|
|
1498
|
+
declare function AuditTimeline({ items, labels, emptyAction, className, locale, formatOccurredAt: format, }: AuditTimelineProps): react.JSX.Element;
|
|
961
1499
|
|
|
962
1500
|
type RiskSeverity = "low" | "medium" | "high";
|
|
963
1501
|
type RiskBadgeLabels = {
|
|
@@ -1046,4 +1584,4 @@ declare function sourceUrlIsHttps(url: string): boolean;
|
|
|
1046
1584
|
declare function matchClaimIsUnverified(hit: MatchReviewHit): boolean;
|
|
1047
1585
|
declare function MatchReview({ hit, onResolve, labels, sourceLabels, emptyAction, className, }: MatchReviewProps): react.JSX.Element;
|
|
1048
1586
|
|
|
1049
|
-
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 };
|
|
1587
|
+
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, CURP_REGEX, 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, CurpInput, type CurpInputProps, type CurpValidationError, DATA_TABLE_BODY_MIN_CLASS, DATA_TABLE_DEFAULT_SKELETON_ROWS, 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, type DashboardSkeletonVariant, DataList, DataListItem, type DataListItemProps, type DataListProps, DataTable, type DataTableColumn, type DataTableProps, DataTableSkeleton, type DetailFact, DetailHeader, type DetailHeaderProps, DetailPageSkeleton, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateIllustration, 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, FormSection, type FormSectionProps, 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 MoneyCurrency, MoneyInput, type MoneyInputProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type NavTab, NavTabs, type NavTabsProps, NavigationProgress, type NavigationProgressProps, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, OptionRow, type OptionRowProps, PageContainer, PageTitle, type PageTitleProps, PageTitleSkeleton, PaginatedCombobox, type PaginatedComboboxItem, type PaginatedComboboxLabels, type PaginatedComboboxProps, type PartRange, PasswordInput, type PasswordInputProps, type PersonKindForRfc, PhoneInput, type PhoneInputProps, ProductIllustration, type ProductIllustrationProps, QueueLayout, type QueueLayoutProps, RfcInput, type RfcInputProps, type RfcValidationError, RiskBadge, type RiskBadgeLabels, type RiskBadgeProps, type RiskSeverity, RouteLoading, SAT_TAX_REGIME_CODES, SafeImage, type SafeImageProps, SearchablePicker, type SearchablePickerOption, type SearchablePickerProps, SectionCard, type SectionCardProps, type SectionCardTone, SectionNav, type SectionNavItem, SectionNavList, type SectionNavListProps, type SectionNavProps, SectionSummary, type SectionSummaryProps, SettingRow, type SettingRowProps, type ShellIcon, type ShellLinkProps, type ShellLinkRenderer, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, StatusBadge, type StatusBadgeProps, type StatusTone, StepProgress, type StepProgressProps, type StepProgressSegment, StickyActionBar, type StickyActionBarProps, TAX_REGIME_OPTIONS, TIME_RANGE_OPTIONS, TableSkeleton, type TaxRegimeLocale, type TaxRegimeOption, TaxRegimePicker, type TaxRegimePickerItem, type TaxRegimePickerLabels, type TaxRegimePickerProps, type TaxRegimeRecord, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseQueueKeysOptions, type UseSectionNavResult, WizardLayout, type WizardLayoutProps, appendMoneyDigit, backspaceMoneyMinor, cn, countryLabel, countryPickerItems, createMultipartUploadController, curpCheckDigit, dataTableBodyMinClass, defaultLanguages, fileMatchesAccept, filterCountries, filterTaxRegimes, formatCountryOptionLabel, formatMoney, formatTaxRegimeOptionLabel, isKnownCountryCode, isKnownTaxRegimeCode, matchClaimIsUnverified, normalizeCurpInput, normalizeRfc, parseMoneyToMinor, partRanges, progressFromBytes, queueRowKeyDown, renderShellLink, rfcMaxLengthForPersonKind, signalNavigationStart, sourceUrlIsHttps, suppressNavigationProgress, taxRegimeLabel, taxRegimePickerItems, useDirtyGuard, useEditableSection, useLanguageContext, useMediaQuery, useQueueKeys, useSectionNav, validateCurp, validateRfcForPersonKind };
|