@stenajs-webui/panels 22.3.0 → 22.4.1
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/components/cards/product-card/LargePrice.d.ts +5 -0
- package/dist/components/cards/product-card/ProductCard.d.ts +9 -0
- package/dist/components/cards/product-card/ProductCardContentItem.d.ts +16 -0
- package/dist/components/cards/product-card/ProductCardContentItemSkeletor.d.ts +6 -0
- package/dist/components/cards/product-card/SelectedProductCard.d.ts +6 -0
- package/dist/components/cards/product-summary-card/ProductSummaryCard.d.ts +16 -0
- package/dist/components/cards/product-summary-card/ProductSummaryCardSkeletor.d.ts +6 -0
- package/dist/components/image-carousel/ImageCarousel.d.ts +25 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.es.js +938 -466
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/UseDeviceSize.d.ts +8 -0
- package/package.json +10 -8
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
3
|
+
export interface ProductCardProps extends PropsWithChildren {
|
|
4
|
+
renderSelectedProductCard?: () => ReactNode;
|
|
5
|
+
renderEditButton?: () => ReactNode;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
shadow?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProductCard: React.FC<ProductCardProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HeadingVariant } from "@stenajs-webui/core";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
4
|
+
export interface ProductCardContentItemProps extends PropsWithChildren {
|
|
5
|
+
title: string;
|
|
6
|
+
headingLevel?: HeadingVariant;
|
|
7
|
+
subTitle?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
subDescription?: string;
|
|
10
|
+
descriptionTags?: ReactNode;
|
|
11
|
+
capacityTag?: string;
|
|
12
|
+
offerCodeTag?: ReactNode;
|
|
13
|
+
priceText?: string;
|
|
14
|
+
renderImage?: () => ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const ProductCardContentItem: React.FC<ProductCardContentItemProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
3
|
+
import { MediumIcon, XlIcon } from "@stenajs-webui/elements";
|
|
4
|
+
export type ProductCategoryCardVariant = "edit" | "upgrade" | "normal";
|
|
5
|
+
export interface ProductSummaryCardProps extends PropsWithChildren {
|
|
6
|
+
title?: string;
|
|
7
|
+
variant?: ProductCategoryCardVariant;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
iconLeft?: XlIcon;
|
|
10
|
+
compactIconLeft?: MediumIcon;
|
|
11
|
+
renderButton?: () => React.ReactNode;
|
|
12
|
+
renderOfferCodeTag?: () => ReactNode;
|
|
13
|
+
renderMandatoryTag?: () => ReactNode;
|
|
14
|
+
renderContentLeftOfButton?: () => ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const ProductSummaryCard: React.FC<ProductSummaryCardProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
export interface ProductSummaryCardSkeletorProps {
|
|
4
|
+
iconLeft?: IconDefinition;
|
|
5
|
+
}
|
|
6
|
+
export declare const ProductSummaryCardSkeletor: React.FC<ProductSummaryCardSkeletorProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import "./ImageCarousel.module.css";
|
|
3
|
+
import "yet-another-react-lightbox/styles.css";
|
|
4
|
+
export interface CarouselImage {
|
|
5
|
+
url: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
fullscreenImage?: {
|
|
12
|
+
url: string;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface ImageCarouselProps {
|
|
18
|
+
images: Array<CarouselImage>;
|
|
19
|
+
altLabelPrevious: string;
|
|
20
|
+
altLabelNext: string;
|
|
21
|
+
altLabelClose: string;
|
|
22
|
+
altLabelZoomIn: string;
|
|
23
|
+
altLabelZoomOut: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const ImageCarousel: React.FC<ImageCarouselProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -35,3 +35,11 @@ export * from "./components/sidebar-menu/items/SidebarMenuCollapsible";
|
|
|
35
35
|
export * from "./components/sidebar-menu/items/SidebarMenuSeparator";
|
|
36
36
|
export * from "./components/selected-items-actions-panel/SelectedItemsActionsPanel";
|
|
37
37
|
export * from "./components/selected-items-actions-panel/SelectedItemsActionsPadding";
|
|
38
|
+
export * from "./components/cards/product-card/ProductCard";
|
|
39
|
+
export * from "./components/cards/product-card/ProductCardContentItem";
|
|
40
|
+
export * from "./components/cards/product-card/ProductCardContentItemSkeletor";
|
|
41
|
+
export * from "./components/cards/product-card/SelectedProductCard";
|
|
42
|
+
export * from "./components/cards/product-summary-card/ProductSummaryCard";
|
|
43
|
+
export * from "./components/cards/product-summary-card/ProductSummaryCardSkeletor";
|
|
44
|
+
export * from "./components/image-carousel/ImageCarousel";
|
|
45
|
+
export * from "./utils/UseDeviceSize";
|