@m4l/components 9.3.1 → 9.3.3

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.
Files changed (27) hide show
  1. package/@types/types.d.ts +8 -1
  2. package/components/Card/Card.d.ts +7 -0
  3. package/components/Card/Card.styles.d.ts +2 -0
  4. package/components/Card/constants.d.ts +7 -0
  5. package/components/Card/helpers/getSizeSpacing.d.ts +7 -0
  6. package/components/Card/helpers/getSizeSpacing.test.d.ts +1 -0
  7. package/components/Card/index.d.ts +1 -0
  8. package/components/Card/slots/CardEnum.d.ts +3 -0
  9. package/components/Card/slots/CardSlots.d.ts +3 -0
  10. package/components/Card/test/Card.test.d.ts +1 -0
  11. package/components/Card/types.d.ts +59 -0
  12. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -1
  13. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.js +4 -2
  14. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
  15. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +50 -47
  16. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +2 -1
  17. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +5 -1
  18. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +12 -7
  19. package/components/formatters/ChipStatusFormatter/ChipStatusFormatter.js +7 -1
  20. package/components/formatters/ChipStatusFormatter/types.d.ts +9 -1
  21. package/components/mui_extended/Accordion/Accordion.js +1 -1
  22. package/mockServiceWorker.js +1 -1
  23. package/package.json +1 -1
  24. package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupButton.d.ts +1 -1
  25. package/storybook/components/Card/Card.stories.d.ts +45 -0
  26. package/storybook/components/Card/subcomponents/ContentCard.d.ts +8 -0
  27. package/storybook/components/Card/subcomponents/constants.d.ts +9 -0
package/@types/types.d.ts CHANGED
@@ -145,10 +145,10 @@ import { ChipStatusFormatterSlotsType } from '../components/formatters/ChipStatu
145
145
  import { RHFUploadImageOwnerState, RHFUploadImageSlotsType } from '../components/hook-form/RHFUpload/RHFUploadImage/types';
146
146
  import { PrintingSystemOwnerState, PrintingSystemSlotsType } from '../components/PrintingSystem/types';
147
147
  import { ScrollBarOwnerState, ScrollBarSlotsType } from '../components/ScrollBar/types';
148
-
149
148
  import { SplitLayoutOwnerState } from '../components/extended/React-resizable-panels/types';
150
149
  import { ObjectLogsOwnerState, ObjectLogsSlotsType } from '../components/ObjectLogs/types';
151
150
  import { LanguagePopoverOwnerState, LanguagePopoverSlotsType } from '../components/LanguagePopover/types';
151
+ import { CardOwnerState, CardSlotsType } from '../components/Card/types';
152
152
  import { ContainerFlowOwnerState, ContainerFlowSlotsType } from '../components/ContainerFlow/types';
153
153
  declare module '@mui/material/styles' {
154
154
  // Define the slots in the theme
@@ -229,6 +229,7 @@ declare module '@mui/material/styles' {
229
229
  M4LSplitLayout: SplitLayoutOwnerState;
230
230
  M4LObjectLogs: ObjectLogsSlotsType;
231
231
  M4LLanguagePopover: LanguagePopoverSlotsType;
232
+ M4LCard: CardSlotsType;
232
233
  M4LContainerFlow: ContainerFlowSlotsType;
233
234
  }
234
235
  interface ComponentsPropsList {
@@ -309,6 +310,7 @@ declare module '@mui/material/styles' {
309
310
  M4LSplitLayout: Partial<SplitLayoutOwnerState>;
310
311
  M4LObjectLogs: Partial<ObjectLogsOwnerState>;
311
312
  M4LLanguagePopover: Partial<LanguagePopoverOwnerState>;
313
+ M4LCard: Partial<CardOwnerState>;
312
314
  M4LContainerFlow: Partial<ContainerFlowOwnerState>;
313
315
  }
314
316
  interface Components {
@@ -702,6 +704,11 @@ declare module '@mui/material/styles' {
702
704
  styleOverrides?: ComponentsOverrides<Theme>['M4LLanguagePopover'];
703
705
  variants?: ComponentsVariants['M4LLanguagePopover'];
704
706
  };
707
+ M4LCard?: {
708
+ defaultProps?: ComponentsPropsList['M4LCard'];
709
+ styleOverrides?: ComponentsOverrides<Theme>['M4LCard'];
710
+ variants?: ComponentsVariants['M4LCard'];
711
+ };
705
712
  M4LContainerFlow?: {
706
713
  defaultProps?: ComponentsPropsList['M4LContainerFlow'];
707
714
  styleOverrides?: ComponentsOverrides<Theme>['M4LContainerFlow'];
@@ -0,0 +1,7 @@
1
+ import { CardProps } from './types';
2
+ /**
3
+ * Componente de tarjeta.
4
+ * @param props - Propiedades del componente.
5
+ * @returns Componente de tarjeta.
6
+ */
7
+ export declare const Card: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CardStyles } from './types';
2
+ export declare const cardStyles: CardStyles;
@@ -0,0 +1,7 @@
1
+ export declare const CARD_KEY = "M4LCard";
2
+ export declare const CARD_CLASSES: Record<string, string>;
3
+ export declare const CARD_SIZES: {
4
+ compact: number;
5
+ standard: number;
6
+ comfortable: number;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { CardProps } from '../types';
2
+ /**
3
+ * Obtiene el tamaño del gap de la tarjeta.
4
+ * @param gap - El gap de la tarjeta.
5
+ * @returns El tamaño del gap de la tarjeta.
6
+ */
7
+ export declare const getSizeSpacing: (gap: CardProps["gap"] | number | undefined | null) => number;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { Card } from './Card';
@@ -0,0 +1,3 @@
1
+ export declare enum CardSlots {
2
+ root = "root"
3
+ }
@@ -0,0 +1,3 @@
1
+ export declare const CardRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
+ ownerState?: (Partial<import('../types').CardOwnerState> & Record<string, unknown>) | undefined;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,59 @@
1
+ import { Theme } from '@mui/material';
2
+ import { M4LOverridesStyleRules } from '../../@types/augmentations';
3
+ import { CARD_KEY } from './constants';
4
+ import { CardSlots } from './slots/CardEnum';
5
+ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Contenido de la tarjeta.
8
+ */
9
+ children: React.ReactNode;
10
+ /**
11
+ * Variante de la tarjeta.
12
+ */
13
+ variant?: 'text' | 'outlined';
14
+ /**
15
+ * Espacio entre los elementos de la tarjeta.
16
+ */
17
+ gap?: number | 'compact' | 'standard' | 'comfortable';
18
+ /**
19
+ * Espacio entre los elementos de la tarjeta.
20
+ */
21
+ padding?: number | 'compact' | 'standard' | 'comfortable';
22
+ /**
23
+ * Dirección de la tarjeta.
24
+ */
25
+ direction?: 'row' | 'column';
26
+ /**
27
+ * Altura de la tarjeta.
28
+ */
29
+ height?: number | 'auto';
30
+ /**
31
+ * Clase de la tarjeta.
32
+ */
33
+ className?: string;
34
+ /**
35
+ * Estilo de la tarjeta.
36
+ */
37
+ justifyContent?: React.CSSProperties['justifyContent'];
38
+ /**
39
+ * Estilo de la tarjeta.
40
+ */
41
+ alignItems?: React.CSSProperties['alignItems'];
42
+ /**
43
+ * Estilo de la tarjeta.
44
+ */
45
+ selected?: boolean;
46
+ }
47
+ export type CardSlotsType = keyof typeof CardSlots;
48
+ export type CardOwnerState = {
49
+ variant: CardProps['variant'];
50
+ gap: CardProps['gap'];
51
+ height: CardProps['height'];
52
+ padding: CardProps['padding'];
53
+ direction: CardProps['direction'];
54
+ onClick: boolean;
55
+ justifyContent: CardProps['justifyContent'];
56
+ alignItems: CardProps['alignItems'];
57
+ selected: CardProps['selected'];
58
+ };
59
+ export type CardStyles = M4LOverridesStyleRules<CardSlotsType, typeof CARD_KEY, Theme>;
@@ -5,7 +5,7 @@ import { UseHeaderActionsParams } from '../types';
5
5
  *
6
6
  * Retorna las acciones del header de una ventana. Izquierda, derecha y dentro del menu.
7
7
  */
8
- export declare const useHeaderActions: ({ windowId, areaId, }: UseHeaderActionsParams) => {
8
+ export declare const useHeaderActions: ({ windowId, areaId, emergeType, }: UseHeaderActionsParams) => {
9
9
  leftActions: WindowBaseAction[];
10
10
  insideActions: WindowBaseAction[];
11
11
  rightActions: WindowBaseAction[];
@@ -7,7 +7,8 @@ import { g as getLeftActions, a as getInsideMenuActions } from "../../../../../.
7
7
  import { u as useRightActions } from "./useRightActions.js";
8
8
  const useHeaderActions = ({
9
9
  windowId,
10
- areaId
10
+ areaId,
11
+ emergeType
11
12
  }) => {
12
13
  const { host_static_assets, environment_assets } = useEnvironment();
13
14
  const { getLabel } = useModuleDictionary();
@@ -45,7 +46,8 @@ const useHeaderActions = ({
45
46
  }, [windowId, isMobile, moduleActions, urlPrefix, saveModuleCookies, resetModuleCookies, windowOptions, getLabel]);
46
47
  const rightActions = useRightActions({
47
48
  windowId,
48
- areaId
49
+ areaId,
50
+ emergeType
49
51
  });
50
52
  return {
51
53
  leftActions,
@@ -3,4 +3,4 @@ import { UseHeaderActionsParams } from '../types';
3
3
  /**
4
4
  * Hook useRightActions, retorna las acciones de maximizar y minimizar una ventana, colapsar y expandir una ventana
5
5
  */
6
- export declare const useRightActions: ({ windowId, areaId, }: UseHeaderActionsParams) => WindowBaseAction[];
6
+ export declare const useRightActions: ({ windowId, areaId, emergeType, }: UseHeaderActionsParams) => WindowBaseAction[];
@@ -6,7 +6,8 @@ import { I as ICONS } from "../../../../../../../icons.js";
6
6
  import { g as getAreasDictionary, A as AREAS_DICCTIONARY } from "../../../../../../../dictionary.js";
7
7
  const useRightActions = ({
8
8
  windowId,
9
- areaId
9
+ areaId,
10
+ emergeType
10
11
  }) => {
11
12
  const { host_static_assets, environment_assets } = useEnvironment();
12
13
  const { getLabel } = useModuleDictionary();
@@ -29,54 +30,56 @@ const useRightActions = ({
29
30
  const { maximizeLayout, normalizeLayouts, colapseLayoutItem, unColapseLayoutItem } = useAreasStore((state) => state.areaActions);
30
31
  const rightActions = useMemo(() => {
31
32
  const actions = [];
32
- actions.push({
33
- place: "right",
34
- key: "collapseToggle",
35
- iconUrl: !collapsed ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.COLLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.UNCOLLPASE}`,
36
- label: !collapsed ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_collapse_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_uncollapse_window)),
37
- tooltipProps: {
38
- placement: "bottom-end"
39
- },
40
- /**
41
- * Acción de collapse/expand.
42
- */
43
- onClick: () => {
44
- if (areaId) {
45
- if (collapsed) {
46
- unColapseLayoutItem(areaId, windowId);
47
- } else {
48
- colapseLayoutItem(areaId, windowId);
33
+ if (emergeType === "layout") {
34
+ actions.push({
35
+ place: "right",
36
+ key: "collapseToggle",
37
+ iconUrl: !collapsed ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.COLLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.UNCOLLPASE}`,
38
+ label: !collapsed ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_collapse_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_uncollapse_window)),
39
+ tooltipProps: {
40
+ placement: "bottom-end"
41
+ },
42
+ /**
43
+ * Acción de collapse/expand.
44
+ */
45
+ onClick: () => {
46
+ if (areaId) {
47
+ if (collapsed) {
48
+ unColapseLayoutItem(areaId, windowId);
49
+ } else {
50
+ colapseLayoutItem(areaId, windowId);
51
+ }
49
52
  }
50
- }
51
- },
52
- disabled: !(maximizedId === void 0),
53
- color: "warning",
54
- className: "collapse-toggle window-actions"
55
- });
56
- actions.push({
57
- place: "right",
58
- key: "maximize",
59
- iconUrl: maximizedId ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MAXIMIZE}`,
60
- label: maximizedId ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_minimize_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_maximize_window)),
61
- tooltipProps: {
62
- placement: "bottom-end"
63
- },
64
- /**
65
- * Acción de maximize/normalize.
66
- */
67
- onClick: () => {
68
- if (areaId) {
69
- if (maximizedId) {
70
- normalizeLayouts(areaId);
71
- } else {
72
- maximizeLayout(areaId, windowId);
53
+ },
54
+ disabled: !(maximizedId === void 0),
55
+ color: "warning",
56
+ className: "collapse-toggle window-actions"
57
+ });
58
+ actions.push({
59
+ place: "right",
60
+ key: "maximize",
61
+ iconUrl: maximizedId ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MAXIMIZE}`,
62
+ label: maximizedId ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_minimize_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_maximize_window)),
63
+ tooltipProps: {
64
+ placement: "bottom-end"
65
+ },
66
+ /**
67
+ * Acción de maximize/normalize.
68
+ */
69
+ onClick: () => {
70
+ if (areaId) {
71
+ if (maximizedId) {
72
+ normalizeLayouts(areaId);
73
+ } else {
74
+ maximizeLayout(areaId, windowId);
75
+ }
73
76
  }
74
- }
75
- },
76
- disabled: false,
77
- color: "info",
78
- className: "expand-toggle window-actions"
79
- });
77
+ },
78
+ disabled: false,
79
+ color: "info",
80
+ className: "expand-toggle window-actions"
81
+ });
82
+ }
80
83
  return actions;
81
84
  }, [
82
85
  collapsed,
@@ -75,7 +75,8 @@ const useWindow = (windowId, areaId) => {
75
75
  }, [status, loadCookiesFromApi, windowId]);
76
76
  const { leftActions, insideActions: menuActions, rightActions } = useHeaderActions({
77
77
  windowId,
78
- areaId
78
+ areaId,
79
+ emergeType
79
80
  });
80
81
  const memoizedActions = useMemo(() => {
81
82
  return [...leftActions, ...menuActions, ...rightActions];
@@ -1,5 +1,5 @@
1
1
  import { WindowBaseAction } from '../../../../../../../../../src/components/WindowBase/types';
2
- import { AreaWindowBaseProps } from '../../../../../../types';
2
+ import { AreaWindowBaseProps, EmergeType } from '../../../../../../types';
3
3
  export interface WindowProps extends Pick<AreaWindowBaseProps, 'windowId' | 'areaId'> {
4
4
  /**
5
5
  * Acciones que se mostrarán en el header
@@ -9,4 +9,8 @@ export interface WindowProps extends Pick<AreaWindowBaseProps, 'windowId' | 'are
9
9
  export interface UseHeaderActionsParams {
10
10
  windowId: string;
11
11
  areaId?: string;
12
+ /**
13
+ * emergeType: 'popup' | 'modal'
14
+ */
15
+ emergeType: EmergeType;
12
16
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import React from "react";
2
+ import React, { useCallback } from "react";
3
3
  import { u as useAreasStore } from "../../../../../../hooks/useAreas/index.js";
4
4
  import { W as Window } from "../Window/Window.js";
5
5
  import { useIsMobile } from "@m4l/graphics";
@@ -23,25 +23,30 @@ const AreaWindowModal = (props) => {
23
23
  );
24
24
  const isMobile = useIsMobile();
25
25
  const [containerRef, setContainerRef] = useStateRef(null);
26
- const leftPosition = Math.max(0, window.innerWidth / 2 - (width ?? 100) / 2);
27
- const topPosition = Math.max(0, window.innerHeight / 2 - (height ?? 100) / 2);
28
- const DraggableComponent = () => {
26
+ const DraggableComponent = useCallback(() => {
27
+ if (!containerRef) {
28
+ return null;
29
+ }
29
30
  return /* @__PURE__ */ jsx(
30
31
  DragResizeWindowRND,
31
32
  {
32
33
  containerElement: containerRef ?? void 0,
34
+ containerSize: {
35
+ containerWidth: containerRef.clientWidth,
36
+ containerHeight: containerRef.clientHeight
37
+ },
33
38
  minWindowWidth,
34
39
  minWindowHeight,
35
40
  bounds: { left: 0, top: 0, right: 0, bottom: 0 },
36
41
  resizeHandles: ["se", "nw", "sw", "ne", "n", "e", "s", "w"],
37
42
  defaultPosition: {
38
- vertical: { top: topPosition, height },
39
- horizontal: { left: leftPosition, width }
43
+ vertical: { height },
44
+ horizontal: { width }
40
45
  },
41
46
  children: /* @__PURE__ */ jsx(Window, { windowId, areaId: void 0 })
42
47
  }
43
48
  );
44
- };
49
+ }, [containerRef, windowId, minWindowWidth, minWindowHeight, height, width]);
45
50
  return /* @__PURE__ */ jsx(
46
51
  WrapperWindowModalWithRef,
47
52
  {
@@ -12,6 +12,8 @@ const ChipStatusFormatter = (props) => {
12
12
  statusesColors,
13
13
  Component = React.Fragment,
14
14
  fallbackColor = "default",
15
+ fallbackVariant = "contained",
16
+ fallbackOpacity = true,
15
17
  size = "medium",
16
18
  dataTestid
17
19
  } = props;
@@ -19,7 +21,11 @@ const ChipStatusFormatter = (props) => {
19
21
  if (!status) {
20
22
  return null;
21
23
  }
22
- const statusObject = statusesColors[status ? status : fallbackColor];
24
+ const statusObject = statusesColors[status] || {
25
+ color: fallbackColor,
26
+ variant: fallbackVariant,
27
+ opacity: fallbackOpacity
28
+ };
23
29
  const { color, variant, opacity = true } = statusObject;
24
30
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
25
31
  return /* @__PURE__ */ jsx(Component, { children: /* @__PURE__ */ jsx(
@@ -26,7 +26,15 @@ export interface ChipStatusFormatterProps {
26
26
  /**
27
27
  * Color por defecto
28
28
  */
29
- fallbackColor?: Extract<ChipColorOptions, 'default'>;
29
+ fallbackColor?: ChipColorOptions;
30
+ /**
31
+ * fallback variant
32
+ */
33
+ fallbackVariant?: ChipVariants;
34
+ /**
35
+ * fallback opacity
36
+ */
37
+ fallbackOpacity?: boolean;
30
38
  /**
31
39
  * Componente personalizado
32
40
  */
@@ -23,7 +23,7 @@ const Accordion = forwardRef((props, ref) => {
23
23
  } = props;
24
24
  const { currentSize } = useComponentSize(size);
25
25
  const classRoot = getComponentSlotRoot(ACCORDION_KEY);
26
- const [expandedState, setExpandedState] = useState(expanded ?? true);
26
+ const [expandedState, setExpandedState] = useState(expanded ?? accordionProps?.defaultExpanded ?? true);
27
27
  const handleToggle = () => {
28
28
  setExpandedState((prev) => !prev);
29
29
  };
@@ -8,7 +8,7 @@
8
8
  * - Please do NOT serve this file on production.
9
9
  */
10
10
 
11
- const PACKAGE_VERSION = '2.8.2'
11
+ const PACKAGE_VERSION = '2.7.0'
12
12
  const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
13
13
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
14
14
  const activeClientIds = new Set()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.1",
3
+ "version": "9.3.3",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {
@@ -4,7 +4,7 @@ interface PopupButtonProps {
4
4
  iconUrl: string;
5
5
  dynamicParams: Record<string, any>;
6
6
  /** Si se pasa este id, se intentará reemplazar el popup existente */
7
- windowType?: 'simple_popup' | 'microfrontend_userd_add_edit_popup' | 'microfrontend_users_list_layout';
7
+ windowType?: 'simple_popup' | 'microfrontend_userd_add_edit_popup' | 'microfrontend_users_list_layout' | 'microfrontend_userd_add_edit_modal';
8
8
  replaceMeId?: string;
9
9
  onClick?: () => void;
10
10
  /** Callback para notificar que se ha generado un id, en caso de no recibir uno por props */
@@ -0,0 +1,45 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Card } from '../../../src/components/Card';
3
+ declare const meta: Meta<typeof Card>;
4
+ type Story = StoryObj<typeof Card>;
5
+ /**
6
+ * Base story for `Card` with variant outlined.
7
+ */
8
+ export declare const H001_Variant_Outlined: Story;
9
+ /**
10
+ * Base story for `Card` with variant text.
11
+ */
12
+ export declare const H002_Variant_Text: Story;
13
+ /**
14
+ * Base story for `Card` with variant outlined and hover.
15
+ */
16
+ export declare const H003_Variant_Outlined_Hover: Story;
17
+ /**
18
+ * Base story for `Card` with variant outlined and selected.
19
+ */
20
+ export declare const H004_Variant_Outlined_Selected: Story;
21
+ /**
22
+ * Base story for `Card` with variant outlined and active.
23
+ */
24
+ export declare const H005_Variant_Outlined_Active: Story;
25
+ /**
26
+ * Base story for `Card` with variant outlined and focus visible.
27
+ */
28
+ export declare const H006_Variant_Outlined_Focus_Visible: Story;
29
+ /**
30
+ * Base story for `Card` with variant text and hover.
31
+ */
32
+ export declare const H007_Variant_Text_Hover: Story;
33
+ /**
34
+ * Base story for `Card` with variant text and hover.
35
+ */
36
+ export declare const H008_Variant_Text_Selected: Story;
37
+ /**
38
+ * Base story for `Card` with variant text and active.
39
+ */
40
+ export declare const H009_Variant_Text_Active: Story;
41
+ /**
42
+ * Base story for `Card` with variant text and focus visible.
43
+ */
44
+ export declare const H010_Variant_Text_Focus_Visible: Story;
45
+ export default meta;
@@ -0,0 +1,8 @@
1
+ import { CardProps } from '../../../../src/components/Card/types';
2
+ /**
3
+ * Componente que se renderiza en el contenido de la tarjeta
4
+ * @returns {React.ReactElement}
5
+ */
6
+ export declare const ContentCard: ({ gap }: {
7
+ gap?: CardProps["gap"];
8
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const ICONS: {
2
+ STATUS: string;
3
+ LOCATION: string;
4
+ TIME: string;
5
+ SPEED: string;
6
+ ACTION: string;
7
+ INFORMATION: string;
8
+ MENU: string;
9
+ };