@canonical/maas-react-components 2.8.0 → 2.8.2
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,2 +1,2 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../lib-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../lib-CFep0joz.mjs";
|
|
2
2
|
export { t as ContentSection, c as DynamicTable, r as ExternalLink, u as FileUpload, a as FormSection, S as GenericTable, O as InputGroup, p as Layout, m as MainToolbar, n as Meter, b as MultiSelect, C as MultiSelectDropdown, x as Navigation, v as NavigationBar, f as NestedFormGroup, T as Pagination, d as PaginationContainer, D as Placeholder, o as ProgressIndicator, y as QueryInput, l as SidePanel, E as SidePanelContextProvider, _ as Stepper, h as TableCaption, i as defaultFilledColors, w as formatBytes, s as lazyLoadSidePanel, g as meterColor, e as testIds, k as useSidePanel };
|
|
@@ -367,37 +367,40 @@ var Se = a(null), J = () => {
|
|
|
367
367
|
fallback: /* @__PURE__ */ P(W, { children: /* @__PURE__ */ P(q.Skeleton, { hasTitle: t }) }),
|
|
368
368
|
children: /* @__PURE__ */ P(n, { ...e })
|
|
369
369
|
});
|
|
370
|
-
}, Te = ({
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
className: "
|
|
370
|
+
}, Te = ({ id: e, className: t, children: n, pageTitle: i, view: a, isSecondaryNavVisible: o, navigation: s, secondaryNavigation: c, sidePanelTitles: l = "auto", statusBar: u }) => /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(ve, { children: i }), /* @__PURE__ */ F(v, {
|
|
371
|
+
id: e,
|
|
372
|
+
children: [
|
|
373
|
+
s,
|
|
374
|
+
/* @__PURE__ */ F(_, {
|
|
375
|
+
className: t,
|
|
376
|
+
children: [
|
|
377
|
+
/* @__PURE__ */ P("h1", {
|
|
378
|
+
className: "u-visually-hidden",
|
|
379
|
+
children: i
|
|
380
|
+
}),
|
|
381
|
+
/* @__PURE__ */ P("div", {
|
|
382
|
+
className: M("l-main__nav", { "is-open": o }),
|
|
383
|
+
children: c
|
|
384
|
+
}),
|
|
385
|
+
/* @__PURE__ */ P("div", {
|
|
386
|
+
className: "l-main__content",
|
|
387
387
|
children: /* @__PURE__ */ P("div", {
|
|
388
|
-
className: "
|
|
389
|
-
children: /* @__PURE__ */ P(
|
|
390
|
-
|
|
391
|
-
children:
|
|
388
|
+
className: "row",
|
|
389
|
+
children: /* @__PURE__ */ P("div", {
|
|
390
|
+
className: "col-12",
|
|
391
|
+
children: /* @__PURE__ */ P(r, {
|
|
392
|
+
fallback: /* @__PURE__ */ P(Ee, { view: a }),
|
|
393
|
+
children: n
|
|
394
|
+
})
|
|
392
395
|
})
|
|
393
396
|
})
|
|
394
397
|
})
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
]
|
|
399
|
+
}),
|
|
400
|
+
/* @__PURE__ */ P(q, { sidePanelTitles: l }),
|
|
401
|
+
u
|
|
402
|
+
]
|
|
403
|
+
})] }), Ee = ({ view: e }) => e === "settings" ? /* @__PURE__ */ F(W, {
|
|
401
404
|
"aria-hidden": "true",
|
|
402
405
|
className: "layout-skeleton",
|
|
403
406
|
variant: "narrow",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { SidePanelTitles } from '../SidePanel';
|
|
3
3
|
type LayoutProps = {
|
|
4
|
+
id?: string;
|
|
4
5
|
className?: string;
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
pageTitle: string;
|
|
@@ -12,7 +13,7 @@ type LayoutProps = {
|
|
|
12
13
|
statusBar?: ReactNode;
|
|
13
14
|
};
|
|
14
15
|
export declare const Layout: {
|
|
15
|
-
({ className, children, pageTitle, view, isSecondaryNavVisible, navigation, secondaryNavigation, sidePanelTitles, statusBar, }: LayoutProps): ReactElement;
|
|
16
|
+
({ id, className, children, pageTitle, view, isSecondaryNavVisible, navigation, secondaryNavigation, sidePanelTitles, statusBar, }: LayoutProps): ReactElement;
|
|
16
17
|
Skeleton: ({ view, }: {
|
|
17
18
|
view: "settings" | "table";
|
|
18
19
|
}) => ReactElement;
|
|
@@ -17,6 +17,6 @@ import { ComponentType } from 'react';
|
|
|
17
17
|
* keeps `<SidePanel />` mounted (and open) while the chunk loads, and shows the
|
|
18
18
|
* spinner inside the panel.
|
|
19
19
|
*/
|
|
20
|
-
export declare const lazyLoadSidePanel: (loader: () => Promise<{
|
|
21
|
-
default: ComponentType
|
|
20
|
+
export declare const lazyLoadSidePanel: <P extends Record<string, unknown> = Record<string, unknown>>(loader: () => Promise<{
|
|
21
|
+
default: ComponentType<P>;
|
|
22
22
|
}>, showSkeletonTitle?: boolean) => ComponentType;
|
package/dist/testing/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as e } from "../lib-
|
|
1
|
+
import { v as e } from "../lib-CFep0joz.mjs";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { RouterProvider as n, createMemoryRouter as r } from "react-router";
|
|
4
4
|
import { render as i, renderHook as a, screen as o } from "@testing-library/react";
|
package/package.json
CHANGED