@access-ci/ui 0.19.0-beta4 → 0.19.0-beta6

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.
@@ -1,9 +1,10 @@
1
- import { FC } from "react";
1
+ import { FC, MouseEvent } from "react";
2
2
 
3
3
  export interface BreadcrumbItem {
4
4
  name: string;
5
5
  href?: string;
6
6
  classes?: string;
7
+ onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
7
8
  }
8
9
 
9
10
  export interface BreadcrumbsProps {
@@ -35,7 +36,7 @@ export interface MenuItem {
35
36
  items?: MenuItem[];
36
37
  classes?: string;
37
38
  autoOpenMode?: string;
38
- onClick?: () => void;
39
+ onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
39
40
  }
40
41
 
41
42
  export interface FooterMenusProps {
@@ -46,7 +47,6 @@ export interface FooterMenusProps {
46
47
  export interface SiteMenusProps {
47
48
  items: MenuItem[];
48
49
  siteName: string;
49
- target?: string;
50
50
  }
51
51
 
52
52
  export interface UniversalMenusProps {
@@ -57,7 +57,6 @@ export interface UniversalMenusProps {
57
57
  loginUrl?: string;
58
58
  logoutUrl?: string;
59
59
  siteName?: string;
60
- target?: string;
61
60
  }
62
61
 
63
62
  export interface QABotProps {
@@ -106,3 +105,35 @@ export declare const ResourceCatalog: FC<ResourceCatalogProps>;
106
105
  export declare const SiteMenus: FC<SiteMenusProps>;
107
106
  export declare const TableOfContents: FC<TableOfContentsProps>;
108
107
  export declare const UniversalMenus: FC<UniversalMenusProps>;
108
+
109
+ // Renderer functions — mount a component into a DOM target
110
+ export declare const breadcrumbs: (
111
+ params: BreadcrumbsProps & { target: Element },
112
+ ) => void;
113
+ export declare const footer: (
114
+ params: FooterProps & { target: Element },
115
+ ) => void;
116
+ export declare const footerMenus: (
117
+ params: FooterMenusProps & { target: Element },
118
+ ) => void;
119
+ export declare const header: (
120
+ params: HeaderProps & { target: Element },
121
+ ) => void;
122
+ export declare const qaBot: (params: QABotProps & { target: Element }) => void;
123
+ export declare const resourceCatalog: (
124
+ params: ResourceCatalogProps & { target: Element },
125
+ ) => void;
126
+ export declare const siteMenus: (
127
+ params: SiteMenusProps & { target: Element },
128
+ ) => void;
129
+ export declare const tableOfContents: (
130
+ params: TableOfContentsProps & { target: Element },
131
+ ) => void;
132
+ export declare const universalMenus: (
133
+ params: UniversalMenusProps & { target: Element },
134
+ ) => void;
135
+
136
+ // Pre-built menu item constants
137
+ export declare const loginMenuItem: MenuItem;
138
+ export declare const myAccessMenuItem: MenuItem;
139
+ export declare const universalMenuItems: MenuItem[];
@@ -1,15 +1,24 @@
1
- import "react/jsx-runtime";
2
- import { i as t, F as i, j as n, H as m, Q as u, R as p, S as l, T as F, U as M } from "./shadow-CGn1GiHs.js";
3
- import "react";
4
- import "react-dom";
1
+ import { i as a, F as o, j as t, H as r, Q as n, R as u, S as l, T as M, U as m, k as i, l as c, m as b, n as f, o as d, p as v, q as C, r as g, t as B, v as F, w as I, x as p } from "./access-ci-ui-react-Il8i7n0w.js";
5
2
  export {
6
- t as Breadcrumbs,
7
- i as Footer,
8
- n as FooterMenus,
9
- m as Header,
10
- u as QABot,
11
- p as ResourceCatalog,
3
+ a as Breadcrumbs,
4
+ o as Footer,
5
+ t as FooterMenus,
6
+ r as Header,
7
+ n as QABot,
8
+ u as ResourceCatalog,
12
9
  l as SiteMenus,
13
- F as TableOfContents,
14
- M as UniversalMenus
10
+ M as TableOfContents,
11
+ m as UniversalMenus,
12
+ i as breadcrumbs,
13
+ c as footer,
14
+ b as footerMenus,
15
+ f as header,
16
+ d as loginMenuItem,
17
+ v as myAccessMenuItem,
18
+ C as qaBot,
19
+ g as resourceCatalog,
20
+ B as siteMenus,
21
+ F as tableOfContents,
22
+ I as universalMenuItems,
23
+ p as universalMenus
15
24
  };