cleanplate 0.1.11 → 0.2.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 (41) hide show
  1. package/dist/components/accordion/Accordion.d.ts +23 -12
  2. package/dist/components/accordion/Accordion.d.ts.map +1 -1
  3. package/dist/components/accordion/index.d.ts +2 -1
  4. package/dist/components/accordion/index.d.ts.map +1 -1
  5. package/dist/components/app-shell/AppShell.d.ts +35 -3
  6. package/dist/components/app-shell/AppShell.d.ts.map +1 -1
  7. package/dist/components/app-shell/index.d.ts +2 -1
  8. package/dist/components/app-shell/index.d.ts.map +1 -1
  9. package/dist/components/bottom-sheet/BottomSheet.d.ts +17 -16
  10. package/dist/components/bottom-sheet/BottomSheet.d.ts.map +1 -1
  11. package/dist/components/bottom-sheet/index.d.ts +2 -1
  12. package/dist/components/bottom-sheet/index.d.ts.map +1 -1
  13. package/dist/components/breadcrumb/BreadCrumb.d.ts +26 -0
  14. package/dist/components/breadcrumb/BreadCrumb.d.ts.map +1 -0
  15. package/dist/components/breadcrumb/index.d.ts +3 -2
  16. package/dist/components/breadcrumb/index.d.ts.map +1 -1
  17. package/dist/components/footer/Footer.d.ts +21 -16
  18. package/dist/components/footer/Footer.d.ts.map +1 -1
  19. package/dist/components/footer/index.d.ts +2 -1
  20. package/dist/components/footer/index.d.ts.map +1 -1
  21. package/dist/components/header/Header.d.ts +32 -28
  22. package/dist/components/header/Header.d.ts.map +1 -1
  23. package/dist/components/header/index.d.ts +2 -1
  24. package/dist/components/header/index.d.ts.map +1 -1
  25. package/dist/components/menu-list/MenuList.d.ts +32 -22
  26. package/dist/components/menu-list/MenuList.d.ts.map +1 -1
  27. package/dist/components/menu-list/index.d.ts +2 -1
  28. package/dist/components/menu-list/index.d.ts.map +1 -1
  29. package/dist/components/page-header/PageHeader.d.ts +22 -3
  30. package/dist/components/page-header/PageHeader.d.ts.map +1 -1
  31. package/dist/components/page-header/index.d.ts +2 -1
  32. package/dist/components/page-header/index.d.ts.map +1 -1
  33. package/dist/components/toast/Toast.d.ts +20 -12
  34. package/dist/components/toast/Toast.d.ts.map +1 -1
  35. package/dist/components/toast/index.d.ts +2 -1
  36. package/dist/components/toast/index.d.ts.map +1 -1
  37. package/dist/index.css +1 -1
  38. package/dist/index.es.css +1 -1
  39. package/dist/index.es.js +3 -3
  40. package/dist/index.js +3 -3
  41. package/package.json +1 -1
@@ -1,15 +1,26 @@
1
- export default Accordion;
2
- declare function Accordion({ size, variant, margin, className, }: {
3
- size?: string;
4
- variant?: string;
5
- margin?: string;
1
+ import React from "react";
2
+ import { SPACING_OPTIONS } from "../../constants/common";
3
+ export interface AccordionItem {
4
+ title: string;
5
+ content: React.ReactNode;
6
+ }
7
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
8
+ export type AccordionIconVariant = "expand" | "plus";
9
+ export type AccordionVariant = "grouped" | "spaced";
10
+ export type AccordionTitleTag = "span" | "h2" | "h3" | "h4" | "h5" | "h6";
11
+ export type AccordionMargin = string | SpacingOption[];
12
+ export type AccordionPadding = string | SpacingOption[];
13
+ export interface AccordionProps {
14
+ items: AccordionItem[];
15
+ allowMultiple?: boolean;
16
+ defaultExpandedIndex?: number | number[];
17
+ iconVariant?: AccordionIconVariant;
18
+ variant?: AccordionVariant;
19
+ titleTag?: AccordionTitleTag;
20
+ margin?: AccordionMargin;
21
+ padding?: AccordionPadding;
6
22
  className?: string;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare namespace Accordion {
9
- namespace propTypes {
10
- let size: any;
11
- let variant: any;
12
- let margin: any;
13
- }
14
23
  }
24
+ declare const Accordion: React.FC<AccordionProps>;
25
+ export default Accordion;
15
26
  //# sourceMappingURL=Accordion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/Accordion.jsx"],"names":[],"mappings":";AAUA;;;;;4CAoBC"}
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAMzD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,MAAM,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,CAAC;AACpD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1E,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzC,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiHvC,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -1,3 +1,4 @@
1
+ import Accordion from "./Accordion";
1
2
  export default Accordion;
2
- import Accordion from "./Accordion.jsx";
3
+ export type { AccordionProps, AccordionItem, AccordionIconVariant, AccordionVariant, AccordionTitleTag, AccordionMargin, AccordionPadding } from "./Accordion";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/index.js"],"names":[],"mappings":";sBAAsB,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
@@ -1,5 +1,37 @@
1
+ import React from "react";
2
+ import type { MenuListItem } from "../menu-list";
3
+ import type { MenuListSize, MenuListVariant } from "../menu-list";
4
+ import type { HeaderProps } from "../header";
5
+ import type { FooterProps } from "../footer";
6
+ /** Sidebar configuration: MenuList as vertical nav. Direction is always "vertical". */
7
+ export interface AppShellSidebarConfig {
8
+ /** Menu items for the sidebar navigation */
9
+ items: MenuListItem[];
10
+ /** Value of the currently active item */
11
+ activeItem?: string;
12
+ /** Called when a menu item is clicked */
13
+ onMenuClick?: (item: MenuListItem) => void;
14
+ /** Size of menu items */
15
+ size?: MenuListSize;
16
+ /** Visual variant for the sidebar */
17
+ variant?: MenuListVariant;
18
+ }
19
+ export interface AppShellProps {
20
+ /** Main content (page area) */
21
+ children: React.ReactNode;
22
+ /** Top bar: pass Header props or custom ReactNode. Omit to hide header. */
23
+ header?: React.ReactNode | HeaderProps;
24
+ /** Bottom bar: pass Footer props or custom ReactNode. Omit to hide footer. */
25
+ footer?: React.ReactNode | FooterProps;
26
+ /** Sidebar config (MenuList as vertical nav on the left). Omit to hide sidebar. */
27
+ sidebar?: AppShellSidebarConfig;
28
+ /** Width of the sidebar (e.g. "240px", "16rem") */
29
+ sidebarWidth?: string;
30
+ /** Additional class name for the root element */
31
+ className?: string;
32
+ /** Additional class name for the main content wrapper */
33
+ contentClassName?: string;
34
+ }
35
+ declare const AppShell: React.FC<AppShellProps>;
1
36
  export default AppShell;
2
- declare function AppShell({ children }: {
3
- children: any;
4
- }): import("react/jsx-runtime").JSX.Element;
5
37
  //# sourceMappingURL=AppShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../src/components/app-shell/AppShell.jsx"],"names":[],"mappings":";AAEA;;4CAEC"}
1
+ {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../src/components/app-shell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAI7C,uFAAuF;AACvF,MAAM,WAAW,qBAAqB;IACpC,4CAA4C;IAC5C,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,yBAAyB;IACzB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,qCAAqC;IACrC,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,2EAA2E;IAC3E,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,WAAW,CAAC;IACvC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,WAAW,CAAC;IACvC,mFAAmF;IACnF,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAQD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuDrC,CAAC;AAIF,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,4 @@
1
+ import AppShell from "./AppShell";
1
2
  export default AppShell;
2
- import AppShell from "./AppShell.jsx";
3
+ export type { AppShellProps, AppShellSidebarConfig } from "./AppShell";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/app-shell/index.js"],"names":[],"mappings":";qBAAqB,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/app-shell/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe,QAAQ,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
@@ -1,18 +1,19 @@
1
- export default BottomSheet;
2
- declare function BottomSheet({ margin, className, children, isOpen, onClose }: {
3
- margin: any;
4
- className: any;
5
- children: any;
6
- isOpen: any;
7
- onClose: any;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- declare namespace BottomSheet {
10
- namespace propTypes {
11
- let isOpen: any;
12
- let className: any;
13
- let onClose: any;
14
- let margin: any;
15
- let children: any;
16
- }
1
+ import React from "react";
2
+ import { SPACING_OPTIONS } from "../../constants/common";
3
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
4
+ export type BottomSheetMargin = string | SpacingOption[];
5
+ export interface BottomSheetProps {
6
+ /** Whether the bottom sheet is open */
7
+ isOpen: boolean;
8
+ /** Called when the sheet should close (e.g. after drag-to-close) */
9
+ onClose?: () => void;
10
+ /** Spacing suffix(s) for outer margin; component adds m- prefix */
11
+ margin?: BottomSheetMargin;
12
+ /** Additional class names for the sheet panel */
13
+ className?: string;
14
+ /** Content rendered inside the sheet */
15
+ children?: React.ReactNode;
17
16
  }
17
+ declare const BottomSheet: React.FC<BottomSheetProps>;
18
+ export default BottomSheet;
18
19
  //# sourceMappingURL=BottomSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/bottom-sheet/BottomSheet.jsx"],"names":[],"mappings":";AAeA;;;;;;4CA6IC"}
1
+ {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/components/bottom-sheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAKzD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,uCAAuC;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mEAAmE;IACnE,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAMD,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkJ3C,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -1,3 +1,4 @@
1
+ import BottomSheet from "./BottomSheet";
1
2
  export default BottomSheet;
2
- import BottomSheet from "./BottomSheet.jsx";
3
+ export type { BottomSheetProps, BottomSheetMargin } from "./BottomSheet";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/bottom-sheet/index.js"],"names":[],"mappings":";wBAAwB,mBAAmB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/bottom-sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { SPACING_OPTIONS } from "../../constants/common";
3
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
4
+ export type BreadCrumbMargin = string | SpacingOption[];
5
+ export type BreadCrumbSeparator = "slash" | "chevron";
6
+ export interface BreadCrumbItem {
7
+ /** Display label for the crumb */
8
+ label: string;
9
+ /** URL for the crumb. Omit for the current page (last item). */
10
+ href?: string;
11
+ }
12
+ export interface BreadCrumbProps {
13
+ /** List of breadcrumb items. Last item is treated as current page when it has no href. */
14
+ items: BreadCrumbItem[];
15
+ /** Visual separator between items */
16
+ separator?: BreadCrumbSeparator;
17
+ /** Accessible label for the navigation landmark (default: "Breadcrumb") */
18
+ ariaLabel?: string;
19
+ /** Spacing suffix for outer margin (e.g. "0" → m-0). */
20
+ margin?: BreadCrumbMargin;
21
+ /** Additional class name for the root nav element */
22
+ className?: string;
23
+ }
24
+ declare const BreadCrumb: React.FC<BreadCrumbProps>;
25
+ export default BreadCrumb;
26
+ //# sourceMappingURL=BreadCrumb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BreadCrumb.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumb/BreadCrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,0FAA0F;IAC1F,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,qCAAqC;IACrC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsEzC,CAAC;AAIF,eAAe,UAAU,CAAC"}
@@ -1,3 +1,4 @@
1
- export default AppShell;
2
- import AppShell from "./AppShell.jsx";
1
+ import BreadCrumb from "./BreadCrumb";
2
+ export default BreadCrumb;
3
+ export type { BreadCrumbProps, BreadCrumbItem, BreadCrumbSeparator, BreadCrumbMargin, SpacingOption, } from "./BreadCrumb";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumb/index.js"],"names":[],"mappings":";qBAAqB,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumb/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,eAAe,UAAU,CAAC;AAC1B,YAAY,EACV,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,GACd,MAAM,cAAc,CAAC"}
@@ -1,22 +1,27 @@
1
- export default Footer;
2
- declare function Footer({ margin, size, variant, brandName, poweredByLabel, poweredByLink, children, className, }: {
3
- margin?: string;
4
- size?: string;
5
- variant?: string;
1
+ import React from "react";
2
+ import { SPACING_OPTIONS } from "../../constants/common";
3
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
4
+ export type FooterSize = "small" | "medium" | "large";
5
+ export type FooterVariant = "light" | "dark";
6
+ export type FooterMargin = string | SpacingOption[];
7
+ export interface FooterProps {
8
+ /** Spacing suffix(s) for outer margin; component adds m- prefix */
9
+ margin?: FooterMargin;
10
+ /** Size of the footer */
11
+ size?: FooterSize;
12
+ /** Visual variant */
13
+ variant?: FooterVariant;
14
+ /** Brand name shown in copyright (e.g. "Acme Inc") */
6
15
  brandName?: string;
16
+ /** Label for the powered-by link (e.g. "Powered by X") */
7
17
  poweredByLabel?: string;
18
+ /** URL for the powered-by link; shown when poweredByLabel is also set */
8
19
  poweredByLink?: string;
9
- children: any;
20
+ /** Custom content rendered above the copyright line */
21
+ children?: React.ReactNode;
22
+ /** Additional class names for the root element */
10
23
  className?: string;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare namespace Footer {
13
- namespace propTypes {
14
- let brandName: any;
15
- let poweredByLabel: any;
16
- let poweredByLink: any;
17
- let size: any;
18
- let variant: any;
19
- let margin: any;
20
- }
21
24
  }
25
+ declare const Footer: React.FC<FooterProps>;
26
+ export default Footer;
22
27
  //# sourceMappingURL=Footer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/footer/Footer.jsx"],"names":[],"mappings":";AASA;;;;;;;;;4CAwCC"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAKzD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,mEAAmE;IACnE,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0CjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ import Footer from "./Footer";
1
2
  export default Footer;
2
- import Footer from "./Footer.jsx";
3
+ export type { FooterProps, FooterSize, FooterVariant, FooterMargin } from "./Footer";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/footer/index.js"],"names":[],"mappings":";mBAAmB,cAAc"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/footer/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
@@ -1,30 +1,34 @@
1
- export default Header;
2
- declare function Header({ logoUrl, activeMenuItem, onMenuItemClick, className, headerLeft, headerRight, headerCenter, size, variant, margin, menuItems, }: {
3
- logoUrl: any;
4
- activeMenuItem: any;
5
- onMenuItemClick: any;
6
- className: any;
7
- headerLeft: any;
8
- headerRight: any;
9
- headerCenter: any;
10
- size: any;
11
- variant: any;
12
- margin: any;
13
- menuItems: any;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare namespace Header {
16
- namespace propTypes {
17
- let logoUrl: any;
18
- let activeMenuItem: any;
19
- let onMenuItemClick: any;
20
- let className: any;
21
- let headerLeft: any;
22
- let headerRight: any;
23
- let headerCenter: any;
24
- let menuItems: any;
25
- let size: any;
26
- let variant: any;
27
- let margin: any;
28
- }
1
+ import React from "react";
2
+ import { SPACING_OPTIONS } from "../../constants/common";
3
+ import type { MenuListItem } from "../menu-list";
4
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
5
+ export type HeaderSize = "small" | "medium" | "large";
6
+ export type HeaderVariant = "light" | "dark";
7
+ export type HeaderMargin = string | SpacingOption[];
8
+ export interface HeaderProps {
9
+ /** URL for the logo image (shown when headerLeft is not provided) */
10
+ logoUrl?: string;
11
+ /** Value of the currently active menu item */
12
+ activeMenuItem?: string;
13
+ /** Called when a menu item is clicked */
14
+ onMenuItemClick?: (item: MenuListItem) => void;
15
+ /** Additional class names for the root element */
16
+ className?: string;
17
+ /** Custom content for the left area (replaces logo when provided) */
18
+ headerLeft?: React.ReactNode;
19
+ /** Custom content for the right area */
20
+ headerRight?: React.ReactNode;
21
+ /** Custom content for the center area (replaces MenuList when provided) */
22
+ headerCenter?: React.ReactNode;
23
+ /** Menu items for the center/vertical menu */
24
+ menuItems: MenuListItem[];
25
+ /** Size of the header */
26
+ size?: HeaderSize;
27
+ /** Visual variant */
28
+ variant?: HeaderVariant;
29
+ /** Spacing suffix(s) for outer margin; component adds m- prefix */
30
+ margin?: HeaderMargin;
29
31
  }
32
+ declare const Header: React.FC<HeaderProps>;
33
+ export default Header;
30
34
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/header/Header.jsx"],"names":[],"mappings":";AAaA;;;;;;;;;;;;4CAyFC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAMzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC/C,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,wCAAwC;IACxC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,2EAA2E;IAC3E,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,8CAA8C;IAC9C,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,mEAAmE;IACnE,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyFjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ import Header from "./Header";
1
2
  export default Header;
2
- import Header from "./Header.jsx";
3
+ export type { HeaderProps, HeaderSize, HeaderVariant, HeaderMargin } from "./Header";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";mBAAmB,cAAc"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
@@ -1,24 +1,34 @@
1
- export default MenuList;
2
- declare function MenuList({ items, activeItem, size, variant, margin, className, direction, onMenuClick, }: {
3
- items: any;
4
- activeItem: any;
5
- size: any;
6
- variant: any;
7
- margin: any;
8
- className: any;
9
- direction?: string;
10
- onMenuClick: any;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare namespace MenuList {
13
- namespace propTypes {
14
- let className: any;
15
- let activeItem: any;
16
- let size: any;
17
- let variant: any;
18
- let direction: any;
19
- let onMenuClick: any;
20
- let items: any;
21
- let margin: any;
22
- }
1
+ import React from "react";
2
+ import { SPACING_OPTIONS } from "../../constants/common";
3
+ import type { MaterialIconName } from "../icon/material-icon-names";
4
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
5
+ export type MenuListSize = "small" | "medium" | "large";
6
+ export type MenuListVariant = "light" | "dark";
7
+ export type MenuListDirection = "horizontal" | "vertical";
8
+ export type MenuListMargin = string | SpacingOption[];
9
+ export interface MenuListItem {
10
+ label: string;
11
+ value: string;
12
+ icon?: MaterialIconName;
13
+ }
14
+ export interface MenuListProps {
15
+ /** List of menu items; each has label, value, and optional icon */
16
+ items: MenuListItem[];
17
+ /** Value of the currently active item (matches item.value) */
18
+ activeItem?: string;
19
+ /** Size of menu items */
20
+ size?: MenuListSize;
21
+ /** Visual variant (light, dark) */
22
+ variant?: MenuListVariant;
23
+ /** Layout direction of the list */
24
+ direction?: MenuListDirection;
25
+ /** Spacing suffix(s) for outer margin; component adds m- prefix */
26
+ margin?: MenuListMargin;
27
+ /** Additional class names for the root element */
28
+ className?: string;
29
+ /** Called when a menu item is clicked; receives the clicked item */
30
+ onMenuClick?: (item: MenuListItem) => void;
23
31
  }
32
+ declare const MenuList: React.FC<MenuListProps>;
33
+ export default MenuList;
24
34
  //# sourceMappingURL=MenuList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../src/components/menu-list/MenuList.jsx"],"names":[],"mappings":";AAYA;;;;;;;;;4CAuDC"}
1
+ {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../src/components/menu-list/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAKzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AAEtD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,mEAAmE;IACnE,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,mCAAmC;IACnC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,mCAAmC;IACnC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,mEAAmE;IACnE,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CAC5C;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuDrC,CAAC;AAIF,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,4 @@
1
+ import MenuList from "./MenuList";
1
2
  export default MenuList;
2
- import MenuList from "./MenuList.jsx";
3
+ export type { MenuListProps, MenuListItem, MenuListSize, MenuListVariant, MenuListDirection, MenuListMargin } from "./MenuList";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/menu-list/index.js"],"names":[],"mappings":";qBAAqB,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/menu-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe,QAAQ,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -1,5 +1,24 @@
1
+ import React from "react";
2
+ export interface PageHeaderMoreMenuItem {
3
+ /** Menu item label */
4
+ label: string;
5
+ /** Called when the item is clicked; the more menu closes after. */
6
+ onClick?: () => void;
7
+ }
8
+ export interface PageHeaderProps {
9
+ /** Page title (left column) */
10
+ title: React.ReactNode;
11
+ /** Optional subtitle below the title (left column) */
12
+ subtitle?: React.ReactNode;
13
+ /** Primary call-to-action, e.g. a Button (right column, aligned right) */
14
+ primaryCta?: React.ReactNode;
15
+ /** More menu items; renders a trigger with three-dots (more_vert) icon and a dropdown (right column). */
16
+ moreMenuItems?: PageHeaderMoreMenuItem[];
17
+ /** Custom content for the more menu dropdown instead of moreMenuItems (right column). */
18
+ moreMenuContent?: React.ReactNode;
19
+ /** Additional class name for the root element */
20
+ className?: string;
21
+ }
22
+ declare const PageHeader: React.FC<PageHeaderProps>;
1
23
  export default PageHeader;
2
- declare function PageHeader({ children }: {
3
- children: any;
4
- }): import("react/jsx-runtime").JSX.Element;
5
24
  //# sourceMappingURL=PageHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/page-header/PageHeader.jsx"],"names":[],"mappings":";AAEA;;4CAEC"}
1
+ {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/page-header/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,sBAAsB;IACrC,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,yGAAyG;IACzG,aAAa,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACzC,yFAAyF;IACzF,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2BD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgGzC,CAAC;AAIF,eAAe,UAAU,CAAC"}
@@ -1,3 +1,4 @@
1
+ import PageHeader from "./PageHeader";
1
2
  export default PageHeader;
2
- import PageHeader from "./PageHeader.jsx";
3
+ export type { PageHeaderProps, PageHeaderMoreMenuItem } from "./PageHeader";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/page-header/index.js"],"names":[],"mappings":";uBAAuB,kBAAkB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/page-header/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,eAAe,UAAU,CAAC;AAC1B,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,15 +1,23 @@
1
- export default Toast;
1
+ import React from "react";
2
+ export type ToastVariant = "info" | "error" | "warning" | "success";
3
+ export interface ToastMessage {
4
+ mode: ToastVariant;
5
+ message: string;
6
+ }
7
+ export interface ToastRefHandle {
8
+ addMessage: (toast: ToastMessage) => void;
9
+ }
10
+ export interface ToastProps {
11
+ /** Whether toasts auto-close after autoCloseTime */
12
+ autoClose?: boolean;
13
+ /** Duration in ms before auto-closing (when autoClose is true) */
14
+ autoCloseTime?: number;
15
+ }
2
16
  /**
3
- * The parent of this component should not have
4
- * to worry about maintaining a list of message
5
- * objects. That would require the parent to
6
- * also manage the deletion of toasts, etc.
7
- *
8
- * To accommodate this, we are using a combination
9
- * of useImperativeHandle and forwardRef to give
10
- * the parent access to this component's addMessage
11
- * functionality.
17
+ * Toast displays transient messages in a portal (top-right). Use a ref to call
18
+ * addMessage({ mode, message }). The parent does not need to manage toast state.
19
+ * useImperativeHandle + forwardRef expose addMessage to the parent.
12
20
  */
13
- declare const Toast: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
14
- import React from "react";
21
+ declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<ToastRefHandle>>;
22
+ export default Toast;
15
23
  //# sourceMappingURL=Toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/toast/Toast.jsx"],"names":[],"mappings":";AA2DA;;;;;;;;;;GAUG;AAEH,+EAuCG;kBAxGI,OAAO"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAOf,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,UAAU;IACzB,oDAAoD;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AA4ED;;;;GAIG;AACH,QAAA,MAAM,KAAK,mFAoDV,CAAC;AAIF,eAAe,KAAK,CAAC"}
@@ -1,3 +1,4 @@
1
+ import Toast from "./Toast";
1
2
  export default Toast;
2
- import Toast from "./Toast.jsx";
3
+ export type { ToastProps, ToastRefHandle, ToastMessage, ToastVariant } from "./Toast";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toast/index.js"],"names":[],"mappings":";kBAAkB,aAAa"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe,KAAK,CAAC;AACrB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}