@compill/admin 1.0.85 → 1.0.86
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.
- package/index.cjs.js +14 -10
- package/index.esm.js +15 -11
- package/package.json +1 -1
- package/src/lib/table/TableTopBar.d.ts +3 -1
package/index.cjs.js
CHANGED
@@ -1786,9 +1786,10 @@ function TableFilterButton(_a) {
|
|
1786
1786
|
function TableTopBar(_a) {
|
1787
1787
|
var {
|
1788
1788
|
title,
|
1789
|
+
breadcrumbs,
|
1789
1790
|
children
|
1790
1791
|
} = _a,
|
1791
|
-
props = __rest(_a, ["title", "children"]);
|
1792
|
+
props = __rest(_a, ["title", "breadcrumbs", "children"]);
|
1792
1793
|
return jsxRuntime.jsxs("div", Object.assign({
|
1793
1794
|
dflex: true,
|
1794
1795
|
flexRow: true,
|
@@ -1796,12 +1797,16 @@ function TableTopBar(_a) {
|
|
1796
1797
|
gap: "3",
|
1797
1798
|
p: "8"
|
1798
1799
|
}, props, {
|
1799
|
-
children: [
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1800
|
+
children: [jsxRuntime.jsxs("div", {
|
1801
|
+
children: [title && jsxRuntime.jsx("h2", {
|
1802
|
+
textSize: "x2",
|
1803
|
+
fontWeight: "600",
|
1804
|
+
textColor: "#3f4254",
|
1805
|
+
textTransform: "capitalize",
|
1806
|
+
children: title
|
1807
|
+
}), breadcrumbs && jsxRuntime.jsx(admin.Breadcrumbs, {
|
1808
|
+
breadcrumbs: breadcrumbs
|
1809
|
+
})]
|
1805
1810
|
}), jsxRuntime.jsx("div", {
|
1806
1811
|
flexGrow: true,
|
1807
1812
|
children: "\u00A0"
|
@@ -2669,10 +2674,9 @@ function TT({
|
|
2669
2674
|
} = screen;
|
2670
2675
|
const tableApi = react.runIfFn(api, id !== null && id !== void 0 ? id : "");
|
2671
2676
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
2672
|
-
children: [
|
2673
|
-
breadcrumbs: breadcrumbs
|
2674
|
-
}), jsxRuntime.jsx(TableTopBar, {
|
2677
|
+
children: [jsxRuntime.jsx(TableTopBar, {
|
2675
2678
|
title: title,
|
2679
|
+
breadcrumbs: breadcrumbs,
|
2676
2680
|
children: jsxRuntime.jsx(TableButtonBar, {
|
2677
2681
|
buttonBar: buttonBar,
|
2678
2682
|
createView: createView,
|
package/index.esm.js
CHANGED
@@ -7,7 +7,7 @@ import { useParams, useNavigate, Outlet, useLocation, useMatch, Link as Link$1 }
|
|
7
7
|
import React, { useRef, useCallback, useContext as useContext$2, useLayoutEffect, useEffect, createContext } from 'react';
|
8
8
|
import { INVALIDATE_API, API } from '@compill/admin-api';
|
9
9
|
import { useFormikContext, Formik, Form } from 'formik';
|
10
|
-
import { ButtonBarButton as ButtonBarButton$1, ButtonBarSubmitButton as ButtonBarSubmitButton$1, PageSectionTitle as PageSectionTitle$1, ButtonBar as ButtonBar$1, ButtonBarDialogButton as ButtonBarDialogButton$1, TableRowActionButton as TableRowActionButton$1, DialogButton as DialogButton$1 } from '@compill/admin';
|
10
|
+
import { ButtonBarButton as ButtonBarButton$1, ButtonBarSubmitButton as ButtonBarSubmitButton$1, PageSectionTitle as PageSectionTitle$1, ButtonBar as ButtonBar$1, ButtonBarDialogButton as ButtonBarDialogButton$1, Breadcrumbs as Breadcrumbs$1, TableRowActionButton as TableRowActionButton$1, DialogButton as DialogButton$1 } from '@compill/admin';
|
11
11
|
import { toast } from 'react-toastify';
|
12
12
|
import 'react/jsx-runtime';
|
13
13
|
import { FormProvider, TextArea, FormRenderer, mergeInitialFormValues, FieldLabel, SubmitButton } from '@compill/form';
|
@@ -1776,9 +1776,10 @@ function TableFilterButton(_a) {
|
|
1776
1776
|
function TableTopBar(_a) {
|
1777
1777
|
var {
|
1778
1778
|
title,
|
1779
|
+
breadcrumbs,
|
1779
1780
|
children
|
1780
1781
|
} = _a,
|
1781
|
-
props = __rest(_a, ["title", "children"]);
|
1782
|
+
props = __rest(_a, ["title", "breadcrumbs", "children"]);
|
1782
1783
|
return jsxs("div", Object.assign({
|
1783
1784
|
dflex: true,
|
1784
1785
|
flexRow: true,
|
@@ -1786,12 +1787,16 @@ function TableTopBar(_a) {
|
|
1786
1787
|
gap: "3",
|
1787
1788
|
p: "8"
|
1788
1789
|
}, props, {
|
1789
|
-
children: [
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1790
|
+
children: [jsxs("div", {
|
1791
|
+
children: [title && jsx("h2", {
|
1792
|
+
textSize: "x2",
|
1793
|
+
fontWeight: "600",
|
1794
|
+
textColor: "#3f4254",
|
1795
|
+
textTransform: "capitalize",
|
1796
|
+
children: title
|
1797
|
+
}), breadcrumbs && jsx(Breadcrumbs$1, {
|
1798
|
+
breadcrumbs: breadcrumbs
|
1799
|
+
})]
|
1795
1800
|
}), jsx("div", {
|
1796
1801
|
flexGrow: true,
|
1797
1802
|
children: "\u00A0"
|
@@ -2659,10 +2664,9 @@ function TT({
|
|
2659
2664
|
} = screen;
|
2660
2665
|
const tableApi = runIfFn(api, id !== null && id !== void 0 ? id : "");
|
2661
2666
|
return jsxs(Fragment, {
|
2662
|
-
children: [
|
2663
|
-
breadcrumbs: breadcrumbs
|
2664
|
-
}), jsx(TableTopBar, {
|
2667
|
+
children: [jsx(TableTopBar, {
|
2665
2668
|
title: title,
|
2669
|
+
breadcrumbs: breadcrumbs,
|
2666
2670
|
children: jsx(TableButtonBar, {
|
2667
2671
|
buttonBar: buttonBar,
|
2668
2672
|
createView: createView,
|
package/package.json
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { Breadcrumb, QueryBreadcrumbs } from "@compill/admin";
|
2
3
|
import { ParentComponent, SoperioComponent } from "@soperio/react";
|
3
4
|
interface TableTopBarProps extends SoperioComponent, ParentComponent {
|
4
5
|
title?: string;
|
6
|
+
breadcrumbs?: Breadcrumb[] | QueryBreadcrumbs;
|
5
7
|
}
|
6
|
-
export declare function TableTopBar({ title, children, ...props }: TableTopBarProps): JSX.Element;
|
8
|
+
export declare function TableTopBar({ title, breadcrumbs, children, ...props }: TableTopBarProps): JSX.Element;
|
7
9
|
export {};
|