componentes-sinco 1.0.1 → 1.0.2-rc.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/dist/componentes-sinco.css +1 -0
- package/dist/my-react-lib.es.js +105856 -0
- package/dist/my-react-lib.umd.js +454 -0
- package/dist/src/App.d.ts +4 -0
- package/dist/src/Components/Adjuntar/Adjuntar.d.ts +4 -0
- package/dist/src/Components/Adjuntar/Model.d.ts +17 -0
- package/dist/src/Components/Adjuntar/index.d.ts +1 -0
- package/dist/src/Components/Calendario/Calendario.d.ts +3 -0
- package/dist/src/Components/Drawer/Helpers/Model.d.ts +55 -0
- package/dist/src/Components/Drawer/Helpers/Utils.d.ts +4 -0
- package/dist/src/Components/Drawer/Helpers/index.d.ts +3 -0
- package/dist/src/Components/Drawer/Helpers/validateInput.d.ts +3 -0
- package/dist/src/Components/Drawer/SCDrawer.d.ts +5 -0
- package/dist/src/Components/Drawer/SCDrawer.test.d.ts +1 -0
- package/dist/src/Components/Drawer/index.d.ts +1 -0
- package/dist/src/Components/FooterAction/FooterAction.d.ts +4 -0
- package/dist/src/Components/FooterAction/Model.d.ts +6 -0
- package/dist/src/Components/FooterAction/index.d.ts +2 -0
- package/dist/src/Components/Hooks/useWindowDimensions.d.ts +4 -0
- package/dist/src/Components/Modal/Helpers/Data.d.ts +19 -0
- package/dist/src/Components/Modal/Helpers/Model.d.ts +26 -0
- package/dist/src/Components/Modal/Helpers/Utils.d.ts +3 -0
- package/dist/src/Components/Modal/Helpers/index.d.ts +3 -0
- package/dist/src/Components/Modal/SCModal.d.ts +4 -0
- package/dist/src/Components/Modal/SCModal.test.d.ts +1 -0
- package/dist/src/Components/Modal/index.d.ts +2 -0
- package/dist/src/Components/MultiSelect/MultiSelect.test.d.ts +1 -0
- package/dist/src/Components/MultiSelect/SCMultiSelect.d.ts +4 -0
- package/dist/src/Components/MultiSelect/example.d.ts +3 -0
- package/dist/src/Components/MultiSelect/helpers/Model.d.ts +24 -0
- package/dist/src/Components/MultiSelect/helpers/Utils.d.ts +3 -0
- package/dist/src/Components/MultiSelect/helpers/index.d.ts +4 -0
- package/dist/src/Components/MultiSelect/helpers/useFilteredItems.d.ts +4 -0
- package/dist/src/Components/MultiSelect/helpers/useHandlers.d.ts +12 -0
- package/dist/src/Components/MultiSelect/index.d.ts +2 -0
- package/dist/src/Components/PageHeader/Model.d.ts +8 -0
- package/dist/src/Components/PageHeader/PageHeader.d.ts +4 -0
- package/dist/src/Components/PageHeader/PageHeader.test.d.ts +1 -0
- package/dist/src/Components/PageHeader/index.d.ts +2 -0
- package/dist/src/Components/SCAutocomplete.d.ts +26 -0
- package/dist/src/Components/SCCalendarSwipeable.d.ts +9 -0
- package/dist/src/Components/SCDataGrid.d.ts +19 -0
- package/dist/src/Components/SCDialog.d.ts +32 -0
- package/dist/src/Components/SCMenu.d.ts +20 -0
- package/dist/src/Components/SCTabs.d.ts +22 -0
- package/dist/src/Components/TextArea/Helpers/Model.d.ts +23 -0
- package/dist/src/Components/TextArea/Helpers/index.d.ts +2 -0
- package/dist/src/Components/TextArea/Helpers/validateIcon.d.ts +3 -0
- package/dist/src/Components/TextArea/SCTextArea.d.ts +4 -0
- package/dist/src/Components/TextArea/index.d.ts +2 -0
- package/dist/src/Components/Textfield/Helpers/index.d.ts +3 -0
- package/dist/src/Components/Textfield/Helpers/validateIcon.d.ts +4 -0
- package/dist/src/Components/Textfield/Helpers/validateKeyDown.d.ts +1 -0
- package/dist/src/Components/Textfield/Helpers/validateOnBlur.d.ts +10 -0
- package/dist/src/Components/Textfield/Model.d.ts +32 -0
- package/dist/src/Components/Textfield/SCTextField.d.ts +4 -0
- package/dist/src/Components/Textfield/Textfield.test.d.ts +1 -0
- package/dist/src/Components/Textfield/index.d.ts +2 -0
- package/dist/src/Components/ToastNotification/Model.d.ts +14 -0
- package/dist/src/Components/ToastNotification/SCToastNotification.d.ts +4 -0
- package/dist/src/Components/ToastNotification/index.d.ts +3 -0
- package/dist/src/Components/ToastNotification/useProgress.d.ts +6 -0
- package/dist/src/Components/index.d.ts +14 -0
- package/dist/src/Pages/PruebasDavid/Test.d.ts +3 -0
- package/dist/src/Pages/PruebasNataly/PruebaPag1.d.ts +4 -0
- package/dist/src/Pages/PruebasNataly/PruebaPag2.d.ts +3 -0
- package/dist/src/Pages/PruebasNataly/TestNataly.d.ts +3 -0
- package/dist/src/Theme/breakpoints.d.ts +3 -0
- package/dist/src/Theme/components.d.ts +3 -0
- package/dist/src/Theme/index.d.ts +3 -0
- package/dist/src/Theme/mixins.d.ts +3 -0
- package/dist/src/Theme/module.d.ts +69 -0
- package/dist/src/Theme/palette.d.ts +6 -0
- package/dist/src/Theme/shadows.d.ts +3 -0
- package/dist/src/Theme/theme.d.ts +5 -0
- package/dist/src/Theme/typography.d.ts +3 -0
- package/dist/src/generales/capitalize.d.ts +1 -0
- package/dist/src/generales/index.d.ts +2 -0
- package/dist/src/generales/types.d.ts +4 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/stories/Autocomplete/Autocomplete.stories.d.ts +7 -0
- package/dist/src/stories/CalendarSwipeable/CalendarSwipeable.stories.d.ts +7 -0
- package/dist/src/stories/DataGrid/DataGrid.stories.d.ts +7 -0
- package/dist/src/stories/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/src/stories/Drawer/Drawer.stories.d.ts +7 -0
- package/dist/src/stories/FooterAction/Footer.stories.d.ts +7 -0
- package/dist/src/stories/Generales/Typography.d.ts +1 -0
- package/dist/src/stories/Generales/index.d.ts +2 -0
- package/dist/src/stories/Generales/types.d.ts +3 -0
- package/dist/src/stories/Menu/Menu.stories.d.ts +7 -0
- package/dist/src/stories/Modal/Modal.stories.d.ts +7 -0
- package/dist/src/stories/MultiSelect/MultiSelect.stories.d.ts +7 -0
- package/dist/src/stories/PageHeader/Header.stories.d.ts +7 -0
- package/dist/src/stories/Tabs/Tabs.stories.d.ts +7 -0
- package/dist/src/stories/TextArea/TextArea.stories.d.ts +7 -0
- package/dist/src/stories/Textfield/textfield.stories.d.ts +7 -0
- package/dist/src/stories/ToastNotification/toastNotification.stories.d.ts +27 -0
- package/dist/vite.svg +1 -0
- package/dist/vitest.setup.d.ts +1 -0
- package/package.json +25 -49
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface UploadedFile {
|
|
4
|
+
name: string;
|
|
5
|
+
size: number;
|
|
6
|
+
type: string;
|
|
7
|
+
progress: number;
|
|
8
|
+
uploadError?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface AdjuntarProps<T> {
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
sx?: SxProps;
|
|
13
|
+
files?: T[];
|
|
14
|
+
error?: boolean;
|
|
15
|
+
onClickAdjuntar?: () => void;
|
|
16
|
+
onChangeArchivos?: (archivos: UploadedFile[]) => void;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Adjuntar';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ReplyPalette, ReplyTextPalette, ReplyVariants } from '../../../generales';
|
|
2
|
+
import * as Muicon from "@mui/icons-material";
|
|
3
|
+
export interface ArrayElement {
|
|
4
|
+
type?: 'textField' | 'textArea';
|
|
5
|
+
title?: string;
|
|
6
|
+
iconTitle?: keyof typeof Muicon;
|
|
7
|
+
infoTitle?: {
|
|
8
|
+
text?: string;
|
|
9
|
+
component?: "tooltip" | "popover";
|
|
10
|
+
};
|
|
11
|
+
label?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
infoElement?: {
|
|
14
|
+
text?: string;
|
|
15
|
+
component?: "tooltip" | "popover";
|
|
16
|
+
};
|
|
17
|
+
iconInputStart?: string;
|
|
18
|
+
iconInputEnd?: string;
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
component?: React.ReactNode;
|
|
21
|
+
variant?: ReplyVariants;
|
|
22
|
+
format?: 'int' | 'text' | 'password' | 'decimal';
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
size?: 'small' | 'medium';
|
|
26
|
+
width?: string;
|
|
27
|
+
rows?: number;
|
|
28
|
+
color?: ReplyPalette;
|
|
29
|
+
background?: string;
|
|
30
|
+
state?: any | React.Dispatch<React.SetStateAction<string>>;
|
|
31
|
+
value?: string;
|
|
32
|
+
onChange?: () => {};
|
|
33
|
+
onBlur?: () => {};
|
|
34
|
+
onKeyDown?: () => {};
|
|
35
|
+
}
|
|
36
|
+
export interface DrawerProps {
|
|
37
|
+
title?: string;
|
|
38
|
+
arrayElements?: ArrayElement[];
|
|
39
|
+
actions?: {
|
|
40
|
+
text: string;
|
|
41
|
+
fn: () => void;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}[];
|
|
44
|
+
buttonDrawer?: {
|
|
45
|
+
icon?: keyof typeof Muicon;
|
|
46
|
+
text?: string;
|
|
47
|
+
color?: ReplyPalette;
|
|
48
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
49
|
+
iconPosition?: 'left' | 'right' | undefined;
|
|
50
|
+
};
|
|
51
|
+
colorTitle?: ReplyTextPalette | ReplyPalette | string;
|
|
52
|
+
anchor?: "left" | "right";
|
|
53
|
+
width?: string;
|
|
54
|
+
open?: boolean;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SCDrawer';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const modalStateConfig: {
|
|
4
|
+
info: {
|
|
5
|
+
color: string;
|
|
6
|
+
defaultDescription: string;
|
|
7
|
+
icon: React.JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
delete: {
|
|
10
|
+
color: string;
|
|
11
|
+
defaultDescription: string;
|
|
12
|
+
icon: React.JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
warning: {
|
|
15
|
+
color: string;
|
|
16
|
+
defaultDescription: string;
|
|
17
|
+
icon: React.JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RepplyButtonVariants, ReplyPalette } from '../../../generales';
|
|
2
|
+
|
|
3
|
+
export type ModalStates = 'info' | 'delete' | 'warning';
|
|
4
|
+
export interface ModalProps {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
textButton?: string;
|
|
8
|
+
buttonVariant?: RepplyButtonVariants;
|
|
9
|
+
iconPosition?: 'left' | 'right';
|
|
10
|
+
buttonColor?: ReplyPalette;
|
|
11
|
+
state: ModalStates;
|
|
12
|
+
open: boolean;
|
|
13
|
+
action?: {
|
|
14
|
+
text: string;
|
|
15
|
+
fn: () => void;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
buttonModal?: {
|
|
19
|
+
icon?: string;
|
|
20
|
+
text?: string;
|
|
21
|
+
color?: ReplyPalette;
|
|
22
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
23
|
+
iconPosition?: 'left' | 'right';
|
|
24
|
+
size?: "small" | "medium" | "large";
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReplyPalette, RepplyButtonVariants } from '../../../generales';
|
|
2
|
+
|
|
3
|
+
export interface MultiSelectProps<T> {
|
|
4
|
+
textButton?: string;
|
|
5
|
+
button?: {
|
|
6
|
+
icon?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
color?: ReplyPalette;
|
|
9
|
+
variant?: RepplyButtonVariants;
|
|
10
|
+
iconPosition?: 'left' | 'right';
|
|
11
|
+
size?: "small" | "medium" | "large";
|
|
12
|
+
};
|
|
13
|
+
topPanel?: React.ReactNode;
|
|
14
|
+
dense?: boolean;
|
|
15
|
+
open: boolean;
|
|
16
|
+
selectAll?: boolean;
|
|
17
|
+
items: T[];
|
|
18
|
+
getItemLabel: (item: T) => string;
|
|
19
|
+
actions?: {
|
|
20
|
+
text: string;
|
|
21
|
+
fn: () => void;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
}[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function useMultiSelectHandlers<T>(): {
|
|
2
|
+
anchorEl: HTMLButtonElement | null;
|
|
3
|
+
open: boolean;
|
|
4
|
+
selectedItems: T[];
|
|
5
|
+
filterValue: string;
|
|
6
|
+
setSelectedItems: import('react').Dispatch<import('react').SetStateAction<T[]>>;
|
|
7
|
+
handleOpen: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
handleClose: () => void;
|
|
9
|
+
handleFilterChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
handleCheckboxToggle: (item: T) => void;
|
|
11
|
+
setOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SCAutocompleteProps<T> {
|
|
4
|
+
label?: string;
|
|
5
|
+
data: T[];
|
|
6
|
+
columnGroup?: string;
|
|
7
|
+
getItemValue: (item: T) => {
|
|
8
|
+
icon?: any;
|
|
9
|
+
text: string;
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
12
|
+
type?: "normal" | "multiselect";
|
|
13
|
+
checkMassive?: boolean;
|
|
14
|
+
deleteType?: "button" | "icon";
|
|
15
|
+
required?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
background?: string;
|
|
18
|
+
fnAplicar?: () => void | React.ReactNode;
|
|
19
|
+
setState: React.Dispatch<React.SetStateAction<any>>;
|
|
20
|
+
state: {
|
|
21
|
+
hiddenValue: string | string[];
|
|
22
|
+
textValue: string | string[];
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, type, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, }: SCAutocompleteProps<T>): React.JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SCCalendarSwipeableProps {
|
|
4
|
+
background?: string;
|
|
5
|
+
setState: React.Dispatch<React.SetStateAction<string>>;
|
|
6
|
+
state: string | any;
|
|
7
|
+
}
|
|
8
|
+
export declare const SCCalendarSwipeable: ({ background, setState, state, }: SCCalendarSwipeableProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SCDataGridProps {
|
|
4
|
+
data: any;
|
|
5
|
+
columns: any;
|
|
6
|
+
rowsTable?: number;
|
|
7
|
+
checkboxSelection?: boolean;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
height?: number;
|
|
10
|
+
maxHeight?: number;
|
|
11
|
+
density?: "compact" | "standard" | "comfortable";
|
|
12
|
+
agrupacion?: boolean;
|
|
13
|
+
columnsGrouping?: number;
|
|
14
|
+
groupingColDef?: any;
|
|
15
|
+
getTreeDataPath?: (row: any) => string[] | [];
|
|
16
|
+
otherProps?: any;
|
|
17
|
+
}
|
|
18
|
+
export declare const SCDataGrid: ({ data, columns, rowsTable, checkboxSelection, width, height, maxHeight, density, agrupacion, groupingColDef, getTreeDataPath, ...props }: SCDataGridProps) => React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ReplyPalette } from '../stories/Generales/types';
|
|
3
|
+
|
|
4
|
+
import * as Muicon from "@mui/icons-material";
|
|
5
|
+
interface SCDialogProps {
|
|
6
|
+
title?: string;
|
|
7
|
+
iconTitle?: React.ReactNode | React.ReactElement | keyof typeof Muicon;
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
content?: any;
|
|
10
|
+
actions?: {
|
|
11
|
+
text: string;
|
|
12
|
+
fn: () => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
buttonDialog?: {
|
|
16
|
+
icon?: string;
|
|
17
|
+
text?: string;
|
|
18
|
+
color?: ReplyPalette;
|
|
19
|
+
tooltip?: string;
|
|
20
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
21
|
+
iconPosition?: 'left' | 'right' | undefined;
|
|
22
|
+
};
|
|
23
|
+
disableClose?: boolean;
|
|
24
|
+
dividers?: boolean;
|
|
25
|
+
widthContent?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
26
|
+
heightContent?: string;
|
|
27
|
+
background?: string;
|
|
28
|
+
setShow?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
|
+
show?: boolean | any;
|
|
30
|
+
}
|
|
31
|
+
export declare const SCDialog: ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }: SCDialogProps) => React.JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Option {
|
|
4
|
+
name?: string;
|
|
5
|
+
iconLeft?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
6
|
+
iconRight?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
7
|
+
divider?: boolean;
|
|
8
|
+
page: React.ReactNode | React.ReactElement;
|
|
9
|
+
}
|
|
10
|
+
interface SCMenuProps {
|
|
11
|
+
header?: any;
|
|
12
|
+
options: Option[];
|
|
13
|
+
defaultOption?: string;
|
|
14
|
+
disable?: boolean;
|
|
15
|
+
widthMenu?: string;
|
|
16
|
+
heightMenu?: string;
|
|
17
|
+
widthPage?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const SCMenu: ({ header, options, defaultOption, disable, widthMenu, heightMenu, widthPage }: SCMenuProps) => React.JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Option {
|
|
4
|
+
name?: string;
|
|
5
|
+
iconOrBadge: string | number | null | undefined | any | React.ReactNode | React.ReactElement | React.ElementType;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
page: React.ReactNode | React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
interface SCTabsProps {
|
|
10
|
+
options: Option[];
|
|
11
|
+
defaultOption?: string;
|
|
12
|
+
typeIcon?: "badge" | "icon";
|
|
13
|
+
background?: string;
|
|
14
|
+
iconPosition?: "top" | "bottom" | "start" | "end";
|
|
15
|
+
colorTab?: "secondary" | "primary";
|
|
16
|
+
orientation?: "horizontal" | "vertical";
|
|
17
|
+
variant?: "standard" | "fullWidth" | "scrollable";
|
|
18
|
+
scrollButtons?: boolean;
|
|
19
|
+
children?: any;
|
|
20
|
+
}
|
|
21
|
+
export declare const SCTabs: ({ options, defaultOption, typeIcon, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }: SCTabsProps) => React.JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReplyTextPalette, ReplyVariants } from '../../../generales';
|
|
2
|
+
import * as Muicon from "@mui/icons-material";
|
|
3
|
+
export interface SCTextAreaProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
iconTitle?: keyof typeof Muicon;
|
|
6
|
+
infoTitle?: {
|
|
7
|
+
text?: string;
|
|
8
|
+
component?: "tooltip" | "popover";
|
|
9
|
+
};
|
|
10
|
+
colorTitle?: ReplyTextPalette;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
width?: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
background?: string;
|
|
16
|
+
variant?: ReplyVariants;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
rows?: number;
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
value: string;
|
|
21
|
+
state: React.Dispatch<React.SetStateAction<string>>;
|
|
22
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SCTextAreaProps } from './Helpers';
|
|
3
|
+
|
|
4
|
+
export declare const SCTextArea: ({ title, iconTitle, infoTitle, label, placeholder, maxLength, variant, disabled, required, width, rows, colorTitle, background, state, value, onBlur, }: SCTextAreaProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateKeyDown(event: React.KeyboardEvent<HTMLInputElement>, format?: string): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FocusEvent } from 'react';
|
|
2
|
+
|
|
3
|
+
type HandleBlurProps = {
|
|
4
|
+
value: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
setError: (val: boolean) => void;
|
|
7
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const validateOnBlurField: ({ value, required, setError, onBlur, }: HandleBlurProps) => (event: FocusEvent<HTMLInputElement>) => void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReplyPalette } from '../../generales';
|
|
2
|
+
|
|
3
|
+
export interface SCTextFieldProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
iconTitle?: string;
|
|
6
|
+
infoTitle?: {
|
|
7
|
+
text?: string;
|
|
8
|
+
component?: "tooltip" | "popover";
|
|
9
|
+
};
|
|
10
|
+
label?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
color?: ReplyPalette;
|
|
13
|
+
width?: string;
|
|
14
|
+
background?: string;
|
|
15
|
+
format?: 'int' | 'text' | 'password' | 'decimal';
|
|
16
|
+
iconInputStart?: string;
|
|
17
|
+
iconInputEnd?: string;
|
|
18
|
+
infoElement?: {
|
|
19
|
+
text?: string;
|
|
20
|
+
component?: "tooltip" | "popover";
|
|
21
|
+
};
|
|
22
|
+
size?: "small" | "medium";
|
|
23
|
+
variant?: "outlined" | "filled" | "standard";
|
|
24
|
+
value: string;
|
|
25
|
+
maxLength?: number;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
state: React.Dispatch<React.SetStateAction<string>>;
|
|
29
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
30
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
31
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SCTextFieldProps } from './Model';
|
|
3
|
+
|
|
4
|
+
export declare const SCTextField: ({ title, iconTitle, infoTitle, label, placeholder, infoElement, iconInputStart, iconInputEnd, maxLength, variant, format, disabled, required, size, width, color, background, state, value, onChange, onBlur, onKeyDown, }: SCTextFieldProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
2
|
+
export interface ToastBaseProperties {
|
|
3
|
+
type?: ToastType;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
time?: number;
|
|
7
|
+
listITems?: string[];
|
|
8
|
+
seeMore?: boolean;
|
|
9
|
+
actions?: {
|
|
10
|
+
text: string;
|
|
11
|
+
fn: () => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './Drawer';
|
|
2
|
+
export * from './ToastNotification';
|
|
3
|
+
export * from './MultiSelect';
|
|
4
|
+
export * from './TextArea';
|
|
5
|
+
export * from './Textfield';
|
|
6
|
+
export * from './SCDialog';
|
|
7
|
+
export * from './SCMenu';
|
|
8
|
+
export * from './SCTabs';
|
|
9
|
+
export * from './FooterAction';
|
|
10
|
+
export * from './Modal';
|
|
11
|
+
export * from './PageHeader';
|
|
12
|
+
export * from './SCCalendarSwipeable';
|
|
13
|
+
export * from './SCDataGrid';
|
|
14
|
+
export * from './SCAutocomplete';
|