@imj_media/ui 1.2.37 → 1.2.39
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/CHANGELOG.md +73 -0
- package/dist/index.css +1 -1
- package/dist/index.esm.js +13037 -12294
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/modules/Button/components/organisms/Button.d.ts +1 -1
- package/dist/modules/Checkbox/index.d.ts +30 -0
- package/dist/modules/Checkbox/index.d.ts.map +1 -0
- package/dist/modules/Checkbox/stories/Checkbox.stories.d.ts +33 -0
- package/dist/modules/Checkbox/stories/Checkbox.stories.d.ts.map +1 -0
- package/dist/modules/EmojiPicker/components/organisms/EmojiPicker.d.ts +1 -1
- package/dist/modules/EmojiPicker/stories/emojipicker.stories.d.ts +1 -1
- package/dist/modules/InnerButton/InnerButton.d.ts +6 -0
- package/dist/modules/InnerButton/InnerButton.d.ts.map +1 -0
- package/dist/modules/InnerButton/components/ButtonBadge.d.ts +50 -0
- package/dist/modules/InnerButton/components/ButtonBadge.d.ts.map +1 -0
- package/dist/modules/InnerButton/components/ButtonContent.d.ts +38 -0
- package/dist/modules/InnerButton/components/ButtonContent.d.ts.map +1 -0
- package/dist/modules/InnerButton/components/ButtonIcon.d.ts +42 -0
- package/dist/modules/InnerButton/components/ButtonIcon.d.ts.map +1 -0
- package/dist/modules/InnerButton/components/ButtonSlots.d.ts +64 -0
- package/dist/modules/InnerButton/components/ButtonSlots.d.ts.map +1 -0
- package/dist/modules/InnerButton/components/index.d.ts +15 -0
- package/dist/modules/InnerButton/components/index.d.ts.map +1 -0
- package/dist/modules/InnerButton/hooks/index.d.ts +7 -0
- package/dist/modules/InnerButton/hooks/index.d.ts.map +1 -0
- package/dist/modules/InnerButton/hooks/useBadgeLoading.d.ts +14 -0
- package/dist/modules/InnerButton/hooks/useBadgeLoading.d.ts.map +1 -0
- package/dist/modules/InnerButton/hooks/useButtonClasses.d.ts +37 -0
- package/dist/modules/InnerButton/hooks/useButtonClasses.d.ts.map +1 -0
- package/dist/modules/InnerButton/hooks/useHoverText.d.ts +28 -0
- package/dist/modules/InnerButton/hooks/useHoverText.d.ts.map +1 -0
- package/dist/modules/InnerButton/index.d.ts +7 -2
- package/dist/modules/InnerButton/index.d.ts.map +1 -1
- package/dist/modules/InnerButton/stories/InnerButton.stories.d.ts +20 -0
- package/dist/modules/InnerButton/stories/InnerButton.stories.d.ts.map +1 -1
- package/dist/modules/InnerButton/styles/buttonVariants.d.ts +42 -0
- package/dist/modules/InnerButton/styles/buttonVariants.d.ts.map +1 -0
- package/dist/modules/InnerButton/styles/index.d.ts +6 -0
- package/dist/modules/InnerButton/styles/index.d.ts.map +1 -0
- package/dist/modules/InnerButton/styles/variantColors.d.ts +42 -0
- package/dist/modules/InnerButton/styles/variantColors.d.ts.map +1 -0
- package/dist/modules/InnerButton/utils/badgeUtils.d.ts +40 -0
- package/dist/modules/InnerButton/utils/badgeUtils.d.ts.map +1 -0
- package/dist/modules/InnerButton/utils/colorUtils.d.ts +14 -0
- package/dist/modules/InnerButton/utils/colorUtils.d.ts.map +1 -0
- package/dist/modules/InnerButton/utils/configConverters.d.ts +31 -0
- package/dist/modules/InnerButton/utils/configConverters.d.ts.map +1 -0
- package/dist/modules/InnerButton/utils/deprecation.d.ts +11 -0
- package/dist/modules/InnerButton/utils/deprecation.d.ts.map +1 -0
- package/dist/modules/InnerButton/utils/iconUtils.d.ts +16 -0
- package/dist/modules/InnerButton/utils/iconUtils.d.ts.map +1 -0
- package/dist/modules/InnerButton/utils/index.d.ts +9 -0
- package/dist/modules/InnerButton/utils/index.d.ts.map +1 -0
- package/dist/modules/Lists/components/molecules/ListItemCheckbox.d.ts.map +1 -1
- package/dist/modules/Lists/components/organisms/List.d.ts.map +1 -1
- package/dist/modules/Lists/components/organisms/ListBase.d.ts.map +1 -1
- package/dist/modules/Lists/components/organisms/ListFiltersCheckbox.d.ts.map +1 -1
- package/dist/modules/Lists/components/organisms/ListUsersSelect.d.ts.map +1 -1
- package/dist/modules/Modal/Modal.d.ts.map +1 -1
- package/dist/modules/Modal/components/molecules/ModalFooter.d.ts +1 -1
- package/dist/modules/Modal/components/molecules/ModalFooter.d.ts.map +1 -1
- package/dist/modules/Modal/components/molecules/ModalHeader.d.ts +1 -1
- package/dist/modules/Modal/components/molecules/ModalHeader.d.ts.map +1 -1
- package/dist/modules/Modal/context/ModalContext.d.ts.map +1 -1
- package/dist/modules/Modal/stories/Modal.stories.d.ts +6 -0
- package/dist/modules/Modal/stories/Modal.stories.d.ts.map +1 -1
- package/dist/modules/Table/components/molecules/SelectionCheckbox.d.ts +9 -9
- package/dist/modules/Table/components/molecules/SelectionCheckbox.d.ts.map +1 -1
- package/dist/modules/Table/components/molecules/TableRow.d.ts.map +1 -1
- package/dist/modules/Toolbar/components/organisms/Toolbar.d.ts.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/shared/types/button.d.ts +88 -4
- package/dist/shared/types/button.d.ts.map +1 -1
- package/dist/shared/types/buttonConfig.d.ts +67 -0
- package/dist/shared/types/buttonConfig.d.ts.map +1 -0
- package/dist/shared/types/emojipicker.d.ts +2 -2
- package/dist/shared/types/modal.d.ts +174 -21
- package/dist/shared/types/modal.d.ts.map +1 -1
- package/dist/shared/types/switch.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,89 @@
|
|
|
1
1
|
import { ButtonColors, IconType, IconFontColor, VisualSlotType } from './types';
|
|
2
2
|
import { SwitchOption } from './switch';
|
|
3
3
|
import { IconProp, IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
|
+
import { IInnerButtonProps } from './button';
|
|
5
|
+
import { IconProps } from './icon';
|
|
6
|
+
import { IBadgeProps } from './badge';
|
|
4
7
|
type AnyIconDefinition = IconProp | IconDefinition | {
|
|
5
8
|
icon: any;
|
|
6
9
|
prefix?: string;
|
|
7
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Configuración de un botón genérico del Modal
|
|
13
|
+
* Sistema agnóstico que permite definir cualquier cantidad de botones con cualquier configuración
|
|
14
|
+
* Extiende todas las props opcionales de InnerButton para máxima flexibilidad
|
|
15
|
+
*/
|
|
16
|
+
export interface ModalButton extends Pick<IInnerButtonProps, 'className' | 'classNameLabel' | 'rounded' | 'clickable' | 'square' | 'badgeColor' | 'badgeLabel' | 'badgeTheme' | 'badgeSize' | 'badgeStroke' | 'badgeIcon' | 'badgeIconDuotonePrimary' | 'badgeIconDuotoneSecondary' | 'badgeIconDuotoneOpacityPrimary' | 'badgeIconDuotoneOpacitySecondary' | 'badgeLoading' | 'colorIcon' | 'leftSlotDuotonePrimary' | 'leftSlotDuotoneSecondary' | 'leftSlotDuotoneOpacityPrimary' | 'leftSlotDuotoneOpacitySecondary' | 'rightSlotDuotonePrimary' | 'rightSlotDuotoneSecondary' | 'rightSlotDuotoneOpacityPrimary' | 'rightSlotDuotoneOpacitySecondary' | 'fullWidth' | 'link' | 'borderable' | 'target' | 'onClickLeftSlot' | 'onClickRightSlot' | 'as' | 'classNameId' | 'showShadow' | 'tooltip' | 'tooltipPosition' | 'tooltipAlignment' | 'tooltipColor' | 'tooltipDelay' | 'tooltipAbsolute' | 'defaultTooltipColor' | 'classNameTooltip' | 'classNameIcon' | 'stopPropagation' | 'pointer' | 'textColor' | 'textAlign' | 'whiteBackground' | 'strokeWidth' | 'transition' | 'active' | 'hoverText'> {
|
|
17
|
+
/** ID único del botón (opcional, útil para identificar el botón en callbacks) */
|
|
18
|
+
id?: string;
|
|
19
|
+
/** Texto del botón (opcional para botones solo con icono) */
|
|
20
|
+
label?: string;
|
|
21
|
+
/** Callback que se ejecuta al hacer clic en el botón */
|
|
22
|
+
onClick?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
23
|
+
/** Color del botón */
|
|
24
|
+
color?: ButtonColors;
|
|
25
|
+
/** Si el botón está deshabilitado */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** Icono del botón */
|
|
28
|
+
icon?: IconType | AnyIconDefinition;
|
|
29
|
+
/** Icono a la izquierda del texto (para botones con texto) */
|
|
30
|
+
leftSlot?: VisualSlotType;
|
|
31
|
+
/** Icono a la derecha del texto (para botones con texto) */
|
|
32
|
+
rightSlot?: VisualSlotType;
|
|
33
|
+
/** Si el modal debe cerrarse automáticamente al hacer clic en este botón */
|
|
34
|
+
closeOnClick?: boolean;
|
|
35
|
+
/** Si el botón debe mostrarse (útil para mostrar/ocultar condicionalmente) */
|
|
36
|
+
show?: boolean;
|
|
37
|
+
/** Tema del botón */
|
|
38
|
+
theme?: 'solid' | 'icon' | 'emoji';
|
|
39
|
+
/** Tamaño del botón */
|
|
40
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
41
|
+
/** Pill del botón */
|
|
42
|
+
pill?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'pill';
|
|
43
|
+
iconDuotonePrimary?: IconFontColor;
|
|
44
|
+
iconDuotoneSecondary?: IconFontColor;
|
|
45
|
+
iconDuotoneOpacityPrimary?: number;
|
|
46
|
+
iconDuotoneOpacitySecondary?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Configuración de un badge del Modal
|
|
50
|
+
* Sistema agnóstico que permite definir cualquier cantidad de badges
|
|
51
|
+
* Extiende todas las props opcionales de Badge para máxima flexibilidad
|
|
52
|
+
*/
|
|
53
|
+
export interface ModalBadge extends Omit<IBadgeProps, 'label'> {
|
|
54
|
+
/** ID único del badge (opcional) */
|
|
55
|
+
id?: string;
|
|
56
|
+
/** Etiqueta del badge */
|
|
57
|
+
label: string;
|
|
58
|
+
/** Si el badge debe mostrarse */
|
|
59
|
+
show?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Configuración del icono principal del Modal
|
|
63
|
+
* Extiende todas las props opcionales de Icon para máxima flexibilidad
|
|
64
|
+
*/
|
|
65
|
+
export interface ModalIcon extends Omit<IconProps, 'name'> {
|
|
66
|
+
/** Icono a mostrar (mapeado desde IconProps.name) */
|
|
67
|
+
icon: IconType | AnyIconDefinition;
|
|
68
|
+
/** Si el icono debe mostrarse */
|
|
69
|
+
show?: boolean;
|
|
70
|
+
/** @deprecated Usar colorDuotonePrimary en su lugar */
|
|
71
|
+
iconDuotonePrimary?: IconFontColor;
|
|
72
|
+
/** @deprecated Usar colorDuotoneSecondary en su lugar */
|
|
73
|
+
iconDuotoneSecondary?: IconFontColor;
|
|
74
|
+
/** @deprecated Usar opacityDuotonePrimary en su lugar */
|
|
75
|
+
iconDuotoneOpacityPrimary?: number;
|
|
76
|
+
/** @deprecated Usar opacityDuotoneSecondary en su lugar */
|
|
77
|
+
iconDuotoneOpacitySecondary?: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Configuración de un botón del footer del Modal
|
|
81
|
+
* @deprecated Usar ModalButton en su lugar. Se mantiene para retrocompatibilidad.
|
|
82
|
+
*/
|
|
83
|
+
export interface ModalFooterButton extends ModalButton {
|
|
84
|
+
/** Texto del botón */
|
|
85
|
+
label: string;
|
|
86
|
+
}
|
|
8
87
|
export interface ModalProps {
|
|
9
88
|
isOpen: boolean;
|
|
10
89
|
onClose: () => void;
|
|
@@ -15,51 +94,115 @@ export interface ModalProps {
|
|
|
15
94
|
disableOutsideClick?: boolean;
|
|
16
95
|
closeAtCorner?: boolean;
|
|
17
96
|
showCloseButton?: boolean;
|
|
18
|
-
|
|
19
|
-
successButtonText?: string;
|
|
20
|
-
onCancel?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
21
|
-
onSuccess?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
97
|
+
title?: string;
|
|
22
98
|
/** z-index level: 50 (default), 60 (for nested modals like AlertDialog) */
|
|
23
99
|
zIndex?: 50 | 60;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
100
|
+
hideFooter?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Sistema nuevo: Icono principal del Modal
|
|
103
|
+
* Permite configurar el icono principal de forma más flexible
|
|
104
|
+
* Si se proporciona, tiene prioridad sobre las props legacy (icon, iconDuotonePrimary, etc.)
|
|
105
|
+
*/
|
|
106
|
+
iconConfig?: ModalIcon;
|
|
107
|
+
/**
|
|
108
|
+
* Sistema nuevo: Botón del header (modelo cerrado)
|
|
109
|
+
* Solo existe un botón en el header actualmente
|
|
110
|
+
* Si se proporciona, tiene prioridad sobre las props legacy (headerButtonIcon, headerButtonOnClick, etc.)
|
|
111
|
+
* Para casos especiales con múltiples botones, usar headerButtons (array)
|
|
112
|
+
*/
|
|
113
|
+
headerButton?: ModalButton;
|
|
114
|
+
/**
|
|
115
|
+
* Sistema nuevo: Array de botones del header (para casos especiales)
|
|
116
|
+
* Permite definir múltiples botones cuando se necesite más flexibilidad
|
|
117
|
+
*/
|
|
118
|
+
headerButtons?: ModalButton[];
|
|
119
|
+
/**
|
|
120
|
+
* Sistema nuevo: Badge del header (modelo cerrado)
|
|
121
|
+
* Solo existe un badge en el header actualmente
|
|
122
|
+
* Si se proporciona, tiene prioridad sobre las props legacy (badgeIcon, badgeLabel, etc.)
|
|
123
|
+
* Para casos especiales con múltiples badges, usar badges (array)
|
|
124
|
+
*/
|
|
125
|
+
badge?: ModalBadge;
|
|
126
|
+
/**
|
|
127
|
+
* Sistema nuevo: Array de badges del header (para casos especiales)
|
|
128
|
+
* Permite definir múltiples badges cuando se necesite más flexibilidad
|
|
129
|
+
*/
|
|
130
|
+
badges?: ModalBadge[];
|
|
131
|
+
/**
|
|
132
|
+
* Sistema nuevo: Botón auxiliar del footer (a la izquierda)
|
|
133
|
+
* Solo existe un botón auxiliar en el footer actualmente
|
|
134
|
+
* Si se proporciona, tiene prioridad sobre las props legacy (footerButtonIcon, footerButtonOnClick, etc.)
|
|
135
|
+
*/
|
|
136
|
+
footerAuxButton?: ModalButton;
|
|
137
|
+
/**
|
|
138
|
+
* Sistema nuevo: Botones del footer (modelo cerrado)
|
|
139
|
+
* Define específicamente los botones principales del footer (primary = success, secondary = cancel)
|
|
140
|
+
* Si se proporciona, tiene prioridad sobre las props legacy (cancelButtonText, successButtonText, etc.)
|
|
141
|
+
* Para casos especiales con más botones, usar footerButtons (array)
|
|
142
|
+
*/
|
|
143
|
+
footerPrimaryButton?: ModalButton;
|
|
144
|
+
footerSecondaryButton?: ModalButton;
|
|
145
|
+
/**
|
|
146
|
+
* Sistema nuevo: Array de botones del footer (para casos especiales)
|
|
147
|
+
* Permite definir múltiples botones cuando se necesite más flexibilidad
|
|
148
|
+
*/
|
|
149
|
+
footerButtons?: ModalButton[];
|
|
150
|
+
/**
|
|
151
|
+
* @deprecated Usar iconConfig en su lugar
|
|
152
|
+
*/
|
|
29
153
|
icon?: IconType | AnyIconDefinition;
|
|
30
154
|
iconDuotonePrimary?: IconFontColor;
|
|
31
155
|
iconDuotoneSecondary?: IconFontColor;
|
|
32
156
|
iconDuotoneOpacityPrimary?: number;
|
|
33
157
|
iconDuotoneOpacitySecondary?: number;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
158
|
+
/**
|
|
159
|
+
* @deprecated Usar headerButton en su lugar
|
|
160
|
+
*/
|
|
37
161
|
headerButtonIcon?: IconType | AnyIconDefinition;
|
|
38
162
|
headerButtonIconDuotonePrimary?: IconFontColor;
|
|
39
163
|
headerButtonIconDuotoneSecondary?: IconFontColor;
|
|
40
164
|
headerButtonIconDuotoneOpacityPrimary?: number;
|
|
41
165
|
headerButtonIconDuotoneOpacitySecondary?: number;
|
|
42
166
|
headerButtonOnClick?: () => void;
|
|
167
|
+
/**
|
|
168
|
+
* @deprecated Usar badge en su lugar
|
|
169
|
+
*/
|
|
170
|
+
badgeIcon?: IconType | AnyIconDefinition;
|
|
171
|
+
badgeIconDuotonePrimary?: IconFontColor;
|
|
172
|
+
badgeIconDuotoneSecondary?: IconFontColor;
|
|
173
|
+
badgeIconDuotoneOpacityPrimary?: number;
|
|
174
|
+
badgeIconDuotoneOpacitySecondary?: number;
|
|
175
|
+
badgeLabel?: string;
|
|
176
|
+
/**
|
|
177
|
+
* @deprecated Usar footerAuxButton en su lugar
|
|
178
|
+
*/
|
|
43
179
|
footerButtonIcon?: IconType | AnyIconDefinition;
|
|
44
180
|
footerButtonIconDuotonePrimary?: IconFontColor;
|
|
45
181
|
footerButtonIconDuotoneSecondary?: IconFontColor;
|
|
46
182
|
footerButtonIconDuotoneOpacityPrimary?: number;
|
|
47
183
|
footerButtonIconDuotoneOpacitySecondary?: number;
|
|
48
184
|
footerButtonOnClick?: () => void;
|
|
185
|
+
/**
|
|
186
|
+
* @deprecated Usar footerPrimaryButton (success) y footerSecondaryButton (cancel) en su lugar
|
|
187
|
+
*/
|
|
188
|
+
cancelButtonText?: string;
|
|
189
|
+
successButtonText?: string;
|
|
190
|
+
onCancel?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
191
|
+
onSuccess?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
192
|
+
showCancelButton?: boolean;
|
|
193
|
+
showSuccessButton?: boolean;
|
|
194
|
+
closeAtSuccess?: boolean;
|
|
195
|
+
closeAtCancel?: boolean;
|
|
49
196
|
cancelButtonSlotLeft?: VisualSlotType;
|
|
50
197
|
successButtonSlotRight?: VisualSlotType;
|
|
51
198
|
disableCancelButton?: boolean;
|
|
52
199
|
disableSuccessButton?: boolean;
|
|
53
200
|
successButtonColor?: ButtonColors;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
badgeIconDuotoneOpacityPrimary?: number;
|
|
58
|
-
badgeIconDuotoneOpacitySecondary?: number;
|
|
59
|
-
badgeLabel?: string;
|
|
60
|
-
hideFooter?: boolean;
|
|
201
|
+
tabs?: SwitchOption[];
|
|
202
|
+
defaultValueTab?: string;
|
|
203
|
+
onChangeTab?: (value: string) => void;
|
|
61
204
|
}
|
|
62
|
-
export interface ModalHeaderProps extends Pick<ModalProps, 'closeAtCorner' | 'showCloseButton' | 'tabs' | 'defaultValueTab' | 'onChangeTab' | 'headerButtonIcon' | 'headerButtonIconDuotonePrimary' | 'headerButtonIconDuotoneSecondary' | 'headerButtonIconDuotoneOpacityPrimary' | 'headerButtonIconDuotoneOpacitySecondary' | 'headerButtonOnClick' | 'badgeIcon' | 'badgeIconDuotonePrimary' | 'badgeIconDuotoneSecondary' | 'badgeIconDuotoneOpacityPrimary' | 'badgeIconDuotoneOpacitySecondary' | 'badgeLabel'> {
|
|
205
|
+
export interface ModalHeaderProps extends Pick<ModalProps, 'closeAtCorner' | 'showCloseButton' | 'tabs' | 'defaultValueTab' | 'onChangeTab' | 'headerButton' | 'headerButtons' | 'badge' | 'badges' | 'headerButtonIcon' | 'headerButtonIconDuotonePrimary' | 'headerButtonIconDuotoneSecondary' | 'headerButtonIconDuotoneOpacityPrimary' | 'headerButtonIconDuotoneOpacitySecondary' | 'headerButtonOnClick' | 'badgeIcon' | 'badgeIconDuotonePrimary' | 'badgeIconDuotoneSecondary' | 'badgeIconDuotoneOpacityPrimary' | 'badgeIconDuotoneOpacitySecondary' | 'badgeLabel'> {
|
|
63
206
|
children?: React.ReactNode;
|
|
64
207
|
title?: string;
|
|
65
208
|
}
|
|
@@ -67,11 +210,21 @@ export interface ModalBodyProps {
|
|
|
67
210
|
children: React.ReactNode;
|
|
68
211
|
withPadding?: boolean;
|
|
69
212
|
}
|
|
70
|
-
export interface ModalFooterProps extends Pick<ModalProps, 'footerButtonIcon' | 'footerButtonIconDuotonePrimary' | 'footerButtonIconDuotoneSecondary' | 'footerButtonIconDuotoneOpacityPrimary' | 'footerButtonIconDuotoneOpacitySecondary' | 'footerButtonOnClick' | 'cancelButtonSlotLeft' | 'successButtonSlotRight' | 'disableCancelButton' | 'disableSuccessButton' | 'successButtonColor'> {
|
|
213
|
+
export interface ModalFooterProps extends Pick<ModalProps, 'footerPrimaryButton' | 'footerSecondaryButton' | 'footerButtons' | 'footerAuxButton' | 'footerButtonIcon' | 'footerButtonIconDuotonePrimary' | 'footerButtonIconDuotoneSecondary' | 'footerButtonIconDuotoneOpacityPrimary' | 'footerButtonIconDuotoneOpacitySecondary' | 'footerButtonOnClick' | 'cancelButtonSlotLeft' | 'successButtonSlotRight' | 'disableCancelButton' | 'disableSuccessButton' | 'successButtonColor'> {
|
|
71
214
|
children?: React.ReactNode;
|
|
72
215
|
}
|
|
73
216
|
export interface ModalContextType extends Omit<ModalProps, 'isOpen' | 'size' | 'children' | 'disableEscapeClose' | 'disableOutsideTab' | 'disableOutsideClick'> {
|
|
74
217
|
currentTab?: string;
|
|
218
|
+
/** Icono procesado (puede venir de iconConfig o de las props legacy) */
|
|
219
|
+
processedIcon?: ModalIcon;
|
|
220
|
+
/** Botones procesados del header (pueden venir de headerButton, headerButtons o de las props legacy) */
|
|
221
|
+
processedHeaderButtons?: ModalButton[];
|
|
222
|
+
/** Badges procesados (pueden venir de badge, badges o de las props legacy) */
|
|
223
|
+
processedBadges?: ModalBadge[];
|
|
224
|
+
/** Botón auxiliar procesado del footer (puede venir de footerAuxButton o de las props legacy) */
|
|
225
|
+
processedFooterAuxButton?: ModalButton;
|
|
226
|
+
/** Botones procesados del footer (pueden venir de footerPrimaryButton, footerSecondaryButton, footerButtons o de las props legacy) */
|
|
227
|
+
processedFooterButtons?: ModalButton[];
|
|
75
228
|
}
|
|
76
229
|
export {};
|
|
77
230
|
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/shared/types/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/shared/types/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,YAAY,CACf;IACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,UAAU,EACR,qBAAqB,GACrB,uBAAuB,GACvB,eAAe,GACf,iBAAiB,GACjB,kBAAkB,GAClB,gCAAgC,GAChC,kCAAkC,GAClC,uCAAuC,GACvC,yCAAyC,GACzC,qBAAqB,GACrB,sBAAsB,GACtB,wBAAwB,GACxB,qBAAqB,GACrB,sBAAsB,GACtB,oBAAoB,CACvB;IACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,UAAU,EACR,QAAQ,GACR,MAAM,GACN,UAAU,GACV,oBAAoB,GACpB,mBAAmB,GACnB,qBAAqB,CACxB;IACD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,wGAAwG;IACxG,sBAAsB,CAAC,EAAE,WAAW,EAAE,CAAA;IACtC,8EAA8E;IAC9E,eAAe,CAAC,EAAE,UAAU,EAAE,CAAA;IAC9B,iGAAiG;IACjG,wBAAwB,CAAC,EAAE,WAAW,CAAA;IACtC,sIAAsI;IACtI,sBAAsB,CAAC,EAAE,WAAW,EAAE,CAAA;CACvC"}
|
|
@@ -2,8 +2,8 @@ import { IconColor, VisualSlotType, IconFontColor } from './types';
|
|
|
2
2
|
export interface SwitchOption {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
leftSlot?: VisualSlotType;
|
|
6
|
+
rightSlot?: VisualSlotType;
|
|
7
7
|
leftSlotDuotonePrimary?: IconFontColor;
|
|
8
8
|
leftSlotDuotoneSecondary?: IconFontColor;
|
|
9
9
|
leftSlotDuotoneOpacityPrimary?: number;
|