react-asc 25.14.0 → 25.15.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.
Files changed (38) hide show
  1. package/index.d.ts +37 -35
  2. package/index.es.js +88 -95
  3. package/index.js +87 -94
  4. package/lib/components/Alert/Alert.d.ts +3 -3
  5. package/lib/components/AppBar/AppBar.d.ts +3 -3
  6. package/lib/components/Badge/Badge.d.ts +2 -2
  7. package/lib/components/Button/Button.d.ts +2 -2
  8. package/lib/components/Button/ButtonContext.d.ts +2 -2
  9. package/lib/components/ButtonGroup/ButtonGroup.d.ts +2 -2
  10. package/lib/components/Chip/Chip.d.ts +2 -2
  11. package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  12. package/lib/components/Grid/Column/Column.d.ts +2 -5
  13. package/lib/components/Grid/Column/column.types.d.ts +1 -0
  14. package/lib/components/Grid/Column/index.d.ts +1 -0
  15. package/lib/components/Icon/Icon.d.ts +2 -2
  16. package/lib/components/IconButton/IconButton.d.ts +2 -2
  17. package/lib/components/List/ListItem.d.ts +2 -2
  18. package/lib/components/Modal/GlobalModal.d.ts +2 -2
  19. package/lib/components/Modal/Modal.d.ts +1 -1
  20. package/lib/components/Modal/modal.interfaces.d.ts +2 -2
  21. package/lib/components/Modal/modal.service.d.ts +2 -2
  22. package/lib/components/ProgressBar/ProgressBar.d.ts +2 -2
  23. package/lib/components/Snackbar/Snackbar.d.ts +2 -2
  24. package/lib/components/Snackbar/snackbar.service.d.ts +2 -2
  25. package/lib/components/SpeedDial/SpeedDialAction.d.ts +2 -2
  26. package/lib/components/Stepper/Dot/Dot.d.ts +2 -2
  27. package/lib/components/Tabs/TabIndicator.d.ts +2 -2
  28. package/lib/components/Tabs/Tabs.d.ts +3 -3
  29. package/lib/components/index.d.ts +1 -2
  30. package/lib/enums/color.enum.d.ts +9 -0
  31. package/lib/enums/index.d.ts +5 -0
  32. package/lib/enums/position.enum.d.ts +4 -0
  33. package/lib/enums/size.enum.d.ts +5 -0
  34. package/lib/enums/status.enum.d.ts +4 -0
  35. package/lib/enums/variant.enum.d.ts +5 -0
  36. package/lib/index.d.ts +1 -0
  37. package/package.json +1 -1
  38. package/lib/components/component.enums.d.ts +0 -27
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import React$1, { ReactNode, Component, ComponentProps, ReactElement } from 'rea
3
3
  import { UnparseObject, ParseResult } from 'papaparse';
4
4
  import { ConfigType, OpUnitType, ManipulateType } from 'dayjs';
5
5
 
6
- declare enum COLOR {
6
+ declare enum Color {
7
7
  primary = "primary",
8
8
  accent = "accent",
9
9
  secondary = "secondary",
@@ -12,30 +12,34 @@ declare enum COLOR {
12
12
  light = "light",
13
13
  dark = "dark"
14
14
  }
15
- declare enum VARIANT {
16
- contained = "contained",
17
- outline = "outline",
18
- text = "text"
15
+
16
+ declare enum POSITION {
17
+ right = "right",
18
+ left = "left"
19
19
  }
20
+
20
21
  declare enum SIZE {
21
22
  sm = "sm",
22
23
  md = "md",
23
24
  lg = "lg"
24
25
  }
25
- declare enum POSITION {
26
- right = "right",
27
- left = "left"
28
- }
26
+
29
27
  declare enum STATUS {
30
28
  HOVERED = "hovered",
31
29
  NORMAL = "normal"
32
30
  }
33
31
 
32
+ declare enum VARIANT {
33
+ contained = "contained",
34
+ outline = "outline",
35
+ text = "text"
36
+ }
37
+
34
38
  interface IAlertProps extends React$1.ComponentProps<'div'> {
35
39
  children?: ReactNode;
36
40
  className?: string;
37
41
  variant?: VARIANT;
38
- color?: COLOR;
42
+ color?: Color;
39
43
  shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
40
44
  }
41
45
  declare const Alert: (props: IAlertProps) => JSX.Element;
@@ -43,7 +47,7 @@ declare const Alert: (props: IAlertProps) => JSX.Element;
43
47
  interface IAppBarProps extends React$1.ComponentProps<'nav'> {
44
48
  children?: ReactNode;
45
49
  className?: string;
46
- color?: COLOR;
50
+ color?: Color;
47
51
  shadow?: boolean | SIZE.sm | SIZE.md | SIZE.lg;
48
52
  }
49
53
  declare const AppBar: (props: IAppBarProps) => JSX.Element;
@@ -95,7 +99,7 @@ interface IBackdropProps extends React$1.ComponentProps<'div'> {
95
99
  declare const Backdrop: (props: IBackdropProps) => JSX.Element;
96
100
 
97
101
  interface IBadgeProps {
98
- color?: COLOR;
102
+ color?: Color;
99
103
  content?: React$1.ReactNode;
100
104
  className?: string;
101
105
  children?: React$1.ReactNode;
@@ -114,7 +118,7 @@ interface IBreadcrumbItemProps extends React$1.ComponentProps<'li'> {
114
118
  declare const BreadcrumbItem: (props: IBreadcrumbItemProps) => JSX.Element;
115
119
 
116
120
  interface IButtonProps extends React$1.ComponentProps<'button'> {
117
- color?: COLOR;
121
+ color?: Color;
118
122
  isActive?: boolean;
119
123
  isRounded?: boolean;
120
124
  variant?: VARIANT;
@@ -127,13 +131,13 @@ interface IButtonProps extends React$1.ComponentProps<'button'> {
127
131
  declare const Button: React$1.FunctionComponent<IButtonProps>;
128
132
 
129
133
  interface IButtonContext {
130
- color: COLOR | null;
134
+ color: Color | null;
131
135
  }
132
136
  declare const ButtonContext: React.Context<IButtonContext>;
133
137
  declare const useButtonContext: () => IButtonContext;
134
138
 
135
139
  interface IButtonGroupProps extends React$1.ComponentProps<'div'> {
136
- color?: COLOR;
140
+ color?: Color;
137
141
  }
138
142
  declare const ButtonGroup: (props: IButtonGroupProps) => JSX.Element;
139
143
 
@@ -165,7 +169,7 @@ interface ICheckboxProps extends React$1.ComponentProps<'input'> {
165
169
  declare const Checkbox: (props: ICheckboxProps) => JSX.Element;
166
170
 
167
171
  interface IChipProps extends React$1.ComponentProps<'div'> {
168
- color?: COLOR;
172
+ color?: Color;
169
173
  shadow?: boolean;
170
174
  onClick?: (e: React$1.MouseEvent<Element>) => void;
171
175
  isDeletable?: boolean;
@@ -285,7 +289,7 @@ declare const FileInput: (props: IFileInputProps) => JSX.Element;
285
289
 
286
290
  interface IFloatingActionButtonProps extends React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
287
291
  icon?: React$1.ReactNode;
288
- color?: COLOR;
292
+ color?: Color;
289
293
  size?: SIZE;
290
294
  fixed?: boolean;
291
295
  isActive?: boolean;
@@ -439,12 +443,10 @@ declare const MaxValidator: (val: string | undefined, valueB: number) => boolean
439
443
 
440
444
  declare const MinValidator: (val: string | undefined, minLength: number) => boolean;
441
445
 
446
+ type ColumnSize = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100;
447
+
442
448
  interface IColProps extends React$1.ComponentProps<'div'> {
443
- xs?: number;
444
- sm?: number;
445
- md?: number;
446
- lg?: number;
447
- xl?: number;
449
+ size?: ColumnSize;
448
450
  }
449
451
  declare const Column: (props: IColProps) => JSX.Element;
450
452
 
@@ -454,14 +456,14 @@ interface IContainerProps extends React$1.ComponentProps<'div'> {
454
456
  declare const Row: ({ children, direction, className, ...rest }: IContainerProps) => JSX.Element;
455
457
 
456
458
  interface IIconProps extends ComponentProps<'div'> {
457
- iconColor?: COLOR;
459
+ iconColor?: Color;
458
460
  children?: React$1.ReactNode;
459
461
  }
460
462
  declare const Icon: (props: IIconProps) => JSX.Element;
461
463
 
462
464
  interface IIconButtonProps extends React$1.ComponentProps<'button'> {
463
465
  icon?: React$1.ReactNode;
464
- color?: COLOR;
466
+ color?: Color;
465
467
  size?: SIZE;
466
468
  isActive?: boolean;
467
469
  variant?: VARIANT;
@@ -478,7 +480,7 @@ interface IListProps extends React$1.ComponentProps<'ul'> {
478
480
  declare const List: (props: IListProps) => JSX.Element;
479
481
 
480
482
  interface IListItemProps extends React$1.ComponentProps<'li'> {
481
- color?: COLOR;
483
+ color?: Color;
482
484
  active?: boolean;
483
485
  isHoverable?: boolean;
484
486
  disabled?: boolean;
@@ -606,7 +608,7 @@ declare enum MODALBUTTONTYPE {
606
608
  interface IModalButton {
607
609
  label: string;
608
610
  variant?: VARIANT;
609
- color?: COLOR;
611
+ color?: Color;
610
612
  handler?: () => void;
611
613
  autoFocus?: boolean;
612
614
  type?: MODALBUTTONTYPE;
@@ -646,7 +648,7 @@ interface IModalProps {
646
648
  fullScreen?: boolean;
647
649
  size?: SIZE;
648
650
  }
649
- declare const GlobalModal: ({ title, description, formControls, onOk, onChange, onCancel, onBackdropClick, isDismissable, buttons, size, fullScreen }: IModalProps) => JSX.Element;
651
+ declare const GlobalModal: ({ title, description, formControls, onOk, onChange, onCancel, onBackdropClick, isDismissable, buttons, size, fullScreen, }: IModalProps) => JSX.Element;
650
652
 
651
653
  interface INumberSelectProps {
652
654
  value?: number;
@@ -669,7 +671,7 @@ declare const Portal: ({ children, target, className }: IPortalProps) => JSX.Ele
669
671
 
670
672
  interface IProgressBarProps extends React$1.ComponentProps<'div'> {
671
673
  className?: string;
672
- color?: COLOR;
674
+ color?: Color;
673
675
  value?: number;
674
676
  indeterminate?: boolean;
675
677
  }
@@ -728,7 +730,7 @@ interface ISkeletonImageProps extends React$1.ComponentProps<'div'> {
728
730
  declare const SkeletonImage: (props: ISkeletonImageProps) => JSX.Element;
729
731
 
730
732
  interface ISnackbarProps extends ComponentProps<'div'> {
731
- color?: COLOR;
733
+ color?: Color;
732
734
  actionText?: string;
733
735
  onOk?: (e: React$1.MouseEvent) => void;
734
736
  }
@@ -740,7 +742,7 @@ interface ISnackbarService {
740
742
  interface ISnackbarOptions {
741
743
  actionText?: string;
742
744
  timeout?: number;
743
- color?: COLOR;
745
+ color?: Color;
744
746
  target?: HTMLElement;
745
747
  }
746
748
  declare class SnackbarService implements ISnackbarService {
@@ -762,7 +764,7 @@ declare const SpeedDial: (props: ISpeedDialProps) => JSX.Element;
762
764
  interface ISpeedDialActionProps extends React$1.DetailedHTMLProps<React$1.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
763
765
  icon: React$1.ReactNode;
764
766
  tooltipTitle?: string;
765
- color?: COLOR;
767
+ color?: Color;
766
768
  onClick?: (e: React$1.MouseEvent) => void;
767
769
  }
768
770
  declare const SpeedDialAction: (props: ISpeedDialActionProps) => JSX.Element;
@@ -825,7 +827,7 @@ interface IStepperActionsProps {
825
827
  declare const StepperActions: (props: IStepperActionsProps) => JSX.Element;
826
828
 
827
829
  interface IDot extends React$1.ComponentProps<'div'> {
828
- color?: COLOR;
830
+ color?: Color;
829
831
  isActive?: boolean;
830
832
  }
831
833
  declare const Dot: (props: IDot) => JSX.Element;
@@ -862,8 +864,8 @@ interface ITabProps {
862
864
  declare const Tab: (props: ITabProps) => JSX.Element;
863
865
 
864
866
  interface ITabsProps {
865
- color?: COLOR;
866
- indicatorColor?: COLOR;
867
+ color?: Color;
868
+ indicatorColor?: Color;
867
869
  children?: ReactElement<ITabProps> | ReactElement<ITabProps>[];
868
870
  className?: string;
869
871
  fixed?: boolean;
@@ -1125,4 +1127,4 @@ declare global {
1125
1127
  }
1126
1128
  }
1127
1129
 
1128
- export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonContext, ButtonGroup, COLOR, Card, CardBody, CardFooter, CardImage, CardSubtitle, CardText, CardTitle, CaretDownSolidIcon, CheckSolidIcon, CheckSquareRegularIcon, Checkbox, ChevronDownSolidIcon, ChevronLeftSolidIcon, ChevronRightSolidIcon, ChevronUpSolidIcon, Chip, CircleSolidIcon, Column, ConditionalWrapper, CssTransition, DATEMODE, DatePicker, DateSelect, DaySelect, Dot, Drawer, EmailValidator, ExpansionPanel, ExpansionPanelContent, ExpansionPanelHeader, FileInput, FileService, FloatingActionButton, Form, FormControl, FormError, FormGroup, FormHint, FormInput, FormLabel, GlobalModal, HomeSolidIcon, HourSelect, type HtmlBaseProps, type HtmlInputProps, type IAlertProps, type IAppBarProps, type IAppBarTitleProps, type IAutoCompleteProps, type IBackdropProps, type IBadgeProps, type IBreadcrumbItemProps, type IBreadcrumbProps, type IButtonContext, type IButtonGroupProps, type IButtonProps, type ICheckboxProps, type IChipProps, type IContainerProps, type IControls, type IDatePickerProps, type IDateSelectProps, type IDaySelectProps, type IDictionary, type IDot, type IDrawerProps, type IExpansionPanelContentProps, type IExpansionPanelHeaderProps, type IExpansionPanelProps, type IFileInputProps, type IFileUnparseConfig, type IFloatingActionButtonProps, type IFormAutoCompleteOptions, type IFormControlConfig, type IFormControlType, type IFormInputError, type IFormInputEvent, type IFormInputOptions, type IFormInputProps, type IFormProps, type IFormSelectOptions, type IFormState, type IFormTextAreaOptions, type IFormValidatorType, type IHourProps, type IIconButtonProps, type IIconProps, type IListItemProps, type IListProps, type ILoadingIndicatorContainerProps, type ILoadingIndicatorService, type ILoggerService, type IMenuBodyProps, type IMenuProps, type IMilliSecondProps, type IMinuteProps, type IModalButton, type IModalOptions, type IModalProps$1 as IModalProps, type IModalService, type IMonthProps, type INumberSelectProps, type IPortalProps, type IProgressBarProps, type ISecondProps, type ISelectOption, type ISelectProps, type ISidebarItem, type ISkeletonAvatarProps, type ISkeletonFooterProps, type ISkeletonImageProps, type ISkeletonTextProps, type ISnackbarOptions, type ISnackbarProps, type ISnackbarService, type ISpeedDialActionProps, type ISpeedDialIconProps, type ISpeedDialProps, type IStepProps, type IStepperActionsProps, type IStepperProps, type ITabPanelProps, type ITabProps, type ITableCellProps, type ITableProps, type ITabsProps, type ITextareaProps, type ITimeSelectProps, type ITooltipProps, type ITreeItemProps, type ITypographyProps, type IUseWindowSize, type IWrapperProps, type IYearProps, Icon, IconButton, IsEmptyValidator, IsEqualValidator, Link, List, ListItem, ListItemAction, ListItemAvatar, ListItemAvatarSize, ListItemIcon, ListItemText, LoadingIndicator, LoadingIndicatorContainer, LogType, MODALBUTTONTYPE, MODALTYPE, MaxValidator, Menu, MenuBody, MenuDivider, MenuItem, type MenuPosition, MenuToggle, MilliSecondSelect, MinValidator, MinuteSelect, Modal, ModalBody, ModalFooter, ModalHeader, MonthSelect, type Nullable, NumberSelect, POSITION, PlusSolidIcon, Portal, ProgressBar, Row, SIZE, STATUS, SecondSelect, Select, Sidebar, SkeletonAvatar, SkeletonFooter, SkeletonImage, SkeletonText, Snackbar, SpeedDial, SpeedDialAction, SpeedDialIcon, SpinnerSolidIcon, SquareRegularIcon, Step, Stepper, StepperActions, TIMEMODE, Tab, TabPanel, Table, TableBody, TableCell, TableHead, TableRow, Tabs, Textarea, TimeSelect, TimesCircleSolidIcon, TimesSolidIcon, Tooltip, TooltipPlacement, TreeItem, TreeView, Typography, VARIANT, YearSelect, clipboardService, fileService, loadingIndicatorService, localService, loggerService, modalService, snackbarService, useButtonContext, useConstructor, useCssClasses, useDebounce, useHover, useMobileDetect, useOnDestroy, usePrevious, useWindowSize };
1130
+ export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonContext, ButtonGroup, Card, CardBody, CardFooter, CardImage, CardSubtitle, CardText, CardTitle, CaretDownSolidIcon, CheckSolidIcon, CheckSquareRegularIcon, Checkbox, ChevronDownSolidIcon, ChevronLeftSolidIcon, ChevronRightSolidIcon, ChevronUpSolidIcon, Chip, CircleSolidIcon, Color, Column, type ColumnSize, ConditionalWrapper, CssTransition, DATEMODE, DatePicker, DateSelect, DaySelect, Dot, Drawer, EmailValidator, ExpansionPanel, ExpansionPanelContent, ExpansionPanelHeader, FileInput, FileService, FloatingActionButton, Form, FormControl, FormError, FormGroup, FormHint, FormInput, FormLabel, GlobalModal, HomeSolidIcon, HourSelect, type HtmlBaseProps, type HtmlInputProps, type IAlertProps, type IAppBarProps, type IAppBarTitleProps, type IAutoCompleteProps, type IBackdropProps, type IBadgeProps, type IBreadcrumbItemProps, type IBreadcrumbProps, type IButtonContext, type IButtonGroupProps, type IButtonProps, type ICheckboxProps, type IChipProps, type IContainerProps, type IControls, type IDatePickerProps, type IDateSelectProps, type IDaySelectProps, type IDictionary, type IDot, type IDrawerProps, type IExpansionPanelContentProps, type IExpansionPanelHeaderProps, type IExpansionPanelProps, type IFileInputProps, type IFileUnparseConfig, type IFloatingActionButtonProps, type IFormAutoCompleteOptions, type IFormControlConfig, type IFormControlType, type IFormInputError, type IFormInputEvent, type IFormInputOptions, type IFormInputProps, type IFormProps, type IFormSelectOptions, type IFormState, type IFormTextAreaOptions, type IFormValidatorType, type IHourProps, type IIconButtonProps, type IIconProps, type IListItemProps, type IListProps, type ILoadingIndicatorContainerProps, type ILoadingIndicatorService, type ILoggerService, type IMenuBodyProps, type IMenuProps, type IMilliSecondProps, type IMinuteProps, type IModalButton, type IModalOptions, type IModalProps$1 as IModalProps, type IModalService, type IMonthProps, type INumberSelectProps, type IPortalProps, type IProgressBarProps, type ISecondProps, type ISelectOption, type ISelectProps, type ISidebarItem, type ISkeletonAvatarProps, type ISkeletonFooterProps, type ISkeletonImageProps, type ISkeletonTextProps, type ISnackbarOptions, type ISnackbarProps, type ISnackbarService, type ISpeedDialActionProps, type ISpeedDialIconProps, type ISpeedDialProps, type IStepProps, type IStepperActionsProps, type IStepperProps, type ITabPanelProps, type ITabProps, type ITableCellProps, type ITableProps, type ITabsProps, type ITextareaProps, type ITimeSelectProps, type ITooltipProps, type ITreeItemProps, type ITypographyProps, type IUseWindowSize, type IWrapperProps, type IYearProps, Icon, IconButton, IsEmptyValidator, IsEqualValidator, Link, List, ListItem, ListItemAction, ListItemAvatar, ListItemAvatarSize, ListItemIcon, ListItemText, LoadingIndicator, LoadingIndicatorContainer, LogType, MODALBUTTONTYPE, MODALTYPE, MaxValidator, Menu, MenuBody, MenuDivider, MenuItem, type MenuPosition, MenuToggle, MilliSecondSelect, MinValidator, MinuteSelect, Modal, ModalBody, ModalFooter, ModalHeader, MonthSelect, type Nullable, NumberSelect, POSITION, PlusSolidIcon, Portal, ProgressBar, Row, SIZE, STATUS, SecondSelect, Select, Sidebar, SkeletonAvatar, SkeletonFooter, SkeletonImage, SkeletonText, Snackbar, SpeedDial, SpeedDialAction, SpeedDialIcon, SpinnerSolidIcon, SquareRegularIcon, Step, Stepper, StepperActions, TIMEMODE, Tab, TabPanel, Table, TableBody, TableCell, TableHead, TableRow, Tabs, Textarea, TimeSelect, TimesCircleSolidIcon, TimesSolidIcon, Tooltip, TooltipPlacement, TreeItem, TreeView, Typography, VARIANT, YearSelect, clipboardService, fileService, loadingIndicatorService, localService, loggerService, modalService, snackbarService, useButtonContext, useConstructor, useCssClasses, useDebounce, useHover, useMobileDetect, useOnDestroy, usePrevious, useWindowSize };