@aspprev/versi-ds 0.1.1 → 0.2.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.js CHANGED
@@ -34,14 +34,17 @@ import {
34
34
  Typography,
35
35
  findFirstInvalidField,
36
36
  getStatusBadgeClassName,
37
- typography_default
38
- } from "./chunk-L5UMGEXV.js";
37
+ typography_default,
38
+ useContainerBreakpoint
39
+ } from "./chunk-PIXRKI25.js";
39
40
  import {
40
41
  DocumentItem
41
42
  } from "./chunk-ATWH3MA6.js";
42
43
  import {
43
- Tooltip_default
44
- } from "./chunk-CSQXTG32.js";
44
+ Tooltip_default,
45
+ breakpoints,
46
+ useBreakpoint
47
+ } from "./chunk-ET2BGHTO.js";
45
48
  import "./chunk-2NMEKWO5.js";
46
49
  export {
47
50
  Avatar_default as Avatar,
@@ -80,7 +83,10 @@ export {
80
83
  Tooltip_default as Tooltip,
81
84
  typography_default as Typography,
82
85
  Typography as TypographyComponent,
86
+ breakpoints,
83
87
  findFirstInvalidField,
84
- getStatusBadgeClassName
88
+ getStatusBadgeClassName,
89
+ useBreakpoint,
90
+ useContainerBreakpoint
85
91
  };
86
92
  //# 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,83 @@ interface BoletoBarCodeProps {
6
7
  }
7
8
  declare function BoletoBarCode({ linhaDigitavel }: BoletoBarCodeProps): React.JSX.Element;
8
9
 
9
- export { BoletoBarCode, type BoletoBarCodeProps };
10
+ interface FileRejection {
11
+ file: File;
12
+ reason: "type" | "size" | "count";
13
+ message: string;
14
+ }
15
+ interface FileDropzoneProps {
16
+ accept?: string;
17
+ multiple?: boolean;
18
+ maxFiles?: number;
19
+ maxSize?: number;
20
+ disabled?: boolean;
21
+ label?: ReactNode;
22
+ hint?: ReactNode;
23
+ error?: ReactNode;
24
+ className?: string;
25
+ onFilesAccepted?: (files: File[]) => void;
26
+ onFilesRejected?: (rejections: FileRejection[]) => void;
27
+ }
28
+ declare function FileDropzone({ accept, multiple, maxFiles, maxSize, disabled, label, hint, error, className, onFilesAccepted, onFilesRejected, }: FileDropzoneProps): React.JSX.Element;
29
+
30
+ type FileUploadProgressStatus = "idle" | "uploading" | "success" | "error";
31
+ interface FileUploadProgressProps {
32
+ value?: number | null;
33
+ label?: string;
34
+ status?: FileUploadProgressStatus;
35
+ showValue?: boolean;
36
+ className?: string;
37
+ }
38
+ declare function FileUploadProgress({ value, label, status, showValue, className, }: FileUploadProgressProps): React.JSX.Element;
39
+
40
+ type FileUploadItemStatus = FileUploadProgressStatus | "pending";
41
+ interface FileUploadItem {
42
+ id?: string;
43
+ file: File;
44
+ progress?: number | null;
45
+ status?: FileUploadItemStatus;
46
+ error?: string;
47
+ }
48
+ interface FileListProps {
49
+ files: FileUploadItem[];
50
+ accessibleName?: string;
51
+ onRemove?: (item: FileUploadItem, index: number) => void;
52
+ onRetry?: (item: FileUploadItem, index: number) => void;
53
+ className?: string;
54
+ }
55
+ declare function FileList({ files, accessibleName, onRemove, onRetry, className }: FileListProps): React.JSX.Element;
56
+
57
+ type FileViewerSource = string | Blob | {
58
+ url?: string;
59
+ blob?: Blob;
60
+ contentType?: string;
61
+ fileName?: string;
62
+ };
63
+ interface FileViewerProps {
64
+ source?: FileViewerSource;
65
+ fileName?: string;
66
+ contentType?: string;
67
+ loading?: boolean;
68
+ error?: ReactNode;
69
+ onDownload?: () => void;
70
+ fallback?: ReactNode;
71
+ title?: string;
72
+ className?: string;
73
+ }
74
+ declare function FileViewer({ source, fileName, contentType, loading, error, onDownload, fallback, title, className }: FileViewerProps): React.JSX.Element;
75
+
76
+ type QRCodeErrorCorrectionLevel = "L" | "M" | "Q" | "H";
77
+ interface QRCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
78
+ value: string;
79
+ size?: number;
80
+ level?: QRCodeErrorCorrectionLevel;
81
+ includeMargin?: boolean;
82
+ fgColor?: string;
83
+ bgColor?: string;
84
+ ariaLabel?: string;
85
+ description?: string;
86
+ }
87
+ declare function QRCode({ value, size, level, includeMargin, fgColor, bgColor, ariaLabel, description, className, ...rest }: QRCodeProps): React.JSX.Element;
88
+
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 };
package/dist/documents.js CHANGED
@@ -1,13 +1,23 @@
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
+ } from "./chunk-H4BBKKRZ.js";
5
10
  import {
6
11
  DocumentItem
7
12
  } from "./chunk-ATWH3MA6.js";
8
13
  import "./chunk-2NMEKWO5.js";
9
14
  export {
10
15
  BoletoBarCode,
11
- DocumentItem
16
+ DocumentItem,
17
+ FileDropzone_default as FileDropzone,
18
+ FileList_default as FileList,
19
+ FileUploadProgress_default as FileUploadProgress,
20
+ FileViewer_default as FileViewer,
21
+ QRCode_default as QRCode
12
22
  };
13
23
  //# 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;
@@ -140,6 +141,7 @@ interface UnifiedDatePickerProps {
140
141
  helperText?: string | React__default.ReactNode;
141
142
  defaultView?: ViewMode;
142
143
  navigationVariant?: DatePickerNavigationVariant;
144
+ selectionMode?: DatePickerSelectionMode;
143
145
  showAdjacentDays?: boolean;
144
146
  className?: string;
145
147
  }
@@ -239,4 +241,26 @@ type RadioCardGroupProps = {
239
241
  };
240
242
  declare function RadioCardGroup({ name, label, options, value, defaultValue, onChange, error, touched, className, optionClassName, columnsClassName, disabled, }: RadioCardGroupProps): React$1.JSX.Element;
241
243
 
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 };
244
+ type OtpCodeInputMask = "numeric" | "alphanumeric" | RegExp | ((value: string) => string);
245
+ interface OtpCodeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "size"> {
246
+ length?: number;
247
+ value?: string;
248
+ values?: string[];
249
+ onChange?: (value: string, values: string[]) => void;
250
+ onComplete?: (value: string) => void;
251
+ onPaste?: (event: ClipboardEvent<HTMLInputElement>) => void;
252
+ autoFocus?: boolean;
253
+ error?: boolean;
254
+ errorText?: string;
255
+ helperText?: string;
256
+ label?: string;
257
+ inputMode?: InputHTMLAttributes<HTMLInputElement>["inputMode"];
258
+ mask?: OtpCodeInputMask;
259
+ }
260
+ interface OtpCodeInputHandle {
261
+ focus: (index?: number) => void;
262
+ clear: () => void;
263
+ }
264
+ declare const OtpCodeInput: React$1.ForwardRefExoticComponent<OtpCodeInputProps & React$1.RefAttributes<OtpCodeInputHandle>>;
265
+
266
+ 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-FR5W52XU.js";
21
+ import "./chunk-ET2BGHTO.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';
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
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';
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';
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,17 @@ import {
48
48
  Typography,
49
49
  findFirstInvalidField,
50
50
  getStatusBadgeClassName,
51
- typography_default
52
- } from "./chunk-L5UMGEXV.js";
51
+ typography_default,
52
+ useContainerBreakpoint
53
+ } from "./chunk-PIXRKI25.js";
53
54
  import {
54
- BoletoBarCode
55
- } from "./chunk-TESAXMCF.js";
55
+ BoletoBarCode,
56
+ FileDropzone_default,
57
+ FileList_default,
58
+ FileUploadProgress_default,
59
+ FileViewer_default,
60
+ QRCode_default
61
+ } from "./chunk-H4BBKKRZ.js";
56
62
  import {
57
63
  DocumentItem
58
64
  } from "./chunk-ATWH3MA6.js";
@@ -64,6 +70,7 @@ import {
64
70
  InputStandalone,
65
71
  Input_default,
66
72
  MultiSelect,
73
+ OtpCodeInput_default,
67
74
  PhoneInput,
68
75
  RadioCardGroup,
69
76
  RadioGroup,
@@ -73,10 +80,12 @@ import {
73
80
  buildPhonePayload,
74
81
  datePicker_default,
75
82
  parsePhonePayload
76
- } from "./chunk-5VJ6H62W.js";
83
+ } from "./chunk-FR5W52XU.js";
77
84
  import {
78
- Tooltip_default
79
- } from "./chunk-CSQXTG32.js";
85
+ Tooltip_default,
86
+ breakpoints,
87
+ useBreakpoint
88
+ } from "./chunk-ET2BGHTO.js";
80
89
  import "./chunk-YCW3REQK.js";
81
90
  import {
82
91
  AccessibilityPreferencesPanel,
@@ -101,6 +110,10 @@ export {
101
110
  Divider_default as Divider,
102
111
  DocumentItem,
103
112
  DomainStatusBadge,
113
+ FileDropzone_default as FileDropzone,
114
+ FileList_default as FileList,
115
+ FileUploadProgress_default as FileUploadProgress,
116
+ FileViewer_default as FileViewer,
104
117
  FilterBar,
105
118
  FocusNavigationMode,
106
119
  FormActions,
@@ -124,12 +137,14 @@ export {
124
137
  ModalCardView_default as ModalCard,
125
138
  MultiSelect,
126
139
  NoticeView_default as Notice,
140
+ OtpCodeInput_default as OtpCodeInput,
127
141
  PageHeading,
128
142
  PageState,
129
143
  PageTabsHeader,
130
144
  PaginationView_default as Pagination,
131
145
  PhoneInput,
132
146
  IconProvider as PortalIconProvider,
147
+ QRCode_default as QRCode,
133
148
  RadioCardGroup,
134
149
  RadioGroup,
135
150
  SelectCountry_default as SelectCountry,
@@ -147,6 +162,7 @@ export {
147
162
  Tooltip_default as Tooltip,
148
163
  typography_default as Typography,
149
164
  Typography as TypographyComponent,
165
+ breakpoints,
150
166
  buildPhonePayload,
151
167
  buildTimeSeriesTooltip,
152
168
  escapeDonutTooltipText,
@@ -158,6 +174,8 @@ export {
158
174
  normalizeTimeSeriesTooltipColor,
159
175
  parsePhonePayload,
160
176
  resolveInteractiveDonutColors,
161
- resolveRelativeDonutSelection
177
+ resolveRelativeDonutSelection,
178
+ useBreakpoint,
179
+ useContainerBreakpoint
162
180
  };
163
181
  //# sourceMappingURL=index.js.map
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aspprev/versi-ds",
3
- "version": "0.1.1",
3
+ "version": "0.2.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",
10
9
  "chunk-ATWH3MA6.js",
11
- "chunk-CSQXTG32.js",
10
+ "chunk-ET2BGHTO.js",
11
+ "chunk-FR5W52XU.js",
12
+ "chunk-H4BBKKRZ.js",
12
13
  "chunk-JSPXVXUY.js",
13
- "chunk-L5UMGEXV.js",
14
- "chunk-TESAXMCF.js",
14
+ "chunk-PIXRKI25.js",
15
15
  "chunk-V66QL3TD.js",
16
16
  "chunk-YCW3REQK.js",
17
17
  "core.d.ts",