@nuskin/react-mysite-elements 1.5.0-ui-fixes.10 → 1.5.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.
- package/README.md +0 -226
- package/dist/common/carousel/ProductTabCarousel.d.ts +1 -1
- package/dist/common/headers/MysiteHero.d.ts +6 -2
- package/dist/common/headers/index.d.ts +1 -0
- package/dist/common/index.d.ts +0 -1
- package/dist/index.d.ts +1 -1
- 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/dist/ui/index.d.ts +1 -0
- package/package.json +11 -29
- package/dist/common/icon/icons/SocialMediaIcons.styled.d.ts +0 -5
- package/dist/common/shopping-dashboard/MysiteDashboardWithNavigation.d.ts +0 -55
- package/dist/common/shopping-dashboard/PoDashboardWithNavigation.d.ts +0 -4
- package/dist/common/shopping-dashboard/ProductOfferDashboard.d.ts +0 -4
- package/dist/common/shopping-dashboard/ProductOfferDashboard.styled.d.ts +0 -20
- package/dist/common/shopping-dashboard/ShoppingDashboard.d.ts +0 -37
- package/dist/common/shopping-dashboard/ShoppingDashboard.styled.d.ts +0 -20
- package/dist/common/shopping-dashboard/TranslationContext.d.ts +0 -10
- package/dist/common/shopping-dashboard/TranslationKeys/ProductOfferDashboardTranslationKeys.d.ts +0 -242
- package/dist/common/shopping-dashboard/TranslationKeys/ShoppingDashboardTranslationKeys.d.ts +0 -546
- package/dist/common/shopping-dashboard/TranslationKeys/translationResolver.d.ts +0 -8
- package/dist/common/shopping-dashboard/fixtures/index.d.ts +0 -1
- package/dist/common/shopping-dashboard/fixtures/mockDashboardData.d.ts +0 -10
- package/dist/common/shopping-dashboard/fixtures/mockProductOfferData.d.ts +0 -8
- package/dist/common/shopping-dashboard/hooks/useProductOfferWidgetExports.d.ts +0 -15
- package/dist/common/shopping-dashboard/index.d.ts +0 -47
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateChart.d.ts +0 -15
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateChart.styled.d.ts +0 -62
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.d.ts +0 -18
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.styled.d.ts +0 -50
- package/dist/common/shopping-dashboard/shared/ConversionRate/ConversionRateFullView.test.d.ts +0 -3
- package/dist/common/shopping-dashboard/shared/DashboardHeader.d.ts +0 -14
- package/dist/common/shopping-dashboard/shared/DashboardHeader.styled.d.ts +0 -48
- package/dist/common/shopping-dashboard/shared/DataTable.d.ts +0 -18
- package/dist/common/shopping-dashboard/shared/DataTable.styled.d.ts +0 -42
- package/dist/common/shopping-dashboard/shared/FilterBar.d.ts +0 -7
- package/dist/common/shopping-dashboard/shared/FilterBar.styled.d.ts +0 -12
- package/dist/common/shopping-dashboard/shared/FullViewComponents.styled.d.ts +0 -52
- package/dist/common/shopping-dashboard/shared/LoadingSkeletons.d.ts +0 -8
- package/dist/common/shopping-dashboard/shared/LoadingSkeletons.styled.d.ts +0 -121
- package/dist/common/shopping-dashboard/shared/PageHeader.d.ts +0 -32
- package/dist/common/shopping-dashboard/shared/PageHeader.styled.d.ts +0 -56
- package/dist/common/shopping-dashboard/shared/Pagination.d.ts +0 -9
- package/dist/common/shopping-dashboard/shared/Pagination.styled.d.ts +0 -18
- package/dist/common/shopping-dashboard/shared/Signups/SignupsChart.d.ts +0 -13
- package/dist/common/shopping-dashboard/shared/Signups/SignupsChart.styled.d.ts +0 -56
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.d.ts +0 -24
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.styled.d.ts +0 -25
- package/dist/common/shopping-dashboard/shared/Signups/SignupsFullView.test.d.ts +0 -3
- package/dist/common/shopping-dashboard/shared/StatsCard.d.ts +0 -13
- package/dist/common/shopping-dashboard/shared/StatsCard.styled.d.ts +0 -66
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.d.ts +0 -16
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.styled.d.ts +0 -79
- package/dist/common/shopping-dashboard/shared/TopCategories/CategoriesFullView.test.d.ts +0 -3
- package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.d.ts +0 -13
- package/dist/common/shopping-dashboard/shared/TopCategories/TopCategoriesPieChart.styled.d.ts +0 -100
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersFullView.d.ts +0 -15
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersFullView.styled.d.ts +0 -86
- package/dist/common/shopping-dashboard/shared/TopPerformingOffers/TopPerformingOffersPieChart.d.ts +0 -12
- package/dist/common/shopping-dashboard/shared/TopProducts/ProductsFullView.d.ts +0 -15
- package/dist/common/shopping-dashboard/shared/TopProducts/ProductsFullView.styled.d.ts +0 -48
- package/dist/common/shopping-dashboard/shared/TopProducts/TopSellingProductsList.d.ts +0 -12
- package/dist/common/shopping-dashboard/shared/TopProducts/TopSellingProductsList.styled.d.ts +0 -74
- package/dist/common/shopping-dashboard/shared/WidgetMenu.d.ts +0 -7
- package/dist/common/shopping-dashboard/shared/WidgetMenu.styled.d.ts +0 -5
- package/dist/common/shopping-dashboard/shared/types.d.ts +0 -13
- package/dist/common/shopping-dashboard/shared/useViewport.d.ts +0 -2
- package/dist/common/shopping-dashboard/specs/CategoriesFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ConversionRateChart.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ConversionRateFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/DashboardHeader.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/DataTable.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/FilterBar.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/MysiteDashboardWithNavigation.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/Pagination.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/PoDashboardWithNavigation.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ProductOfferDashboard.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ProductsFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/ShoppingDashboard.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/SignupsFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/TopCategoriesPieChart.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/TopPerformingOffersFullView.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/TopPerformingOffersPieChart.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/TopSellingProductsList.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/WidgetMenu.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/dataUtils.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/dateFormat.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/excelExport.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/marketOptions.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/productOfferExport.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/productOfferTranslation.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/translationResolver.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/trendUtils.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/specs/useProductOfferWidgetExports.spec.d.ts +0 -1
- package/dist/common/shopping-dashboard/stories/CategoriesFullView.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/ConversionRateChart.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/ConversionRateFullView.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/DashboardHeader.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/DataTable.stories.d.ts +0 -8
- package/dist/common/shopping-dashboard/stories/PageHeader.stories.d.ts +0 -8
- package/dist/common/shopping-dashboard/stories/Pagination.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/ProductOfferDashboard.stories.d.ts +0 -13
- package/dist/common/shopping-dashboard/stories/ProductsFullView.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/ShoppingDashboard.stories.d.ts +0 -13
- package/dist/common/shopping-dashboard/stories/SignupsChart.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/SignupsFullView.stories.d.ts +0 -9
- package/dist/common/shopping-dashboard/stories/StatsCard.stories.d.ts +0 -11
- package/dist/common/shopping-dashboard/stories/TopCategoriesPieChart.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/TopPerformingOffersFullView.stories.d.ts +0 -10
- package/dist/common/shopping-dashboard/stories/TopPerformingOffersPieChart.stories.d.ts +0 -11
- package/dist/common/shopping-dashboard/stories/TopSellingProductsList.stories.d.ts +0 -11
- package/dist/common/shopping-dashboard/utils/comparisonTextUtils.d.ts +0 -8
- package/dist/common/shopping-dashboard/utils/dataUtils.d.ts +0 -24
- package/dist/common/shopping-dashboard/utils/dateConstants.d.ts +0 -6
- package/dist/common/shopping-dashboard/utils/dateFormat.d.ts +0 -23
- package/dist/common/shopping-dashboard/utils/excelExport.d.ts +0 -14
- package/dist/common/shopping-dashboard/utils/marketOptions.d.ts +0 -4
- package/dist/common/shopping-dashboard/utils/productOfferExport.d.ts +0 -3
- package/dist/common/shopping-dashboard/utils/trendUtils.d.ts +0 -11
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { CategoriesFullView } from '../shared/TopCategories/CategoriesFullView';
|
|
3
|
-
type ComponentType = typeof CategoriesFullView;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const SortByTrend: Story;
|
|
9
|
-
export declare const Loading: Story;
|
|
10
|
-
export declare const Empty: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { ConversionRateChart } from '../shared/ConversionRate/ConversionRateChart';
|
|
3
|
-
type ComponentType = typeof ConversionRateChart;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const Standard: Story;
|
|
9
|
-
export declare const Loading: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { ConversionRateFullView } from '../shared/ConversionRate/ConversionRateFullView';
|
|
3
|
-
type ComponentType = typeof ConversionRateFullView;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const StandardFilter: Story;
|
|
9
|
-
export declare const SubscriptionFilter: Story;
|
|
10
|
-
export declare const Loading: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { DashboardHeader } from '../shared/DashboardHeader';
|
|
3
|
-
type ComponentType = typeof DashboardHeader;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const Loading: Story;
|
|
9
|
-
export declare const CustomTitle: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { DataTable } from '../shared/DataTable';
|
|
3
|
-
type ComponentType = typeof DataTable;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const Empty: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { PageHeader } from '../shared/PageHeader';
|
|
3
|
-
type ComponentType = typeof PageHeader;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const WithFilters: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { Pagination } from '../shared/Pagination';
|
|
3
|
-
type ComponentType = typeof Pagination;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const MiddlePage: Story;
|
|
9
|
-
export declare const FewPages: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/nextjs';
|
|
2
|
-
import { ProductOfferDashboard } from '../ProductOfferDashboard';
|
|
3
|
-
declare const meta: Meta<typeof ProductOfferDashboard>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ProductOfferDashboard>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const StaticDefault: Story;
|
|
8
|
-
export declare const NegativeTrends: Story;
|
|
9
|
-
export declare const Loading: Story;
|
|
10
|
-
export declare const ErrorState: Story;
|
|
11
|
-
export declare const EmptyData: Story;
|
|
12
|
-
export declare const MobileView: Story;
|
|
13
|
-
export declare const TabletView: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { ProductsFullView } from '../shared/TopProducts/ProductsFullView';
|
|
3
|
-
type ComponentType = typeof ProductsFullView;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const Loading: Story;
|
|
9
|
-
export declare const Empty: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/nextjs';
|
|
2
|
-
import { ShoppingDashboard } from '../ShoppingDashboard';
|
|
3
|
-
declare const meta: Meta<typeof ShoppingDashboard>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ShoppingDashboard>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const StaticDefault: Story;
|
|
8
|
-
export declare const NegativeTrends: Story;
|
|
9
|
-
export declare const Loading: Story;
|
|
10
|
-
export declare const ErrorState: Story;
|
|
11
|
-
export declare const EmptyData: Story;
|
|
12
|
-
export declare const MobileView: Story;
|
|
13
|
-
export declare const TabletView: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { SignupsChart } from '../shared/Signups/SignupsChart';
|
|
3
|
-
type ComponentType = typeof SignupsChart;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const MembersOnly: Story;
|
|
9
|
-
export declare const RetailOnly: Story;
|
|
10
|
-
export declare const Loading: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { SignupsFullView } from '../shared/Signups/SignupsFullView';
|
|
3
|
-
type ComponentType = typeof SignupsFullView;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const MembersOnly: Story;
|
|
9
|
-
export declare const Loading: Story;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { StatsCard } from '../shared/StatsCard';
|
|
3
|
-
type ComponentType = typeof StatsCard;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Revenue: Story;
|
|
8
|
-
export declare const Volume: Story;
|
|
9
|
-
export declare const SiteVisits: Story;
|
|
10
|
-
export declare const Neutral: Story;
|
|
11
|
-
export declare const NoTrend: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { TopCategoriesPieChart } from '../shared/TopCategories/TopCategoriesPieChart';
|
|
3
|
-
type ComponentType = typeof TopCategoriesPieChart;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const SortByTrend: Story;
|
|
9
|
-
export declare const Loading: Story;
|
|
10
|
-
export declare const Empty: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/nextjs';
|
|
2
|
-
import { TopPerformingOffersFullView } from '../shared/TopPerformingOffers/TopPerformingOffersFullView';
|
|
3
|
-
declare const meta: Meta<typeof TopPerformingOffersFullView>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TopPerformingOffersFullView>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const SortByUnits: Story;
|
|
8
|
-
export declare const Loading: Story;
|
|
9
|
-
export declare const Empty: Story;
|
|
10
|
-
export declare const MobileView: Story;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/nextjs';
|
|
2
|
-
import { TopPerformingOffersPieChart } from '../shared/TopPerformingOffers/TopPerformingOffersPieChart';
|
|
3
|
-
declare const meta: Meta<typeof TopPerformingOffersPieChart>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TopPerformingOffersPieChart>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const SortByUnits: Story;
|
|
8
|
-
export declare const Loading: Story;
|
|
9
|
-
export declare const Empty: Story;
|
|
10
|
-
export declare const SingleOffer: Story;
|
|
11
|
-
export declare const MobileView: Story;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { StoryObj, Meta } from '@storybook/nextjs';
|
|
2
|
-
import { TopSellingProductsList } from '../shared/TopProducts/TopSellingProductsList';
|
|
3
|
-
type ComponentType = typeof TopSellingProductsList;
|
|
4
|
-
type Story = StoryObj<ComponentType>;
|
|
5
|
-
declare const _default: Meta<ComponentType>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
export declare const SortByRevenue: Story;
|
|
9
|
-
export declare const Loading: Story;
|
|
10
|
-
export declare const Empty: Story;
|
|
11
|
-
export declare const ThreeProducts: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DateRangeOption } from '../types.d';
|
|
2
|
-
/**
|
|
3
|
-
* Generates dynamic comparison text based on the selected date range.
|
|
4
|
-
* Uses translation keys for internationalization support.
|
|
5
|
-
* @param dateRange The selected date range option
|
|
6
|
-
* @returns Dynamic comparison text like "compared to this time 7 days ago"
|
|
7
|
-
*/
|
|
8
|
-
export declare function getComparedToText(dateRange: DateRangeOption): string;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare function calculateTotalPages<T>(items: T[], itemsPerPage: number): number;
|
|
2
|
-
export declare function paginateItems<T>(items: T[], currentPage: number, itemsPerPage: number): T[];
|
|
3
|
-
export declare function sortByNumericProperty<T extends Record<string, unknown>>(items: T[], key: keyof T, direction?: 'asc' | 'desc'): T[];
|
|
4
|
-
export declare function calculatePercentage(value: number, total: number, decimalPlaces?: number): string;
|
|
5
|
-
export declare function usePaginatedItems<T>(items: T[], currentPage: number, itemsPerPage: number): {
|
|
6
|
-
totalPages: number;
|
|
7
|
-
pageItems: T[];
|
|
8
|
-
};
|
|
9
|
-
export declare function formatMoney(value: number, currencyCode?: string, locale?: string, fractionDigits?: number): string;
|
|
10
|
-
export declare function capitalizeFirstLetter(text: string): string;
|
|
11
|
-
/**
|
|
12
|
-
* Gets the numeric value from a SignupDataPoint based on the selected signup view.
|
|
13
|
-
* Maps the signup view option to the corresponding data field:
|
|
14
|
-
* - 'all' → total
|
|
15
|
-
* - 'members' → members
|
|
16
|
-
* - 'retail' → retail
|
|
17
|
-
* - 'brandAffiliates' → brandAffiliates
|
|
18
|
-
*/
|
|
19
|
-
export declare function getSignupValueByView(dataPoint: {
|
|
20
|
-
readonly total: number;
|
|
21
|
-
readonly members: number;
|
|
22
|
-
readonly retail: number;
|
|
23
|
-
readonly brandAffiliates: number;
|
|
24
|
-
}, view: 'all' | 'members' | 'retail' | 'brandAffiliates'): number;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { DateRangeOption } from '../types.d';
|
|
2
|
-
export declare const DEFAULT_DATE_RANGE: DateRangeOption;
|
|
3
|
-
export declare const DAYS_MAP: Record<DateRangeOption, number>;
|
|
4
|
-
export declare const DATE_RANGE_LABELS: Record<DateRangeOption, string>;
|
|
5
|
-
export declare function getDaysFromDateRange(dateRange: DateRangeOption): number;
|
|
6
|
-
export declare function getDateRangeLabel(dateRange: DateRangeOption): string;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { DateRangeOption } from '../types.d';
|
|
2
|
-
export declare function formatDateRangeLabel(dateRange: DateRangeOption): string;
|
|
3
|
-
export declare function formatShortDate(date: Date): string;
|
|
4
|
-
export declare function formatAxisDate(dateStr: string): string;
|
|
5
|
-
export declare function formatDisplayDate(dateStr: string): string;
|
|
6
|
-
export declare function formatDateRange(start: string, end: string): string;
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type ExcelCellValue = string | number | boolean | Date | null | undefined;
|
|
2
|
-
export interface ExcelExportColumn<TItem> {
|
|
3
|
-
readonly header: string;
|
|
4
|
-
readonly value: (item: TItem) => ExcelCellValue;
|
|
5
|
-
}
|
|
6
|
-
export interface ExcelExportOptions<TItem> {
|
|
7
|
-
readonly rows: readonly TItem[];
|
|
8
|
-
readonly columns: readonly ExcelExportColumn<TItem>[];
|
|
9
|
-
readonly fileName: string;
|
|
10
|
-
readonly sheetName: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function normalizeExcelFileName(fileName: string): string;
|
|
13
|
-
export declare function normalizeExcelSheetName(sheetName: string): string;
|
|
14
|
-
export declare function exportRowsToExcel<TItem>({ rows, columns, fileName, sheetName, }: ExcelExportOptions<TItem>): Promise<void>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { MarketFilterOption } from '../types.d';
|
|
2
|
-
export declare function buildDefaultMarketOptions(): MarketFilterOption[];
|
|
3
|
-
export declare function resolveMarketOptions(markets: ReadonlyArray<MarketFilterOption> | undefined): ReadonlyArray<MarketFilterOption>;
|
|
4
|
-
export declare function useMarketOptions(markets: ReadonlyArray<MarketFilterOption> | undefined): ReadonlyArray<MarketFilterOption>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TrendDirection } from '../shared/types';
|
|
3
|
-
export declare function parseTrendPercent(value?: string): number | null;
|
|
4
|
-
export declare function resolveTrendDirection(value?: string): TrendDirection;
|
|
5
|
-
export declare function calculateWeightedRevenueTrend<T>(items: readonly T[], getRevenue: (item: T) => number, getTrend: (item: T) => string | undefined): {
|
|
6
|
-
direction: TrendDirection;
|
|
7
|
-
formatted: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function getTrendDirectionLabel(direction: TrendDirection): string;
|
|
10
|
-
export declare function getTrendIcon(direction: TrendDirection): React.ReactNode;
|
|
11
|
-
export declare function getTrendColor(direction: TrendDirection): string;
|