@aspprev/versi-ds 0.1.1 → 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/dist/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { ReactNode, ImgHTMLAttributes, HTMLAttributes, ComponentType, ComponentProps } from 'react';
2
+ import React__default, { ReactNode, ImgHTMLAttributes, HTMLAttributes, ComponentType, ComponentProps, RefObject } from 'react';
3
3
  import { IconBaseProps } from 'react-icons';
4
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
5
  import { VariantProps } from 'class-variance-authority';
@@ -21,7 +21,7 @@ declare const Button: React__default.FC<ButtonProps>;
21
21
 
22
22
  declare const textVariants: (props?: ({
23
23
  variant?: "primary" | "secondary" | "tertiary" | "link" | "disabled" | null | undefined;
24
- size?: "md" | "sm" | "xs" | "lg" | "xl" | "2xl" | "title1" | "title2" | "title3" | null | undefined;
24
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "title1" | "title2" | "title3" | null | undefined;
25
25
  weight?: "bold" | "medium" | "thin" | "extralight" | "light" | "normal" | "semibold" | "extrabold" | "black" | null | undefined;
26
26
  } & class_variance_authority_types.ClassProp) | undefined) => string;
27
27
  type TypographySemanticRole = "page-title" | "section-title" | "body" | "label" | "caption" | "helper";
@@ -298,13 +298,25 @@ interface FilterBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"
298
298
  }
299
299
  declare function FilterBar({ filters, actions, columns, className, actionClassName, ...rest }: FilterBarProps): React.JSX.Element;
300
300
 
301
- type StatusDomain = "generic" | "beneficiary" | "document" | "loan" | "benefit" | "signature" | "participation";
301
+ type StatusDomain = "generic" | "beneficiary" | "document" | "loan" | "benefit" | "signature" | "participation" | "claim" | "payment" | "protocol" | "request";
302
302
  type StatusTone = "info" | "warning" | "success" | "danger" | "neutral";
303
303
  type StatusAppearance = "outline" | "soft" | "solid";
304
304
  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";
@@ -316,8 +328,10 @@ interface StatusBadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "childr
316
328
  appearance?: StatusAppearance;
317
329
  size?: keyof typeof SIZE_STYLES;
318
330
  overflow?: "wrap" | "truncate";
331
+ /** Adds a non-color status announcement for assistive technology. */
332
+ statusLabel?: string;
319
333
  }
320
- declare function StatusBadge({ children, tone, appearance, size, overflow, className, title, ...rest }: StatusBadgeProps): React.JSX.Element;
334
+ declare function StatusBadge({ children, tone, appearance, size, overflow, statusLabel, className, title, ...rest }: StatusBadgeProps): React.JSX.Element;
321
335
  declare const getStatusBadgeClassName: (tone: StatusTone, appearance: StatusAppearance) => string;
322
336
 
323
337
  interface DomainStatusBadgeProps extends Omit<ComponentProps<typeof StatusBadge>, "children" | "tone" | "appearance"> {
@@ -325,8 +339,10 @@ interface DomainStatusBadgeProps extends Omit<ComponentProps<typeof StatusBadge>
325
339
  domain?: StatusDomain;
326
340
  empty?: "hide" | "placeholder";
327
341
  placeholder?: string;
342
+ /** Optional consumer-owned map for statuses specific to a product domain. */
343
+ statusMap?: StatusAppearanceMap;
328
344
  }
329
- 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;
330
346
 
331
347
  interface SkipLinkProps {
332
348
  targetId?: string;
@@ -353,6 +369,12 @@ interface IFilterControl {
353
369
  placeholder?: string;
354
370
  }
355
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;
356
378
  optionList?: IFilterOption[];
357
379
  optionChecked?: string;
358
380
  onChange?: (value: string) => void;
@@ -425,6 +447,7 @@ interface TableProps<TData = unknown> extends React__default.HTMLAttributes<HTML
425
447
  data?: TData[];
426
448
  itemsPerPage?: number;
427
449
  emptyMessage?: string;
450
+ errorMessage?: ReactNode;
428
451
  totalWidthUnits?: number;
429
452
  showRowDivider?: boolean;
430
453
  enableRowHover?: boolean;
@@ -468,4 +491,22 @@ interface MobileCardTableProps<TData> {
468
491
  }
469
492
  declare function MobileCardTable<TData>({ headers, accessibleName, data, renderCard, keyExtractor, itemsPerPage, emptyMessage, wrapperClassName, headerClassName, emptyClassName, showPagination, expandable, }: MobileCardTableProps<TData>): React.JSX.Element;
470
493
 
471
- export { Avatar, type AvatarProps, type BoxProps, Button, type ButtonProps, CheckBox, type CheckBoxProps, Checkbox, type CheckboxProps, CircularLoading, type CircularLoadingProps, 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, findFirstInvalidField, getStatusBadgeClassName };
494
+ declare const breakpoints: {
495
+ mobile: number;
496
+ tablet: number;
497
+ desktop: number;
498
+ tv: number;
499
+ };
500
+ type Breakpoint = keyof typeof breakpoints;
501
+ declare function getBreakpoint(width: number): Breakpoint;
502
+ declare const useBreakpoint: () => Breakpoint;
503
+
504
+ type ContainerBreakpointMap = Record<string, number>;
505
+ type ContainerBreakpoint = string | undefined;
506
+ interface UseContainerBreakpointOptions {
507
+ breakpoints?: ContainerBreakpointMap;
508
+ }
509
+ declare function resolveContainerBreakpoint(width: number, breakpoints?: ContainerBreakpointMap): ContainerBreakpoint;
510
+ declare function useContainerBreakpoint<TElement extends HTMLElement = HTMLElement>(ref: RefObject<TElement | null>, options?: UseContainerBreakpointOptions): ContainerBreakpoint;
511
+
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,14 +34,21 @@ import {
34
34
  Typography,
35
35
  findFirstInvalidField,
36
36
  getStatusBadgeClassName,
37
- typography_default
38
- } from "./chunk-L5UMGEXV.js";
37
+ normalizeStatus,
38
+ resolveContainerBreakpoint,
39
+ resolveStatusAppearance,
40
+ typography_default,
41
+ useContainerBreakpoint
42
+ } from "./chunk-EPV6UNUQ.js";
39
43
  import {
40
44
  DocumentItem
41
45
  } from "./chunk-ATWH3MA6.js";
42
46
  import {
43
- Tooltip_default
44
- } from "./chunk-CSQXTG32.js";
47
+ Tooltip_default,
48
+ breakpoints,
49
+ getBreakpoint,
50
+ useBreakpoint
51
+ } from "./chunk-FTRF27XF.js";
45
52
  import "./chunk-2NMEKWO5.js";
46
53
  export {
47
54
  Avatar_default as Avatar,
@@ -80,7 +87,14 @@ export {
80
87
  Tooltip_default as Tooltip,
81
88
  typography_default as Typography,
82
89
  Typography as TypographyComponent,
90
+ breakpoints,
83
91
  findFirstInvalidField,
84
- getStatusBadgeClassName
92
+ getBreakpoint,
93
+ getStatusBadgeClassName,
94
+ normalizeStatus,
95
+ resolveContainerBreakpoint,
96
+ resolveStatusAppearance,
97
+ useBreakpoint,
98
+ useContainerBreakpoint
85
99
  };
86
100
  //# sourceMappingURL=core.js.map
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ReactNode, HTMLAttributes } from 'react';
2
3
  export { D as DocumentItem, a as DocumentItemDetail, b as DocumentItemProps } from './DocumentItem-BU0J2QGP.js';
3
4
 
4
5
  interface BoletoBarCodeProps {
@@ -6,4 +7,104 @@ interface BoletoBarCodeProps {
6
7
  }
7
8
  declare function BoletoBarCode({ linhaDigitavel }: BoletoBarCodeProps): React.JSX.Element;
8
9
 
9
- export { BoletoBarCode, type BoletoBarCodeProps };
10
+ type FileValidationReason = "type" | "size" | "count";
11
+ interface FileRejection {
12
+ file: File;
13
+ reason: FileValidationReason;
14
+ message: string;
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
+
28
+ interface FileDropzoneProps {
29
+ accept?: string;
30
+ multiple?: boolean;
31
+ maxFiles?: number;
32
+ maxSize?: number;
33
+ disabled?: boolean;
34
+ id?: string;
35
+ name?: string;
36
+ required?: boolean;
37
+ label?: ReactNode;
38
+ hint?: ReactNode;
39
+ error?: ReactNode;
40
+ className?: string;
41
+ onFilesAccepted?: (files: File[]) => void;
42
+ onFilesRejected?: (rejections: FileRejection[]) => void;
43
+ }
44
+ declare function FileDropzone({ accept, multiple, maxFiles, maxSize, disabled, id, name, required, label, hint, error, className, onFilesAccepted, onFilesRejected, }: FileDropzoneProps): React.JSX.Element;
45
+
46
+ type FileUploadProgressStatus = "idle" | "uploading" | "success" | "error";
47
+ interface FileUploadProgressProps {
48
+ value?: number | null;
49
+ label?: string;
50
+ status?: FileUploadProgressStatus;
51
+ showValue?: boolean;
52
+ className?: string;
53
+ }
54
+ declare function FileUploadProgress({ value, label, status, showValue, className, }: FileUploadProgressProps): React.JSX.Element;
55
+
56
+ type FileUploadItemStatus = FileUploadProgressStatus | "pending";
57
+ interface FileUploadItem {
58
+ id?: string;
59
+ file: File;
60
+ progress?: number | null;
61
+ status?: FileUploadItemStatus;
62
+ error?: string;
63
+ }
64
+ interface FileListProps {
65
+ files: FileUploadItem[];
66
+ accessibleName?: string;
67
+ onRemove?: (item: FileUploadItem, index: number) => void;
68
+ onRetry?: (item: FileUploadItem, index: number) => void;
69
+ className?: string;
70
+ }
71
+ declare function FileList$1({ files, accessibleName, onRemove, onRetry, className }: FileListProps): React.JSX.Element;
72
+
73
+ type FileViewerSource = string | Blob | {
74
+ url?: string;
75
+ blob?: Blob;
76
+ contentType?: string;
77
+ fileName?: string;
78
+ };
79
+ interface FileViewerProps {
80
+ source?: FileViewerSource;
81
+ fileName?: string;
82
+ contentType?: string;
83
+ loading?: boolean;
84
+ error?: ReactNode;
85
+ onLoad?: () => void;
86
+ onError?: (error: Error) => void;
87
+ onDownload?: () => void;
88
+ fallback?: ReactNode;
89
+ title?: string;
90
+ className?: string;
91
+ }
92
+ declare function FileViewer({ source, fileName, contentType, loading, error, onLoad, onError, onDownload, fallback, title, className, }: FileViewerProps): React.JSX.Element;
93
+
94
+ type QRCodeErrorCorrectionLevel = "L" | "M" | "Q" | "H";
95
+ interface QRCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, "color" | "onError"> {
96
+ value: string;
97
+ size?: number;
98
+ level?: QRCodeErrorCorrectionLevel;
99
+ includeMargin?: boolean;
100
+ fgColor?: string;
101
+ bgColor?: string;
102
+ ariaLabel?: string;
103
+ description?: string;
104
+ loading?: boolean;
105
+ error?: ReactNode;
106
+ onError?: (error: Error) => void;
107
+ }
108
+ declare function QRCode({ value, size, level, includeMargin, fgColor, bgColor, ariaLabel, description, loading, error, onError, className, ...rest }: QRCodeProps): React.JSX.Element;
109
+
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
@@ -1,13 +1,25 @@
1
1
  "use client";
2
2
  import {
3
- BoletoBarCode
4
- } from "./chunk-TESAXMCF.js";
3
+ BoletoBarCode,
4
+ FileDropzone_default,
5
+ FileList_default,
6
+ FileUploadProgress_default,
7
+ FileViewer_default,
8
+ QRCode_default,
9
+ validateFiles
10
+ } from "./chunk-7JI5637G.js";
5
11
  import {
6
12
  DocumentItem
7
13
  } from "./chunk-ATWH3MA6.js";
8
14
  import "./chunk-2NMEKWO5.js";
9
15
  export {
10
16
  BoletoBarCode,
11
- DocumentItem
17
+ DocumentItem,
18
+ FileDropzone_default as FileDropzone,
19
+ FileList_default as FileList,
20
+ FileUploadProgress_default as FileUploadProgress,
21
+ FileViewer_default as FileViewer,
22
+ QRCode_default as QRCode,
23
+ validateFiles
12
24
  };
13
25
  //# sourceMappingURL=documents.js.map
package/dist/forms.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { InputHTMLAttributes, ReactNode, ChangeEvent } from 'react';
2
+ import React__default, { InputHTMLAttributes, ReactNode, ChangeEvent, ClipboardEvent } from 'react';
3
3
  import { IconBaseProps } from 'react-icons';
4
4
  import { CountryListFilter } from './countries.js';
5
5
  export { CountryListMode } from './countries.js';
@@ -124,6 +124,7 @@ type PhoneInputProps = InputPhoneProps;
124
124
 
125
125
  type ViewMode = "days" | "months" | "years";
126
126
  type DatePickerNavigationVariant = "drilldown" | "dropdown";
127
+ type DatePickerSelectionMode = "day" | "month" | "year";
127
128
  interface UnifiedDatePickerProps {
128
129
  value?: Date | string | null;
129
130
  label?: string;
@@ -132,6 +133,7 @@ interface UnifiedDatePickerProps {
132
133
  placeholder?: string;
133
134
  minDate?: Date;
134
135
  maxDate?: Date;
136
+ /** @deprecated Use `disabled`. Kept as a compatibility alias. */
135
137
  isDisabled?: boolean;
136
138
  disabled?: boolean;
137
139
  name?: string;
@@ -140,7 +142,10 @@ interface UnifiedDatePickerProps {
140
142
  helperText?: string | React__default.ReactNode;
141
143
  defaultView?: ViewMode;
142
144
  navigationVariant?: DatePickerNavigationVariant;
145
+ selectionMode?: DatePickerSelectionMode;
143
146
  showAdjacentDays?: boolean;
147
+ /** Accessible name used when no visible label is provided. */
148
+ ariaLabel?: string;
144
149
  className?: string;
145
150
  }
146
151
 
@@ -239,4 +244,26 @@ type RadioCardGroupProps = {
239
244
  };
240
245
  declare function RadioCardGroup({ name, label, options, value, defaultValue, onChange, error, touched, className, optionClassName, columnsClassName, disabled, }: RadioCardGroupProps): React$1.JSX.Element;
241
246
 
242
- export { CountryListFilter, CountrySelect, type CountrySelectOption, type CountrySelectProps, DatePicker, type DatePickerNavigationVariant, type UnifiedDatePickerProps as DatePickerProps, Datepicker, type DatepickerNavigationVariant, type DatepickerProps, Input, InputPhone, type InputPhoneCountryOption, type InputPhoneProps, type InputPhoneValue, type InputProps, InputSelect, type InputSelectOption, type InputSelectProps, InputStandalone, type InputStandaloneProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectViewProps, type PhoneCountryOption, PhoneInput, type PhoneInputProps, type PhoneValue, RadioCardGroup, type RadioCardGroupProps, type RadioCardOption, RadioGroup, type RadioGroupProps, SelectCountry, type SelectCountryOption, type SelectCountryProps, SelectMulti, type SelectMultiOption, type SelectMultiProps, type SelectMultiViewProps, TextArea, type TextAreaProps, buildPhonePayload, parsePhonePayload };
247
+ type OtpCodeInputMask = "numeric" | "alphanumeric" | RegExp | ((value: string) => string);
248
+ interface OtpCodeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "size"> {
249
+ length?: number;
250
+ value?: string;
251
+ values?: string[];
252
+ onChange?: (value: string, values: string[]) => void;
253
+ onComplete?: (value: string) => void;
254
+ onPaste?: (event: ClipboardEvent<HTMLInputElement>) => void;
255
+ autoFocus?: boolean;
256
+ error?: boolean;
257
+ errorText?: string;
258
+ helperText?: string;
259
+ label?: string;
260
+ inputMode?: InputHTMLAttributes<HTMLInputElement>["inputMode"];
261
+ mask?: OtpCodeInputMask;
262
+ }
263
+ interface OtpCodeInputHandle {
264
+ focus: (index?: number) => void;
265
+ clear: () => void;
266
+ }
267
+ declare const OtpCodeInput: React$1.ForwardRefExoticComponent<OtpCodeInputProps & React$1.RefAttributes<OtpCodeInputHandle>>;
268
+
269
+ export { CountryListFilter, CountrySelect, type CountrySelectOption, type CountrySelectProps, DatePicker, type DatePickerNavigationVariant, type UnifiedDatePickerProps as DatePickerProps, type DatePickerSelectionMode, Datepicker, type DatepickerNavigationVariant, type DatepickerProps, Input, InputPhone, type InputPhoneCountryOption, type InputPhoneProps, type InputPhoneValue, type InputProps, InputSelect, type InputSelectOption, type InputSelectProps, InputStandalone, type InputStandaloneProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectViewProps, OtpCodeInput, type OtpCodeInputHandle, type OtpCodeInputMask, type OtpCodeInputProps, type PhoneCountryOption, PhoneInput, type PhoneInputProps, type PhoneValue, RadioCardGroup, type RadioCardGroupProps, type RadioCardOption, RadioGroup, type RadioGroupProps, SelectCountry, type SelectCountryOption, type SelectCountryProps, SelectMulti, type SelectMultiOption, type SelectMultiProps, type SelectMultiViewProps, TextArea, type TextAreaProps, buildPhonePayload, parsePhonePayload };
package/dist/forms.js CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  InputStandalone,
8
8
  Input_default,
9
9
  MultiSelect,
10
+ OtpCodeInput_default,
10
11
  PhoneInput,
11
12
  RadioCardGroup,
12
13
  RadioGroup,
@@ -16,8 +17,8 @@ import {
16
17
  buildPhonePayload,
17
18
  datePicker_default,
18
19
  parsePhonePayload
19
- } from "./chunk-5VJ6H62W.js";
20
- import "./chunk-CSQXTG32.js";
20
+ } from "./chunk-OQECJKGA.js";
21
+ import "./chunk-FTRF27XF.js";
21
22
  import "./chunk-YCW3REQK.js";
22
23
  import "./chunk-2NMEKWO5.js";
23
24
  export {
@@ -29,6 +30,7 @@ export {
29
30
  InputSelect_default as InputSelect,
30
31
  InputStandalone,
31
32
  MultiSelect,
33
+ OtpCodeInput_default as OtpCodeInput,
32
34
  PhoneInput,
33
35
  RadioCardGroup,
34
36
  RadioGroup,
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { Avatar, AvatarProps, BoxProps, Button, ButtonProps, CheckBox, CheckBoxProps, Checkbox, CheckboxProps, CircularLoading, CircularLoadingProps, 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, findFirstInvalidField, getStatusBadgeClassName } from './core.js';
2
- export { AccessibilityColorScheme, AccessibilityFontScale, AccessibilityHighContrastTheme, AccessibilityPreferences, AccessibilityPreferencesPanel, AccessibilityPreferencesPanelProps, DEFAULT_ACCESSIBILITY_PREFERENCES, HighContrastToggle, HighContrastToggleProps, InputSwitch, InputSwitchProps, Modal, ModalProps } from './overlays.js';
3
- export { CountrySelect, CountrySelectOption, CountrySelectProps, DatePicker, DatePickerNavigationVariant, DatePickerProps, Datepicker, DatepickerNavigationVariant, DatepickerProps, Input, InputPhone, InputPhoneCountryOption, InputPhoneProps, InputPhoneValue, InputProps, InputSelect, InputSelectOption, InputSelectProps, InputStandalone, InputStandaloneProps, MultiSelect, MultiSelectOption, MultiSelectProps, MultiSelectViewProps, 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 } from './documents.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
+ 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, 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,11 +48,21 @@ import {
48
48
  Typography,
49
49
  findFirstInvalidField,
50
50
  getStatusBadgeClassName,
51
- typography_default
52
- } from "./chunk-L5UMGEXV.js";
51
+ normalizeStatus,
52
+ resolveContainerBreakpoint,
53
+ resolveStatusAppearance,
54
+ typography_default,
55
+ useContainerBreakpoint
56
+ } from "./chunk-EPV6UNUQ.js";
53
57
  import {
54
- BoletoBarCode
55
- } from "./chunk-TESAXMCF.js";
58
+ BoletoBarCode,
59
+ FileDropzone_default,
60
+ FileList_default,
61
+ FileUploadProgress_default,
62
+ FileViewer_default,
63
+ QRCode_default,
64
+ validateFiles
65
+ } from "./chunk-7JI5637G.js";
56
66
  import {
57
67
  DocumentItem
58
68
  } from "./chunk-ATWH3MA6.js";
@@ -64,6 +74,7 @@ import {
64
74
  InputStandalone,
65
75
  Input_default,
66
76
  MultiSelect,
77
+ OtpCodeInput_default,
67
78
  PhoneInput,
68
79
  RadioCardGroup,
69
80
  RadioGroup,
@@ -73,18 +84,25 @@ import {
73
84
  buildPhonePayload,
74
85
  datePicker_default,
75
86
  parsePhonePayload
76
- } from "./chunk-5VJ6H62W.js";
87
+ } from "./chunk-OQECJKGA.js";
77
88
  import {
78
- Tooltip_default
79
- } from "./chunk-CSQXTG32.js";
89
+ Tooltip_default,
90
+ breakpoints,
91
+ getBreakpoint,
92
+ useBreakpoint
93
+ } from "./chunk-FTRF27XF.js";
80
94
  import "./chunk-YCW3REQK.js";
81
95
  import {
82
96
  AccessibilityPreferencesPanel,
97
+ ContrastPreference,
83
98
  DEFAULT_ACCESSIBILITY_PREFERENCES,
99
+ FontSizePreference,
84
100
  HighContrastToggle,
85
101
  InputSwitch_default,
86
- Modal_default
87
- } from "./chunk-JSPXVXUY.js";
102
+ Modal_default,
103
+ ReadingPreferences,
104
+ ThemePreference
105
+ } from "./chunk-DO5C67KS.js";
88
106
  import "./chunk-2NMEKWO5.js";
89
107
  export {
90
108
  AccessibilityPreferencesPanel,
@@ -94,6 +112,7 @@ export {
94
112
  CheckBox,
95
113
  Checkbox,
96
114
  CircularLoading,
115
+ ContrastPreference,
97
116
  CountrySelect,
98
117
  DEFAULT_ACCESSIBILITY_PREFERENCES,
99
118
  datePicker_default as DatePicker,
@@ -101,8 +120,13 @@ export {
101
120
  Divider_default as Divider,
102
121
  DocumentItem,
103
122
  DomainStatusBadge,
123
+ FileDropzone_default as FileDropzone,
124
+ FileList_default as FileList,
125
+ FileUploadProgress_default as FileUploadProgress,
126
+ FileViewer_default as FileViewer,
104
127
  FilterBar,
105
128
  FocusNavigationMode,
129
+ FontSizePreference,
106
130
  FormActions,
107
131
  FormErrorNavigation,
108
132
  FormGrid,
@@ -124,14 +148,17 @@ export {
124
148
  ModalCardView_default as ModalCard,
125
149
  MultiSelect,
126
150
  NoticeView_default as Notice,
151
+ OtpCodeInput_default as OtpCodeInput,
127
152
  PageHeading,
128
153
  PageState,
129
154
  PageTabsHeader,
130
155
  PaginationView_default as Pagination,
131
156
  PhoneInput,
132
157
  IconProvider as PortalIconProvider,
158
+ QRCode_default as QRCode,
133
159
  RadioCardGroup,
134
160
  RadioGroup,
161
+ ReadingPreferences,
135
162
  SelectCountry_default as SelectCountry,
136
163
  SelectMulti_default as SelectMulti,
137
164
  SkipLink,
@@ -141,23 +168,32 @@ export {
141
168
  Table_default as Table,
142
169
  TextArea_default as TextArea,
143
170
  TextGroup,
171
+ ThemePreference,
144
172
  ThemedImage,
145
173
  TimeRangeSelector,
146
174
  TimeSeriesChart,
147
175
  Tooltip_default as Tooltip,
148
176
  typography_default as Typography,
149
177
  Typography as TypographyComponent,
178
+ breakpoints,
150
179
  buildPhonePayload,
151
180
  buildTimeSeriesTooltip,
152
181
  escapeDonutTooltipText,
153
182
  escapeTimeSeriesTooltipText,
154
183
  findFirstInvalidField,
184
+ getBreakpoint,
155
185
  getChartSeriesRecord,
156
186
  getChartTheme,
157
187
  getStatusBadgeClassName,
188
+ normalizeStatus,
158
189
  normalizeTimeSeriesTooltipColor,
159
190
  parsePhonePayload,
191
+ resolveContainerBreakpoint,
160
192
  resolveInteractiveDonutColors,
161
- resolveRelativeDonutSelection
193
+ resolveRelativeDonutSelection,
194
+ resolveStatusAppearance,
195
+ useBreakpoint,
196
+ useContainerBreakpoint,
197
+ validateFiles
162
198
  };
163
199
  //# sourceMappingURL=index.js.map
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aspprev/versi-ds",
3
- "version": "0.1.1",
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-5VJ6H62W.js",
9
+ "chunk-7JI5637G.js",
10
10
  "chunk-ATWH3MA6.js",
11
- "chunk-CSQXTG32.js",
12
- "chunk-JSPXVXUY.js",
13
- "chunk-L5UMGEXV.js",
14
- "chunk-TESAXMCF.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",
@@ -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
- } from "./chunk-JSPXVXUY.js";
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