@mx-cartographer/experiences 8.2.2 → 8.2.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.
@@ -1,13 +1,11 @@
1
1
  import { default as React } from 'react';
2
- import { SxProps } from '@mui/material/styles';
3
2
  interface MicroCardTemplateProps {
4
3
  ariaLabel?: string;
5
- cardSx?: SxProps;
6
4
  closeAriaLabel?: string;
7
5
  description: string;
6
+ elevation?: number;
8
7
  icon?: React.ReactNode;
9
8
  isActiveCard?: boolean;
10
- hasCardEffect?: boolean;
11
9
  heightOverrides?: string | number;
12
10
  onClose?: () => void;
13
11
  onCardClick?: () => void;
@@ -16,7 +14,7 @@ interface MicroCardTemplateProps {
16
14
  primaryActionText?: string;
17
15
  secondaryActionText?: string;
18
16
  title: string;
19
- variant?: 'elevation' | 'outlined';
17
+ variant?: 'outlined' | 'elevation' | undefined;
20
18
  widthOverrides?: string | number;
21
19
  }
22
20
  declare const MicroCardTemplate: React.ForwardRefExoticComponent<MicroCardTemplateProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps, BeatLikeOffer } from '../interfaces';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface InsightCardProps extends Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'isActiveCard' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant' | 'widthOverrides'> {
4
+ export interface InsightCardProps extends Pick<MicroWidgetProps, 'ariaLabel' | 'elevation' | 'heightOverrides' | 'isActiveCard' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant' | 'widthOverrides'> {
5
5
  beat: Beat | BeatLikeOffer;
6
6
  index?: number;
7
7
  }
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '../interfaces';
3
- type NoRelevantInsightsCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant'>;
3
+ interface NoRelevantInsightsCardProps extends Pick<MicroWidgetProps, 'ariaLabel' | 'elevation' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant'> {
4
+ }
4
5
  export declare const NoRelevantInsightsCard: React.FC<NoRelevantInsightsCardProps>;
5
6
  declare const _default: React.FunctionComponent<NoRelevantInsightsCardProps>;
6
7
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '../interfaces';
3
- type ViewMoreMicroCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'isActiveCard' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant' | 'widthOverrides'>;
3
+ interface ViewMoreMicroCardProps extends Pick<MicroWidgetProps, 'ariaLabel' | 'elevation' | 'heightOverrides' | 'isActiveCard' | 'onCardClick' | 'posthog' | 'showIcon' | 'widthOverrides' | 'variant'> {
4
+ }
4
5
  export declare const ViewMoreMicroCard: React.FC<ViewMoreMicroCardProps>;
5
6
  declare const _default: React.FunctionComponent<ViewMoreMicroCardProps>;
6
7
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '../interfaces';
3
- type ZeroStateCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'onCardClick' | 'showIcon' | 'variant'>;
3
+ interface ZeroStateCardProps extends Pick<MicroWidgetProps, 'ariaLabel' | 'elevation' | 'heightOverrides' | 'onCardClick' | 'showIcon' | 'variant'> {
4
+ }
4
5
  export declare const ZeroStateCard: React.FC<ZeroStateCardProps>;
5
6
  declare const _default: React.FunctionComponent<ZeroStateCardProps>;
6
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '..';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface BeatListProps extends Pick<MicroWidgetProps, 'heightOverrides' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant'> {
4
+ export interface BeatListProps extends Pick<MicroWidgetProps, 'elevation' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant'> {
5
5
  activeCardIndex: number;
6
6
  beats: Beat[];
7
7
  cardWidth: number | null;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '..';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface MicroBeatCarouselProps extends Pick<MicroWidgetProps, 'allowSingleCardPeeking' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showCarouselControls' | 'showIcon' | 'showWithMargin' | 'variant' | 'visibleCardsCount' | 'widthOverrides'> {
4
+ export interface MicroBeatCarouselProps extends Pick<MicroWidgetProps, 'allowSingleCardPeeking' | 'elevation' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showCarouselControls' | 'showIcon' | 'showWithMargin' | 'variant' | 'visibleCardsCount' | 'widthOverrides'> {
5
5
  analyticsMetadata?: Record<string, string>;
6
6
  beats?: Beat[];
7
7
  }
@@ -1,4 +1,4 @@
1
- import { A as u, B as s, C as c, I as v, a as C, b as R, M as H, c as M, d as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-BB3Dusch.mjs";
1
+ import { A as u, B as s, C as c, I as v, a as C, b as R, M as H, c as M, d as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-D_LoKlJU.mjs";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  const a = ({
4
4
  color: i = "currentColor",
@@ -5,6 +5,8 @@ export interface MicroWidgetProps {
5
5
  ariaLabel?: string;
6
6
  areBeatsLoading?: boolean;
7
7
  beats?: Beat[];
8
+ cardStyle?: 'elevation 1' | 'border' | 'flat';
9
+ elevation?: number;
8
10
  endpoint?: string;
9
11
  headerSx?: SxProps;
10
12
  heightOverrides?: number | string;
@@ -29,7 +29,7 @@ import $t from "@mui/material/ToggleButton";
29
29
  import Kt from "@mui/material/ToggleButtonGroup";
30
30
  import { parseISO as lt } from "date-fns/parseISO";
31
31
  import { H as ke } from "../HeaderCell-P8w6CmfO.mjs";
32
- import { T as W, a as Yt } from "../ViewMoreMicroCard-BB3Dusch.mjs";
32
+ import { T as W, a as Yt } from "../ViewMoreMicroCard-D_LoKlJU.mjs";
33
33
  import { useGridApiContext as jt, useGridRootProps as Ut, DataGridPro as Xt } from "@mui/x-data-grid-pro";
34
34
  import Zt from "@mui/material/Badge";
35
35
  import Qt from "@mui/material/IconButton";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.2.2",
3
+ "version": "8.2.3",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",