@vtx-ui/react 0.0.1-beta.13 → 0.0.1-beta.14
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 +865 -103
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Autocomplete/Autocomplete.d.ts +173 -0
- package/dist/types/components/Autocomplete/index.d.ts +2 -0
- package/dist/types/components/Image/Image.d.ts +14 -0
- package/dist/types/components/Image/index.d.ts +2 -0
- package/dist/types/components/Link/Link.d.ts +5 -0
- package/dist/types/components/Navbar/Navbar.d.ts +236 -0
- package/dist/types/components/Navbar/index.d.ts +2 -0
- package/dist/types/components/Text/Text.d.ts +9 -3
- package/dist/types/components/Widget/renderers/CarouselWidget.d.ts +2 -1
- package/dist/types/components/Widget/renderers/ContentBlockWidget.d.ts +56 -0
- package/dist/types/components/Widget/renderers/ContentBlockWidget.stories.d.ts +24 -0
- package/dist/types/components/Widget/renderers/HeaderWidget.d.ts +8 -2
- package/dist/types/components/Widget/renderers/ImageWidget.d.ts +69 -0
- package/dist/types/components/Widget/renderers/ImageWidget.stories.d.ts +11 -0
- package/dist/types/components/Widget/renderers/InfoWidget.d.ts +8 -2
- package/dist/types/components/Widget/renderers/ListWidget.d.ts +8 -2
- package/dist/types/components/Widget/renderers/MetricWidget.d.ts +8 -2
- package/dist/types/components/Widget/renderers/NavbarWidget.d.ts +16 -0
- package/dist/types/components/Widget/renderers/OrderWidget.d.ts +2 -6
- package/dist/types/components/Widget/renderers/ProductWidget.d.ts +2 -6
- package/dist/types/components/Widget/renderers/TextWidget.d.ts +8 -2
- package/dist/types/components/Widget/types.d.ts +388 -14
- package/dist/types/icons/IconComponents.d.ts +3 -0
- package/dist/types/index.d.ts +10 -6
- package/dist/types/stories/components/Autocomplete.stories.d.ts +20 -0
- package/dist/types/stories/components/ContentBlockWidget.stories.d.ts +24 -0
- package/dist/types/stories/components/HeaderWidget.stories.d.ts +10 -0
- package/dist/types/stories/components/InfoWidget.stories.d.ts +24 -0
- package/dist/types/stories/components/ListWidget.stories.d.ts +10 -0
- package/dist/types/stories/components/MetricWidget.stories.d.ts +12 -0
- package/dist/types/stories/components/OrderWidget.stories.d.ts +12 -0
- package/dist/types/stories/components/ProductWidget.stories.d.ts +13 -0
- package/dist/types/stories/components/TextWidget.stories.d.ts +10 -0
- package/dist/types/stories/widgets/DashboardCard.stories.d.ts +58 -0
- package/dist/types/stories/widgets/InfoCard.stories.d.ts +1 -4
- package/dist/types/stories/widgets/InfoListCard.stories.d.ts +3 -15
- package/dist/types/stories/widgets/InfoText.stories.d.ts +1 -19
- package/dist/types/stories/widgets/MetricCard.stories.d.ts +27 -0
- package/dist/types/stories/widgets/OrderCard.stories.d.ts +3 -9
- package/dist/types/stories/widgets/OrderConfirmation.stories.d.ts +1 -24
- package/dist/types/stories/widgets/OrderDetails.stories.d.ts +3 -7
- package/dist/types/stories/widgets/ProductCard.stories.d.ts +1 -15
- package/dist/types/theme/ThemeProvider.d.ts +7 -0
- package/dist/types/utils/parseClass.d.ts +2 -0
- package/dist/types/widgets/DashboardCard/DashboardCard.d.ts +275 -0
- package/dist/types/widgets/DashboardCard/index.d.ts +2 -0
- package/dist/types/widgets/MetricCard/MetricCard.d.ts +106 -0
- package/dist/types/widgets/MetricCard/index.d.ts +2 -0
- package/dist/types/widgets/Navbar/Navbar.d.ts +308 -0
- package/dist/types/widgets/Navbar/Navbar.stories.d.ts +23 -0
- package/dist/types/widgets/Navbar/index.d.ts +2 -0
- package/dist/types/widgets/OrderCard/OrderCard.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Autocomplete } from '../../components/Autocomplete';
|
|
3
|
+
declare const meta: Meta<typeof Autocomplete>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Autocomplete>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithLabel: Story;
|
|
8
|
+
export declare const WithSearchIcon: Story;
|
|
9
|
+
export declare const Clearable: Story;
|
|
10
|
+
export declare const WithIcons: Story;
|
|
11
|
+
export declare const CustomGetters: Story;
|
|
12
|
+
export declare const WithFunctions: Story;
|
|
13
|
+
export declare const Loading: Story;
|
|
14
|
+
export declare const NoOptions: Story;
|
|
15
|
+
export declare const FullWidth: Story;
|
|
16
|
+
export declare const SmallSize: Story;
|
|
17
|
+
export declare const LargeSize: Story;
|
|
18
|
+
export declare const WithError: Story;
|
|
19
|
+
export declare const WithSuccess: Story;
|
|
20
|
+
export declare const WithHelperText: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Widget } from '../../components/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
|
+
export declare const EcommerceProductShowcase: Story;
|
|
7
|
+
export declare const EcommerceProductGrid: Story;
|
|
8
|
+
export declare const EcommerceCategoryBanner: Story;
|
|
9
|
+
export declare const BlogFeaturedPost: Story;
|
|
10
|
+
export declare const BlogQuoteBlock: Story;
|
|
11
|
+
export declare const ServiceFeatureHighlight: Story;
|
|
12
|
+
export declare const ServiceTeamMember: Story;
|
|
13
|
+
export declare const ServiceAboutUs: Story;
|
|
14
|
+
export declare const ServiceProcessStep: Story;
|
|
15
|
+
export declare const SaaSFeature: Story;
|
|
16
|
+
export declare const SaaSPricingCard: Story;
|
|
17
|
+
export declare const SaaSCustomerTestimonial: Story;
|
|
18
|
+
export declare const PortfolioProject: Story;
|
|
19
|
+
export declare const CTABanner: Story;
|
|
20
|
+
export declare const SplitLayoutFeature: Story;
|
|
21
|
+
export declare const SidebarLayout: Story;
|
|
22
|
+
export declare const RealEstateProperty: Story;
|
|
23
|
+
export declare const MinimalInfoCard: Story;
|
|
24
|
+
export declare const CompactFeatureList: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Widget } from '../../components/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithBreadcrumbs: Story;
|
|
8
|
+
export declare const WithAvatarAndBadges: Story;
|
|
9
|
+
export declare const WithActions: Story;
|
|
10
|
+
export declare const Complete: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Widget } from '../../components/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const BaseWithImage: Story;
|
|
8
|
+
export declare const BaseNoIcon: Story;
|
|
9
|
+
export declare const Stat: Story;
|
|
10
|
+
export declare const StatWithImage: Story;
|
|
11
|
+
export declare const StatSuccess: Story;
|
|
12
|
+
export declare const Feature: Story;
|
|
13
|
+
export declare const FeatureWithImage: Story;
|
|
14
|
+
export declare const FeatureSecurity: Story;
|
|
15
|
+
export declare const Compact: Story;
|
|
16
|
+
export declare const CompactSuccess: Story;
|
|
17
|
+
export declare const CompactWarning: Story;
|
|
18
|
+
export declare const CompactWithImage: Story;
|
|
19
|
+
export declare const Vertical: Story;
|
|
20
|
+
export declare const VerticalWithImage: Story;
|
|
21
|
+
export declare const VerticalSuccess: Story;
|
|
22
|
+
export declare const StatusDashboard: Story;
|
|
23
|
+
export declare const FeatureShowcase: Story;
|
|
24
|
+
export declare const MixedDashboard: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Widget } from '../../components/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithAvatars: Story;
|
|
8
|
+
export declare const WithBadgesAndActions: Story;
|
|
9
|
+
export declare const WithMetadata: Story;
|
|
10
|
+
export declare const WithDividers: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Widget } from '../../components/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithTrend: Story;
|
|
8
|
+
export declare const WithTarget: Story;
|
|
9
|
+
export declare const WithProgress: Story;
|
|
10
|
+
export declare const Complete: Story;
|
|
11
|
+
export declare const NegativeTrend: Story;
|
|
12
|
+
export declare const StableTrend: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Widget } from '../../components/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithCustomer: Story;
|
|
8
|
+
export declare const WithItems: Story;
|
|
9
|
+
export declare const WithShipping: Story;
|
|
10
|
+
export declare const WithBreakdown: Story;
|
|
11
|
+
export declare const WithActions: Story;
|
|
12
|
+
export declare const Complete: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import ProductWidget from '../../components/Widget/renderers/ProductWidget';
|
|
3
|
+
declare const meta: Meta<typeof ProductWidget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ProductWidget>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithDiscount: Story;
|
|
8
|
+
export declare const WithRating: Story;
|
|
9
|
+
export declare const OutOfStock: Story;
|
|
10
|
+
export declare const WithTags: Story;
|
|
11
|
+
export declare const Complete: Story;
|
|
12
|
+
export declare const LowRating: Story;
|
|
13
|
+
export declare const Premium: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Widget } from '../../components/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithTitleAndCaption: Story;
|
|
8
|
+
export declare const WithActions: Story;
|
|
9
|
+
export declare const LargeHeading: Story;
|
|
10
|
+
export declare const RightAligned: Story;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DashboardCard } from '../../widgets/DashboardCard';
|
|
3
|
+
declare const meta: Meta<typeof DashboardCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DashboardCard>;
|
|
6
|
+
export declare const StatCardBasic: Story;
|
|
7
|
+
export declare const StatCardWithTrend: Story;
|
|
8
|
+
export declare const StatCardNegativeTrend: Story;
|
|
9
|
+
export declare const StatCardClickable: Story;
|
|
10
|
+
export declare const ProgressCardBasic: Story;
|
|
11
|
+
export declare const ProgressCardOnTrack: Story;
|
|
12
|
+
export declare const ProgressCardAtRisk: Story;
|
|
13
|
+
export declare const ProgressCardExceeded: Story;
|
|
14
|
+
export declare const ComparisonCardHorizontal: Story;
|
|
15
|
+
export declare const ComparisonCardVertical: Story;
|
|
16
|
+
export declare const ActivityCardBasic: Story;
|
|
17
|
+
export declare const ActivityCardCompact: Story;
|
|
18
|
+
export declare const OrderCardDetailed: Story;
|
|
19
|
+
export declare const OrderCardShipped: Story;
|
|
20
|
+
export declare const OrderCardDelivered: Story;
|
|
21
|
+
export declare const OrderCardCancelled: Story;
|
|
22
|
+
export declare const UserCardHorizontal: Story;
|
|
23
|
+
export declare const UserCardAway: Story;
|
|
24
|
+
export declare const UserCardOffline: Story;
|
|
25
|
+
export declare const RevenueCardDetailed: Story;
|
|
26
|
+
export declare const RevenueCardCompact: Story;
|
|
27
|
+
export declare const AlertCardError: Story;
|
|
28
|
+
export declare const AlertCardWarning: Story;
|
|
29
|
+
export declare const AlertCardSuccess: Story;
|
|
30
|
+
export declare const AlertCardInfo: Story;
|
|
31
|
+
export declare const RankingCardProducts: Story;
|
|
32
|
+
export declare const RankingCardEmployees: Story;
|
|
33
|
+
export declare const StatusCardOnline: Story;
|
|
34
|
+
export declare const StatusCardDegraded: Story;
|
|
35
|
+
export declare const StatusCardOffline: Story;
|
|
36
|
+
export declare const StatusCardMaintenance: Story;
|
|
37
|
+
export declare const LoadingState: Story;
|
|
38
|
+
export declare const DashboardGrid: Story;
|
|
39
|
+
export declare const EcommerceDashboard: Story;
|
|
40
|
+
export declare const HRMSDashboard: Story;
|
|
41
|
+
export declare const AnalyticsDashboard: Story;
|
|
42
|
+
export declare const SystemMonitoringDashboard: Story;
|
|
43
|
+
export declare const FilledStatCards: Story;
|
|
44
|
+
export declare const FilledActivityCard: Story;
|
|
45
|
+
export declare const FilledProgressCard: Story;
|
|
46
|
+
export declare const FilledUserCard: Story;
|
|
47
|
+
export declare const FilledOrderCard: Story;
|
|
48
|
+
export declare const FilledComparison: Story;
|
|
49
|
+
export declare const FilledDashboardMix: Story;
|
|
50
|
+
export declare const MetricCardLineChart: Story;
|
|
51
|
+
export declare const MetricCardBarChart: Story;
|
|
52
|
+
export declare const MetricCardWithComparison: Story;
|
|
53
|
+
export declare const MetricCardNegativeTrend: Story;
|
|
54
|
+
export declare const MetricCardCompact: Story;
|
|
55
|
+
export declare const MetricCardNoChart: Story;
|
|
56
|
+
export declare const FilledMetricCardPrimary: Story;
|
|
57
|
+
export declare const FilledMetricCardSuccess: Story;
|
|
58
|
+
export declare const FilledMetricCardDanger: Story;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: import("react").FC<import("../..").
|
|
4
|
-
subcomponents: {
|
|
5
|
-
Metric: import("react").FC<import("../..").InfoCardMetricProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
};
|
|
3
|
+
component: import("react").FC<import("../..").WidgetProps>;
|
|
7
4
|
};
|
|
8
5
|
export default _default;
|
|
9
6
|
export declare const Base: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import Widget from '../../components/Widget/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
6
|
export declare const PaymentInformation: Story;
|
|
7
|
-
export declare const OrderDetails: Story;
|
|
8
|
-
export declare const WithDividers: Story;
|
|
9
|
-
export declare const LongText: Story;
|
|
10
|
-
export declare const Compact: Story;
|
|
11
|
-
export declare const NoHeading: Story;
|
|
12
|
-
export declare const ColorVariants: Story;
|
|
13
|
-
export declare const AccountInfo: Story;
|
|
14
|
-
export declare const ElevatedVariant: Story;
|
|
15
|
-
export declare const FlatVariant: Story;
|
|
16
7
|
export declare const MultipleCards: Story;
|
|
17
|
-
export declare const HiddenItems: Story;
|
|
18
|
-
export declare const ResponsiveDemo: Story;
|
|
19
|
-
export declare const WithReactNodes: Story;
|
|
@@ -1,30 +1,12 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: import("react").FC<import("../..").
|
|
4
|
-
subcomponents: {
|
|
5
|
-
Base: import("react").FC<import("../..").InfoTextBaseProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
Stat: import("react").FC<import("../..").InfoTextStatProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
Feature: import("react").FC<import("../..").InfoTextFeatureProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
Compact: import("react").FC<import("../..").InfoTextCompactProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Vertical: import("react").FC<import("../..").InfoTextVerticalProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
};
|
|
3
|
+
component: import("react").FC<import("../..").WidgetProps>;
|
|
11
4
|
};
|
|
12
5
|
export default _default;
|
|
13
6
|
export declare const Base: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare const BaseVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare const BaseWithoutSubtext: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare const BaseWithoutCircle: () => import("react/jsx-runtime").JSX.Element;
|
|
17
7
|
export declare const Stat: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare const StatVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare const StatWithoutIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare const StatWithoutCircle: () => import("react/jsx-runtime").JSX.Element;
|
|
21
8
|
export declare const Feature: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare const FeatureVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
23
9
|
export declare const Compact: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare const CompactVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export declare const Vertical: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export declare const VerticalVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export declare const AllIconVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
28
10
|
export declare const MixedUsage: () => import("react/jsx-runtime").JSX.Element;
|
|
29
11
|
export declare const GridLayout: () => import("react/jsx-runtime").JSX.Element;
|
|
30
12
|
export declare const FeatureGrid: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Widget } from '../../components/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const BaseWithIcon: Story;
|
|
8
|
+
export declare const BaseNoTrend: Story;
|
|
9
|
+
export declare const CompactPrimary: Story;
|
|
10
|
+
export declare const CompactSuccess: Story;
|
|
11
|
+
export declare const CompactWarning: Story;
|
|
12
|
+
export declare const CompactDanger: Story;
|
|
13
|
+
export declare const DetailedWithProgress: Story;
|
|
14
|
+
export declare const DetailedWithIcon: Story;
|
|
15
|
+
export declare const DetailedComplete: Story;
|
|
16
|
+
export declare const ChartLine: Story;
|
|
17
|
+
export declare const ChartBar: Story;
|
|
18
|
+
export declare const ChartSecondary: Story;
|
|
19
|
+
export declare const ChartDanger: Story;
|
|
20
|
+
export declare const FilledStyles: Story;
|
|
21
|
+
export declare const FilledDetailed: Story;
|
|
22
|
+
export declare const FilledCharts: Story;
|
|
23
|
+
export declare const AdminDashboard: Story;
|
|
24
|
+
export declare const DetailedDashboard: Story;
|
|
25
|
+
export declare const ChartDashboard: Story;
|
|
26
|
+
export declare const MixedDashboard: Story;
|
|
27
|
+
export declare const MixedDashboardWithoutTrend: Story;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import Widget from '../../components/Widget/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
6
|
export declare const Delivered: Story;
|
|
7
|
-
export declare const Processing: Story;
|
|
8
|
-
export declare const Cancelled: Story;
|
|
9
|
-
export declare const LongProductName: Story;
|
|
10
|
-
export declare const Pending: Story;
|
|
11
|
-
export declare const NoImage: Story;
|
|
12
|
-
export declare const MultipleItems: Story;
|
|
13
7
|
export declare const OrdersList: Story;
|
|
@@ -1,36 +1,13 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").FC<import("../..").
|
|
4
|
+
component: import("react").FC<import("../..").WidgetProps>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
8
8
|
tags: string[];
|
|
9
|
-
argTypes: {
|
|
10
|
-
onDownloadInvoice: {
|
|
11
|
-
action: string;
|
|
12
|
-
};
|
|
13
|
-
onContinueShopping: {
|
|
14
|
-
action: string;
|
|
15
|
-
};
|
|
16
|
-
onTrackOrder: {
|
|
17
|
-
action: string;
|
|
18
|
-
};
|
|
19
|
-
onViewDetails: {
|
|
20
|
-
action: string;
|
|
21
|
-
};
|
|
22
|
-
onContactSupport: {
|
|
23
|
-
action: string;
|
|
24
|
-
};
|
|
25
|
-
onShareOrder: {
|
|
26
|
-
action: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
9
|
};
|
|
30
10
|
export default meta;
|
|
31
11
|
type Story = StoryObj<typeof meta>;
|
|
32
12
|
export declare const Default: Story;
|
|
33
13
|
export declare const WithDiscount: Story;
|
|
34
|
-
export declare const MultipleItems: Story;
|
|
35
|
-
export declare const MinimalInfo: Story;
|
|
36
|
-
export declare const Delivered: Story;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import Widget from '../../components/Widget/Widget';
|
|
3
|
+
declare const meta: Meta<typeof Widget>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
5
|
+
type Story = StoryObj<typeof Widget>;
|
|
6
6
|
export declare const Processing: Story;
|
|
7
|
-
export declare const Shipped: Story;
|
|
8
7
|
export declare const Delivered: Story;
|
|
9
|
-
export declare const Pending: Story;
|
|
10
|
-
export declare const Cancelled: Story;
|
|
11
|
-
export declare const MultipleItems: Story;
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component:
|
|
5
|
-
Base: React.FC<import("../..").ProductCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
Wide: React.FC<import("../..").ProductCardWideProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
Minimal: React.FC<import("../..").ProductCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
};
|
|
4
|
+
component: React.FC<import("../..").WidgetProps>;
|
|
9
5
|
};
|
|
10
6
|
export default _default;
|
|
11
7
|
export declare const Basic: () => import("react/jsx-runtime").JSX.Element;
|
|
12
8
|
export declare const WithWishlist: () => import("react/jsx-runtime").JSX.Element;
|
|
13
9
|
export declare const FeaturedProduct: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare const WithQuickView: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare const WithInitialQuantity: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare const Loading: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare const WithoutCategory: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare const WithoutWeight: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare const WithoutRating: () => import("react/jsx-runtime").JSX.Element;
|
|
20
10
|
export declare const ProductGrid: () => import("react/jsx-runtime").JSX.Element;
|
|
21
11
|
export declare const Interactive: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare const WideVariant: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare const WideVariantImageRight: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare const MinimalVariant: () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export declare const AllVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,12 +11,15 @@ export interface ColorContrastConfig {
|
|
|
11
11
|
danger?: ColorContrast;
|
|
12
12
|
success?: ColorContrast;
|
|
13
13
|
warning?: ColorContrast;
|
|
14
|
+
info?: ColorContrast;
|
|
14
15
|
}
|
|
15
16
|
export interface Theme {
|
|
16
17
|
tokens: Tokens;
|
|
17
18
|
mode: 'light' | 'dark';
|
|
18
19
|
defaultSize: Size;
|
|
19
20
|
colorContrast: ColorContrastConfig;
|
|
21
|
+
linkComponent?: React.ElementType;
|
|
22
|
+
imageComponent?: React.ElementType;
|
|
20
23
|
}
|
|
21
24
|
export interface ThemeContextValue {
|
|
22
25
|
theme: Theme;
|
|
@@ -40,6 +43,10 @@ export interface ThemeProviderProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
40
43
|
toastLimit?: number;
|
|
41
44
|
/** Disable toast notifications globally */
|
|
42
45
|
disableToasts?: boolean;
|
|
46
|
+
/** Default link component for routing (e.g., React Router Link, Next.js Link) */
|
|
47
|
+
linkComponent?: React.ElementType;
|
|
48
|
+
/** Default image component for images (e.g., Next.js Image, native img) */
|
|
49
|
+
imageComponent?: React.ElementType;
|
|
43
50
|
}
|
|
44
51
|
declare const ThemeProvider: React.ForwardRefExoticComponent<ThemeProviderProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
52
|
export { ThemeProvider };
|