react-asc 25.10.0 → 25.10.1
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/index.d.ts +1090 -0
- package/index.es.js +7211 -0
- package/index.js +7346 -0
- package/lib/components/Alert/Alert.d.ts +12 -0
- package/lib/components/Alert/index.d.ts +1 -0
- package/lib/components/AppBar/AppBar.d.ts +11 -0
- package/lib/components/AppBar/AppBarTitle.d.ts +6 -0
- package/lib/components/AppBar/index.d.ts +2 -0
- package/lib/components/AutoComplete/AutoComplete.d.ts +18 -0
- package/lib/components/AutoComplete/index.d.ts +1 -0
- package/lib/components/Backdrop/Backdrop.d.ts +6 -0
- package/lib/components/Backdrop/index.d.ts +1 -0
- package/lib/components/Badge/Badge.d.ts +9 -0
- package/lib/components/Badge/index.d.ts +1 -0
- package/lib/components/Breadcrumb/Breadcrumb.d.ts +6 -0
- package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +6 -0
- package/lib/components/Breadcrumb/index.d.ts +2 -0
- package/lib/components/Button/Button.d.ts +14 -0
- package/lib/components/Button/ButtonContext.d.ts +7 -0
- package/lib/components/Button/index.d.ts +2 -0
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/lib/components/ButtonGroup/index.d.ts +1 -0
- package/lib/components/Card/Card.d.ts +6 -0
- package/lib/components/Card/CardBody.d.ts +2 -0
- package/lib/components/Card/CardFooter.d.ts +2 -0
- package/lib/components/Card/CardImage.d.ts +2 -0
- package/lib/components/Card/CardSubtitle.d.ts +2 -0
- package/lib/components/Card/CardText.d.ts +2 -0
- package/lib/components/Card/CardTitle.d.ts +6 -0
- package/lib/components/Card/index.d.ts +7 -0
- package/lib/components/Checkbox/Checkbox.d.ts +7 -0
- package/lib/components/Checkbox/index.d.ts +1 -0
- package/lib/components/Chip/Chip.d.ts +11 -0
- package/lib/components/Chip/index.d.ts +1 -0
- package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts +8 -0
- package/lib/components/ConditionalWrapper/index.d.ts +1 -0
- package/lib/components/CssTransition/CssTransition.d.ts +8 -0
- package/lib/components/CssTransition/index.d.ts +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +10 -0
- package/lib/components/DatePicker/index.d.ts +1 -0
- package/lib/components/DateSelect/DateSelect.d.ts +17 -0
- package/lib/components/DateSelect/DaySelect.d.ts +12 -0
- package/lib/components/DateSelect/MonthSelect.d.ts +10 -0
- package/lib/components/DateSelect/YearSelect.d.ts +12 -0
- package/lib/components/DateSelect/index.d.ts +4 -0
- package/lib/components/Drawer/Drawer.d.ts +9 -0
- package/lib/components/Drawer/index.d.ts +1 -0
- package/lib/components/ExpansionPanel/ExpansionPanel.d.ts +10 -0
- package/lib/components/ExpansionPanel/ExpansionPanelContent.d.ts +5 -0
- package/lib/components/ExpansionPanel/ExpansionPanelHeader.d.ts +8 -0
- package/lib/components/ExpansionPanel/index.d.ts +3 -0
- package/lib/components/FileInput/FileInput.d.ts +5 -0
- package/lib/components/FileInput/index.d.ts +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +13 -0
- package/lib/components/FloatingActionButton/index.d.ts +1 -0
- package/lib/components/Form/Form.d.ts +40 -0
- package/lib/components/Form/FormError.d.ts +8 -0
- package/lib/components/Form/FormGroup.d.ts +7 -0
- package/lib/components/Form/FormHint/FormHint.d.ts +2 -0
- package/lib/components/Form/FormHint/index.d.ts +1 -0
- package/lib/components/Form/FormInput/FormInput.d.ts +29 -0
- package/lib/components/Form/FormInput/index.d.ts +1 -0
- package/lib/components/Form/FormLabel/FormLabel.d.ts +2 -0
- package/lib/components/Form/FormLabel/index.d.ts +1 -0
- package/lib/components/Form/form.interfaces.d.ts +40 -0
- package/lib/components/Form/form.models.d.ts +12 -0
- package/lib/components/Form/form.types.d.ts +2 -0
- package/lib/components/Form/index.d.ts +10 -0
- package/lib/components/Form/validators/EmailValidtor.d.ts +1 -0
- package/lib/components/Form/validators/IsEmptyValidator.d.ts +1 -0
- package/lib/components/Form/validators/IsEqualValidator.d.ts +1 -0
- package/lib/components/Form/validators/MaxValidator.d.ts +1 -0
- package/lib/components/Form/validators/MinValidator.d.ts +1 -0
- package/lib/components/Form/validators/index.d.ts +5 -0
- package/lib/components/Grid/Column/Column.d.ts +10 -0
- package/lib/components/Grid/Column/index.d.ts +1 -0
- package/lib/components/Grid/Row/Row.d.ts +5 -0
- package/lib/components/Grid/Row/index.d.ts +1 -0
- package/lib/components/Grid/index.d.ts +2 -0
- package/lib/components/Icon/Icon.d.ts +8 -0
- package/lib/components/Icon/index.d.ts +1 -0
- package/lib/components/IconButton/IconButton.d.ts +12 -0
- package/lib/components/IconButton/index.d.ts +1 -0
- package/lib/components/Link/Link.d.ts +2 -0
- package/lib/components/Link/Link.test.d.ts +1 -0
- package/lib/components/Link/index.d.ts +1 -0
- package/lib/components/List/List.d.ts +5 -0
- package/lib/components/List/ListItem.d.ts +9 -0
- package/lib/components/List/ListItemAction.d.ts +2 -0
- package/lib/components/List/ListItemAvatar.d.ts +6 -0
- package/lib/components/List/ListItemIcon.d.ts +6 -0
- package/lib/components/List/ListItemText.d.ts +8 -0
- package/lib/components/List/index.d.ts +6 -0
- package/lib/components/List/list.models.d.ts +8 -0
- package/lib/components/LoadingIndicator/LoadingIndicator.d.ts +2 -0
- package/lib/components/LoadingIndicator/LoadingIndicatorContainer.d.ts +6 -0
- package/lib/components/LoadingIndicator/index.d.ts +3 -0
- package/lib/components/LoadingIndicator/loading-indicator.service.d.ts +12 -0
- package/lib/components/Menu/Menu.d.ts +12 -0
- package/lib/components/Menu/MenuBody.d.ts +13 -0
- package/lib/components/Menu/MenuContext.d.ts +6 -0
- package/lib/components/Menu/MenuDivider.d.ts +2 -0
- package/lib/components/Menu/MenuItem.d.ts +3 -0
- package/lib/components/Menu/MenuToggle.d.ts +6 -0
- package/lib/components/Menu/index.d.ts +6 -0
- package/lib/components/Menu/menu.types.d.ts +1 -0
- package/lib/components/Modal/GlobalModal.d.ts +21 -0
- package/lib/components/Modal/Modal.d.ts +15 -0
- package/lib/components/Modal/ModalBody.d.ts +6 -0
- package/lib/components/Modal/ModalFooter.d.ts +6 -0
- package/lib/components/Modal/ModalHeader.d.ts +8 -0
- package/lib/components/Modal/index.d.ts +8 -0
- package/lib/components/Modal/modal.enum.d.ts +10 -0
- package/lib/components/Modal/modal.interfaces.d.ts +12 -0
- package/lib/components/Modal/modal.service.d.ts +22 -0
- package/lib/components/NumberSelect/NumberSelect.d.ts +12 -0
- package/lib/components/NumberSelect/index.d.ts +1 -0
- package/lib/components/Portal/Portal.d.ts +7 -0
- package/lib/components/Portal/index.d.ts +1 -0
- package/lib/components/ProgressBar/ProgressBar.d.ts +9 -0
- package/lib/components/ProgressBar/index.d.ts +1 -0
- package/lib/components/Select/Select.d.ts +16 -0
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Sidebar/Sidebar.d.ts +9 -0
- package/lib/components/Sidebar/index.d.ts +2 -0
- package/lib/components/Sidebar/sidebar.interfaces.d.ts +9 -0
- package/lib/components/Sidebar/sidebar.models.d.ts +11 -0
- package/lib/components/Skeleton/SkeletonAvatar.d.ts +5 -0
- package/lib/components/Skeleton/SkeletonFooter.d.ts +5 -0
- package/lib/components/Skeleton/SkeletonImage.d.ts +5 -0
- package/lib/components/Skeleton/SkeletonText.d.ts +5 -0
- package/lib/components/Skeleton/index.d.ts +4 -0
- package/lib/components/Snackbar/Snackbar.d.ts +9 -0
- package/lib/components/Snackbar/index.d.ts +2 -0
- package/lib/components/Snackbar/snackbar.service.d.ts +20 -0
- package/lib/components/SpeedDial/SpeedDial.d.ts +7 -0
- package/lib/components/SpeedDial/SpeedDialAction.d.ts +9 -0
- package/lib/components/SpeedDial/SpeedDialActions.d.ts +2 -0
- package/lib/components/SpeedDial/SpeedDialIcon.d.ts +6 -0
- package/lib/components/SpeedDial/index.d.ts +3 -0
- package/lib/components/Stepper/Dot/Dot.d.ts +7 -0
- package/lib/components/Stepper/Dot/index.d.ts +1 -0
- package/lib/components/Stepper/Step/Step.d.ts +20 -0
- package/lib/components/Stepper/Step/index.d.ts +1 -0
- package/lib/components/Stepper/StepConnector/StepConnector.d.ts +6 -0
- package/lib/components/Stepper/StepPanel/StepPanel.d.ts +5 -0
- package/lib/components/Stepper/Stepper.d.ts +20 -0
- package/lib/components/Stepper/StepperActions/StepperActions.d.ts +14 -0
- package/lib/components/Stepper/StepperActions/index.d.ts +1 -0
- package/lib/components/Stepper/index.d.ts +4 -0
- package/lib/components/Table/Table.d.ts +8 -0
- package/lib/components/Table/TableBody.d.ts +2 -0
- package/lib/components/Table/TableCell.d.ts +5 -0
- package/lib/components/Table/TableContext.d.ts +6 -0
- package/lib/components/Table/TableHead.d.ts +2 -0
- package/lib/components/Table/TableRow.d.ts +2 -0
- package/lib/components/Table/index.d.ts +5 -0
- package/lib/components/Tabs/Tab.d.ts +13 -0
- package/lib/components/Tabs/TabContext.d.ts +8 -0
- package/lib/components/Tabs/TabIndicator.d.ts +10 -0
- package/lib/components/Tabs/TabPanel.d.ts +6 -0
- package/lib/components/Tabs/Tabs.d.ts +13 -0
- package/lib/components/Tabs/index.d.ts +3 -0
- package/lib/components/Textarea/Textarea.d.ts +5 -0
- package/lib/components/Textarea/index.d.ts +1 -0
- package/lib/components/TimeSelect/HourSelect.d.ts +10 -0
- package/lib/components/TimeSelect/MilliSecondSelect.d.ts +11 -0
- package/lib/components/TimeSelect/MinuteSelect.d.ts +10 -0
- package/lib/components/TimeSelect/SecondSelect.d.ts +10 -0
- package/lib/components/TimeSelect/TimeSelect.d.ts +20 -0
- package/lib/components/TimeSelect/index.d.ts +5 -0
- package/lib/components/Tooltip/Tooltip.d.ts +10 -0
- package/lib/components/Tooltip/index.d.ts +2 -0
- package/lib/components/Tooltip/tooltip.enums.d.ts +6 -0
- package/lib/components/TreeView/TreeItem.d.ts +14 -0
- package/lib/components/TreeView/TreeView.d.ts +2 -0
- package/lib/components/TreeView/index.d.ts +2 -0
- package/lib/components/Typography/Typography.d.ts +12 -0
- package/lib/components/Typography/index.d.ts +1 -0
- package/lib/components/component.enums.d.ts +26 -0
- package/lib/components/component.interfaces.d.ts +18 -0
- package/lib/components/index.d.ts +46 -0
- package/lib/hooks/index.d.ts +8 -0
- package/lib/hooks/useConstructor.d.ts +1 -0
- package/lib/hooks/useCssClasses.d.ts +1 -0
- package/lib/hooks/useDebounce.d.ts +2 -0
- package/lib/hooks/useHover.d.ts +2 -0
- package/lib/hooks/useMobileDetect.d.ts +3 -0
- package/lib/hooks/useOnDestroy.d.ts +1 -0
- package/lib/hooks/usePrevious.d.ts +1 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/icons/CaretDownSolidIcon.d.ts +2 -0
- package/lib/icons/CheckSolidIcon.d.ts +2 -0
- package/lib/icons/CheckSquareRegularIcon.d.ts +2 -0
- package/lib/icons/ChevronDownSolidIcon.d.ts +2 -0
- package/lib/icons/ChevronLeftSolidIcon.d.ts +2 -0
- package/lib/icons/ChevronRightSolidIcon.d.ts +2 -0
- package/lib/icons/ChevronUpSolidIcon.d.ts +2 -0
- package/lib/icons/CircleSolidIcon.d.ts +2 -0
- package/lib/icons/HomeSolidIcon.d.ts +2 -0
- package/lib/icons/PlusSolidIcon.d.ts +2 -0
- package/lib/icons/SpinnerSolidIcon.d.ts +2 -0
- package/lib/icons/SquareRegularIcon.d.ts +2 -0
- package/lib/icons/TimesCircleSolidIcon.d.ts +2 -0
- package/lib/icons/TimesSolidIcon.d.ts +2 -0
- package/lib/icons/index.d.ts +14 -0
- package/lib/index.d.ts +6 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/interfaces/interfaces.d.ts +3 -0
- package/lib/services/clipboard.service.d.ts +5 -0
- package/lib/services/file.service.d.ts +14 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/services/local.service.d.ts +10 -0
- package/lib/services/logger.service.d.ts +25 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/nullable.type.d.ts +1 -0
- package/package.json +1 -1
- package/vite.config.d.ts +2 -0
- package/apple-touch-icon.png +0 -0
- package/assets/index-5bb661b4.js +0 -100
- package/assets/index-b3809a2b.css +0 -1
- package/assets/workbox-window.prod.es5-a7b12eab.js +0 -2
- package/changelog.md +0 -1510
- package/favicon-16x16.png +0 -0
- package/favicon-32x32.png +0 -0
- package/favicon.ico +0 -0
- package/favicon.svg +0 -23
- package/index.html +0 -24
- package/manifest.webmanifest +0 -1
- package/pwa-192x192.png +0 -0
- package/pwa-512x512.png +0 -0
- package/robots.txt +0 -3
- package/showcase/alert.description.md +0 -1
- package/showcase/alert.md +0 -14
- package/showcase/appbar.description.md +0 -1
- package/showcase/appbar.md +0 -8
- package/showcase/autocomplete.description.md +0 -1
- package/showcase/autocomplete.md +0 -49
- package/showcase/backdrop.description.md +0 -1
- package/showcase/backdrop.md +0 -11
- package/showcase/badge.description.md +0 -1
- package/showcase/badge.md +0 -8
- package/showcase/breadcrumb.description.md +0 -1
- package/showcase/breadcrumb.md +0 -5
- package/showcase/button.description.md +0 -1
- package/showcase/button.md +0 -44
- package/showcase/buttongroup.description.md +0 -1
- package/showcase/buttongroup.md +0 -5
- package/showcase/card.description.md +0 -1
- package/showcase/card.md +0 -9
- package/showcase/checkbox.description.md +0 -1
- package/showcase/checkbox.md +0 -1
- package/showcase/chip.description.md +0 -1
- package/showcase/chip.md +0 -3
- package/showcase/csstransition.md +0 -38
- package/showcase/dateselect.md +0 -8
- package/showcase/drawer.md +0 -13
- package/showcase/expansionpanel.md +0 -40
- package/showcase/fileinput.md +0 -1
- package/showcase/floatingactionbutton.md +0 -4
- package/showcase/form.md +0 -6
- package/showcase/grid.md +0 -5
- package/showcase/hookuseconstructor.description.md +0 -1
- package/showcase/hookuseconstructor.md +0 -5
- package/showcase/hookusedebounce.description.md +0 -3
- package/showcase/hookusedebounce.md +0 -17
- package/showcase/hookusehover.md +0 -11
- package/showcase/hookusemobiledetect.description.md +0 -2
- package/showcase/hookusemobiledetect.md +0 -11
- package/showcase/hookuseondestroy.description.md +0 -1
- package/showcase/hookuseondestroy.md +0 -5
- package/showcase/hookuseprevious.description.md +0 -1
- package/showcase/hookuseprevious.md +0 -14
- package/showcase/hookusewindowsize.description.md +0 -2
- package/showcase/hookusewindowsize.md +0 -11
- package/showcase/icon.md +0 -3
- package/showcase/iconbutton.md +0 -5
- package/showcase/link.md +0 -1
- package/showcase/list.md +0 -98
- package/showcase/loadingindicator.md +0 -38
- package/showcase/menu.md +0 -17
- package/showcase/modal.md +0 -46
- package/showcase/numberselect.md +0 -20
- package/showcase/progressbar.description.md +0 -1
- package/showcase/progressbar.md +0 -3
- package/showcase/select.md +0 -20
- package/showcase/servicelogger.md +0 -9
- package/showcase/skeleton.description.md +0 -5
- package/showcase/skeleton.md +0 -5
- package/showcase/snackbar.md +0 -22
- package/showcase/speeddial.md +0 -43
- package/showcase/stepper.description.md +0 -1
- package/showcase/stepper.md +0 -40
- package/showcase/table.md +0 -30
- package/showcase/tabs.md +0 -35
- package/showcase/timeselect.md +0 -1
- package/showcase/tooltip.md +0 -6
- package/showcase/treeview.md +0 -12
- package/showcase/typography.md +0 -6
- package/sw.js +0 -1
- package/workbox-fa446783.js +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IStepperActionsProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
showDoneButton?: boolean;
|
|
5
|
+
showResetButton?: boolean;
|
|
6
|
+
isCompleted?: boolean;
|
|
7
|
+
isFirstStep?: boolean;
|
|
8
|
+
isStepOptional?: boolean;
|
|
9
|
+
onBack?: () => void;
|
|
10
|
+
onSkip?: () => void;
|
|
11
|
+
onNext?: () => void;
|
|
12
|
+
onReset?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const StepperActions: (props: IStepperActionsProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StepperActions';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ITabProps {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
onClick?: (e: {
|
|
9
|
+
event: React.MouseEvent;
|
|
10
|
+
value: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const Tab: (props: ITabProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Context, Dispatch } from 'react';
|
|
2
|
+
export interface ITabsContext {
|
|
3
|
+
fixed?: boolean;
|
|
4
|
+
selectedValue?: string;
|
|
5
|
+
setSelectedValue?: Dispatch<string>;
|
|
6
|
+
}
|
|
7
|
+
export declare const TabContext: Context<ITabsContext>;
|
|
8
|
+
export declare const useTabContext: () => ITabsContext;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { COLOR } from '../component.enums';
|
|
3
|
+
export interface ITabIndicatorProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
+
amount?: number;
|
|
5
|
+
index?: number;
|
|
6
|
+
color?: COLOR;
|
|
7
|
+
width?: string;
|
|
8
|
+
left?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const TabIndicator: (props: ITabIndicatorProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import { COLOR } from '../component.enums';
|
|
3
|
+
import type { ITabProps } from './Tab';
|
|
4
|
+
export interface ITabsProps {
|
|
5
|
+
color?: COLOR;
|
|
6
|
+
indicatorColor?: COLOR;
|
|
7
|
+
children?: ReactElement<ITabProps> | ReactElement<ITabProps>[];
|
|
8
|
+
className?: string;
|
|
9
|
+
fixed?: boolean;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
value?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Tabs: (props: ITabsProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Textarea';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IHourProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: (val: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const HourSelect: (props: IHourProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IMilliSecondProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
value?: number;
|
|
5
|
+
steps?: number;
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onChange?: (val: number) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const MilliSecondSelect: (props: IMilliSecondProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IMinuteProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: (val: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const MinuteSelect: (props: IMinuteProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ISecondProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: (val: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const SecondSelect: (props: ISecondProps) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare enum TIMEMODE {
|
|
3
|
+
HOUR = 0,
|
|
4
|
+
MINUTE = 1,
|
|
5
|
+
SECONDS = 2,
|
|
6
|
+
MILLISECONDS = 3
|
|
7
|
+
}
|
|
8
|
+
export interface ITimeSelectProps {
|
|
9
|
+
value?: Date;
|
|
10
|
+
className?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
showHours?: boolean;
|
|
14
|
+
showMinutes?: boolean;
|
|
15
|
+
showSeconds?: boolean;
|
|
16
|
+
showMilliSeconds?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onChange?: (val: Date) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const TimeSelect: (props: ITimeSelectProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TooltipPlacement } from './tooltip.enums';
|
|
3
|
+
export interface ITooltipProps extends React.ComponentProps<'div'> {
|
|
4
|
+
placement?: TooltipPlacement;
|
|
5
|
+
text?: string;
|
|
6
|
+
delay?: number;
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
isShowClose?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Tooltip: (props: ITooltipProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ITreeItemProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLLIElement>, HTMLLIElement> {
|
|
3
|
+
nodeId?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
isExpanded?: boolean;
|
|
6
|
+
isSelected?: boolean;
|
|
7
|
+
isSelectable?: boolean;
|
|
8
|
+
onToggleExpand?: (id: string) => void;
|
|
9
|
+
onItemSelect?: (e: {
|
|
10
|
+
id: string;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
}) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const TreeItem: (props: ITreeItemProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IWrapperProps {
|
|
3
|
+
as?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
wrap?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ITypographyProps extends React.ComponentProps<'span'> {
|
|
9
|
+
as?: string;
|
|
10
|
+
wrap?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Typography: ({ children, as, wrap, ...rest }: ITypographyProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Typography';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum COLOR {
|
|
2
|
+
primary = "primary",
|
|
3
|
+
accent = "accent",
|
|
4
|
+
secondary = "secondary",
|
|
5
|
+
danger = "danger",
|
|
6
|
+
light = "light",
|
|
7
|
+
dark = "dark"
|
|
8
|
+
}
|
|
9
|
+
export declare enum VARIANT {
|
|
10
|
+
contained = "contained",
|
|
11
|
+
outline = "outline",
|
|
12
|
+
text = "text"
|
|
13
|
+
}
|
|
14
|
+
export declare enum SIZE {
|
|
15
|
+
sm = "sm",
|
|
16
|
+
md = "md",
|
|
17
|
+
lg = "lg"
|
|
18
|
+
}
|
|
19
|
+
export declare enum POSITION {
|
|
20
|
+
right = "right",
|
|
21
|
+
left = "left"
|
|
22
|
+
}
|
|
23
|
+
export declare enum STATUS {
|
|
24
|
+
HOVERED = "hovered",
|
|
25
|
+
NORMAL = "normal"
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface HtmlBaseProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface HtmlInputProps extends HtmlBaseProps {
|
|
11
|
+
onBlur?: (val: React.FocusEvent<HTMLInputElement>) => void;
|
|
12
|
+
onChange?: (val: React.FocusEvent<HTMLInputElement>) => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ISelectOption {
|
|
16
|
+
value: string;
|
|
17
|
+
label?: React.ReactNode;
|
|
18
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export * from './Alert';
|
|
2
|
+
export * from './AppBar';
|
|
3
|
+
export * from './AutoComplete';
|
|
4
|
+
export * from './Backdrop';
|
|
5
|
+
export * from './Badge';
|
|
6
|
+
export * from './Breadcrumb';
|
|
7
|
+
export * from './Button';
|
|
8
|
+
export * from './ButtonGroup';
|
|
9
|
+
export * from './Card';
|
|
10
|
+
export * from './Checkbox';
|
|
11
|
+
export * from './Chip';
|
|
12
|
+
export * from './component.enums';
|
|
13
|
+
export * from './component.interfaces';
|
|
14
|
+
export * from './ConditionalWrapper';
|
|
15
|
+
export * from './CssTransition';
|
|
16
|
+
export * from './DatePicker';
|
|
17
|
+
export * from './DateSelect';
|
|
18
|
+
export * from './Drawer';
|
|
19
|
+
export * from './ExpansionPanel';
|
|
20
|
+
export * from './FileInput';
|
|
21
|
+
export * from './FloatingActionButton';
|
|
22
|
+
export * from './Form';
|
|
23
|
+
export * from './Grid';
|
|
24
|
+
export * from './Icon';
|
|
25
|
+
export * from './IconButton';
|
|
26
|
+
export * from './Link';
|
|
27
|
+
export * from './List';
|
|
28
|
+
export * from './LoadingIndicator';
|
|
29
|
+
export * from './Menu';
|
|
30
|
+
export * from './Modal';
|
|
31
|
+
export * from './NumberSelect';
|
|
32
|
+
export * from './Portal';
|
|
33
|
+
export * from './ProgressBar';
|
|
34
|
+
export * from './Select';
|
|
35
|
+
export * from './Sidebar';
|
|
36
|
+
export * from './Skeleton';
|
|
37
|
+
export * from './Snackbar';
|
|
38
|
+
export * from './SpeedDial';
|
|
39
|
+
export * from './Stepper';
|
|
40
|
+
export * from './Table';
|
|
41
|
+
export * from './Tabs';
|
|
42
|
+
export * from './Textarea';
|
|
43
|
+
export * from './TimeSelect';
|
|
44
|
+
export * from './Tooltip';
|
|
45
|
+
export * from './TreeView';
|
|
46
|
+
export * from './Typography';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './useConstructor';
|
|
2
|
+
export * from './useCssClasses';
|
|
3
|
+
export * from './useDebounce';
|
|
4
|
+
export * from './useHover';
|
|
5
|
+
export * from './useMobileDetect';
|
|
6
|
+
export * from './useOnDestroy';
|
|
7
|
+
export * from './usePrevious';
|
|
8
|
+
export * from './useWindowSize';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useConstructor: (callBack: () => void) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCssClasses(cssClasses: string[]): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useOnDestroy: (callBack: () => void) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePrevious<T>(value: T): T | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './CaretDownSolidIcon';
|
|
2
|
+
export * from './CheckSolidIcon';
|
|
3
|
+
export * from './CheckSquareRegularIcon';
|
|
4
|
+
export * from './ChevronDownSolidIcon';
|
|
5
|
+
export * from './ChevronLeftSolidIcon';
|
|
6
|
+
export * from './ChevronRightSolidIcon';
|
|
7
|
+
export * from './ChevronUpSolidIcon';
|
|
8
|
+
export * from './CircleSolidIcon';
|
|
9
|
+
export * from './HomeSolidIcon';
|
|
10
|
+
export * from './PlusSolidIcon';
|
|
11
|
+
export * from './SpinnerSolidIcon';
|
|
12
|
+
export * from './SquareRegularIcon';
|
|
13
|
+
export * from './TimesCircleSolidIcon';
|
|
14
|
+
export * from './TimesSolidIcon';
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interfaces';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ParseResult, UnparseObject } from 'papaparse';
|
|
2
|
+
export declare class FileService {
|
|
3
|
+
readAsText(file: File): Promise<ProgressEvent<FileReader>>;
|
|
4
|
+
readAsBinaryString(file: File): Promise<ProgressEvent<FileReader>>;
|
|
5
|
+
unparse<T>(data: T[] | UnparseObject<T>, config?: IFileUnparseConfig): string;
|
|
6
|
+
parse<T>(content: string | File): Promise<ParseResult<T>>;
|
|
7
|
+
saveAs(content: BlobPart, fileName: string, fileType: string): void;
|
|
8
|
+
getFileExtension(filename: string): string;
|
|
9
|
+
}
|
|
10
|
+
export interface IFileUnparseConfig {
|
|
11
|
+
delimiter?: string;
|
|
12
|
+
header?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const fileService: FileService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Nullable } from '../types';
|
|
2
|
+
declare class LocalService {
|
|
3
|
+
set<T>(key: string, value: T): void;
|
|
4
|
+
get<T>(key: string): Nullable<T>;
|
|
5
|
+
remove(key: string): void;
|
|
6
|
+
removeAll(): void;
|
|
7
|
+
getKeysBy(key: string): string[];
|
|
8
|
+
}
|
|
9
|
+
export declare const localService: LocalService;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ILoggerService {
|
|
2
|
+
log(...args: unknown[]): void;
|
|
3
|
+
info(...args: unknown[]): void;
|
|
4
|
+
warn(...args: unknown[]): void;
|
|
5
|
+
debug(...args: unknown[]): void;
|
|
6
|
+
error(...args: unknown[]): void;
|
|
7
|
+
}
|
|
8
|
+
export declare enum LogType {
|
|
9
|
+
log = "log",
|
|
10
|
+
info = "info",
|
|
11
|
+
warn = "warn",
|
|
12
|
+
debug = "debug",
|
|
13
|
+
error = "error"
|
|
14
|
+
}
|
|
15
|
+
declare class LoggerService implements ILoggerService {
|
|
16
|
+
logType: typeof LogType;
|
|
17
|
+
log(...args: unknown[]): void;
|
|
18
|
+
info(...args: unknown[]): void;
|
|
19
|
+
warn(...args: unknown[]): void;
|
|
20
|
+
debug(...args: unknown[]): void;
|
|
21
|
+
error(...args: unknown[]): void;
|
|
22
|
+
_doLog(logType: LogType, ...args: unknown[]): void;
|
|
23
|
+
}
|
|
24
|
+
export declare const loggerService: LoggerService;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './nullable.type';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Nullable<T> = T | null | undefined;
|
package/package.json
CHANGED
package/vite.config.d.ts
ADDED
package/apple-touch-icon.png
DELETED
|
Binary file
|