formica-ui-lib 1.0.173 → 1.0.175

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.
@@ -2,6 +2,7 @@ export type SwatchStatus = "new" | "discontinued" | "comingSoon" | "sale";
2
2
  export interface SwatchCardProps {
3
3
  id?: string;
4
4
  imageSrc: string;
5
+ imageFallbackSrc?: string;
5
6
  imageAlt: string;
6
7
  title: string;
7
8
  brand: string;
@@ -10,4 +10,5 @@ export interface VerticalCheckboxListOption {
10
10
  export interface VerticalCheckboxListProps {
11
11
  label: string;
12
12
  options: VerticalCheckboxListOption[];
13
+ onOptionChange?: (payload: CheckboxChangePayload) => void;
13
14
  }
@@ -19,4 +19,5 @@ export interface VerticalColorSwatchListOption {
19
19
  export interface VerticalColorSwatchListProps {
20
20
  label: string;
21
21
  options: VerticalColorSwatchListOption[];
22
+ onOptionSelect?: (payload: VerticalColorSwatchListSelectPayload) => void;
22
23
  }
@@ -1,4 +1,5 @@
1
1
  import { SwatchCardProps } from "../../molecules/card/swatchcard/SwatchCardProps";
2
2
  export interface DecorGridProps {
3
3
  swatches?: SwatchCardProps[];
4
+ onSwatchClick?: (swatch: SwatchCardProps, index: number) => void;
4
5
  }
@@ -7,17 +7,10 @@ export type NavSubcategory = {
7
7
  label: string;
8
8
  items: NavLinkItem[];
9
9
  };
10
- export type NavPromo = {
11
- imageSrc: string;
12
- imageAlt: string;
13
- label?: string;
14
- href?: string;
15
- };
16
10
  export type NavItem = {
17
11
  label: string;
18
12
  href?: string;
19
13
  subcategories?: NavSubcategory[];
20
- promo?: NavPromo;
21
14
  };
22
15
  export type TopNavCartSummary = {
23
16
  hasCart: boolean;
@@ -42,7 +35,6 @@ export type TopNavBarProps = {
42
35
  onLogoClick?: () => void;
43
36
  onNavItemClick?: (item: NavItem) => void;
44
37
  onMegaMenuLinkClick?: (link: NavLinkItem) => void;
45
- onPromoClick?: (promo: NavPromo) => void;
46
38
  onSearchClick?: () => void;
47
39
  onCartClick?: () => void;
48
40
  onLoginClick?: () => void;
@@ -1,8 +1,5 @@
1
- import type { NavItem, NavLinkItem, NavPromo } from "./TopNavBarProps";
1
+ import type { NavItem, NavLinkItem } from "./TopNavBarProps";
2
2
  export type TopNavMegaMenuProps = {
3
3
  activeItem?: NavItem;
4
- openSubcategory: string | null;
5
- setOpenSubcategory: (label: string | null) => void;
6
4
  onMegaMenuLinkClick?: (link: NavLinkItem) => void;
7
- onPromoClick?: (promo: NavPromo) => void;
8
5
  };
@@ -1,6 +1,8 @@
1
1
  import { VerticalCheckboxListProps } from "../../molecules/selectors/verticalcheckboxlist/VerticalCheckboxListProps";
2
2
  import { AppliedOptionsListProps } from "../../molecules/selectors/appliedoptionslist/AppliedOptionsListProps";
3
3
  import { VerticalColorSwatchListProps } from "../../molecules/selectors/verticalcolorswatchlist/VerticalColorSwatchListProps";
4
+ import type { CheckboxChangePayload } from "../../atoms/checkbox/CheckboxProps";
5
+ import type { VerticalColorSwatchListSelectPayload } from "../../molecules/selectors/verticalcolorswatchlist/VerticalColorSwatchListProps";
4
6
  export interface VerticalCheckboxListCollectionCheckboxSection extends VerticalCheckboxListProps {
5
7
  type: "checkbox";
6
8
  }
@@ -17,4 +19,6 @@ export interface VerticalCheckboxListCollectionProps {
17
19
  applyFiltersLabel?: string;
18
20
  onResetClick: () => void;
19
21
  onApplyFiltersClick: () => void;
22
+ onCheckboxChange?: (payload: CheckboxChangePayload) => void;
23
+ onColorSelect?: (payload: VerticalColorSwatchListSelectPayload) => void;
20
24
  }