@lateralus-ai/shipping-ui 2.0.0-dev.16 → 2.0.0-dev.18

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.
@@ -0,0 +1,41 @@
1
+ import { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
2
+ export type PageHeaderCrumb = {
3
+ label: string;
4
+ /** Renders a real `<a href>` so native browser controls work. */
5
+ href: string;
6
+ /**
7
+ * Optional SPA handler. Callers should `preventDefault` only for unmodified
8
+ * primary clicks; modifier / middle-click keep native anchor behavior.
9
+ */
10
+ onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
11
+ };
12
+ export type PageHeaderProps = {
13
+ /** Leading icon (Figma 24×24). */
14
+ icon?: ReactNode;
15
+ /** Standard title, or current (last) segment when `crumbs` is set. */
16
+ title: ReactNode;
17
+ /**
18
+ * Parent breadcrumb links. When present, renders Nested: icon + parents + `/`
19
+ * + current `title` (non-link).
20
+ */
21
+ crumbs?: PageHeaderCrumb[];
22
+ /** Right-hand actions slot (buttons, menus, etc.). */
23
+ actions?: ReactNode;
24
+ className?: string;
25
+ };
26
+ export type PageHeaderShellProps = ComponentPropsWithoutRef<"div">;
27
+ export type PageHeaderBodyProps = ComponentPropsWithoutRef<"div">;
28
+ /**
29
+ * Page title row — Figma `Header` (389:8850).
30
+ * Variants: Standard (icon + title) | Nested (icon + crumb trail).
31
+ */
32
+ declare function PageHeaderRoot({ icon, title, crumbs, actions, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
33
+ /** Flex column shell — pin header, scroll body (avoids brittle CSS sticky). */
34
+ declare function PageHeaderShell({ className, ...props }: PageHeaderShellProps): import("react/jsx-runtime").JSX.Element;
35
+ /** Scrollable page content under a pinned PageHeader. */
36
+ declare function PageHeaderBody({ className, ...props }: PageHeaderBodyProps): import("react/jsx-runtime").JSX.Element;
37
+ export declare const PageHeader: typeof PageHeaderRoot & {
38
+ Shell: typeof PageHeaderShell;
39
+ Body: typeof PageHeaderBody;
40
+ };
41
+ export {};
@@ -6,6 +6,7 @@ export { Checkbox, type CheckboxProps } from './Checkbox';
6
6
  export { Tab, type TabProps, type TabState } from './Tab';
7
7
  export { Tabs, TabsList, TabsTrigger, TabsContent, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, type TabsItem, type TabsType, type TabsAppearance, } from './Tabs';
8
8
  export { Header, type HeaderProps, type HeaderVariant } from './Header';
9
+ export { PageHeader, type PageHeaderProps, type PageHeaderCrumb, type PageHeaderShellProps, type PageHeaderBodyProps, } from './PageHeader';
9
10
  export { Entry, type EntryProps, type EntryType, type EntryState, type EntryVariant } from './Entry';
10
11
  export { EmptyState, type EmptyStateProps } from './EmptyState';
11
12
  export { Modal, ModalTrigger, ModalClose, ModalPortal, ModalOverlay, ModalContent, ModalTitle, ModalDescription, ModalHeaderSlot, ModalBody, type ModalProps, type ModalOverlayProps, type ModalContentProps, type ModalTitleProps, type ModalDescriptionProps, type ModalBodyProps, } from './Modal';