@pmax-lt/ui-react 0.1.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.
Files changed (71) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +50 -0
  3. package/dist/components/ActiveFilters.d.ts +11 -0
  4. package/dist/components/AddToCartButton.d.ts +14 -0
  5. package/dist/components/AnnouncementBar.d.ts +10 -0
  6. package/dist/components/ArticleCard.d.ts +8 -0
  7. package/dist/components/AttributeChip.d.ts +6 -0
  8. package/dist/components/AttributeList.d.ts +6 -0
  9. package/dist/components/Breadcrumbs.d.ts +9 -0
  10. package/dist/components/CartButton.d.ts +5 -0
  11. package/dist/components/CategoryRail.d.ts +6 -0
  12. package/dist/components/CategoryTile.d.ts +8 -0
  13. package/dist/components/CollapsiblePanel.d.ts +8 -0
  14. package/dist/components/CompareButton.d.ts +11 -0
  15. package/dist/components/ContactItem.d.ts +8 -0
  16. package/dist/components/Drawer.d.ts +10 -0
  17. package/dist/components/FilterChipGroup.d.ts +14 -0
  18. package/dist/components/FilterPanel.d.ts +13 -0
  19. package/dist/components/FilterSection.d.ts +7 -0
  20. package/dist/components/Footer.d.ts +19 -0
  21. package/dist/components/FulfillmentBadges.d.ts +8 -0
  22. package/dist/components/FulfillmentPanel.d.ts +12 -0
  23. package/dist/components/HeaderShell.d.ts +16 -0
  24. package/dist/components/HeroCarousel.d.ts +10 -0
  25. package/dist/components/HeroSlide.d.ts +14 -0
  26. package/dist/components/LangSwitcher.d.ts +7 -0
  27. package/dist/components/Logo.d.ts +14 -0
  28. package/dist/components/MediaBanner.d.ts +12 -0
  29. package/dist/components/Modal.d.ts +10 -0
  30. package/dist/components/NavBar.d.ts +19 -0
  31. package/dist/components/NavItem.d.ts +10 -0
  32. package/dist/components/Pagination.d.ts +7 -0
  33. package/dist/components/Price.d.ts +11 -0
  34. package/dist/components/PriceRangeFilter.d.ts +8 -0
  35. package/dist/components/ProductCard.d.ts +26 -0
  36. package/dist/components/ProductCarousel.d.ts +11 -0
  37. package/dist/components/ProductGallery.d.ts +7 -0
  38. package/dist/components/ProductGrid.d.ts +9 -0
  39. package/dist/components/PromoCard.d.ts +9 -0
  40. package/dist/components/Prose.d.ts +5 -0
  41. package/dist/components/SectionHeader.d.ts +8 -0
  42. package/dist/components/SkuChip.d.ts +5 -0
  43. package/dist/components/SortMenu.d.ts +7 -0
  44. package/dist/components/SpecGrid.d.ts +6 -0
  45. package/dist/components/SpecItem.d.ts +7 -0
  46. package/dist/components/Toast.d.ts +15 -0
  47. package/dist/components/WishlistButton.d.ts +6 -0
  48. package/dist/index.d.ts +63 -0
  49. package/dist/index.js +6956 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/pmax-ui-react.css +2 -0
  52. package/dist/primitives/Accordion.d.ts +12 -0
  53. package/dist/primitives/Button.d.ts +28 -0
  54. package/dist/primitives/Checkbox.d.ts +7 -0
  55. package/dist/primitives/Chip.d.ts +12 -0
  56. package/dist/primitives/CountPill.d.ts +6 -0
  57. package/dist/primitives/DisclosureToggle.d.ts +7 -0
  58. package/dist/primitives/Divider.d.ts +6 -0
  59. package/dist/primitives/Icon.d.ts +19 -0
  60. package/dist/primitives/IconButton.d.ts +31 -0
  61. package/dist/primitives/Input.d.ts +15 -0
  62. package/dist/primitives/Overlay.d.ts +6 -0
  63. package/dist/primitives/RangeSlider.d.ts +10 -0
  64. package/dist/primitives/SearchField.d.ts +10 -0
  65. package/dist/primitives/Select.d.ts +12 -0
  66. package/dist/primitives/Skeleton.d.ts +8 -0
  67. package/dist/primitives/Surface.d.ts +11 -0
  68. package/dist/primitives/Tag.d.ts +9 -0
  69. package/dist/primitives/Text.d.ts +19 -0
  70. package/dist/tokens.css +97 -0
  71. package/package.json +57 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PMAX
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @pmax-lt/ui-react
2
+
3
+ The PMAX design system as React components — tokens, primitives, and commerce/marketing components, built from the Figma-derived component library plan.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @pmax-lt/ui-react
9
+ ```
10
+
11
+ `react` and `react-dom` (^19) are peer dependencies.
12
+
13
+ ## Usage
14
+
15
+ ```tsx
16
+ import "@pmax-lt/ui-react/tokens.css";
17
+ import "@pmax-lt/ui-react/styles.css";
18
+ import { Button, ProductCard } from "@pmax-lt/ui-react";
19
+
20
+ function Example() {
21
+ return <Button variant="primary">Add to cart</Button>;
22
+ }
23
+ ```
24
+
25
+ - `tokens.css` — design tokens as CSS custom properties (`--brand`, `--r-lg`, `--sp-6`, …). Re-theming another brand onto these components means shipping a different token file — components only ever read the tokens, never a raw hex or px value.
26
+ - `styles.css` — the compiled component styles (CSS Modules output).
27
+
28
+ ## What's here
29
+
30
+ - **Primitives** (18): Icon, Text, Button, IconButton, Chip, CountPill, Tag, Input, SearchField, Checkbox, RangeSlider, Select, DisclosureToggle, Accordion, Surface, Divider, Skeleton, Overlay.
31
+ - **Header cluster**: AnnouncementBar, Logo, ContactItem, LangSwitcher, CartButton, NavItem, NavBar, CategoryTile, CategoryRail, HeaderShell.
32
+ - **Product & catalogue**: Price, FulfillmentBadges, WishlistButton, CompareButton, AddToCartButton, ProductCard, ProductGrid, ProductCarousel, SectionHeader, SortMenu, FilterSection, FilterChipGroup, PriceRangeFilter, FilterPanel, ActiveFilters, Pagination.
33
+ - **Product detail**: ProductGallery, SkuChip, FulfillmentPanel, SpecItem, SpecGrid, CollapsiblePanel, AttributeChip, AttributeList, Prose.
34
+ - **Marketing, layout, feedback**: HeroSlide, HeroCarousel, MediaBanner, PromoCard, ArticleCard, Footer, Modal, Toast, Drawer, Breadcrumbs.
35
+
36
+ Page-shell templates (PageShell, HomeTemplate, CategoryTemplate, …) aren't built yet — they're the most composite tier and depend on everything above.
37
+
38
+ ## Known gaps
39
+
40
+ - `Logo` renders a typographic placeholder, not the real PMAX lettermarks — those need exporting from the source Figma file.
41
+ - No mobile navigation / filter drawer layout exists yet; the source design has no mobile frames to build from.
42
+ - `ProductCard`'s "added to cart" success state and a few other states aren't in the source design — see inline component comments for what was proposed instead.
43
+
44
+ ## Local development
45
+
46
+ ```sh
47
+ npm run storybook # Storybook at localhost:6006 — Foundations, per-component stories, and a Kitchen Sink page
48
+ npm run build # builds dist/
49
+ npm run typecheck
50
+ ```
@@ -0,0 +1,11 @@
1
+ export type ActiveFilter = {
2
+ key: string;
3
+ label: string;
4
+ };
5
+ export type ActiveFiltersProps = {
6
+ values: ActiveFilter[];
7
+ onRemove: (key: string) => void;
8
+ onClearAll: () => void;
9
+ };
10
+ /** Not in the source design — required once filters exist (§1 "Gaps"). */
11
+ export declare function ActiveFilters({ values, onRemove, onClearAll }: ActiveFiltersProps): import("react").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ export type AddToCartButtonProps = {
2
+ onAdd: () => void;
3
+ loading?: boolean;
4
+ added?: boolean;
5
+ disabled?: boolean;
6
+ variant?: "icon" | "labelled";
7
+ };
8
+ /**
9
+ * The "added" success state isn't in the source design (§1 "Gaps") —
10
+ * proposed here as the state-grammar's `selected` treatment (solid ink)
11
+ * with a check icon, reusing the existing vocabulary instead of inventing
12
+ * a new (undesigned) success color.
13
+ */
14
+ export declare function AddToCartButton({ onAdd, loading, added, disabled, variant }: AddToCartButtonProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { IconName } from '../primitives/Icon';
2
+ export type AnnouncementBarProps = {
3
+ message: string;
4
+ icon?: IconName;
5
+ dismissible?: boolean;
6
+ onDismiss?: () => void;
7
+ /** When set, the dismissal is remembered in localStorage under this key. */
8
+ storageKey?: string;
9
+ };
10
+ export declare function AnnouncementBar({ message, icon, dismissible, onDismiss, storageKey }: AnnouncementBarProps): import("react").JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ export type ArticleCardProps = {
2
+ image: string;
3
+ title: string;
4
+ excerpt: string;
5
+ date: string;
6
+ href: string;
7
+ };
8
+ export declare function ArticleCard({ image, title, excerpt, date, href }: ArticleCardProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export type AttributeChipProps = {
2
+ label: string;
3
+ value: string;
4
+ highlight?: boolean;
5
+ };
6
+ export declare function AttributeChip({ label, value, highlight }: AttributeChipProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { AttributeChipProps } from './AttributeChip';
2
+ export type AttributeListProps = {
3
+ items: AttributeChipProps[];
4
+ columns?: 1 | 2;
5
+ };
6
+ export declare function AttributeList({ items, columns }: AttributeListProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export type BreadcrumbItem = {
2
+ label: string;
3
+ href?: string;
4
+ };
5
+ export type BreadcrumbsProps = {
6
+ items: BreadcrumbItem[];
7
+ };
8
+ /** Absent from the source design (§1 "Gaps") — PDP navigation and SEO both want it. */
9
+ export declare function Breadcrumbs({ items }: BreadcrumbsProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export type CartButtonProps = {
2
+ count: number;
3
+ href?: string;
4
+ };
5
+ export declare function CartButton({ count, href }: CartButtonProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { CategoryTileProps } from './CategoryTile';
2
+ export type CategoryRailProps = {
3
+ items: Omit<CategoryTileProps, "selected">[];
4
+ selectedKey?: string;
5
+ };
6
+ export declare function CategoryRail({ items, selectedKey }: CategoryRailProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IconName } from '../primitives/Icon';
2
+ export type CategoryTileProps = {
3
+ icon: IconName;
4
+ label: string;
5
+ href: string;
6
+ selected?: boolean;
7
+ };
8
+ export declare function CategoryTile({ icon, label, href, selected }: CategoryTileProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export type CollapsiblePanelProps = {
3
+ title: string;
4
+ defaultOpen?: boolean;
5
+ children: ReactNode;
6
+ };
7
+ /** Wraps Techninės specifikacijos, Apžvalga, Komponentai, Kita informacija. */
8
+ export declare function CollapsiblePanel({ title, defaultOpen, children }: CollapsiblePanelProps): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export type CompareButtonProps = {
2
+ active: boolean;
3
+ onToggle: () => void;
4
+ };
5
+ /**
6
+ * Only visible on card hover in the design — that alone leaves no
7
+ * keyboard-reachable equivalent (§1 "Gaps"), so this always renders and
8
+ * relies on the card wrapper to show it via `:focus-within` as well as
9
+ * `:hover`, not `:hover` alone.
10
+ */
11
+ export declare function CompareButton({ active, onToggle }: CompareButtonProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { IconName } from '../primitives/Icon';
3
+ export type ContactItemProps = {
4
+ icon: IconName;
5
+ children: ReactNode;
6
+ href?: string;
7
+ };
8
+ export declare function ContactItem({ icon, children, href }: ContactItemProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export type DrawerProps = {
3
+ side: "left" | "right" | "bottom";
4
+ open: boolean;
5
+ onClose: () => void;
6
+ title: string;
7
+ children: ReactNode;
8
+ };
9
+ /** Mobile navigation, filter panel and mini-cart all need this (§6 "Gaps"). */
10
+ export declare function Drawer({ side, open, onClose, title, children }: DrawerProps): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ export type FilterChipOption = {
2
+ label: string;
3
+ value: string;
4
+ count?: number;
5
+ };
6
+ export type FilterChipGroupProps = {
7
+ options: FilterChipOption[];
8
+ value: string[];
9
+ onChange: (value: string[]) => void;
10
+ columns?: 1 | 2;
11
+ /** "multi" allows several selections; "single" behaves like a radio group. */
12
+ mode?: "multi" | "single";
13
+ };
14
+ export declare function FilterChipGroup({ options, value, onChange, columns, mode }: FilterChipGroupProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ export type FilterPanelProps = {
3
+ sections: ReactNode;
4
+ onReset?: () => void;
5
+ };
6
+ /**
7
+ * Sidebar (desktop) only — a mobile drawer variant is a documented gap
8
+ * (§1 "Gaps": "no mobile navigation, filter drawer or mini-cart").
9
+ * Controlled: this component holds no filter state itself, section
10
+ * children own their own values via props, and the app keeps the actual
11
+ * values in URL state.
12
+ */
13
+ export declare function FilterPanel({ sections, onReset }: FilterPanelProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export type FilterSectionProps = {
3
+ title: string;
4
+ defaultOpen?: boolean;
5
+ children: ReactNode;
6
+ };
7
+ export declare function FilterSection({ title, defaultOpen, children }: FilterSectionProps): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ import { ContactItemProps } from './ContactItem';
3
+ export type FooterColumn = {
4
+ title: string;
5
+ links: {
6
+ label: string;
7
+ href: string;
8
+ }[];
9
+ };
10
+ export type FooterProps = {
11
+ columns: FooterColumn[];
12
+ contact: (Omit<ContactItemProps, "children"> & {
13
+ children: ReactNode;
14
+ })[];
15
+ hours?: string;
16
+ legal: string;
17
+ compact?: boolean;
18
+ };
19
+ export declare function Footer({ columns, contact, hours, legal, compact }: FooterProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IconName } from '../primitives/Icon';
2
+ export type FulfillmentBadgesProps = {
3
+ items: {
4
+ icon: IconName;
5
+ label: string;
6
+ }[];
7
+ };
8
+ export declare function FulfillmentBadges({ items }: FulfillmentBadgesProps): import("react").JSX.Element | null;
@@ -0,0 +1,12 @@
1
+ import { IconName } from '../primitives/Icon';
2
+ export type FulfillmentRow = {
3
+ icon: IconName;
4
+ title: string;
5
+ detail?: string;
6
+ };
7
+ export type FulfillmentPanelProps = {
8
+ rows: FulfillmentRow[];
9
+ };
10
+ /** Only the in-stock case is designed — delivery-only/unavailable rows use
11
+ * the same row shape, just different copy passed in by the app. */
12
+ export declare function FulfillmentPanel({ rows }: FulfillmentPanelProps): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export type HeaderShellProps = {
3
+ announcement?: ReactNode;
4
+ rail?: ReactNode;
5
+ sticky?: boolean;
6
+ /** The logo + nav + actions row — composed by the consumer. */
7
+ children: ReactNode;
8
+ };
9
+ /**
10
+ * Owns the sticky behaviour and the 1800px content column; composes
11
+ * `AnnouncementBar`, `CategoryRail` and whatever chrome (`Logo`, `NavBar`,
12
+ * `SearchField`, `CartButton`…) the consumer passes as `children`, rather
13
+ * than re-deriving every one of their props itself. Product pages pass no
14
+ * `rail` for the compact variant.
15
+ */
16
+ export declare function HeaderShell({ announcement, rail, sticky, children }: HeaderShellProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export type HeroCarouselProps = {
3
+ slides: ReactNode[];
4
+ autoplay?: boolean;
5
+ interval?: number;
6
+ /** Kept for API parity with the plan — peek amount is set via each
7
+ * slide's own width (88% here), not recomputed from this prop. */
8
+ peek?: number;
9
+ };
10
+ export declare function HeroCarousel({ slides, autoplay, interval }: HeroCarouselProps): import("react").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ export type HeroSlideProps = {
3
+ eyebrow?: string;
4
+ title: string;
5
+ specs?: {
6
+ label: string;
7
+ value: string;
8
+ }[];
9
+ price?: number;
10
+ cta?: ReactNode;
11
+ image: string;
12
+ tone?: "yellow" | "dark" | "image-only";
13
+ };
14
+ export declare function HeroSlide({ eyebrow, title, specs, price, cta, image, tone }: HeroSlideProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { SelectOption } from '../primitives/Select';
2
+ export type LangSwitcherProps = {
3
+ value: string;
4
+ options: SelectOption[];
5
+ onChange: (value: string) => void;
6
+ };
7
+ export declare function LangSwitcher({ value, options, onChange }: LangSwitcherProps): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { ElementType } from 'react';
2
+ export type LogoProps = {
3
+ variant?: "v1" | "v2" | "v3" | "symbol";
4
+ height?: number;
5
+ as?: ElementType;
6
+ className?: string;
7
+ };
8
+ /**
9
+ * Placeholder wordmark — the real brand-board lettermarks (§1 "Brand
10
+ * board": three lettermarks + one symbol, all vector) live in the Figma
11
+ * file, not the SVG export this plan was built from, so they aren't
12
+ * reproducible here. Swap the JSX below for the real marks once exported.
13
+ */
14
+ export declare function Logo({ variant, height, as, className }: LogoProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export type MediaBannerProps = {
3
+ media: {
4
+ type: "image" | "video";
5
+ src: string;
6
+ };
7
+ title: string;
8
+ subtitle?: string;
9
+ cta?: ReactNode;
10
+ cardPosition?: "left" | "right";
11
+ };
12
+ export declare function MediaBanner({ media, title, subtitle, cta, cardPosition }: MediaBannerProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export type ModalProps = {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ size?: "sm" | "md" | "lg";
6
+ title: string;
7
+ children: ReactNode;
8
+ footerActions?: ReactNode;
9
+ };
10
+ export declare function Modal({ open, onClose, size, title, children, footerActions }: ModalProps): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ export type NavBarItem = {
2
+ key: string;
3
+ label: string;
4
+ href: string;
5
+ children?: {
6
+ label: string;
7
+ href: string;
8
+ }[];
9
+ };
10
+ export type NavBarProps = {
11
+ items: NavBarItem[];
12
+ activeKey?: string;
13
+ secondaryItems?: NavBarItem[];
14
+ };
15
+ /**
16
+ * No mobile navigation plan exists in the source design (§1 "Gaps") — this
17
+ * renders the desktop layout only; a mobile drawer/menu is a follow-up.
18
+ */
19
+ export declare function NavBar({ items, activeKey, secondaryItems }: NavBarProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export type NavItemProps = {
3
+ active?: boolean;
4
+ hasDropdown?: boolean;
5
+ open?: boolean;
6
+ href: string;
7
+ children: ReactNode;
8
+ onClick?: React.MouseEventHandler<HTMLAnchorElement>;
9
+ };
10
+ export declare function NavItem({ active, hasDropdown, open, href, children, onClick }: NavItemProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export type PaginationProps = {
2
+ page: number;
3
+ pageCount: number;
4
+ onChange: (page: number) => void;
5
+ siblingCount?: number;
6
+ };
7
+ export declare function Pagination({ page, pageCount, onChange, siblingCount }: PaginationProps): import("react").JSX.Element | null;
@@ -0,0 +1,11 @@
1
+ export type PriceProps = {
2
+ /** Amount in the major currency unit, e.g. 1299.99. */
3
+ amount: number;
4
+ currency?: string;
5
+ oldPrice?: number;
6
+ size?: "xl" | "lg" | "sm";
7
+ /** e.g. "su PVM" */
8
+ note?: string;
9
+ onYellow?: boolean;
10
+ };
11
+ export declare function Price({ amount, currency, oldPrice, size, note, onYellow }: PriceProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export type PriceRangeFilterProps = {
2
+ min: number;
3
+ max: number;
4
+ value: [number, number];
5
+ onChange: (value: [number, number]) => void;
6
+ currency?: string;
7
+ };
8
+ export declare function PriceRangeFilter({ min, max, value, onChange, currency }: PriceRangeFilterProps): import("react").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { IconName } from '../primitives/Icon';
2
+ export type Product = {
3
+ id: string;
4
+ title: string;
5
+ href: string;
6
+ image: string;
7
+ imageSecondary?: string;
8
+ price: number;
9
+ oldPrice?: number;
10
+ fulfillment?: {
11
+ icon: IconName;
12
+ label: string;
13
+ }[];
14
+ outOfStock?: boolean;
15
+ };
16
+ export type ProductCardProps = {
17
+ product: Product;
18
+ layout?: "grid" | "list";
19
+ priority?: boolean;
20
+ wishlisted?: boolean;
21
+ onWishlistToggle?: () => void;
22
+ compared?: boolean;
23
+ onCompareToggle?: () => void;
24
+ loading?: boolean;
25
+ };
26
+ export declare function ProductCard({ product, priority, wishlisted, onWishlistToggle, compared, onCompareToggle, loading }: ProductCardProps): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ export type ProductCarouselProps = {
3
+ children: ReactNode;
4
+ perView?: number;
5
+ /** Fraction of the next slide visible past the edge, e.g. 0.15. */
6
+ peek?: number;
7
+ loop?: boolean;
8
+ };
9
+ /** Scroll-snap based — not a JS carousel library, so keyboard (native
10
+ * scroll container arrow/tab keys) and touch swipe both work for free. */
11
+ export declare function ProductCarousel({ children, perView, peek, loop }: ProductCarouselProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export type ProductGalleryProps = {
3
+ images: string[];
4
+ alt: string;
5
+ actions?: ReactNode;
6
+ };
7
+ export declare function ProductGallery({ images, alt, actions }: ProductGalleryProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type ProductGridProps = {
3
+ columns?: 4 | 3;
4
+ gap?: number;
5
+ children: ReactNode;
6
+ empty?: boolean;
7
+ emptyMessage?: string;
8
+ };
9
+ export declare function ProductGrid({ columns, gap, children, empty, emptyMessage }: ProductGridProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type PromoCardProps = {
3
+ illustration: ReactNode;
4
+ title: string;
5
+ body: string;
6
+ cta?: ReactNode;
7
+ tone?: "yellow" | "light";
8
+ };
9
+ export declare function PromoCard({ illustration, title, body, cta, tone }: PromoCardProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export type ProseProps = {
3
+ children: ReactNode;
4
+ };
5
+ export declare function Prose({ children }: ProseProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export type SectionHeaderProps = {
3
+ title: string;
4
+ count?: number;
5
+ action?: ReactNode;
6
+ hint?: string;
7
+ };
8
+ export declare function SectionHeader({ title, count, action, hint }: SectionHeaderProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export type SkuChipProps = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ export declare function SkuChip({ label, value }: SkuChipProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { SelectOption } from '../primitives/Select';
2
+ export type SortMenuProps = {
3
+ value: string;
4
+ options: SelectOption[];
5
+ onChange: (value: string) => void;
6
+ };
7
+ export declare function SortMenu({ value, options, onChange }: SortMenuProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { SpecItemProps } from './SpecItem';
2
+ export type SpecGridProps = {
3
+ items: SpecItemProps[];
4
+ columns?: 4 | 2;
5
+ };
6
+ export declare function SpecGrid({ items, columns }: SpecGridProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { IconName } from '../primitives/Icon';
2
+ export type SpecItemProps = {
3
+ icon: IconName;
4
+ label: string;
5
+ value: string;
6
+ };
7
+ export declare function SpecItem({ icon, label, value }: SpecItemProps): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export type ToastTone = "success" | "error" | "info";
3
+ type ToastContextValue = {
4
+ showToast: (message: string, options?: {
5
+ tone?: ToastTone;
6
+ action?: ReactNode;
7
+ duration?: number;
8
+ }) => void;
9
+ };
10
+ /** Not in the source design — unavoidable once add-to-cart exists (§6 "Gaps"). */
11
+ export declare function ToastProvider({ children }: {
12
+ children: ReactNode;
13
+ }): import("react").JSX.Element;
14
+ export declare function useToast(): ToastContextValue;
15
+ export {};
@@ -0,0 +1,6 @@
1
+ export type WishlistButtonProps = {
2
+ active: boolean;
3
+ onToggle: () => void;
4
+ size?: "sm" | "md" | "lg";
5
+ };
6
+ export declare function WishlistButton({ active, onToggle, size }: WishlistButtonProps): import("react").JSX.Element;