@m4l/components 8.2.1 → 8.2.2
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/components/Icon/Icon.d.ts +2 -2
- package/components/Icon/Icon.js +1 -1
- package/components/mui_extended/MenuItem/MenuItem.d.ts +4 -6
- package/{storybook/components/extended/mui/MenuItems → components/mui_extended/MenuItem}/MenuItem.stories.d.ts +7 -15
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +3 -4
- package/components/mui_extended/MenuItem/types.d.ts +3 -5
- package/package.json +1 -1
- package/storybook/components/Icon/Icon.stories.d.ts +21 -0
- package/components/Icon/stories/DefaultWithProps/Icon.defaultWithProps.stories.d.ts +0 -35
- package/components/Icon/stories/Preset/Icon.preset.stories.d.ts +0 -16
- package/components/Icon/stories/Semantic/Icon.semantic.stories.d.ts +0 -30
- package/components/Icon/stories/Sizes/icon.sizes.stories.d.ts +0 -40
- package/components/mui_extended/MenuItem/MenuItem.test.d.ts +0 -1
- /package/components/{mui_extended/MenuItem/MenuItem.integration.test.d.ts → Icon/Icon.test.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import { IconProps } from './types';
|
|
|
3
3
|
* Provee de un medio por el cual se carga un icono svg en la plataforma web, aporta su versión provisional de carga en red.
|
|
4
4
|
* @author Bruce Escobar - automatic
|
|
5
5
|
* @createdAt 2024-10-22 19:08:59 - automatic
|
|
6
|
-
* @updatedAt 2024-10-
|
|
7
|
-
* @updatedUser
|
|
6
|
+
* @updatedAt 2024-10-30 08:40:18 - automatic
|
|
7
|
+
* @updatedUser Andrés Quintero - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare const Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
package/components/Icon/Icon.js
CHANGED
|
@@ -66,7 +66,7 @@ const Icon = (props) => {
|
|
|
66
66
|
)
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
isSkeleton && /* @__PURE__ */ jsx(IconSkeletonStyled, { variant: "rectangular", ownerState: { ...ownerState } })
|
|
69
|
+
isSkeleton && /* @__PURE__ */ jsx(IconSkeletonStyled, { role: "icon-skeleton", variant: "rectangular", ownerState: { ...ownerState } })
|
|
70
70
|
] });
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { MenuItemProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* MenuItem component renders a menu item with optional icon and label.
|
|
4
4
|
* It supports different sizes, colors, and states such as disabled and selected.
|
|
5
5
|
* If the module is in skeleton mode, it renders a skeleton menu item instead.
|
|
6
|
-
* @param props
|
|
7
|
-
* @returns
|
|
8
6
|
* @author Bruce Escobar - automatic
|
|
9
|
-
* @createdAt 2024-10-22
|
|
10
|
-
* @updatedAt 2024-10-
|
|
11
|
-
* @updatedUser
|
|
7
|
+
* @createdAt 2024-10-22 10:30:26 - automatic
|
|
8
|
+
* @updatedAt 2024-10-22 20:04:57 - automatic
|
|
9
|
+
* @updatedUser Bruce Escobar - automatic
|
|
12
10
|
*/
|
|
13
11
|
export declare const MenuItem: (props: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { MenuItem } from '
|
|
2
|
+
import { MenuItem } from '.';
|
|
3
3
|
declare const meta: Meta<typeof MenuItem>;
|
|
4
4
|
type Story = StoryObj<typeof MenuItem>;
|
|
5
5
|
/**
|
|
6
6
|
* Historia base para `MenuItem` en modo estándar.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Base: Story;
|
|
9
9
|
/**
|
|
10
|
-
* Historia para `MenuItem` activado y con ícono
|
|
11
|
-
*/
|
|
12
|
-
export declare const ActiveWithStartIcon: Story;
|
|
13
|
-
/**
|
|
14
|
-
* Historia para `MenuItem` activado y con ícono a la derecha.
|
|
15
|
-
*/
|
|
16
|
-
export declare const ActiveWithEndIcon: Story;
|
|
17
|
-
/**
|
|
18
|
-
* Historia para `MenuItem` activado y con íconos.
|
|
10
|
+
* Historia para `MenuItem` activado y con ícono.
|
|
19
11
|
*/
|
|
20
12
|
export declare const ActiveWithIcon: Story;
|
|
21
13
|
/**
|
|
@@ -23,19 +15,19 @@ export declare const ActiveWithIcon: Story;
|
|
|
23
15
|
*/
|
|
24
16
|
export declare const ActiveWithoutIcon: Story;
|
|
25
17
|
/**
|
|
26
|
-
* Historia para `MenuItem` desactivado con
|
|
18
|
+
* Historia para `MenuItem` desactivado con ícono.
|
|
27
19
|
*/
|
|
28
20
|
export declare const InactiveWithIcon: Story;
|
|
29
21
|
/**
|
|
30
|
-
* Historia para `MenuItem` desactivado sin
|
|
22
|
+
* Historia para `MenuItem` desactivado sin ícono.
|
|
31
23
|
*/
|
|
32
24
|
export declare const InactiveWithoutIcon: Story;
|
|
33
25
|
/**
|
|
34
|
-
* Historia para `MenuItem` deshabilitado con
|
|
26
|
+
* Historia para `MenuItem` deshabilitado con ícono.
|
|
35
27
|
*/
|
|
36
28
|
export declare const DisabledWithIcon: Story;
|
|
37
29
|
/**
|
|
38
|
-
* Historia para `MenuItem` deshabilitado sin
|
|
30
|
+
* Historia para `MenuItem` deshabilitado sin ícono.
|
|
39
31
|
*/
|
|
40
32
|
export declare const DisabledWithoutIcon: Story;
|
|
41
33
|
/**
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
declare const MenuItemRoot: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
1
|
+
export declare const MenuItemRoot: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLLIElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLLIElement> | null | undefined;
|
|
3
3
|
}, "children" | "action" | "divider" | "style" | "dense" | "disabled" | "sx" | "classes" | "autoFocus" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "children" | "value" | "ref" | "title" | "id" | "action" | "divider" | "hidden" | "color" | "content" | "style" | "dense" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "key" | "selected" | "disableGutters"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').MenuItemOwnerState> & Record<string, unknown> & {
|
|
4
4
|
ownerState: Partial<import('..').MenuItemOwnerState> & Record<string, unknown>;
|
|
5
5
|
}, {}, {}>;
|
|
6
|
-
declare const MenuItemIcon: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').MenuItemOwnerState> & Record<string, unknown> & {
|
|
6
|
+
export declare const MenuItemIcon: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').MenuItemOwnerState> & Record<string, unknown> & {
|
|
7
7
|
ownerState: Partial<import('..').MenuItemOwnerState> & Record<string, unknown>;
|
|
8
8
|
}, {}, {}>;
|
|
9
|
-
declare const SkeletonMenuItem: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').MenuItemOwnerState> & Record<string, unknown> & {
|
|
9
|
+
export declare const SkeletonMenuItem: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').MenuItemOwnerState> & Record<string, unknown> & {
|
|
10
10
|
ownerState: Partial<import('..').MenuItemOwnerState> & Record<string, unknown>;
|
|
11
11
|
}, {}, {}>;
|
|
12
|
-
export { MenuItemRoot, MenuItemIcon, SkeletonMenuItem };
|
|
@@ -6,8 +6,7 @@ import { MENUITEM_KEY_COMPONENT } from './constants';
|
|
|
6
6
|
/**
|
|
7
7
|
* Props para el componente `MenuItem`, extendiendo las propiedades originales de Material UI.
|
|
8
8
|
* Omit<MUIMenuItemProps, 'size' | 'color'>
|
|
9
|
-
* [
|
|
10
|
-
* [endIcon] - Prop opcional para el ícono a la derecha en el `MenuItem`.
|
|
9
|
+
* [icon] - Prop opcional para el ícono mostrado en el `MenuItem`.
|
|
11
10
|
* label - Texto que describe el `MenuItem`.
|
|
12
11
|
* [selected] - Indica si el item está seleccionado.
|
|
13
12
|
* [componentPaletteColor] - Personalización del color de la paleta del componente.
|
|
@@ -16,14 +15,13 @@ import { MENUITEM_KEY_COMPONENT } from './constants';
|
|
|
16
15
|
* [size] - Tamaño del `MenuItem` (por defecto 'medium').
|
|
17
16
|
*/
|
|
18
17
|
export interface MenuItemProps extends Omit<MUIMenuItemProps, 'size' | 'color'> {
|
|
19
|
-
|
|
20
|
-
endIcon?: string;
|
|
18
|
+
icon?: string;
|
|
21
19
|
label: string;
|
|
22
20
|
selected?: boolean;
|
|
23
21
|
componentPaletteColor?: ComponentPalletColor;
|
|
24
22
|
color?: Extract<ComponentPalletColor, 'primary'>;
|
|
25
23
|
disabled?: boolean;
|
|
26
|
-
size?:
|
|
24
|
+
size?: Sizes;
|
|
27
25
|
}
|
|
28
26
|
/**
|
|
29
27
|
* Estado del propietario del `MenuItem` utilizado para definir propiedades internas de estilo y comportamiento.
|
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import { Icon } from '../../../src/components/Icon';
|
|
3
|
+
declare const meta: Meta<typeof Icon>;
|
|
4
|
+
type Story = StoryObj<typeof Icon>;
|
|
5
|
+
/**
|
|
6
|
+
* Icon component by default with tooltip content 'Tooltip'
|
|
7
|
+
*/
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
/**
|
|
10
|
+
* Icon component with color primary.main
|
|
11
|
+
*/
|
|
12
|
+
export declare const iconColor: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Icon component with size small
|
|
15
|
+
*/
|
|
16
|
+
export declare const small: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Icon component with size medium
|
|
19
|
+
*/
|
|
20
|
+
export declare const medium: Story;
|
|
21
|
+
export default meta;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { Icon } from '../../Icon';
|
|
3
|
-
declare const meta: Meta<typeof Icon>;
|
|
4
|
-
type Story = StoryObj<typeof Icon>;
|
|
5
|
-
/**
|
|
6
|
-
* Estado base del icono con las propiedades por defecto.
|
|
7
|
-
* Este icono carga una imagen SVG.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Base: Story;
|
|
10
|
-
/**
|
|
11
|
-
* Icono renderizado con el color establecido en 'text.primary'.
|
|
12
|
-
* Este ejemplo ilustra cómo se puede estilizar el Icono con un color específico.
|
|
13
|
-
*/
|
|
14
|
-
export declare const WithColorTextPrimary: Story;
|
|
15
|
-
/**
|
|
16
|
-
* Icono con una rotación aplicada.
|
|
17
|
-
* Demuestra el uso de la propiedad rotationAngle para manipular visualmente la orientación del icono.
|
|
18
|
-
*/
|
|
19
|
-
export declare const Rotation: Story;
|
|
20
|
-
/**
|
|
21
|
-
* Icono que incluye un tooltip.
|
|
22
|
-
* Esta historia muestra la propiedad tooltipContent, que proporciona contexto adicional cuando el usuario pasa el cursor sobre el icono.
|
|
23
|
-
*/
|
|
24
|
-
export declare const WithTooltip: Story;
|
|
25
|
-
/**
|
|
26
|
-
* Icono renderizado con el color establecido en 'contrast.text'.
|
|
27
|
-
* Este ejemplo muestra otra opción de estilización por color para el componente Icon.
|
|
28
|
-
*/
|
|
29
|
-
export declare const WithColorContrastText: Story;
|
|
30
|
-
/**
|
|
31
|
-
* Icono con la propiedad deshabilitada.
|
|
32
|
-
* Este ejemplo demuestra cómo el Icono se puede renderizar en un estado deshabilitado, indicando visualmente que está inactivo.
|
|
33
|
-
*/
|
|
34
|
-
export declare const WithDisabled: Story;
|
|
35
|
-
export default meta;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { Icon } from '../../Icon';
|
|
3
|
-
declare const meta: Meta<typeof Icon>;
|
|
4
|
-
type Story = StoryObj<typeof Icon>;
|
|
5
|
-
/**
|
|
6
|
-
* Estado base del icono con las propiedades por defecto.
|
|
7
|
-
* Este icono carga una imagen SVG.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Base: Story;
|
|
10
|
-
/**
|
|
11
|
-
* Icono con el color 'primary.main'.
|
|
12
|
-
* Este icono toma su color principal del tema definido en la aplicación.
|
|
13
|
-
* El color 'primary.main' generalmente se utiliza para representar la acción principal en la interfaz.
|
|
14
|
-
*/
|
|
15
|
-
export declare const WithColorPrimaryMain: Story;
|
|
16
|
-
export default meta;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { Icon } from '../../Icon';
|
|
3
|
-
declare const meta: Meta<typeof Icon>;
|
|
4
|
-
type Story = StoryObj<typeof Icon>;
|
|
5
|
-
/**
|
|
6
|
-
* Estado base del icono con las propiedades por defecto.
|
|
7
|
-
* Este icono carga una imagen SVG.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Base: Story;
|
|
10
|
-
/**
|
|
11
|
-
* Icono con el color 'error.main'.
|
|
12
|
-
* Este icono se utiliza para denotar errores o advertencias críticas.
|
|
13
|
-
*/
|
|
14
|
-
export declare const WithColorErrorMain: Story;
|
|
15
|
-
/**
|
|
16
|
-
* Icono con el color 'warning.main'.
|
|
17
|
-
* Se utiliza para representar advertencias o situaciones que requieren atención, pero no son críticas.
|
|
18
|
-
*/
|
|
19
|
-
export declare const WithColorWarningMain: Story;
|
|
20
|
-
/**
|
|
21
|
-
* Icono con el color 'success.main'.
|
|
22
|
-
* Este icono representa estados exitosos o acciones completadas de forma correcta.
|
|
23
|
-
*/
|
|
24
|
-
export declare const WithColorSuccessMain: Story;
|
|
25
|
-
/**
|
|
26
|
-
* Icono con el color 'info.main'.
|
|
27
|
-
* Utilizado para proporcionar información relevante o mensajes neutrales en la interfaz.
|
|
28
|
-
*/
|
|
29
|
-
export declare const WithColorInfoMain: Story;
|
|
30
|
-
export default meta;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { Icon } from '../../Icon';
|
|
3
|
-
declare const meta: Meta<typeof Icon>;
|
|
4
|
-
type Story = StoryObj<typeof Icon>;
|
|
5
|
-
/**
|
|
6
|
-
* Estado base del icono con las propiedades por defecto.
|
|
7
|
-
* Este icono carga una imagen SVG.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Base: Story;
|
|
10
|
-
/**
|
|
11
|
-
* Icono en tamaño 'small'.
|
|
12
|
-
* Este icono se ajusta a un tamaño pequeño, útil en componentes compactos o en interfaces móviles.
|
|
13
|
-
*/
|
|
14
|
-
export declare const Small: Story;
|
|
15
|
-
/**
|
|
16
|
-
* Icono en tamaño 'medium'.
|
|
17
|
-
* Este tamaño es ideal para su uso en botones o como elemento destacado en la interfaz.
|
|
18
|
-
*/
|
|
19
|
-
export declare const Medium: Story;
|
|
20
|
-
/**
|
|
21
|
-
* Icono en modo 'skeleton'.
|
|
22
|
-
* Esta es una representación temporal del icono mientras su contenido gráfico está siendo cargado.
|
|
23
|
-
*/
|
|
24
|
-
export declare const SkeletonIcon: {
|
|
25
|
-
parameters: {
|
|
26
|
-
isolationForceSkeleton: boolean;
|
|
27
|
-
};
|
|
28
|
-
args: {
|
|
29
|
-
src?: string | undefined;
|
|
30
|
-
size?: Extract<import('@m4l/styles').Sizes, "small" | "medium">;
|
|
31
|
-
rotationAngle?: number;
|
|
32
|
-
tooltipContent?: import('react').ReactNode;
|
|
33
|
-
color?: import('../..').IconColors;
|
|
34
|
-
className?: string;
|
|
35
|
-
instaceDataTestId?: string;
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
placement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export default meta;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
/package/components/{mui_extended/MenuItem/MenuItem.integration.test.d.ts → Icon/Icon.test.d.ts}
RENAMED
|
File without changes
|