componentes-sinco 1.0.3 → 1.0.4
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/package.json +23 -17
- package/dist/componentes-sinco.css +0 -1
- package/dist/index.cjs +0 -3928
- package/dist/index.css +0 -42
- package/dist/index.d.cts +0 -396
- package/dist/index.d.ts +0 -396
- package/dist/index.js +0 -3872
- package/dist/my-react-lib.es.js +0 -105856
- package/dist/my-react-lib.umd.js +0 -454
- package/dist/src/App.d.ts +0 -4
- package/dist/src/Components/Adjuntar/Adjuntar.d.ts +0 -4
- package/dist/src/Components/Adjuntar/Model.d.ts +0 -17
- package/dist/src/Components/Adjuntar/index.d.ts +0 -1
- package/dist/src/Components/Calendario/Calendario.d.ts +0 -3
- package/dist/src/Components/Drawer/Helpers/Model.d.ts +0 -55
- package/dist/src/Components/Drawer/Helpers/Utils.d.ts +0 -4
- package/dist/src/Components/Drawer/Helpers/index.d.ts +0 -3
- package/dist/src/Components/Drawer/Helpers/validateInput.d.ts +0 -3
- package/dist/src/Components/Drawer/SCDrawer.d.ts +0 -5
- package/dist/src/Components/Drawer/SCDrawer.test.d.ts +0 -1
- package/dist/src/Components/Drawer/index.d.ts +0 -1
- package/dist/src/Components/FooterAction/FooterAction.d.ts +0 -4
- package/dist/src/Components/FooterAction/Model.d.ts +0 -6
- package/dist/src/Components/FooterAction/index.d.ts +0 -2
- package/dist/src/Components/Hooks/useWindowDimensions.d.ts +0 -4
- package/dist/src/Components/Modal/Helpers/Data.d.ts +0 -19
- package/dist/src/Components/Modal/Helpers/Model.d.ts +0 -26
- package/dist/src/Components/Modal/Helpers/Utils.d.ts +0 -3
- package/dist/src/Components/Modal/Helpers/index.d.ts +0 -3
- package/dist/src/Components/Modal/SCModal.d.ts +0 -4
- package/dist/src/Components/Modal/SCModal.test.d.ts +0 -1
- package/dist/src/Components/Modal/index.d.ts +0 -2
- package/dist/src/Components/MultiSelect/MultiSelect.test.d.ts +0 -1
- package/dist/src/Components/MultiSelect/SCMultiSelect.d.ts +0 -4
- package/dist/src/Components/MultiSelect/example.d.ts +0 -3
- package/dist/src/Components/MultiSelect/helpers/Model.d.ts +0 -24
- package/dist/src/Components/MultiSelect/helpers/Utils.d.ts +0 -3
- package/dist/src/Components/MultiSelect/helpers/index.d.ts +0 -4
- package/dist/src/Components/MultiSelect/helpers/useFilteredItems.d.ts +0 -4
- package/dist/src/Components/MultiSelect/helpers/useHandlers.d.ts +0 -12
- package/dist/src/Components/MultiSelect/index.d.ts +0 -2
- package/dist/src/Components/PageHeader/Model.d.ts +0 -8
- package/dist/src/Components/PageHeader/PageHeader.d.ts +0 -4
- package/dist/src/Components/PageHeader/PageHeader.test.d.ts +0 -1
- package/dist/src/Components/PageHeader/index.d.ts +0 -2
- package/dist/src/Components/SCAutocomplete.d.ts +0 -26
- package/dist/src/Components/SCCalendarSwipeable.d.ts +0 -9
- package/dist/src/Components/SCDataGrid.d.ts +0 -19
- package/dist/src/Components/SCDialog.d.ts +0 -32
- package/dist/src/Components/SCMenu.d.ts +0 -20
- package/dist/src/Components/SCTabs.d.ts +0 -22
- package/dist/src/Components/TextArea/Helpers/Model.d.ts +0 -23
- package/dist/src/Components/TextArea/Helpers/index.d.ts +0 -2
- package/dist/src/Components/TextArea/Helpers/validateIcon.d.ts +0 -3
- package/dist/src/Components/TextArea/SCTextArea.d.ts +0 -4
- package/dist/src/Components/TextArea/index.d.ts +0 -2
- package/dist/src/Components/Textfield/Helpers/index.d.ts +0 -3
- package/dist/src/Components/Textfield/Helpers/validateIcon.d.ts +0 -4
- package/dist/src/Components/Textfield/Helpers/validateKeyDown.d.ts +0 -1
- package/dist/src/Components/Textfield/Helpers/validateOnBlur.d.ts +0 -10
- package/dist/src/Components/Textfield/Model.d.ts +0 -32
- package/dist/src/Components/Textfield/SCTextField.d.ts +0 -4
- package/dist/src/Components/Textfield/Textfield.test.d.ts +0 -1
- package/dist/src/Components/Textfield/index.d.ts +0 -2
- package/dist/src/Components/ToastNotification/Model.d.ts +0 -14
- package/dist/src/Components/ToastNotification/SCToastNotification.d.ts +0 -4
- package/dist/src/Components/ToastNotification/index.d.ts +0 -3
- package/dist/src/Components/ToastNotification/useProgress.d.ts +0 -6
- package/dist/src/Components/index.d.ts +0 -14
- package/dist/src/Pages/PruebasDavid/Test.d.ts +0 -3
- package/dist/src/Pages/PruebasNataly/PruebaPag1.d.ts +0 -4
- package/dist/src/Pages/PruebasNataly/PruebaPag2.d.ts +0 -3
- package/dist/src/Pages/PruebasNataly/TestNataly.d.ts +0 -3
- package/dist/src/Theme/breakpoints.d.ts +0 -3
- package/dist/src/Theme/components.d.ts +0 -3
- package/dist/src/Theme/index.d.ts +0 -3
- package/dist/src/Theme/mixins.d.ts +0 -3
- package/dist/src/Theme/module.d.ts +0 -69
- package/dist/src/Theme/palette.d.ts +0 -6
- package/dist/src/Theme/shadows.d.ts +0 -3
- package/dist/src/Theme/theme.d.ts +0 -5
- package/dist/src/Theme/typography.d.ts +0 -3
- package/dist/src/generales/capitalize.d.ts +0 -1
- package/dist/src/generales/index.d.ts +0 -2
- package/dist/src/generales/types.d.ts +0 -4
- package/dist/src/index.d.ts +0 -5
- package/dist/src/main.d.ts +0 -1
- package/dist/src/stories/Autocomplete/Autocomplete.stories.d.ts +0 -7
- package/dist/src/stories/CalendarSwipeable/CalendarSwipeable.stories.d.ts +0 -7
- package/dist/src/stories/DataGrid/DataGrid.stories.d.ts +0 -7
- package/dist/src/stories/Dialog/Dialog.stories.d.ts +0 -7
- package/dist/src/stories/Drawer/Drawer.stories.d.ts +0 -7
- package/dist/src/stories/FooterAction/Footer.stories.d.ts +0 -7
- package/dist/src/stories/Generales/Typography.d.ts +0 -1
- package/dist/src/stories/Generales/index.d.ts +0 -2
- package/dist/src/stories/Generales/types.d.ts +0 -3
- package/dist/src/stories/Menu/Menu.stories.d.ts +0 -7
- package/dist/src/stories/Modal/Modal.stories.d.ts +0 -7
- package/dist/src/stories/MultiSelect/MultiSelect.stories.d.ts +0 -7
- package/dist/src/stories/PageHeader/Header.stories.d.ts +0 -7
- package/dist/src/stories/Tabs/Tabs.stories.d.ts +0 -7
- package/dist/src/stories/TextArea/TextArea.stories.d.ts +0 -7
- package/dist/src/stories/Textfield/textfield.stories.d.ts +0 -7
- package/dist/src/stories/ToastNotification/toastNotification.stories.d.ts +0 -27
- package/dist/vite.svg +0 -1
- package/dist/vitest.setup.d.ts +0 -1
package/dist/index.css
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/* src/App.css */
|
|
2
|
-
.red-asterisk {
|
|
3
|
-
color: #D14343;
|
|
4
|
-
}
|
|
5
|
-
input[type=number]::-webkit-inner-spin-button,
|
|
6
|
-
input[type=number]::-webkit-outer-spin-button {
|
|
7
|
-
-webkit-appearance: none;
|
|
8
|
-
margin: 0;
|
|
9
|
-
}
|
|
10
|
-
input[type=number] {
|
|
11
|
-
-moz-appearance: textfield;
|
|
12
|
-
}
|
|
13
|
-
body {
|
|
14
|
-
margin: 0px;
|
|
15
|
-
padding: 0px;
|
|
16
|
-
-ms-overflow-style: none;
|
|
17
|
-
}
|
|
18
|
-
body::-ms-scrollbar-track {
|
|
19
|
-
background: #f1f1f1;
|
|
20
|
-
}
|
|
21
|
-
body::-ms-scrollbar-thumb {
|
|
22
|
-
background: #888;
|
|
23
|
-
}
|
|
24
|
-
::-webkit-scrollbar {
|
|
25
|
-
width: 14px !important;
|
|
26
|
-
height: 14px !important;
|
|
27
|
-
background: #EAEBEC;
|
|
28
|
-
}
|
|
29
|
-
::-webkit-scrollbar-thumb {
|
|
30
|
-
background-color: #2063A0;
|
|
31
|
-
border: 3.5px solid #EAEBEC;
|
|
32
|
-
border-radius: 17px;
|
|
33
|
-
}
|
|
34
|
-
.APP5PassWord {
|
|
35
|
-
-webkit-text-security: disc;
|
|
36
|
-
}
|
|
37
|
-
input[type=password]::-ms-reveal {
|
|
38
|
-
display: none !important;
|
|
39
|
-
}
|
|
40
|
-
input[type=password]::-ms-clear {
|
|
41
|
-
display: none !important;
|
|
42
|
-
}
|
package/dist/index.d.cts
DELETED
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ComponentType } from 'react';
|
|
3
|
-
import * as Muicon from '@mui/icons-material';
|
|
4
|
-
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
5
|
-
import * as _mui_material from '@mui/material';
|
|
6
|
-
import * as _mui_material_styles from '@mui/material/styles';
|
|
7
|
-
|
|
8
|
-
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error";
|
|
9
|
-
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
10
|
-
type ReplyVariants = "outlined" | "filled" | "standard";
|
|
11
|
-
type RepplyButtonVariants = "text" | "contained" | "outlined";
|
|
12
|
-
|
|
13
|
-
declare function capitalize(text: string): string;
|
|
14
|
-
|
|
15
|
-
interface ArrayElement {
|
|
16
|
-
type?: 'textField' | 'textArea';
|
|
17
|
-
title?: string;
|
|
18
|
-
iconTitle?: keyof typeof Muicon;
|
|
19
|
-
infoTitle?: {
|
|
20
|
-
text?: string;
|
|
21
|
-
component?: "tooltip" | "popover";
|
|
22
|
-
};
|
|
23
|
-
label?: string;
|
|
24
|
-
placeholder?: string;
|
|
25
|
-
infoElement?: {
|
|
26
|
-
text?: string;
|
|
27
|
-
component?: "tooltip" | "popover";
|
|
28
|
-
};
|
|
29
|
-
iconInputStart?: string;
|
|
30
|
-
iconInputEnd?: string;
|
|
31
|
-
maxLength?: number;
|
|
32
|
-
component?: React.ReactNode;
|
|
33
|
-
variant?: ReplyVariants;
|
|
34
|
-
format?: 'int' | 'text' | 'password' | 'decimal';
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
required?: boolean;
|
|
37
|
-
size?: 'small' | 'medium';
|
|
38
|
-
width?: string;
|
|
39
|
-
rows?: number;
|
|
40
|
-
color?: ReplyPalette$1;
|
|
41
|
-
background?: string;
|
|
42
|
-
state?: any | React.Dispatch<React.SetStateAction<string>>;
|
|
43
|
-
value?: string;
|
|
44
|
-
onChange?: () => {};
|
|
45
|
-
onBlur?: () => {};
|
|
46
|
-
onKeyDown?: () => {};
|
|
47
|
-
}
|
|
48
|
-
interface DrawerProps {
|
|
49
|
-
title?: string;
|
|
50
|
-
arrayElements?: ArrayElement[];
|
|
51
|
-
actions?: {
|
|
52
|
-
text: string;
|
|
53
|
-
fn: () => void;
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
}[];
|
|
56
|
-
buttonDrawer?: {
|
|
57
|
-
icon?: keyof typeof Muicon;
|
|
58
|
-
text?: string;
|
|
59
|
-
color?: ReplyPalette$1;
|
|
60
|
-
variant?: 'text' | 'outlined' | 'contained';
|
|
61
|
-
iconPosition?: 'left' | 'right' | undefined;
|
|
62
|
-
};
|
|
63
|
-
colorTitle?: ReplyTextPalette | ReplyPalette$1 | string;
|
|
64
|
-
anchor?: "left" | "right";
|
|
65
|
-
width?: string;
|
|
66
|
-
open?: boolean;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
70
|
-
interface ToastBaseProperties {
|
|
71
|
-
type?: ToastType;
|
|
72
|
-
title: string;
|
|
73
|
-
subtitle?: string;
|
|
74
|
-
time?: number;
|
|
75
|
-
listITems?: string[];
|
|
76
|
-
seeMore?: boolean;
|
|
77
|
-
actions?: {
|
|
78
|
-
text: string;
|
|
79
|
-
fn: () => void;
|
|
80
|
-
disabled?: boolean;
|
|
81
|
-
}[];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare const SCToastNotification: (toast: ToastBaseProperties) => React__default.JSX.Element;
|
|
85
|
-
|
|
86
|
-
declare const useProgress: (timeProgress: number, lote?: number) => {
|
|
87
|
-
progress: number;
|
|
88
|
-
};
|
|
89
|
-
declare const ToastProgress: (timeProgress: number) => {
|
|
90
|
-
progressToast: number;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
declare const SCDrawer: ({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, }: DrawerProps) => React__default.JSX.Element;
|
|
94
|
-
|
|
95
|
-
interface MultiSelectProps<T> {
|
|
96
|
-
textButton?: string;
|
|
97
|
-
button?: {
|
|
98
|
-
icon?: string;
|
|
99
|
-
text?: string;
|
|
100
|
-
color?: ReplyPalette$1;
|
|
101
|
-
variant?: RepplyButtonVariants;
|
|
102
|
-
iconPosition?: 'left' | 'right';
|
|
103
|
-
size?: "small" | "medium" | "large";
|
|
104
|
-
};
|
|
105
|
-
topPanel?: React.ReactNode;
|
|
106
|
-
dense?: boolean;
|
|
107
|
-
open: boolean;
|
|
108
|
-
selectAll?: boolean;
|
|
109
|
-
items: T[];
|
|
110
|
-
getItemLabel: (item: T) => string;
|
|
111
|
-
actions?: {
|
|
112
|
-
text: string;
|
|
113
|
-
fn: () => void;
|
|
114
|
-
disabled?: boolean;
|
|
115
|
-
}[];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
declare function useMultiSelectHandlers<T>(): {
|
|
119
|
-
anchorEl: HTMLButtonElement | null;
|
|
120
|
-
open: boolean;
|
|
121
|
-
selectedItems: T[];
|
|
122
|
-
filterValue: string;
|
|
123
|
-
setSelectedItems: React$1.Dispatch<React$1.SetStateAction<T[]>>;
|
|
124
|
-
handleOpen: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
125
|
-
handleClose: () => void;
|
|
126
|
-
handleFilterChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
127
|
-
handleCheckboxToggle: (item: T) => void;
|
|
128
|
-
setOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
declare function getIconMultiSelect(name: string): _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
|
132
|
-
muiName: string;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
declare function useFilteredItems<T>(items: T[], filterValue: string, getItemLabel: (item: T) => string, selectedItems: T[]): {
|
|
136
|
-
filteredItems: T[];
|
|
137
|
-
sortedItems: T[];
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
declare function SCMultiSelect<T>({ textButton, button, items, topPanel, actions, dense, open, selectAll, getItemLabel }: MultiSelectProps<T>): React__default.JSX.Element;
|
|
141
|
-
|
|
142
|
-
interface SCTextAreaProps {
|
|
143
|
-
title?: string;
|
|
144
|
-
iconTitle?: keyof typeof Muicon;
|
|
145
|
-
infoTitle?: {
|
|
146
|
-
text?: string;
|
|
147
|
-
component?: "tooltip" | "popover";
|
|
148
|
-
};
|
|
149
|
-
colorTitle?: ReplyTextPalette;
|
|
150
|
-
placeholder?: string;
|
|
151
|
-
label?: string;
|
|
152
|
-
width?: string;
|
|
153
|
-
required?: boolean;
|
|
154
|
-
background?: string;
|
|
155
|
-
variant?: ReplyVariants;
|
|
156
|
-
disabled?: boolean;
|
|
157
|
-
rows?: number;
|
|
158
|
-
maxLength?: number;
|
|
159
|
-
value: string;
|
|
160
|
-
state: React.Dispatch<React.SetStateAction<string>>;
|
|
161
|
-
onBlur?: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
declare function getIcon(name?: string): ComponentType | null;
|
|
165
|
-
|
|
166
|
-
declare const SCTextArea: ({ title, iconTitle, infoTitle, label, placeholder, maxLength, variant, disabled, required, width, rows, colorTitle, background, state, value, onBlur, }: SCTextAreaProps) => React__default.JSX.Element;
|
|
167
|
-
|
|
168
|
-
interface SCTextFieldProps {
|
|
169
|
-
title?: string;
|
|
170
|
-
iconTitle?: string;
|
|
171
|
-
infoTitle?: {
|
|
172
|
-
text?: string;
|
|
173
|
-
component?: "tooltip" | "popover";
|
|
174
|
-
};
|
|
175
|
-
label?: string;
|
|
176
|
-
placeholder?: string;
|
|
177
|
-
color?: ReplyPalette$1;
|
|
178
|
-
width?: string;
|
|
179
|
-
background?: string;
|
|
180
|
-
format?: 'int' | 'text' | 'password' | 'decimal';
|
|
181
|
-
iconInputStart?: string;
|
|
182
|
-
iconInputEnd?: string;
|
|
183
|
-
infoElement?: {
|
|
184
|
-
text?: string;
|
|
185
|
-
component?: "tooltip" | "popover";
|
|
186
|
-
};
|
|
187
|
-
size?: "small" | "medium";
|
|
188
|
-
variant?: "outlined" | "filled" | "standard";
|
|
189
|
-
value: string;
|
|
190
|
-
maxLength?: number;
|
|
191
|
-
disabled?: boolean;
|
|
192
|
-
required?: boolean;
|
|
193
|
-
state: React.Dispatch<React.SetStateAction<string>>;
|
|
194
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
195
|
-
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
196
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
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__default.JSX.Element;
|
|
200
|
-
|
|
201
|
-
type ReplyPalette = "primary" | "secondary" | "warning" | "info" | "success" | "error" | "inherit";
|
|
202
|
-
|
|
203
|
-
interface SCDialogProps {
|
|
204
|
-
title?: string;
|
|
205
|
-
iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
|
|
206
|
-
subtitle?: string;
|
|
207
|
-
content?: any;
|
|
208
|
-
actions?: {
|
|
209
|
-
text: string;
|
|
210
|
-
fn: () => void;
|
|
211
|
-
disabled?: boolean;
|
|
212
|
-
}[];
|
|
213
|
-
buttonDialog?: {
|
|
214
|
-
icon?: string;
|
|
215
|
-
text?: string;
|
|
216
|
-
color?: ReplyPalette;
|
|
217
|
-
tooltip?: string;
|
|
218
|
-
variant?: 'text' | 'outlined' | 'contained';
|
|
219
|
-
iconPosition?: 'left' | 'right' | undefined;
|
|
220
|
-
};
|
|
221
|
-
disableClose?: boolean;
|
|
222
|
-
dividers?: boolean;
|
|
223
|
-
widthContent?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
224
|
-
heightContent?: string;
|
|
225
|
-
background?: string;
|
|
226
|
-
setShow?: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
227
|
-
show?: boolean | any;
|
|
228
|
-
}
|
|
229
|
-
declare const SCDialog: ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }: SCDialogProps) => React__default.JSX.Element;
|
|
230
|
-
|
|
231
|
-
/***************************************************************************/
|
|
232
|
-
|
|
233
|
-
interface Option$1 {
|
|
234
|
-
name?: string;
|
|
235
|
-
iconLeft?: any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType | null;
|
|
236
|
-
iconRight?: any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType | null;
|
|
237
|
-
divider?: boolean;
|
|
238
|
-
page: React__default.ReactNode | React__default.ReactElement;
|
|
239
|
-
}
|
|
240
|
-
interface SCMenuProps {
|
|
241
|
-
header?: any;
|
|
242
|
-
options: Option$1[];
|
|
243
|
-
defaultOption?: string;
|
|
244
|
-
disable?: boolean;
|
|
245
|
-
widthMenu?: string;
|
|
246
|
-
heightMenu?: string;
|
|
247
|
-
widthPage?: string;
|
|
248
|
-
}
|
|
249
|
-
declare const SCMenu: ({ header, options, defaultOption, disable, widthMenu, heightMenu, widthPage }: SCMenuProps) => React__default.JSX.Element;
|
|
250
|
-
|
|
251
|
-
/***************************************************************************/
|
|
252
|
-
|
|
253
|
-
interface Option {
|
|
254
|
-
name?: string;
|
|
255
|
-
iconOrBadge: string | number | null | undefined | any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType;
|
|
256
|
-
disabled?: boolean;
|
|
257
|
-
page: React__default.ReactNode | React__default.ReactElement;
|
|
258
|
-
}
|
|
259
|
-
interface SCTabsProps {
|
|
260
|
-
options: Option[];
|
|
261
|
-
defaultOption?: string;
|
|
262
|
-
typeIcon?: "badge" | "icon";
|
|
263
|
-
background?: string;
|
|
264
|
-
iconPosition?: "top" | "bottom" | "start" | "end";
|
|
265
|
-
colorTab?: "secondary" | "primary";
|
|
266
|
-
orientation?: "horizontal" | "vertical";
|
|
267
|
-
variant?: "standard" | "fullWidth" | "scrollable";
|
|
268
|
-
scrollButtons?: boolean;
|
|
269
|
-
children?: any;
|
|
270
|
-
}
|
|
271
|
-
declare const SCTabs: ({ options, defaultOption, typeIcon, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }: SCTabsProps) => React__default.JSX.Element;
|
|
272
|
-
|
|
273
|
-
interface FooterActionsProperties {
|
|
274
|
-
label?: React.ReactNode;
|
|
275
|
-
leftContent?: React.ReactNode;
|
|
276
|
-
rightContent?: React.ReactNode;
|
|
277
|
-
variant?: 'standard' | 'float';
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
declare const FooterAction: ({ leftContent, rightContent, label, variant, }: FooterActionsProperties) => React__default.JSX.Element;
|
|
281
|
-
|
|
282
|
-
declare const modalStateConfig: {
|
|
283
|
-
info: {
|
|
284
|
-
color: string;
|
|
285
|
-
defaultDescription: string;
|
|
286
|
-
icon: React__default.JSX.Element;
|
|
287
|
-
};
|
|
288
|
-
delete: {
|
|
289
|
-
color: string;
|
|
290
|
-
defaultDescription: string;
|
|
291
|
-
icon: React__default.JSX.Element;
|
|
292
|
-
};
|
|
293
|
-
warning: {
|
|
294
|
-
color: string;
|
|
295
|
-
defaultDescription: string;
|
|
296
|
-
icon: React__default.JSX.Element;
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
type ModalStates = 'info' | 'delete' | 'warning';
|
|
301
|
-
interface ModalProps {
|
|
302
|
-
title: string;
|
|
303
|
-
description?: string;
|
|
304
|
-
textButton?: string;
|
|
305
|
-
buttonVariant?: RepplyButtonVariants;
|
|
306
|
-
iconPosition?: 'left' | 'right';
|
|
307
|
-
buttonColor?: ReplyPalette$1;
|
|
308
|
-
state: ModalStates;
|
|
309
|
-
open: boolean;
|
|
310
|
-
action?: {
|
|
311
|
-
text: string;
|
|
312
|
-
fn: () => void;
|
|
313
|
-
disabled?: boolean;
|
|
314
|
-
}[];
|
|
315
|
-
buttonModal?: {
|
|
316
|
-
icon?: string;
|
|
317
|
-
text?: string;
|
|
318
|
-
color?: ReplyPalette$1;
|
|
319
|
-
variant?: 'text' | 'outlined' | 'contained';
|
|
320
|
-
iconPosition?: 'left' | 'right';
|
|
321
|
-
size?: "small" | "medium" | "large";
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
declare const getIconComponent: (iconName?: string) => React.ElementType;
|
|
326
|
-
declare const getModalColor: (state: string) => string;
|
|
327
|
-
declare const getButtonColor: (state: string) => 'inherit' | 'info' | 'error' | 'warning';
|
|
328
|
-
|
|
329
|
-
declare const SCModal: ({ buttonModal, state, open, title, description, action, }: ModalProps) => React__default.JSX.Element;
|
|
330
|
-
|
|
331
|
-
interface PageheaderProperties {
|
|
332
|
-
title: string | React.ReactNode;
|
|
333
|
-
subtitle?: string | React.ReactNode;
|
|
334
|
-
actions?: React.ReactNode;
|
|
335
|
-
buttonBack?: React.ReactNode;
|
|
336
|
-
fixed?: boolean;
|
|
337
|
-
shadow?: boolean;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
declare const PageHeader: ({ title, subtitle, actions, buttonBack, fixed, shadow, }: PageheaderProperties) => React__default.JSX.Element;
|
|
341
|
-
|
|
342
|
-
/***************************************************************************/
|
|
343
|
-
|
|
344
|
-
interface SCCalendarSwipeableProps {
|
|
345
|
-
background?: string;
|
|
346
|
-
setState: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
347
|
-
state: string | any;
|
|
348
|
-
}
|
|
349
|
-
declare const SCCalendarSwipeable: ({ background, setState, state, }: SCCalendarSwipeableProps) => React__default.JSX.Element;
|
|
350
|
-
|
|
351
|
-
interface SCDataGridProps {
|
|
352
|
-
data: any;
|
|
353
|
-
columns: any;
|
|
354
|
-
rowsTable?: number;
|
|
355
|
-
checkboxSelection?: boolean;
|
|
356
|
-
width?: string | number;
|
|
357
|
-
height?: number;
|
|
358
|
-
maxHeight?: number;
|
|
359
|
-
density?: "compact" | "standard" | "comfortable";
|
|
360
|
-
agrupacion?: boolean;
|
|
361
|
-
columnsGrouping?: number;
|
|
362
|
-
groupingColDef?: any;
|
|
363
|
-
getTreeDataPath?: (row: any) => string[] | [];
|
|
364
|
-
otherProps?: any;
|
|
365
|
-
}
|
|
366
|
-
declare const SCDataGrid: ({ data, columns, rowsTable, checkboxSelection, width, height, maxHeight, density, agrupacion, groupingColDef, getTreeDataPath, ...props }: SCDataGridProps) => React__default.JSX.Element;
|
|
367
|
-
|
|
368
|
-
interface SCAutocompleteProps<T> {
|
|
369
|
-
label?: string;
|
|
370
|
-
data: T[];
|
|
371
|
-
columnGroup?: string;
|
|
372
|
-
getItemValue: (item: T) => {
|
|
373
|
-
icon?: any;
|
|
374
|
-
text: string;
|
|
375
|
-
value: string;
|
|
376
|
-
};
|
|
377
|
-
type?: "normal" | "multiselect";
|
|
378
|
-
checkMassive?: boolean;
|
|
379
|
-
deleteType?: "button" | "icon";
|
|
380
|
-
required?: boolean;
|
|
381
|
-
disabled?: boolean;
|
|
382
|
-
background?: string;
|
|
383
|
-
fnAplicar?: () => void | React__default.ReactNode;
|
|
384
|
-
setState: React__default.Dispatch<React__default.SetStateAction<any>>;
|
|
385
|
-
state: {
|
|
386
|
-
hiddenValue: string | string[];
|
|
387
|
-
textValue: string | string[];
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, type, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, }: SCAutocompleteProps<T>): React__default.JSX.Element;
|
|
391
|
-
|
|
392
|
-
declare const SincoTheme: _mui_material_styles.Theme;
|
|
393
|
-
declare let AdproSincoTheme: _mui_material_styles.Theme;
|
|
394
|
-
declare let ADCSincoTheme: _mui_material_styles.Theme;
|
|
395
|
-
|
|
396
|
-
export { ADCSincoTheme, AdproSincoTheme, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, type MultiSelectProps, PageHeader, type PageheaderProperties, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyButtonVariants, SCAutocomplete, SCCalendarSwipeable, SCDataGrid, SCDialog, SCDrawer, SCMenu, SCModal, SCMultiSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
|