@mx-cartographer/experiences 6.21.2-alpha.al2 → 6.23.0

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.
@@ -2,6 +2,7 @@ import { default as React } from 'react';
2
2
  import { Beat } from '../../../common/types';
3
3
  import { MicroWidgetProps } from '../../interfaces';
4
4
  export interface InsightsMicroWidgetProps extends MicroWidgetProps {
5
+ allowSingleCardPeeking?: boolean;
5
6
  areBeatsLoading: boolean;
6
7
  beats: Beat[];
7
8
  endpoint: string;
@@ -6,5 +6,14 @@ export interface MicroBeatCarouselProps extends MicroWidgetProps {
6
6
  showCarouselControls?: boolean;
7
7
  visibleCardsCount?: number;
8
8
  }
9
+ export interface CarouselDimensions {
10
+ containerWidth: number;
11
+ cardWidth: number;
12
+ totalCards: number;
13
+ totalScrollWidth: number;
14
+ visibleCardsCount: number;
15
+ gap: number;
16
+ peekAreaWidth: number;
17
+ }
9
18
  declare const _default: React.FunctionComponent<MicroBeatCarouselProps>;
10
19
  export default _default;
@@ -3,6 +3,7 @@ export interface clientColorSchemeProps {
3
3
  [key: string]: string | undefined;
4
4
  }
5
5
  export interface MicroWidgetProps {
6
+ allowSingleCardPeeking?: boolean;
6
7
  ariaLabel?: string;
7
8
  clientColorScheme?: clientColorSchemeProps;
8
9
  showCTAColocatedWithText?: boolean;
@@ -1,7 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { WidgetProps, Beat } from '../common';
3
- interface TrendsWidgetProps extends WidgetProps {
4
- onInsightCardClick?: (beat?: Beat) => void;
5
- }
6
- declare const _default: React.FunctionComponent<TrendsWidgetProps>;
2
+ import { WidgetProps } from '../common';
3
+ declare const _default: React.FunctionComponent<WidgetProps>;
7
4
  export default _default;
@@ -1,8 +1,4 @@
1
- import { default as React } from 'react';
2
- import { CategoryListItem, Transaction } from '../../common';
3
- interface CategoriesListProps {
4
- onListItemClick: (data: CategoryListItem) => void;
5
- transactions: Transaction[];
6
- }
7
- declare const CategoriesList: React.FC<CategoriesListProps>;
1
+ declare const CategoriesList: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
8
4
  export default CategoriesList;
@@ -1,7 +1,10 @@
1
1
  import { default as React } from 'react';
2
- import { CategoryListItem } from '../../common';
3
- interface CategoriesListItemProps extends CategoryListItem {
4
- onClick?: () => void;
2
+ interface CategoriesListItemProps {
3
+ categoryGuid?: string;
4
+ categoryName?: string;
5
+ categoryTotal?: string;
6
+ onClick: () => void;
7
+ transactionCount?: number;
5
8
  }
6
9
  declare const CategoriesListItem: React.FC<CategoriesListItemProps>;
7
10
  export default CategoriesListItem;
@@ -1,7 +1,3 @@
1
1
  import { default as React } from 'react';
2
- import { Beat } from '../../common/types/Beat';
3
- interface TrendsMicroInsightsProps {
4
- onInsightCardClick?: (beat?: Beat) => void;
5
- }
6
- declare const _default: React.FunctionComponent<TrendsMicroInsightsProps>;
2
+ declare const _default: React.FunctionComponent<{}>;
7
3
  export default _default;
@@ -1,16 +1,16 @@
1
- import { CategoryListItem, DetailedCategory, GlobalStore } from '../../common';
1
+ import { DetailedCategory, GlobalStore } from '../../common';
2
2
  export declare class TrendsStore {
3
3
  globalStore: GlobalStore;
4
- selectedCategoryData: CategoryListItem | null;
5
4
  constructor(globalStore: GlobalStore);
6
- setSelectedCategoryData: (category: CategoryListItem | null) => void;
7
- sortCategoriesList: () => {
5
+ sortByTotalDescending: () => {
8
6
  guid: string;
9
7
  name: string;
10
- amount: number;
8
+ totalAmount: number;
11
9
  }[];
12
10
  get detailedCategories(): DetailedCategory[];
13
- get sortedCategoriesList(): CategoryListItem[];
14
- get visibleListItems(): CategoryListItem[];
15
- get collapsedListItems(): CategoryListItem[];
11
+ get sortedCategoriesList(): {
12
+ guid: string;
13
+ name: string;
14
+ totalAmount: number;
15
+ }[];
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.21.2-alpha.al2",
3
+ "version": "6.23.0",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- interface ListItemRowProps {
3
- onClick?: () => void;
4
- leftIcon?: React.ReactNode;
5
- rightIcon?: React.ReactNode;
6
- title?: string;
7
- subtitle?: string;
8
- rightContent?: React.ReactNode;
9
- titleBold?: boolean;
10
- rightContentBold?: boolean;
11
- }
12
- export declare const ListItemRow: React.FC<ListItemRowProps>;
13
- export {};
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- interface CollapseExpandListItemProps {
3
- isExpanded: boolean;
4
- onClick: () => void;
5
- }
6
- export declare const CollapseExpandListItem: React.FC<CollapseExpandListItemProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- interface CategoryDetailProps {
2
- onClose?: () => void;
3
- }
4
- declare const CategoryDetail: (({ onClose }: CategoryDetailProps) => import("react/jsx-runtime").JSX.Element) & {
5
- displayName: string;
6
- };
7
- export default CategoryDetail;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DateRange, MonthlyCategoryTotals } from '../../common';
3
- interface TrendsChartTotalsProps {
4
- selectedDateRange: DateRange;
5
- totals: MonthlyCategoryTotals[];
6
- }
7
- declare const _default: React.FunctionComponent<TrendsChartTotalsProps>;
8
- export default _default;