@nuskin/react-mysite-elements 1.5.0-comx-2229.2 → 1.5.0-ui-fixes.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/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts +1 -1
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.styled.d.ts +1 -0
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.test.d.ts +3 -0
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.d.ts +9 -1
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.styled.d.ts +10 -0
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.test.d.ts +3 -0
- package/dist/common/shopping-dashboard/shared/StatsCard.styled.d.ts +4 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.styled.d.ts +7 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.test.d.ts +3 -0
- package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.styled.d.ts +10 -0
- package/dist/common/shopping-dashboard/stories/ConversionRateFullView.stories.d.ts +1 -0
- package/dist/common/shopping-dashboard/utils/dateFormat.d.ts +16 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts
CHANGED
|
@@ -480,7 +480,7 @@ export declare const ShoppingDashboardTranslationKeys: {
|
|
|
480
480
|
};
|
|
481
481
|
readonly total: {
|
|
482
482
|
readonly key: "shoppingDashboard.fullView.conversionRate.columns.total";
|
|
483
|
-
readonly fallback: "Total";
|
|
483
|
+
readonly fallback: "Order Total";
|
|
484
484
|
};
|
|
485
485
|
readonly bv: {
|
|
486
486
|
readonly key: "shoppingDashboard.fullView.conversionRate.columns.bv";
|
package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.styled.d.ts
CHANGED
|
@@ -35,3 +35,4 @@ export declare const DesktopTableContainer: import("@emotion/styled").StyledComp
|
|
|
35
35
|
export declare const ComparisonTextMobile: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
36
36
|
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
37
37
|
}, "p" | "style" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "children" | "classes" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY" | "typography" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
38
|
+
export declare const OrderIdColumnCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SignupDataPoint, SignupDetail, DateRangeOption, MarketOption, MarketFilterOption, SignupViewOption } from '../../types.d';
|
|
3
3
|
export interface SignupsFullViewProps {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Signup data - can be either:
|
|
6
|
+
* 1. Direct array of SignupDataPoint (camelCase format)
|
|
7
|
+
* 2. API response object with 'daily' array (snake_case format)
|
|
8
|
+
*/
|
|
9
|
+
readonly signupData: SignupDataPoint[] | {
|
|
10
|
+
daily?: Array<Record<string, unknown>>;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
5
13
|
readonly signups: SignupDetail[];
|
|
6
14
|
readonly dateRange: DateRangeOption;
|
|
7
15
|
readonly market: MarketOption;
|
|
@@ -13,3 +13,13 @@ export declare const SignupTrendChartContainer: import("@emotion/styled").Styled
|
|
|
13
13
|
export declare const ComparisonTextMobile: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
14
14
|
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
15
15
|
}, "p" | "style" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "children" | "classes" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY" | "typography" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
16
|
+
export declare const ChartWithLegendWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
18
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
19
|
+
export declare const ChartLegendContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
21
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
22
|
+
export declare const LegendItem: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
23
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
24
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
25
|
+
export declare const NameColumnCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -38,6 +38,10 @@ export declare const StatsValue: import("@emotion/styled").StyledComponent<{
|
|
|
38
38
|
theme?: import("@emotion/react").Theme;
|
|
39
39
|
as?: React.ElementType;
|
|
40
40
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
41
|
+
export declare const ValueSubtitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
41
45
|
export declare const StatsSubtitle: import("@emotion/styled").StyledComponent<{
|
|
42
46
|
theme?: import("@emotion/react").Theme;
|
|
43
47
|
as?: React.ElementType;
|
|
@@ -70,3 +70,10 @@ export declare const MobileCategoriesContainer: import("@emotion/styled").Styled
|
|
|
70
70
|
export declare const MobileCategoryCard: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
71
71
|
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
72
72
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
73
|
+
export declare const SummaryTrendIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
74
|
+
direction: "up" | "down" | "neutral";
|
|
75
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
76
|
+
export declare const CategoryNameColumnCell: import("@emotion/styled").StyledComponent<{
|
|
77
|
+
theme?: import("@emotion/react").Theme;
|
|
78
|
+
as?: React.ElementType;
|
|
79
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.styled.d.ts
CHANGED
|
@@ -74,6 +74,16 @@ export declare const LegendPercentage: import("@emotion/styled").StyledComponent
|
|
|
74
74
|
theme?: import("@emotion/react").Theme;
|
|
75
75
|
as?: React.ElementType;
|
|
76
76
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
77
|
+
export declare const LegendValueWrapper: import("@emotion/styled").StyledComponent<{
|
|
78
|
+
theme?: import("@emotion/react").Theme;
|
|
79
|
+
as?: React.ElementType;
|
|
80
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
81
|
+
export declare const LegendTrendInline: import("@emotion/styled").StyledComponent<{
|
|
82
|
+
theme?: import("@emotion/react").Theme;
|
|
83
|
+
as?: React.ElementType;
|
|
84
|
+
} & {
|
|
85
|
+
direction: "up" | "down" | "neutral";
|
|
86
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
77
87
|
export declare const LegendTrend: import("@emotion/styled").StyledComponent<{
|
|
78
88
|
theme?: import("@emotion/react").Theme;
|
|
79
89
|
as?: React.ElementType;
|
|
@@ -5,3 +5,19 @@ export declare function formatAxisDate(dateStr: string): string;
|
|
|
5
5
|
export declare function formatDisplayDate(dateStr: string): string;
|
|
6
6
|
export declare function formatDateRange(start: string, end: string): string;
|
|
7
7
|
export declare function formatISODate(date: Date): string;
|
|
8
|
+
/**
|
|
9
|
+
* Extract and format the date range from an array of data objects.
|
|
10
|
+
* Handles various date field names: 'date', 'Date', 'dateTime', etc.
|
|
11
|
+
* Falls back to calculating from dateRange option if no date data is available.
|
|
12
|
+
* @param data Array of objects with date information
|
|
13
|
+
* @param fallbackLabel Fallback label if no dates found
|
|
14
|
+
* @returns Formatted date range string (e.g., "May 30 - Aug 27")
|
|
15
|
+
*/
|
|
16
|
+
export declare function getActualDateRange(data: unknown[], fallbackLabel?: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Calculate and format the date range based on a DateRangeOption.
|
|
19
|
+
* Used for components without time-series data (e.g., TopProducts, TopCategories)
|
|
20
|
+
* @param dateRangeOption The selected date range option
|
|
21
|
+
* @returns Formatted date range string (e.g., "Aug 28 - Sep 27" for last30days)
|
|
22
|
+
*/
|
|
23
|
+
export declare function calculateDateRangeFromOption(dateRangeOption: DateRangeOption): string;
|