componentes-sinco 1.0.3 → 1.0.5
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/create-KZGO2OZA.svg +18 -0
- package/dist/empty-3NEKE7WO.svg +13 -0
- package/dist/error-RUCZUXDN.svg +5 -0
- package/dist/index.cjs +1555 -1101
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +216 -148
- package/dist/index.d.ts +216 -148
- package/dist/index.js +1536 -1086
- package/dist/index.js.map +1 -0
- package/dist/search-OKSCVF2W.svg +12 -0
- package/package.json +24 -17
- package/dist/componentes-sinco.css +0 -1
- 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.d.ts
CHANGED
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ComponentType } from 'react';
|
|
2
|
+
import React__default, { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import * as Muicon from '@mui/icons-material';
|
|
4
4
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
5
5
|
import * as _mui_material from '@mui/material';
|
|
6
|
+
import { Dayjs } from 'dayjs';
|
|
6
7
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
7
8
|
|
|
8
|
-
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error";
|
|
9
|
+
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
|
|
9
10
|
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
10
11
|
type ReplyVariants = "outlined" | "filled" | "standard";
|
|
11
12
|
type RepplyButtonVariants = "text" | "contained" | "outlined";
|
|
12
13
|
|
|
13
14
|
declare function capitalize(text: string): string;
|
|
14
15
|
|
|
15
|
-
interface ArrayElement {
|
|
16
|
-
|
|
16
|
+
interface ArrayElement<T> {
|
|
17
|
+
data?: T[];
|
|
18
|
+
columnGroup?: string;
|
|
19
|
+
getItemValue?: (item: T) => {
|
|
20
|
+
icon?: any;
|
|
21
|
+
text: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
typeFormat?: "normal" | "multiselect";
|
|
25
|
+
checkMassive?: boolean;
|
|
26
|
+
deleteType?: "button" | "icon";
|
|
27
|
+
type?: 'textField' | 'textArea' | 'select' | 'autocomplete' | 'dateRange';
|
|
17
28
|
title?: string;
|
|
18
29
|
iconTitle?: keyof typeof Muicon;
|
|
19
30
|
infoTitle?: {
|
|
@@ -21,6 +32,8 @@ interface ArrayElement {
|
|
|
21
32
|
component?: "tooltip" | "popover";
|
|
22
33
|
};
|
|
23
34
|
label?: string;
|
|
35
|
+
labelDateInitial?: string;
|
|
36
|
+
labelDateFinal?: string;
|
|
24
37
|
placeholder?: string;
|
|
25
38
|
infoElement?: {
|
|
26
39
|
text?: string;
|
|
@@ -39,24 +52,27 @@ interface ArrayElement {
|
|
|
39
52
|
rows?: number;
|
|
40
53
|
color?: ReplyPalette$1;
|
|
41
54
|
background?: string;
|
|
42
|
-
|
|
43
|
-
|
|
55
|
+
setState?: any | React.Dispatch<React.SetStateAction<string>>;
|
|
56
|
+
state?: any;
|
|
44
57
|
onChange?: () => {};
|
|
45
58
|
onBlur?: () => {};
|
|
46
59
|
onKeyDown?: () => {};
|
|
60
|
+
fnAplicar?: () => void | React.ReactNode;
|
|
61
|
+
inputChange?: (value: string) => void;
|
|
47
62
|
}
|
|
48
|
-
interface DrawerProps {
|
|
63
|
+
interface DrawerProps<T> {
|
|
49
64
|
title?: string;
|
|
50
|
-
arrayElements?: ArrayElement[];
|
|
65
|
+
arrayElements?: ArrayElement<T>[];
|
|
51
66
|
actions?: {
|
|
52
67
|
text: string;
|
|
53
68
|
fn: () => void;
|
|
54
69
|
disabled?: boolean;
|
|
55
|
-
}[];
|
|
70
|
+
}[] | boolean;
|
|
56
71
|
buttonDrawer?: {
|
|
57
|
-
|
|
72
|
+
type?: 'chip' | 'button';
|
|
73
|
+
icon?: keyof typeof Muicon | any;
|
|
58
74
|
text?: string;
|
|
59
|
-
color?: ReplyPalette$1;
|
|
75
|
+
color?: ReplyPalette$1 | any;
|
|
60
76
|
variant?: 'text' | 'outlined' | 'contained';
|
|
61
77
|
iconPosition?: 'left' | 'right' | undefined;
|
|
62
78
|
};
|
|
@@ -90,7 +106,65 @@ declare const ToastProgress: (timeProgress: number) => {
|
|
|
90
106
|
progressToast: number;
|
|
91
107
|
};
|
|
92
108
|
|
|
93
|
-
declare
|
|
109
|
+
declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, }: DrawerProps<T>): React__default.JSX.Element;
|
|
110
|
+
|
|
111
|
+
interface FooterActionsProperties {
|
|
112
|
+
label?: React.ReactNode;
|
|
113
|
+
leftContent?: React.ReactNode;
|
|
114
|
+
rightContent?: React.ReactNode;
|
|
115
|
+
variant?: 'standard' | 'float';
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare const FooterAction: ({ leftContent, rightContent, label, variant, }: FooterActionsProperties) => React__default.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare const modalStateConfig: {
|
|
121
|
+
info: {
|
|
122
|
+
color: string;
|
|
123
|
+
defaultDescription: string;
|
|
124
|
+
icon: React__default.JSX.Element;
|
|
125
|
+
};
|
|
126
|
+
delete: {
|
|
127
|
+
color: string;
|
|
128
|
+
defaultDescription: string;
|
|
129
|
+
icon: React__default.JSX.Element;
|
|
130
|
+
};
|
|
131
|
+
warning: {
|
|
132
|
+
color: string;
|
|
133
|
+
defaultDescription: string;
|
|
134
|
+
icon: React__default.JSX.Element;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
type ModalStates = 'info' | 'delete' | 'warning';
|
|
139
|
+
interface ModalProps {
|
|
140
|
+
title: string;
|
|
141
|
+
description?: string;
|
|
142
|
+
textButton?: string;
|
|
143
|
+
buttonVariant?: RepplyButtonVariants;
|
|
144
|
+
iconPosition?: 'left' | 'right';
|
|
145
|
+
buttonColor?: ReplyPalette$1;
|
|
146
|
+
state: ModalStates;
|
|
147
|
+
open: boolean;
|
|
148
|
+
action?: {
|
|
149
|
+
text: string;
|
|
150
|
+
fn: () => void;
|
|
151
|
+
disabled?: boolean;
|
|
152
|
+
}[];
|
|
153
|
+
buttonModal?: {
|
|
154
|
+
icon?: string;
|
|
155
|
+
text?: string;
|
|
156
|
+
color?: ReplyPalette$1;
|
|
157
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
158
|
+
iconPosition?: 'left' | 'right';
|
|
159
|
+
size?: "small" | "medium" | "large";
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
declare const getIconComponent: (iconName?: string) => React.ElementType;
|
|
164
|
+
declare const getModalColor: (state: string) => string;
|
|
165
|
+
declare const getButtonColor: (state: string) => 'inherit' | 'info' | 'error' | 'warning';
|
|
166
|
+
|
|
167
|
+
declare const SCModal: ({ buttonModal, state, open, title, description, action, }: ModalProps) => React__default.JSX.Element;
|
|
94
168
|
|
|
95
169
|
interface MultiSelectProps<T> {
|
|
96
170
|
textButton?: string;
|
|
@@ -137,7 +211,18 @@ declare function useFilteredItems<T>(items: T[], filterValue: string, getItemLab
|
|
|
137
211
|
sortedItems: T[];
|
|
138
212
|
};
|
|
139
213
|
|
|
140
|
-
declare function
|
|
214
|
+
declare function MultiSelect<T>({ textButton, button, items, topPanel, actions, dense, open, selectAll, getItemLabel }: MultiSelectProps<T>): React__default.JSX.Element;
|
|
215
|
+
|
|
216
|
+
interface PageheaderProperties {
|
|
217
|
+
title: string | React.ReactNode;
|
|
218
|
+
subtitle?: string | React.ReactNode;
|
|
219
|
+
actions?: React.ReactNode;
|
|
220
|
+
buttonBack?: React.ReactNode;
|
|
221
|
+
fixed?: boolean;
|
|
222
|
+
shadow?: boolean;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare const PageHeader: ({ title, subtitle, actions, buttonBack, fixed, shadow, }: PageheaderProperties) => React__default.JSX.Element;
|
|
141
226
|
|
|
142
227
|
interface SCTextAreaProps {
|
|
143
228
|
title?: string;
|
|
@@ -156,14 +241,14 @@ interface SCTextAreaProps {
|
|
|
156
241
|
disabled?: boolean;
|
|
157
242
|
rows?: number;
|
|
158
243
|
maxLength?: number;
|
|
159
|
-
|
|
160
|
-
|
|
244
|
+
state: string;
|
|
245
|
+
setState: React.Dispatch<React.SetStateAction<string>>;
|
|
161
246
|
onBlur?: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
162
247
|
}
|
|
163
248
|
|
|
164
249
|
declare function getIcon(name?: string): ComponentType | null;
|
|
165
250
|
|
|
166
|
-
declare const SCTextArea: ({ title, iconTitle, infoTitle, label, placeholder, maxLength, variant, disabled, required, width, rows, colorTitle, background,
|
|
251
|
+
declare const SCTextArea: ({ title, iconTitle, infoTitle, label, placeholder, maxLength, variant, disabled, required, width, rows, colorTitle, background, setState, state, onBlur, }: SCTextAreaProps) => React__default.JSX.Element;
|
|
167
252
|
|
|
168
253
|
interface SCTextFieldProps {
|
|
169
254
|
title?: string;
|
|
@@ -186,30 +271,112 @@ interface SCTextFieldProps {
|
|
|
186
271
|
};
|
|
187
272
|
size?: "small" | "medium";
|
|
188
273
|
variant?: "outlined" | "filled" | "standard";
|
|
189
|
-
value: string;
|
|
190
274
|
maxLength?: number;
|
|
191
275
|
disabled?: boolean;
|
|
192
276
|
required?: boolean;
|
|
193
|
-
|
|
277
|
+
setState: React.Dispatch<React.SetStateAction<string>>;
|
|
278
|
+
state: string;
|
|
194
279
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
195
280
|
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
196
281
|
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
197
282
|
}
|
|
198
283
|
|
|
199
|
-
declare const SCTextField: ({ title, iconTitle, infoTitle, label, placeholder, infoElement, iconInputStart, iconInputEnd, maxLength, variant, format, disabled, required, size, width, color, background,
|
|
284
|
+
declare const SCTextField: ({ title, iconTitle, infoTitle, label, placeholder, infoElement, iconInputStart, iconInputEnd, maxLength, variant, format, disabled, required, size, width, color, background, setState, state, onChange, onBlur, onKeyDown, }: SCTextFieldProps) => React__default.JSX.Element;
|
|
285
|
+
|
|
286
|
+
interface SCAutocompleteProps<T> {
|
|
287
|
+
label?: string;
|
|
288
|
+
data: T[];
|
|
289
|
+
columnGroup?: string;
|
|
290
|
+
getItemValue: (item: T) => {
|
|
291
|
+
icon?: any;
|
|
292
|
+
text: string;
|
|
293
|
+
value: string;
|
|
294
|
+
component?: any;
|
|
295
|
+
};
|
|
296
|
+
typeFormat?: "normal" | "multiselect";
|
|
297
|
+
checkMassive?: boolean;
|
|
298
|
+
deleteType?: "button" | "icon";
|
|
299
|
+
required?: boolean;
|
|
300
|
+
disabled?: boolean;
|
|
301
|
+
background?: string;
|
|
302
|
+
fnAplicar?: () => void | React__default.ReactNode;
|
|
303
|
+
setState: React__default.Dispatch<React__default.SetStateAction<any>>;
|
|
304
|
+
state: {
|
|
305
|
+
hiddenValue: string | string[];
|
|
306
|
+
textValue: string | string[];
|
|
307
|
+
};
|
|
308
|
+
inputChange?: (value: string) => void;
|
|
309
|
+
maxCheck?: number;
|
|
310
|
+
}
|
|
311
|
+
declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, }: SCAutocompleteProps<T>): React__default.JSX.Element;
|
|
312
|
+
|
|
313
|
+
interface SCCalendarSwipeableProps {
|
|
314
|
+
background?: string;
|
|
315
|
+
setState: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
316
|
+
state: string | any;
|
|
317
|
+
}
|
|
318
|
+
declare const SCCalendarSwipeable: ({ background, setState, state, }: SCCalendarSwipeableProps) => React__default.JSX.Element;
|
|
319
|
+
|
|
320
|
+
interface SCDataGridInitialProps {
|
|
321
|
+
data: any;
|
|
322
|
+
columns: any;
|
|
323
|
+
groupColumns?: any;
|
|
324
|
+
rowsTable?: number;
|
|
325
|
+
checkboxSelection?: boolean;
|
|
326
|
+
width?: string | number;
|
|
327
|
+
maxHeight?: number;
|
|
328
|
+
density?: "compact" | "standard" | "comfortable";
|
|
329
|
+
}
|
|
330
|
+
declare const SCDataGridInitial: ({ data, columns, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }: SCDataGridInitialProps) => React__default.JSX.Element;
|
|
331
|
+
declare const SCDataGrid: React__default.MemoExoticComponent<({ data, columns, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }: SCDataGridInitialProps) => React__default.JSX.Element>;
|
|
332
|
+
|
|
333
|
+
type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
|
334
|
+
type EmptyStateSize = 'small' | 'large';
|
|
335
|
+
interface EmptyStateProperties {
|
|
336
|
+
icon?: ReactNode;
|
|
337
|
+
state?: EmptyStateStates;
|
|
338
|
+
size?: EmptyStateSize;
|
|
339
|
+
title: string;
|
|
340
|
+
subtitle?: string;
|
|
341
|
+
actions?: {
|
|
342
|
+
icon?: string;
|
|
343
|
+
text?: string;
|
|
344
|
+
color?: ReplyPalette$1;
|
|
345
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
346
|
+
iconPosition?: 'left' | 'right';
|
|
347
|
+
size?: "small" | "medium" | "large";
|
|
348
|
+
onClick?: () => void;
|
|
349
|
+
}[];
|
|
350
|
+
containerHeight?: string;
|
|
351
|
+
}
|
|
352
|
+
declare const EmptyState: ({ state, size, title, subtitle, actions, containerHeight, icon, }: EmptyStateProperties) => React__default.JSX.Element;
|
|
353
|
+
|
|
354
|
+
interface SCDateRangeProps {
|
|
355
|
+
labelDateInitial?: string;
|
|
356
|
+
labelDateFinal?: string;
|
|
357
|
+
required?: boolean;
|
|
358
|
+
disabled?: boolean;
|
|
359
|
+
background?: string;
|
|
360
|
+
state: [Dayjs | null, Dayjs | null];
|
|
361
|
+
setState: React__default.Dispatch<React__default.SetStateAction<[Dayjs | null, Dayjs | null]>>;
|
|
362
|
+
}
|
|
363
|
+
declare const SCDateRange: ({ labelDateInitial, labelDateFinal, required, disabled, background, state, setState, }: SCDateRangeProps) => React__default.JSX.Element;
|
|
200
364
|
|
|
201
365
|
type ReplyPalette = "primary" | "secondary" | "warning" | "info" | "success" | "error" | "inherit";
|
|
202
366
|
|
|
367
|
+
interface Action {
|
|
368
|
+
text?: string;
|
|
369
|
+
fn?: () => void;
|
|
370
|
+
icon?: any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType | null;
|
|
371
|
+
disabled?: boolean;
|
|
372
|
+
color?: ReplyPalette;
|
|
373
|
+
}
|
|
203
374
|
interface SCDialogProps {
|
|
204
375
|
title?: string;
|
|
205
376
|
iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
|
|
206
377
|
subtitle?: string;
|
|
207
378
|
content?: any;
|
|
208
|
-
actions?:
|
|
209
|
-
text: string;
|
|
210
|
-
fn: () => void;
|
|
211
|
-
disabled?: boolean;
|
|
212
|
-
}[];
|
|
379
|
+
actions?: Action[];
|
|
213
380
|
buttonDialog?: {
|
|
214
381
|
icon?: string;
|
|
215
382
|
text?: string;
|
|
@@ -228,8 +395,6 @@ interface SCDialogProps {
|
|
|
228
395
|
}
|
|
229
396
|
declare const SCDialog: ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }: SCDialogProps) => React__default.JSX.Element;
|
|
230
397
|
|
|
231
|
-
/***************************************************************************/
|
|
232
|
-
|
|
233
398
|
interface Option$1 {
|
|
234
399
|
name?: string;
|
|
235
400
|
iconLeft?: any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType | null;
|
|
@@ -248,8 +413,30 @@ interface SCMenuProps {
|
|
|
248
413
|
}
|
|
249
414
|
declare const SCMenu: ({ header, options, defaultOption, disable, widthMenu, heightMenu, widthPage }: SCMenuProps) => React__default.JSX.Element;
|
|
250
415
|
|
|
251
|
-
|
|
252
|
-
|
|
416
|
+
interface SCSelectProps<T> {
|
|
417
|
+
label?: string;
|
|
418
|
+
data: T[];
|
|
419
|
+
getItemValue: (item: T) => {
|
|
420
|
+
icon?: any;
|
|
421
|
+
text: string;
|
|
422
|
+
value: string;
|
|
423
|
+
};
|
|
424
|
+
width?: string;
|
|
425
|
+
size?: "small" | "medium";
|
|
426
|
+
variant?: "outlined" | "filled" | "standard";
|
|
427
|
+
deleteType?: "button" | "icon";
|
|
428
|
+
required?: boolean;
|
|
429
|
+
disabled?: boolean;
|
|
430
|
+
background?: string;
|
|
431
|
+
fnAplicar?: () => void | React__default.ReactNode;
|
|
432
|
+
setState: React__default.Dispatch<React__default.SetStateAction<any>>;
|
|
433
|
+
state: {
|
|
434
|
+
hiddenValue: string;
|
|
435
|
+
textValue: string;
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
declare function SCSelect<T>({ label, data, getItemValue, width, size, variant, deleteType, required, disabled, background, fnAplicar, setState, state, }: SCSelectProps<T>): React__default.JSX.Element;
|
|
439
|
+
|
|
253
440
|
interface Option {
|
|
254
441
|
name?: string;
|
|
255
442
|
iconOrBadge: string | number | null | undefined | any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType;
|
|
@@ -270,127 +457,8 @@ interface SCTabsProps {
|
|
|
270
457
|
}
|
|
271
458
|
declare const SCTabs: ({ options, defaultOption, typeIcon, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }: SCTabsProps) => React__default.JSX.Element;
|
|
272
459
|
|
|
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
460
|
declare const SincoTheme: _mui_material_styles.Theme;
|
|
393
461
|
declare let AdproSincoTheme: _mui_material_styles.Theme;
|
|
394
462
|
declare let ADCSincoTheme: _mui_material_styles.Theme;
|
|
395
463
|
|
|
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,
|
|
464
|
+
export { ADCSincoTheme, AdproSincoTheme, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, PageHeader, type PageheaderProperties, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyButtonVariants, SCAutocomplete, SCCalendarSwipeable, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCMenu, SCModal, SCSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
|