@aspprev/versi-ds 0.2.0 → 0.3.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/README.md +31 -2
- package/dist/{chunk-H4BBKKRZ.js → chunk-7JI5637G.js} +231 -60
- package/dist/chunk-7JI5637G.js.map +1 -0
- package/dist/{chunk-JSPXVXUY.js → chunk-DO5C67KS.js} +309 -141
- package/dist/chunk-DO5C67KS.js.map +1 -0
- package/dist/{chunk-PIXRKI25.js → chunk-EPV6UNUQ.js} +226 -128
- package/dist/chunk-EPV6UNUQ.js.map +1 -0
- package/dist/{chunk-ET2BGHTO.js → chunk-FTRF27XF.js} +28 -31
- package/dist/chunk-FTRF27XF.js.map +1 -0
- package/dist/{chunk-FR5W52XU.js → chunk-OQECJKGA.js} +229 -105
- package/dist/chunk-OQECJKGA.js.map +1 -0
- package/dist/core.d.ts +24 -2
- package/dist/core.js +10 -2
- package/dist/documents.d.ts +28 -7
- package/dist/documents.js +5 -3
- package/dist/forms.d.ts +3 -0
- package/dist/forms.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +26 -8
- package/dist/manifest.json +6 -6
- package/dist/overlays.d.ts +30 -1
- package/dist/overlays.js +11 -3
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-ET2BGHTO.js.map +0 -1
- package/dist/chunk-FR5W52XU.js.map +0 -1
- package/dist/chunk-H4BBKKRZ.js.map +0 -1
- package/dist/chunk-JSPXVXUY.js.map +0 -1
- package/dist/chunk-PIXRKI25.js.map +0 -1
package/dist/core.d.ts
CHANGED
|
@@ -305,6 +305,18 @@ interface ResolvedStatusAppearance {
|
|
|
305
305
|
tone: StatusTone;
|
|
306
306
|
appearance: StatusAppearance;
|
|
307
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Map owned by the consuming application. Keys are normalized with
|
|
310
|
+
* `normalizeStatus` before lookup, so accented and differently-cased labels
|
|
311
|
+
* can be used safely by consumers.
|
|
312
|
+
*/
|
|
313
|
+
type StatusAppearanceMap = Readonly<Record<string, ResolvedStatusAppearance>>;
|
|
314
|
+
interface StatusResolverOptions {
|
|
315
|
+
map?: StatusAppearanceMap;
|
|
316
|
+
fallback?: ResolvedStatusAppearance;
|
|
317
|
+
}
|
|
318
|
+
declare const normalizeStatus: (status: unknown) => string;
|
|
319
|
+
declare const resolveStatusAppearance: (status: unknown, domain?: StatusDomain, options?: StatusResolverOptions) => ResolvedStatusAppearance;
|
|
308
320
|
|
|
309
321
|
declare const SIZE_STYLES: {
|
|
310
322
|
readonly sm: "min-h-5 px-1 py-0.5 text-xs";
|
|
@@ -327,8 +339,10 @@ interface DomainStatusBadgeProps extends Omit<ComponentProps<typeof StatusBadge>
|
|
|
327
339
|
domain?: StatusDomain;
|
|
328
340
|
empty?: "hide" | "placeholder";
|
|
329
341
|
placeholder?: string;
|
|
342
|
+
/** Optional consumer-owned map for statuses specific to a product domain. */
|
|
343
|
+
statusMap?: StatusAppearanceMap;
|
|
330
344
|
}
|
|
331
|
-
declare function DomainStatusBadge({ status, domain, empty, placeholder, ...rest }: DomainStatusBadgeProps): React.JSX.Element | null;
|
|
345
|
+
declare function DomainStatusBadge({ status, domain, empty, placeholder, statusMap, ...rest }: DomainStatusBadgeProps): React.JSX.Element | null;
|
|
332
346
|
|
|
333
347
|
interface SkipLinkProps {
|
|
334
348
|
targetId?: string;
|
|
@@ -355,6 +369,12 @@ interface IFilterControl {
|
|
|
355
369
|
placeholder?: string;
|
|
356
370
|
}
|
|
357
371
|
interface IFilterProps {
|
|
372
|
+
/** Stable id used to associate the popup with its trigger. */
|
|
373
|
+
id?: string;
|
|
374
|
+
/** Accessible name for the filter popup. */
|
|
375
|
+
accessibleName?: string;
|
|
376
|
+
/** Unique radio group prefix when multiple filters are rendered together. */
|
|
377
|
+
groupName?: string;
|
|
358
378
|
optionList?: IFilterOption[];
|
|
359
379
|
optionChecked?: string;
|
|
360
380
|
onChange?: (value: string) => void;
|
|
@@ -478,6 +498,7 @@ declare const breakpoints: {
|
|
|
478
498
|
tv: number;
|
|
479
499
|
};
|
|
480
500
|
type Breakpoint = keyof typeof breakpoints;
|
|
501
|
+
declare function getBreakpoint(width: number): Breakpoint;
|
|
481
502
|
declare const useBreakpoint: () => Breakpoint;
|
|
482
503
|
|
|
483
504
|
type ContainerBreakpointMap = Record<string, number>;
|
|
@@ -485,6 +506,7 @@ type ContainerBreakpoint = string | undefined;
|
|
|
485
506
|
interface UseContainerBreakpointOptions {
|
|
486
507
|
breakpoints?: ContainerBreakpointMap;
|
|
487
508
|
}
|
|
509
|
+
declare function resolveContainerBreakpoint(width: number, breakpoints?: ContainerBreakpointMap): ContainerBreakpoint;
|
|
488
510
|
declare function useContainerBreakpoint<TElement extends HTMLElement = HTMLElement>(ref: RefObject<TElement | null>, options?: UseContainerBreakpointOptions): ContainerBreakpoint;
|
|
489
511
|
|
|
490
|
-
export { Avatar, type AvatarProps, type BoxProps, Button, type ButtonProps, CheckBox, type CheckBoxProps, Checkbox, type CheckboxProps, CircularLoading, type CircularLoadingProps, type ContainerBreakpoint, type ContainerBreakpointMap, Divider, DomainStatusBadge, type DomainStatusBadgeProps, FilterBar, type FilterBarProps, FocusNavigationMode, FormActions, type FormActionsProps, FormErrorNavigation, FormGrid, type FormGridProps, type IFilterControl, type IFilterOption, type IFilterProps, type IHeaderItem, type IMobileCardTableExpandableConfig, type IMobileCardTableHeader, type ITableColumnConfig, type ITableExpandableConfig, type ITablePaginationProps, IconProvider, type IconProviderProps, InfoGrid, type InfoGridProps, InfoItem, type InfoItemProps, InputSlider, type InputSliderProps, LoadingDots, MobileCardTable, type MobileCardTableProps, ModalCardView as ModalCard, type ModalCardProps, NoticeView as Notice, type OptionalValuePolicy, PageHeading, type PageHeadingBackAction, type PageHeadingProps, PageState, type PageTabItem, PageTabsHeader, PaginationView as Pagination, type PaginationProps, IconProvider as PortalIconProvider, type ResolvedStatusAppearance, SkipLink, type SkipLinkProps, Slider, type SliderProps, type StatusAppearance, StatusBadge, type StatusBadgeProps, type StatusDomain, type StatusTone, Surface, type SurfaceProps, Table, type TableDensity, type TableHeaderVariant, type TableOverflowMode, type TableProps, type TableRowVariant, TextGroup, type TextGroupProps, ThemedImage, type ThemedImageProps, Tooltip, type TooltipProps, Typography, Typography as TypographyComponent, type TypographyProps, type TypographySemanticRole, type UseContainerBreakpointOptions, breakpoints, findFirstInvalidField, getStatusBadgeClassName, useBreakpoint, useContainerBreakpoint };
|
|
512
|
+
export { Avatar, type AvatarProps, type BoxProps, type Breakpoint, Button, type ButtonProps, CheckBox, type CheckBoxProps, Checkbox, type CheckboxProps, CircularLoading, type CircularLoadingProps, type ContainerBreakpoint, type ContainerBreakpointMap, Divider, DomainStatusBadge, type DomainStatusBadgeProps, FilterBar, type FilterBarProps, FocusNavigationMode, FormActions, type FormActionsProps, FormErrorNavigation, FormGrid, type FormGridProps, type IFilterControl, type IFilterOption, type IFilterProps, type IHeaderItem, type IMobileCardTableExpandableConfig, type IMobileCardTableHeader, type ITableColumnConfig, type ITableExpandableConfig, type ITablePaginationProps, IconProvider, type IconProviderProps, InfoGrid, type InfoGridProps, InfoItem, type InfoItemProps, InputSlider, type InputSliderProps, LoadingDots, MobileCardTable, type MobileCardTableProps, ModalCardView as ModalCard, type ModalCardProps, NoticeView as Notice, type OptionalValuePolicy, PageHeading, type PageHeadingBackAction, type PageHeadingProps, PageState, type PageTabItem, PageTabsHeader, PaginationView as Pagination, type PaginationProps, IconProvider as PortalIconProvider, type ResolvedStatusAppearance, SkipLink, type SkipLinkProps, Slider, type SliderProps, type StatusAppearance, type StatusAppearanceMap, StatusBadge, type StatusBadgeProps, type StatusDomain, type StatusResolverOptions, type StatusTone, Surface, type SurfaceProps, Table, type TableDensity, type TableHeaderVariant, type TableOverflowMode, type TableProps, type TableRowVariant, TextGroup, type TextGroupProps, ThemedImage, type ThemedImageProps, Tooltip, type TooltipProps, Typography, Typography as TypographyComponent, type TypographyProps, type TypographySemanticRole, type UseContainerBreakpointOptions, breakpoints, findFirstInvalidField, getBreakpoint, getStatusBadgeClassName, normalizeStatus, resolveContainerBreakpoint, resolveStatusAppearance, useBreakpoint, useContainerBreakpoint };
|
package/dist/core.js
CHANGED
|
@@ -34,17 +34,21 @@ import {
|
|
|
34
34
|
Typography,
|
|
35
35
|
findFirstInvalidField,
|
|
36
36
|
getStatusBadgeClassName,
|
|
37
|
+
normalizeStatus,
|
|
38
|
+
resolveContainerBreakpoint,
|
|
39
|
+
resolveStatusAppearance,
|
|
37
40
|
typography_default,
|
|
38
41
|
useContainerBreakpoint
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EPV6UNUQ.js";
|
|
40
43
|
import {
|
|
41
44
|
DocumentItem
|
|
42
45
|
} from "./chunk-ATWH3MA6.js";
|
|
43
46
|
import {
|
|
44
47
|
Tooltip_default,
|
|
45
48
|
breakpoints,
|
|
49
|
+
getBreakpoint,
|
|
46
50
|
useBreakpoint
|
|
47
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-FTRF27XF.js";
|
|
48
52
|
import "./chunk-2NMEKWO5.js";
|
|
49
53
|
export {
|
|
50
54
|
Avatar_default as Avatar,
|
|
@@ -85,7 +89,11 @@ export {
|
|
|
85
89
|
Typography as TypographyComponent,
|
|
86
90
|
breakpoints,
|
|
87
91
|
findFirstInvalidField,
|
|
92
|
+
getBreakpoint,
|
|
88
93
|
getStatusBadgeClassName,
|
|
94
|
+
normalizeStatus,
|
|
95
|
+
resolveContainerBreakpoint,
|
|
96
|
+
resolveStatusAppearance,
|
|
89
97
|
useBreakpoint,
|
|
90
98
|
useContainerBreakpoint
|
|
91
99
|
};
|
package/dist/documents.d.ts
CHANGED
|
@@ -7,17 +7,33 @@ interface BoletoBarCodeProps {
|
|
|
7
7
|
}
|
|
8
8
|
declare function BoletoBarCode({ linhaDigitavel }: BoletoBarCodeProps): React.JSX.Element;
|
|
9
9
|
|
|
10
|
+
type FileValidationReason = "type" | "size" | "count";
|
|
10
11
|
interface FileRejection {
|
|
11
12
|
file: File;
|
|
12
|
-
reason:
|
|
13
|
+
reason: FileValidationReason;
|
|
13
14
|
message: string;
|
|
14
15
|
}
|
|
16
|
+
interface FileValidationOptions {
|
|
17
|
+
accept?: string;
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
maxFiles?: number;
|
|
20
|
+
maxSize?: number;
|
|
21
|
+
}
|
|
22
|
+
interface FileValidationResult {
|
|
23
|
+
accepted: File[];
|
|
24
|
+
rejected: FileRejection[];
|
|
25
|
+
}
|
|
26
|
+
declare function validateFiles(files: readonly File[] | FileList, options?: FileValidationOptions): FileValidationResult;
|
|
27
|
+
|
|
15
28
|
interface FileDropzoneProps {
|
|
16
29
|
accept?: string;
|
|
17
30
|
multiple?: boolean;
|
|
18
31
|
maxFiles?: number;
|
|
19
32
|
maxSize?: number;
|
|
20
33
|
disabled?: boolean;
|
|
34
|
+
id?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
required?: boolean;
|
|
21
37
|
label?: ReactNode;
|
|
22
38
|
hint?: ReactNode;
|
|
23
39
|
error?: ReactNode;
|
|
@@ -25,7 +41,7 @@ interface FileDropzoneProps {
|
|
|
25
41
|
onFilesAccepted?: (files: File[]) => void;
|
|
26
42
|
onFilesRejected?: (rejections: FileRejection[]) => void;
|
|
27
43
|
}
|
|
28
|
-
declare function FileDropzone({ accept, multiple, maxFiles, maxSize, disabled, label, hint, error, className, onFilesAccepted, onFilesRejected, }: FileDropzoneProps): React.JSX.Element;
|
|
44
|
+
declare function FileDropzone({ accept, multiple, maxFiles, maxSize, disabled, id, name, required, label, hint, error, className, onFilesAccepted, onFilesRejected, }: FileDropzoneProps): React.JSX.Element;
|
|
29
45
|
|
|
30
46
|
type FileUploadProgressStatus = "idle" | "uploading" | "success" | "error";
|
|
31
47
|
interface FileUploadProgressProps {
|
|
@@ -52,7 +68,7 @@ interface FileListProps {
|
|
|
52
68
|
onRetry?: (item: FileUploadItem, index: number) => void;
|
|
53
69
|
className?: string;
|
|
54
70
|
}
|
|
55
|
-
declare function FileList({ files, accessibleName, onRemove, onRetry, className }: FileListProps): React.JSX.Element;
|
|
71
|
+
declare function FileList$1({ files, accessibleName, onRemove, onRetry, className }: FileListProps): React.JSX.Element;
|
|
56
72
|
|
|
57
73
|
type FileViewerSource = string | Blob | {
|
|
58
74
|
url?: string;
|
|
@@ -66,15 +82,17 @@ interface FileViewerProps {
|
|
|
66
82
|
contentType?: string;
|
|
67
83
|
loading?: boolean;
|
|
68
84
|
error?: ReactNode;
|
|
85
|
+
onLoad?: () => void;
|
|
86
|
+
onError?: (error: Error) => void;
|
|
69
87
|
onDownload?: () => void;
|
|
70
88
|
fallback?: ReactNode;
|
|
71
89
|
title?: string;
|
|
72
90
|
className?: string;
|
|
73
91
|
}
|
|
74
|
-
declare function FileViewer({ source, fileName, contentType, loading, error, onDownload, fallback, title, className }: FileViewerProps): React.JSX.Element;
|
|
92
|
+
declare function FileViewer({ source, fileName, contentType, loading, error, onLoad, onError, onDownload, fallback, title, className, }: FileViewerProps): React.JSX.Element;
|
|
75
93
|
|
|
76
94
|
type QRCodeErrorCorrectionLevel = "L" | "M" | "Q" | "H";
|
|
77
|
-
interface QRCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
95
|
+
interface QRCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, "color" | "onError"> {
|
|
78
96
|
value: string;
|
|
79
97
|
size?: number;
|
|
80
98
|
level?: QRCodeErrorCorrectionLevel;
|
|
@@ -83,7 +101,10 @@ interface QRCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
|
83
101
|
bgColor?: string;
|
|
84
102
|
ariaLabel?: string;
|
|
85
103
|
description?: string;
|
|
104
|
+
loading?: boolean;
|
|
105
|
+
error?: ReactNode;
|
|
106
|
+
onError?: (error: Error) => void;
|
|
86
107
|
}
|
|
87
|
-
declare function QRCode({ value, size, level, includeMargin, fgColor, bgColor, ariaLabel, description, className, ...rest }: QRCodeProps): React.JSX.Element;
|
|
108
|
+
declare function QRCode({ value, size, level, includeMargin, fgColor, bgColor, ariaLabel, description, loading, error, onError, className, ...rest }: QRCodeProps): React.JSX.Element;
|
|
88
109
|
|
|
89
|
-
export { BoletoBarCode, type BoletoBarCodeProps, FileDropzone, type FileDropzoneProps, FileList, type FileListProps, type FileRejection, type FileUploadItem, type FileUploadItemStatus, FileUploadProgress, type FileUploadProgressProps, type FileUploadProgressStatus, FileViewer, type FileViewerProps, type FileViewerSource, QRCode, type QRCodeErrorCorrectionLevel, type QRCodeProps };
|
|
110
|
+
export { BoletoBarCode, type BoletoBarCodeProps, FileDropzone, type FileDropzoneProps, FileList$1 as FileList, type FileListProps, type FileRejection, type FileUploadItem, type FileUploadItemStatus, FileUploadProgress, type FileUploadProgressProps, type FileUploadProgressStatus, type FileValidationOptions, type FileValidationReason, type FileValidationResult, FileViewer, type FileViewerProps, type FileViewerSource, QRCode, type QRCodeErrorCorrectionLevel, type QRCodeProps, validateFiles };
|
package/dist/documents.js
CHANGED
|
@@ -5,8 +5,9 @@ import {
|
|
|
5
5
|
FileList_default,
|
|
6
6
|
FileUploadProgress_default,
|
|
7
7
|
FileViewer_default,
|
|
8
|
-
QRCode_default
|
|
9
|
-
|
|
8
|
+
QRCode_default,
|
|
9
|
+
validateFiles
|
|
10
|
+
} from "./chunk-7JI5637G.js";
|
|
10
11
|
import {
|
|
11
12
|
DocumentItem
|
|
12
13
|
} from "./chunk-ATWH3MA6.js";
|
|
@@ -18,6 +19,7 @@ export {
|
|
|
18
19
|
FileList_default as FileList,
|
|
19
20
|
FileUploadProgress_default as FileUploadProgress,
|
|
20
21
|
FileViewer_default as FileViewer,
|
|
21
|
-
QRCode_default as QRCode
|
|
22
|
+
QRCode_default as QRCode,
|
|
23
|
+
validateFiles
|
|
22
24
|
};
|
|
23
25
|
//# sourceMappingURL=documents.js.map
|
package/dist/forms.d.ts
CHANGED
|
@@ -133,6 +133,7 @@ interface UnifiedDatePickerProps {
|
|
|
133
133
|
placeholder?: string;
|
|
134
134
|
minDate?: Date;
|
|
135
135
|
maxDate?: Date;
|
|
136
|
+
/** @deprecated Use `disabled`. Kept as a compatibility alias. */
|
|
136
137
|
isDisabled?: boolean;
|
|
137
138
|
disabled?: boolean;
|
|
138
139
|
name?: string;
|
|
@@ -143,6 +144,8 @@ interface UnifiedDatePickerProps {
|
|
|
143
144
|
navigationVariant?: DatePickerNavigationVariant;
|
|
144
145
|
selectionMode?: DatePickerSelectionMode;
|
|
145
146
|
showAdjacentDays?: boolean;
|
|
147
|
+
/** Accessible name used when no visible label is provided. */
|
|
148
|
+
ariaLabel?: string;
|
|
146
149
|
className?: string;
|
|
147
150
|
}
|
|
148
151
|
|
package/dist/forms.js
CHANGED
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
buildPhonePayload,
|
|
18
18
|
datePicker_default,
|
|
19
19
|
parsePhonePayload
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-OQECJKGA.js";
|
|
21
|
+
import "./chunk-FTRF27XF.js";
|
|
22
22
|
import "./chunk-YCW3REQK.js";
|
|
23
23
|
import "./chunk-2NMEKWO5.js";
|
|
24
24
|
export {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Avatar, AvatarProps, BoxProps, Button, ButtonProps, CheckBox, CheckBoxProps, Checkbox, CheckboxProps, CircularLoading, CircularLoadingProps, ContainerBreakpoint, ContainerBreakpointMap, Divider, DomainStatusBadge, DomainStatusBadgeProps, FilterBar, FilterBarProps, FocusNavigationMode, FormActions, FormActionsProps, FormErrorNavigation, FormGrid, FormGridProps, IFilterControl, IFilterOption, IFilterProps, IHeaderItem, IMobileCardTableExpandableConfig, IMobileCardTableHeader, ITableColumnConfig, ITableExpandableConfig, ITablePaginationProps, IconProvider, IconProviderProps, InfoGrid, InfoGridProps, InfoItem, InfoItemProps, InputSlider, InputSliderProps, LoadingDots, MobileCardTable, MobileCardTableProps, ModalCard, ModalCardProps, Notice, OptionalValuePolicy, PageHeading, PageHeadingBackAction, PageHeadingProps, PageState, PageTabItem, PageTabsHeader, Pagination, PaginationProps, IconProvider as PortalIconProvider, ResolvedStatusAppearance, SkipLink, SkipLinkProps, Slider, SliderProps, StatusAppearance, StatusBadge, StatusBadgeProps, StatusDomain, StatusTone, Surface, SurfaceProps, Table, TableDensity, TableHeaderVariant, TableOverflowMode, TableProps, TableRowVariant, TextGroup, TextGroupProps, ThemedImage, ThemedImageProps, Tooltip, TooltipProps, Typography, Typography as TypographyComponent, TypographyProps, TypographySemanticRole, UseContainerBreakpointOptions, breakpoints, findFirstInvalidField, getStatusBadgeClassName, useBreakpoint, useContainerBreakpoint } from './core.js';
|
|
2
|
-
export { AccessibilityColorScheme, AccessibilityFontScale, AccessibilityHighContrastTheme, AccessibilityPreferences, AccessibilityPreferencesPanel, AccessibilityPreferencesPanelProps, DEFAULT_ACCESSIBILITY_PREFERENCES, HighContrastToggle, HighContrastToggleProps, InputSwitch, InputSwitchProps, Modal, ModalProps } from './overlays.js';
|
|
1
|
+
export { Avatar, AvatarProps, BoxProps, Breakpoint, Button, ButtonProps, CheckBox, CheckBoxProps, Checkbox, CheckboxProps, CircularLoading, CircularLoadingProps, ContainerBreakpoint, ContainerBreakpointMap, Divider, DomainStatusBadge, DomainStatusBadgeProps, FilterBar, FilterBarProps, FocusNavigationMode, FormActions, FormActionsProps, FormErrorNavigation, FormGrid, FormGridProps, IFilterControl, IFilterOption, IFilterProps, IHeaderItem, IMobileCardTableExpandableConfig, IMobileCardTableHeader, ITableColumnConfig, ITableExpandableConfig, ITablePaginationProps, IconProvider, IconProviderProps, InfoGrid, InfoGridProps, InfoItem, InfoItemProps, InputSlider, InputSliderProps, LoadingDots, MobileCardTable, MobileCardTableProps, ModalCard, ModalCardProps, Notice, OptionalValuePolicy, PageHeading, PageHeadingBackAction, PageHeadingProps, PageState, PageTabItem, PageTabsHeader, Pagination, PaginationProps, IconProvider as PortalIconProvider, ResolvedStatusAppearance, SkipLink, SkipLinkProps, Slider, SliderProps, StatusAppearance, StatusAppearanceMap, StatusBadge, StatusBadgeProps, StatusDomain, StatusResolverOptions, StatusTone, Surface, SurfaceProps, Table, TableDensity, TableHeaderVariant, TableOverflowMode, TableProps, TableRowVariant, TextGroup, TextGroupProps, ThemedImage, ThemedImageProps, Tooltip, TooltipProps, Typography, Typography as TypographyComponent, TypographyProps, TypographySemanticRole, UseContainerBreakpointOptions, breakpoints, findFirstInvalidField, getBreakpoint, getStatusBadgeClassName, normalizeStatus, resolveContainerBreakpoint, resolveStatusAppearance, useBreakpoint, useContainerBreakpoint } from './core.js';
|
|
2
|
+
export { AccessibilityColorScheme, AccessibilityFontScale, AccessibilityHighContrastTheme, AccessibilityPreferences, AccessibilityPreferencesPanel, AccessibilityPreferencesPanelProps, ContrastPreference, ContrastPreferenceProps, DEFAULT_ACCESSIBILITY_PREFERENCES, FontSizePreference, FontSizePreferenceProps, HighContrastToggle, HighContrastToggleProps, InputSwitch, InputSwitchProps, Modal, ModalProps, ReadingPreferences, ReadingPreferencesProps, ThemePreference, ThemePreferenceProps } from './overlays.js';
|
|
3
3
|
export { CountrySelect, CountrySelectOption, CountrySelectProps, DatePicker, DatePickerNavigationVariant, DatePickerProps, DatePickerSelectionMode, Datepicker, DatepickerNavigationVariant, DatepickerProps, Input, InputPhone, InputPhoneCountryOption, InputPhoneProps, InputPhoneValue, InputProps, InputSelect, InputSelectOption, InputSelectProps, InputStandalone, InputStandaloneProps, MultiSelect, MultiSelectOption, MultiSelectProps, MultiSelectViewProps, OtpCodeInput, OtpCodeInputHandle, OtpCodeInputMask, OtpCodeInputProps, PhoneCountryOption, PhoneInput, PhoneInputProps, PhoneValue, RadioCardGroup, RadioCardGroupProps, RadioCardOption, RadioGroup, RadioGroupProps, SelectCountry, SelectCountryOption, SelectCountryProps, SelectMulti, SelectMultiOption, SelectMultiProps, SelectMultiViewProps, TextArea, TextAreaProps, buildPhonePayload, parsePhonePayload } from './forms.js';
|
|
4
|
-
export { BoletoBarCode, BoletoBarCodeProps, FileDropzone, FileDropzoneProps, FileList, FileListProps, FileRejection, FileUploadItem, FileUploadItemStatus, FileUploadProgress, FileUploadProgressProps, FileUploadProgressStatus, FileViewer, FileViewerProps, FileViewerSource, QRCode, QRCodeErrorCorrectionLevel, QRCodeProps } from './documents.js';
|
|
4
|
+
export { BoletoBarCode, BoletoBarCodeProps, FileDropzone, FileDropzoneProps, FileList, FileListProps, FileRejection, FileUploadItem, FileUploadItemStatus, FileUploadProgress, FileUploadProgressProps, FileUploadProgressStatus, FileValidationOptions, FileValidationReason, FileValidationResult, FileViewer, FileViewerProps, FileViewerSource, QRCode, QRCodeErrorCorrectionLevel, QRCodeProps, validateFiles } from './documents.js';
|
|
5
5
|
export { D as DocumentItem, a as DocumentItemDetail, b as DocumentItemProps } from './DocumentItem-BU0J2QGP.js';
|
|
6
6
|
export { CountryListFilter, CountryListMode } from './countries.js';
|
|
7
7
|
export { ApexChartProps, InteractiveDonutChart, InteractiveDonutOptions, InteractiveDonutProps, LazyApexChart, TimeRangeSelector, TimeRangeSelectorProps, TimeSeriesChart, TimeSeriesChartOptions, TimeSeriesChartProps, TimeSeriesTooltipRow, buildTimeSeriesTooltip, escapeDonutTooltipText, escapeTimeSeriesTooltipText, getChartSeriesRecord, getChartTheme, normalizeTimeSeriesTooltipColor, resolveInteractiveDonutColors, resolveRelativeDonutSelection } from './charts.js';
|
package/dist/index.js
CHANGED
|
@@ -48,17 +48,21 @@ import {
|
|
|
48
48
|
Typography,
|
|
49
49
|
findFirstInvalidField,
|
|
50
50
|
getStatusBadgeClassName,
|
|
51
|
+
normalizeStatus,
|
|
52
|
+
resolveContainerBreakpoint,
|
|
53
|
+
resolveStatusAppearance,
|
|
51
54
|
typography_default,
|
|
52
55
|
useContainerBreakpoint
|
|
53
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-EPV6UNUQ.js";
|
|
54
57
|
import {
|
|
55
58
|
BoletoBarCode,
|
|
56
59
|
FileDropzone_default,
|
|
57
60
|
FileList_default,
|
|
58
61
|
FileUploadProgress_default,
|
|
59
62
|
FileViewer_default,
|
|
60
|
-
QRCode_default
|
|
61
|
-
|
|
63
|
+
QRCode_default,
|
|
64
|
+
validateFiles
|
|
65
|
+
} from "./chunk-7JI5637G.js";
|
|
62
66
|
import {
|
|
63
67
|
DocumentItem
|
|
64
68
|
} from "./chunk-ATWH3MA6.js";
|
|
@@ -80,20 +84,25 @@ import {
|
|
|
80
84
|
buildPhonePayload,
|
|
81
85
|
datePicker_default,
|
|
82
86
|
parsePhonePayload
|
|
83
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-OQECJKGA.js";
|
|
84
88
|
import {
|
|
85
89
|
Tooltip_default,
|
|
86
90
|
breakpoints,
|
|
91
|
+
getBreakpoint,
|
|
87
92
|
useBreakpoint
|
|
88
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-FTRF27XF.js";
|
|
89
94
|
import "./chunk-YCW3REQK.js";
|
|
90
95
|
import {
|
|
91
96
|
AccessibilityPreferencesPanel,
|
|
97
|
+
ContrastPreference,
|
|
92
98
|
DEFAULT_ACCESSIBILITY_PREFERENCES,
|
|
99
|
+
FontSizePreference,
|
|
93
100
|
HighContrastToggle,
|
|
94
101
|
InputSwitch_default,
|
|
95
|
-
Modal_default
|
|
96
|
-
|
|
102
|
+
Modal_default,
|
|
103
|
+
ReadingPreferences,
|
|
104
|
+
ThemePreference
|
|
105
|
+
} from "./chunk-DO5C67KS.js";
|
|
97
106
|
import "./chunk-2NMEKWO5.js";
|
|
98
107
|
export {
|
|
99
108
|
AccessibilityPreferencesPanel,
|
|
@@ -103,6 +112,7 @@ export {
|
|
|
103
112
|
CheckBox,
|
|
104
113
|
Checkbox,
|
|
105
114
|
CircularLoading,
|
|
115
|
+
ContrastPreference,
|
|
106
116
|
CountrySelect,
|
|
107
117
|
DEFAULT_ACCESSIBILITY_PREFERENCES,
|
|
108
118
|
datePicker_default as DatePicker,
|
|
@@ -116,6 +126,7 @@ export {
|
|
|
116
126
|
FileViewer_default as FileViewer,
|
|
117
127
|
FilterBar,
|
|
118
128
|
FocusNavigationMode,
|
|
129
|
+
FontSizePreference,
|
|
119
130
|
FormActions,
|
|
120
131
|
FormErrorNavigation,
|
|
121
132
|
FormGrid,
|
|
@@ -147,6 +158,7 @@ export {
|
|
|
147
158
|
QRCode_default as QRCode,
|
|
148
159
|
RadioCardGroup,
|
|
149
160
|
RadioGroup,
|
|
161
|
+
ReadingPreferences,
|
|
150
162
|
SelectCountry_default as SelectCountry,
|
|
151
163
|
SelectMulti_default as SelectMulti,
|
|
152
164
|
SkipLink,
|
|
@@ -156,6 +168,7 @@ export {
|
|
|
156
168
|
Table_default as Table,
|
|
157
169
|
TextArea_default as TextArea,
|
|
158
170
|
TextGroup,
|
|
171
|
+
ThemePreference,
|
|
159
172
|
ThemedImage,
|
|
160
173
|
TimeRangeSelector,
|
|
161
174
|
TimeSeriesChart,
|
|
@@ -168,14 +181,19 @@ export {
|
|
|
168
181
|
escapeDonutTooltipText,
|
|
169
182
|
escapeTimeSeriesTooltipText,
|
|
170
183
|
findFirstInvalidField,
|
|
184
|
+
getBreakpoint,
|
|
171
185
|
getChartSeriesRecord,
|
|
172
186
|
getChartTheme,
|
|
173
187
|
getStatusBadgeClassName,
|
|
188
|
+
normalizeStatus,
|
|
174
189
|
normalizeTimeSeriesTooltipColor,
|
|
175
190
|
parsePhonePayload,
|
|
191
|
+
resolveContainerBreakpoint,
|
|
176
192
|
resolveInteractiveDonutColors,
|
|
177
193
|
resolveRelativeDonutSelection,
|
|
194
|
+
resolveStatusAppearance,
|
|
178
195
|
useBreakpoint,
|
|
179
|
-
useContainerBreakpoint
|
|
196
|
+
useContainerBreakpoint,
|
|
197
|
+
validateFiles
|
|
180
198
|
};
|
|
181
199
|
//# sourceMappingURL=index.js.map
|
package/dist/manifest.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aspprev/versi-ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"DocumentItem-BU0J2QGP.d.ts",
|
|
6
6
|
"charts.d.ts",
|
|
7
7
|
"charts.js",
|
|
8
8
|
"chunk-2NMEKWO5.js",
|
|
9
|
+
"chunk-7JI5637G.js",
|
|
9
10
|
"chunk-ATWH3MA6.js",
|
|
10
|
-
"chunk-
|
|
11
|
-
"chunk-
|
|
12
|
-
"chunk-
|
|
13
|
-
"chunk-
|
|
14
|
-
"chunk-PIXRKI25.js",
|
|
11
|
+
"chunk-DO5C67KS.js",
|
|
12
|
+
"chunk-EPV6UNUQ.js",
|
|
13
|
+
"chunk-FTRF27XF.js",
|
|
14
|
+
"chunk-OQECJKGA.js",
|
|
15
15
|
"chunk-V66QL3TD.js",
|
|
16
16
|
"chunk-YCW3REQK.js",
|
|
17
17
|
"core.d.ts",
|
package/dist/overlays.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ interface AccessibilityPreferences {
|
|
|
52
52
|
underlineLinks: boolean;
|
|
53
53
|
}
|
|
54
54
|
declare const DEFAULT_ACCESSIBILITY_PREFERENCES: AccessibilityPreferences;
|
|
55
|
+
|
|
55
56
|
type AccessibilityPreferencesPanelProps = {
|
|
56
57
|
preferences: AccessibilityPreferences;
|
|
57
58
|
onPreferencesChange: (changes: Partial<AccessibilityPreferences>) => void;
|
|
@@ -64,6 +65,34 @@ type AccessibilityPreferencesPanelProps = {
|
|
|
64
65
|
};
|
|
65
66
|
declare function AccessibilityPreferencesPanel({ preferences, onPreferencesChange, onReset, isOpen: controlledOpen, onOpenChange, showTrigger, triggerLabel, className, }: AccessibilityPreferencesPanelProps): React.JSX.Element;
|
|
66
67
|
|
|
68
|
+
type ContrastPreferenceProps = {
|
|
69
|
+
checked: boolean;
|
|
70
|
+
onChange: (checked: boolean) => void;
|
|
71
|
+
className?: string;
|
|
72
|
+
};
|
|
73
|
+
declare function ContrastPreference({ checked, onChange, className, }: ContrastPreferenceProps): React.JSX.Element;
|
|
74
|
+
|
|
75
|
+
type FontSizePreferenceProps = {
|
|
76
|
+
value: AccessibilityFontScale;
|
|
77
|
+
onChange: (value: AccessibilityFontScale) => void;
|
|
78
|
+
className?: string;
|
|
79
|
+
};
|
|
80
|
+
declare function FontSizePreference({ value, onChange, className, }: FontSizePreferenceProps): React.JSX.Element;
|
|
81
|
+
|
|
82
|
+
type ReadingPreferenceKey = "reduceMotion" | "emphasizeFocus" | "underlineLinks";
|
|
83
|
+
type ReadingPreferencesProps = Pick<AccessibilityPreferences, ReadingPreferenceKey> & {
|
|
84
|
+
onChange: (changes: Partial<Pick<AccessibilityPreferences, ReadingPreferenceKey>>) => void;
|
|
85
|
+
className?: string;
|
|
86
|
+
};
|
|
87
|
+
declare function ReadingPreferences({ reduceMotion, emphasizeFocus, underlineLinks, onChange, className, }: ReadingPreferencesProps): React.JSX.Element;
|
|
88
|
+
|
|
89
|
+
type ThemePreferenceProps = {
|
|
90
|
+
value: AccessibilityColorScheme;
|
|
91
|
+
onChange: (value: AccessibilityColorScheme) => void;
|
|
92
|
+
className?: string;
|
|
93
|
+
};
|
|
94
|
+
declare function ThemePreference({ value, onChange, className, }: ThemePreferenceProps): React.JSX.Element;
|
|
95
|
+
|
|
67
96
|
interface HighContrastToggleProps {
|
|
68
97
|
checked: boolean;
|
|
69
98
|
onChange: (checked: boolean) => void;
|
|
@@ -72,4 +101,4 @@ interface HighContrastToggleProps {
|
|
|
72
101
|
}
|
|
73
102
|
declare function HighContrastToggle({ checked, onChange, label, className, }: HighContrastToggleProps): React.JSX.Element;
|
|
74
103
|
|
|
75
|
-
export { type AccessibilityColorScheme, type AccessibilityFontScale, type AccessibilityHighContrastTheme, type AccessibilityPreferences, AccessibilityPreferencesPanel, type AccessibilityPreferencesPanelProps, DEFAULT_ACCESSIBILITY_PREFERENCES, HighContrastToggle, type HighContrastToggleProps, InputSwitch, type InputSwitchProps, Modal, type ModalProps };
|
|
104
|
+
export { type AccessibilityColorScheme, type AccessibilityFontScale, type AccessibilityHighContrastTheme, type AccessibilityPreferences, AccessibilityPreferencesPanel, type AccessibilityPreferencesPanelProps, ContrastPreference, type ContrastPreferenceProps, DEFAULT_ACCESSIBILITY_PREFERENCES, FontSizePreference, type FontSizePreferenceProps, HighContrastToggle, type HighContrastToggleProps, InputSwitch, type InputSwitchProps, Modal, type ModalProps, ReadingPreferences, type ReadingPreferencesProps, ThemePreference, type ThemePreferenceProps };
|
package/dist/overlays.js
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AccessibilityPreferencesPanel,
|
|
4
|
+
ContrastPreference,
|
|
4
5
|
DEFAULT_ACCESSIBILITY_PREFERENCES,
|
|
6
|
+
FontSizePreference,
|
|
5
7
|
HighContrastToggle,
|
|
6
8
|
InputSwitch_default,
|
|
7
|
-
Modal_default
|
|
8
|
-
|
|
9
|
+
Modal_default,
|
|
10
|
+
ReadingPreferences,
|
|
11
|
+
ThemePreference
|
|
12
|
+
} from "./chunk-DO5C67KS.js";
|
|
9
13
|
import "./chunk-2NMEKWO5.js";
|
|
10
14
|
export {
|
|
11
15
|
AccessibilityPreferencesPanel,
|
|
16
|
+
ContrastPreference,
|
|
12
17
|
DEFAULT_ACCESSIBILITY_PREFERENCES,
|
|
18
|
+
FontSizePreference,
|
|
13
19
|
HighContrastToggle,
|
|
14
20
|
InputSwitch_default as InputSwitch,
|
|
15
|
-
Modal_default as Modal
|
|
21
|
+
Modal_default as Modal,
|
|
22
|
+
ReadingPreferences,
|
|
23
|
+
ThemePreference
|
|
16
24
|
};
|
|
17
25
|
//# sourceMappingURL=overlays.js.map
|