formica-ui-lib 1.0.86 → 1.0.88

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.
Files changed (20) hide show
  1. package/dist/componentProps/atoms/button/ButtonProps.d.ts +3 -3
  2. package/dist/componentProps/atoms/icon/IconProps.d.ts +1 -0
  3. package/dist/componentProps/molecules/card/cartItemCard/CartItemCardProps.d.ts +24 -0
  4. package/dist/componentProps/molecules/card/{swatchquantitycard/SwatchQuantityCardProps.d.ts → swatchquantitycheckoutcard/SwatchQuantityCheckoutCardProps.d.ts} +2 -3
  5. package/dist/componentProps/organisms/section/ordersummarysection/OrderSummarySectionLeftPanelProps.d.ts +6 -0
  6. package/dist/componentProps/organisms/section/swatchpurchasepanel/SwatchPurchasePanelRightPanelProps.d.ts +2 -1
  7. package/dist/componentProps/organisms/shoppingcart/shoppingcartflyout/ShoppingCartFlyoutProps.d.ts +17 -0
  8. package/dist/componentProps/templates/productdetailpagetemplate/ProductDetailPageTemplateProps.d.ts +7 -0
  9. package/dist/index.cjs +8 -8
  10. package/dist/index.js +2140 -1823
  11. package/dist/stories/atoms/icon/Icon.d.ts +1 -2
  12. package/dist/stories/molecules/card/cartitemcard/CartItemCard.d.ts +4 -0
  13. package/dist/stories/molecules/card/swatchquantitycheckoutcard/SwatchQuantityCheckoutCard.d.ts +4 -0
  14. package/dist/stories/molecules/card/swatchquantitycheckoutcard/SwatchQuantityCheckoutCard.test.d.ts +1 -0
  15. package/dist/stories/organisms/cart/cartflyout/CartFlyout.d.ts +4 -0
  16. package/dist/stories/organisms/section/ordersummarysection/parts/OrderSummarySectionLeftPanel.d.ts +4 -0
  17. package/dist/vite.svg +1 -0
  18. package/package.json +23 -22
  19. package/dist/stories/molecules/card/swatchquantitycard/SwatchQuantityCard.d.ts +0 -4
  20. /package/dist/stories/molecules/card/{swatchquantitycard/SwatchQuantityCard.test.d.ts → cartitemcard/CartItemCard.test.d.ts} +0 -0
@@ -1,12 +1,13 @@
1
1
  import React from "react";
2
+ import type { FaTypeClass } from "../icon/IconProps";
2
3
  export type ButtonVariant = "standard" | "nav" | "text" | "icon" | "segmented" | "small" | "grid";
3
4
  export type ButtonType = "primary" | "secondary" | "accent" | "ghost" | "radio";
4
5
  export type IconPosition = "left" | "right";
5
6
  export type SegmentPosition = "only" | "first" | "middle" | "last";
6
- export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "onClick" | "children"> {
7
+ export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children"> {
7
8
  label?: string;
8
9
  children?: React.ReactNode;
9
- iconType?: any;
10
+ iconType?: FaTypeClass;
10
11
  iconName?: string;
11
12
  iconAlt?: string;
12
13
  iconPosition?: IconPosition;
@@ -14,6 +15,5 @@ export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
14
15
  buttonType?: ButtonType;
15
16
  segmentPosition?: SegmentPosition;
16
17
  active?: boolean;
17
- onClick?: React.MouseEventHandler<HTMLButtonElement>;
18
18
  className?: string;
19
19
  }
@@ -1,6 +1,7 @@
1
1
  import type { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
2
  export type IconSize = "base" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";
3
3
  export type IconColor = "inherit" | "primary" | "secondary" | "secondaryHover" | "accent";
4
+ export type FaTypeClass = "fa-solid" | "fa-regular" | "fa-brands";
4
5
  export type IconProps = {
5
6
  icon?: IconDefinition;
6
7
  alt?: string;
@@ -0,0 +1,24 @@
1
+ export type CartItemCardPrice = {
2
+ value: number;
3
+ currency: string;
4
+ label: string;
5
+ };
6
+ export type CartItemStatus = "pending" | "ready" | "error" | "warning";
7
+ export type CartItemCardProps = {
8
+ id: string;
9
+ sku: string;
10
+ title: string;
11
+ brand?: string;
12
+ decorNumber?: string;
13
+ quantity: number;
14
+ imageSrc: string;
15
+ imageAlt: string;
16
+ price: CartItemCardPrice;
17
+ productType?: string;
18
+ message?: string;
19
+ status?: CartItemStatus;
20
+ minQuantity?: number;
21
+ maxQuantity?: number;
22
+ onQuantityChange?: (quantity: number) => void;
23
+ onRemoveItem?: () => void;
24
+ };
@@ -1,11 +1,10 @@
1
- export type SwatchQuantityCardProps = {
1
+ export type SwatchQuantityCheckoutCardProps = {
2
2
  imageSrc: string;
3
3
  imageAlt: string;
4
4
  title: string;
5
5
  brand: string;
6
6
  decorNumber: number;
7
- swatchType: string;
8
- initialQuantity?: number;
7
+ quantity: number;
9
8
  minQuantity?: number;
10
9
  maxQuantity?: number;
11
10
  onQuantityChange?: (quantity: number) => void;
@@ -0,0 +1,6 @@
1
+ import type { SwatchQuantityCheckoutCardProps } from "../../../molecules/card/swatchquantitycheckoutcard/SwatchQuantityCheckoutCardProps";
2
+ export type OrderSummarySectionLeftPanelProps = {
3
+ subtotal: number;
4
+ shippingCost: number;
5
+ swatchQuantity: SwatchQuantityCheckoutCardProps[];
6
+ };
@@ -1,3 +1,4 @@
1
+ import { ImageSlideProps } from "../../carousels/imagecarousel/ImageCarouselProps";
1
2
  export type SwatchPurchasePanelCarouselSlide = {
2
3
  id: string;
3
4
  imageSrc: string;
@@ -5,7 +6,7 @@ export type SwatchPurchasePanelCarouselSlide = {
5
6
  title?: string;
6
7
  };
7
8
  export type SwatchPurchasePanelCarousel = {
8
- slides: SwatchPurchasePanelCarouselSlide[];
9
+ slides: ImageSlideProps[];
9
10
  initialIndex?: number;
10
11
  text?: string;
11
12
  };
@@ -0,0 +1,17 @@
1
+ import { CartQuantityCardProps } from "../../../molecules/card/cartItemCard/CartQuantityCardProps";
2
+ export type ShoppingCartFlyoutItem = CartQuantityCardProps & {
3
+ id: string;
4
+ };
5
+ export type ShoppingCartFlyoutProps = {
6
+ isOpen: boolean;
7
+ title?: string;
8
+ projectName?: string;
9
+ items?: ShoppingCartFlyoutItem[];
10
+ className?: string;
11
+ onClose?: () => void;
12
+ onProjectNameChange?: (value: string) => void;
13
+ onQuantityChange?: (itemId: string, quantity: number) => void;
14
+ onRemoveItem?: (itemId: string) => void;
15
+ onClearCart?: () => void;
16
+ onGoToCart?: () => void;
17
+ };
@@ -1,11 +1,13 @@
1
1
  import { BreadcrumbsProps } from "../../molecules/selectors/breadcrumb/BreadcrumbsProps";
2
2
  import { ProductInformationTabKey, SizeAndGradeDefinition } from "../../organisms/section/productinformationsection/ProductInformationSectionProps";
3
+ import { ShoppingCartFlyoutProps } from "../../organisms/shoppingcart/shoppingcartflyout/ShoppingCartFlyoutProps";
3
4
  export type ProductDetailSimpleOption = {
4
5
  id: string;
5
6
  label: string;
6
7
  value: string;
7
8
  code?: string;
8
9
  title?: string;
10
+ brand?: string;
9
11
  widthIn?: string;
10
12
  lengthIn?: string;
11
13
  };
@@ -26,6 +28,7 @@ export type ProductDetailProduct = {
26
28
  decor?: string;
27
29
  collection?: string;
28
30
  title?: string;
31
+ brand?: string;
29
32
  description?: string;
30
33
  sku?: string;
31
34
  patternRepeat?: string;
@@ -55,6 +58,7 @@ export type ProductDetailDownloads = {
55
58
  export type ProductDetailTextureItem = {
56
59
  key: string;
57
60
  title: string;
61
+ brand?: string;
58
62
  imageSrc?: string;
59
63
  imageAlt?: string;
60
64
  description?: string;
@@ -62,6 +66,7 @@ export type ProductDetailTextureItem = {
62
66
  export type ProductDetailTextureGroup = {
63
67
  id: string;
64
68
  title: string;
69
+ brand?: string;
65
70
  items: ProductDetailTextureItem[];
66
71
  };
67
72
  export type ProductDetailRange = {
@@ -80,6 +85,7 @@ export type ProductDetailRange = {
80
85
  cards?: Array<{
81
86
  id: string;
82
87
  title: string;
88
+ brand?: string;
83
89
  subtitle?: string;
84
90
  tone?: "filled" | "outlined";
85
91
  items: string[];
@@ -206,4 +212,5 @@ export type ProductDetailPageTemplateProps = {
206
212
  currency?: string;
207
213
  }, data: ProductDetailData) => void;
208
214
  onNavigate?: (href: string) => void;
215
+ cartFlyoutProps?: Omit<ShoppingCartFlyoutProps, "isOpen" | "onClose">;
209
216
  };