@stenajs-webui/panels 22.2.2 → 22.4.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.
@@ -16,5 +16,9 @@ export interface ActionMenuButtonProps extends Omit<PrimaryButtonProps, "variant
16
16
  buttonComponent: typeof PrimaryButton | typeof SecondaryButton | typeof FlatButton;
17
17
  disableArrow?: boolean;
18
18
  buttonRef?: RefObject<HTMLButtonElement | null>;
19
+ /**
20
+ * Use if focus should not be trapped inside the Action Menu.
21
+ * Defaults to false. */
22
+ disableTrapFocus?: boolean;
19
23
  }
20
24
  export declare const ActionMenuButton: React.FC<ActionMenuButtonProps>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import { PropsWithChildren } from "react";
3
+ export interface LargePriceProps extends PropsWithChildren {
4
+ }
5
+ export declare const LargePrice: React.FC<LargePriceProps>;
@@ -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
+ border?: 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,6 @@
1
+ import * as React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface ProductCardContentItemSkeletorProps {
4
+ renderImage?: () => ReactNode;
5
+ }
6
+ export declare const ProductCardContentItemSkeletor: React.FC<ProductCardContentItemSkeletorProps>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import { PropsWithChildren } from "react";
3
+ export interface SelectedProductCardProps extends PropsWithChildren {
4
+ label: string;
5
+ }
6
+ export declare const SelectedProductCard: React.FC<SelectedProductCardProps>;
@@ -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";