@compill/admin 1.0.102 → 1.0.104

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 (153) hide show
  1. package/dist/index.d.ts +50 -50
  2. package/dist/index.js +50 -50
  3. package/dist/lib/SectionTitle.js +4 -0
  4. package/dist/lib/breadcrumbs/BreadCrumbs.js +29 -0
  5. package/dist/lib/buttons/{DialogButton.jsx → DialogButton.js} +2 -4
  6. package/dist/lib/buttons/InvalidateButton.d.ts +1 -1
  7. package/dist/lib/buttons/{InvalidateButton.jsx → InvalidateButton.js} +3 -2
  8. package/dist/lib/buttons/{NavigateButton.jsx → NavigateButton.js} +2 -3
  9. package/dist/lib/buttons/{PublishButton.jsx → PublishButton.js} +3 -4
  10. package/dist/lib/buttons/{UpdateButton.jsx → UpdateButton.js} +3 -4
  11. package/dist/lib/buttons/ViewButton.d.ts +1 -1
  12. package/dist/lib/buttons/{ViewButton.jsx → ViewButton.js} +3 -4
  13. package/dist/lib/cells/{OrderCell.jsx → OrderCell.js} +2 -11
  14. package/dist/lib/json/DetailsView.d.ts +1 -1
  15. package/dist/lib/json/DetailsView.js +69 -0
  16. package/dist/lib/json/EditItemView.d.ts +1 -1
  17. package/dist/lib/json/EditItemView.js +6 -0
  18. package/dist/lib/json/MultiQueryWrapper.d.ts +1 -1
  19. package/dist/lib/json/{MultiQueryWrapper.jsx → MultiQueryWrapper.js} +5 -4
  20. package/dist/lib/json/QueryWrapper.d.ts +1 -1
  21. package/dist/lib/json/{QueryWrapper.jsx → QueryWrapper.js} +3 -2
  22. package/dist/lib/json/ScreenRenderer.d.ts +1 -1
  23. package/dist/lib/json/ScreenRenderer.js +19 -0
  24. package/dist/lib/json/ScreenTopBar.d.ts +2 -2
  25. package/dist/lib/json/ScreenTopBar.js +18 -0
  26. package/dist/lib/json/TabbedView.d.ts +1 -1
  27. package/dist/lib/json/TabbedView.js +21 -0
  28. package/dist/lib/json/buttons/{ActionButton.jsx → ActionButton.js} +2 -4
  29. package/dist/lib/json/buttons/{ConfirmationActionButton.jsx → ConfirmationActionButton.js} +3 -20
  30. package/dist/lib/json/dialog/DialogRenderer.d.ts +3 -3
  31. package/dist/lib/json/dialog/DialogRenderer.js +14 -0
  32. package/dist/lib/json/dialog/ItemDeleteDialog.js +14 -0
  33. package/dist/lib/json/dialog/ItemEditDialog.js +77 -0
  34. package/dist/lib/json/dialog/MultiQueryWrapperDialog.d.ts +1 -1
  35. package/dist/lib/json/dialog/{MultiQueryWrapperDialog.jsx → MultiQueryWrapperDialog.js} +3 -2
  36. package/dist/lib/json/dialog/QueryWrapperDialog.d.ts +2 -2
  37. package/dist/lib/json/dialog/{QueryWrapperDialog.jsx → QueryWrapperDialog.js} +3 -2
  38. package/dist/lib/json/table/{RefreshButton.jsx → RefreshButton.js} +3 -4
  39. package/dist/lib/json/table/TableRowActionsView.d.ts +1 -1
  40. package/dist/lib/json/table/TableRowActionsView.js +36 -0
  41. package/dist/lib/json/table/{TableRowPublishPostButton.jsx → TableRowPublishPostButton.js} +2 -3
  42. package/dist/lib/json/table/TableView.d.ts +1 -1
  43. package/dist/lib/json/table/TableView.js +65 -0
  44. package/dist/lib/json/table/TableViewContext.d.ts +1 -1
  45. package/dist/lib/json/table/{TableViewContext.jsx → TableViewContext.js} +6 -5
  46. package/dist/lib/json/table/useTableProps.d.ts +1 -1
  47. package/dist/lib/json/table/{useTableProps.jsx → useTableProps.js} +4 -3
  48. package/dist/lib/json/types/DetailsView.d.ts +1 -1
  49. package/dist/lib/json/types/EditItemDialog.d.ts +1 -1
  50. package/dist/lib/json/types/MultiQueryWrapper.d.ts +3 -3
  51. package/dist/lib/json/types/MultiQueryWrapperDialog.d.ts +1 -1
  52. package/dist/lib/json/types/QueryWrapper.d.ts +3 -3
  53. package/dist/lib/json/types/QueryWrapperDialog.d.ts +1 -1
  54. package/dist/lib/json/types/ScreenConfig.d.ts +6 -6
  55. package/dist/lib/json/types/TabbedView.d.ts +5 -5
  56. package/dist/lib/json/types/TableView.d.ts +4 -4
  57. package/dist/lib/layout/AdminLayout.d.ts +1 -1
  58. package/dist/lib/layout/AdminLayout.js +15 -0
  59. package/dist/lib/layout/ButtonBar.d.ts +1 -1
  60. package/dist/lib/layout/ButtonBar.js +19 -0
  61. package/dist/lib/layout/Content.js +9 -0
  62. package/dist/lib/layout/PageTitleBar.js +4 -0
  63. package/dist/lib/layout/Sidebar.d.ts +1 -1
  64. package/dist/lib/layout/Sidebar.js +12 -0
  65. package/dist/lib/layout/menu/Menu.d.ts +1 -1
  66. package/dist/lib/layout/menu/Menu.js +23 -0
  67. package/dist/lib/layout/menu/MenuButton.js +5 -0
  68. package/dist/lib/layout/menu/MenuItem.d.ts +1 -1
  69. package/dist/lib/layout/menu/MenuItem.js +11 -0
  70. package/dist/lib/layout/menu/NextMenuItem.d.ts +1 -1
  71. package/dist/lib/layout/menu/NextMenuItem.js +11 -0
  72. package/dist/lib/layout/menu/SelectedIndicator.js +4 -0
  73. package/dist/lib/layout/menu/UserBlock.d.ts +1 -1
  74. package/dist/lib/layout/menu/UserBlock.js +34 -0
  75. package/dist/lib/modal/{AttachDialog.jsx → AttachDialog.js} +4 -40
  76. package/dist/lib/modal/FormActionDialog.js +20 -0
  77. package/dist/lib/page/PageContainer.js +5 -0
  78. package/dist/lib/page/PageContentEditor.js +10 -0
  79. package/dist/lib/page/PageMain.js +5 -0
  80. package/dist/lib/page/{PageQueryStateContainer.jsx → PageQueryStateContainer.js} +5 -4
  81. package/dist/lib/page/PageSectionTitle.js +4 -0
  82. package/dist/lib/page/PageSidebar.js +4 -0
  83. package/dist/lib/page/PageSidebarSection.js +5 -0
  84. package/dist/lib/page/PageStateContainer.js +7 -0
  85. package/dist/lib/page/PageSubSectionTitle.js +4 -0
  86. package/dist/lib/page/PageTitle.js +4 -0
  87. package/dist/lib/page/PageTopBar.d.ts +1 -1
  88. package/dist/lib/page/{PageTopBar.jsx → PageTopBar.js} +6 -20
  89. package/dist/lib/status/{StatusBadge.jsx → StatusBadge.js} +2 -1
  90. package/dist/lib/table/{TableColumnButton.jsx → TableColumnButton.js} +1 -1
  91. package/dist/lib/table/TableContainer.js +6 -0
  92. package/dist/lib/table/{TableContainerContext.jsx → TableContainerContext.js} +2 -1
  93. package/dist/lib/table/TableCreateButton.d.ts +1 -1
  94. package/dist/lib/table/TableCreateButton.js +7 -0
  95. package/dist/lib/table/TableFilterButton.js +8 -0
  96. package/dist/lib/table/{TableFilters.jsx → TableFilters.js} +4 -23
  97. package/dist/lib/table/TableMassActions.d.ts +1 -1
  98. package/dist/lib/table/TableMassActions.js +9 -0
  99. package/dist/lib/table/TableRowActionBar.js +8 -0
  100. package/dist/lib/table/TableRowActionButton.js +5 -0
  101. package/dist/lib/table/TableRowActionDialogButton.d.ts +1 -1
  102. package/dist/lib/table/TableRowActionDialogButton.js +6 -0
  103. package/dist/lib/table/TableRowDeleteButton.d.ts +1 -1
  104. package/dist/lib/table/{TableRowDeleteButton.jsx → TableRowDeleteButton.js} +3 -2
  105. package/dist/lib/table/TableRowEditButton.d.ts +1 -1
  106. package/dist/lib/table/{TableRowEditButton.jsx → TableRowEditButton.js} +3 -4
  107. package/dist/lib/table/{TableRowNavigateButton.jsx → TableRowNavigateButton.js} +3 -2
  108. package/dist/lib/table/{TableRowPublishPostButton.jsx → TableRowPublishPostButton.js} +3 -2
  109. package/dist/lib/table/{TableRowViewButton.jsx → TableRowViewButton.js} +3 -2
  110. package/dist/lib/table/TableTopBar.d.ts +1 -1
  111. package/dist/lib/table/TableTopBar.js +5 -0
  112. package/package.json +17 -17
  113. package/dist/lib/SectionTitle.jsx +0 -3
  114. package/dist/lib/breadcrumbs/BreadCrumbs.jsx +0 -43
  115. package/dist/lib/json/DetailsView.jsx +0 -96
  116. package/dist/lib/json/EditItemView.jsx +0 -5
  117. package/dist/lib/json/ScreenRenderer.jsx +0 -18
  118. package/dist/lib/json/ScreenTopBar.jsx +0 -39
  119. package/dist/lib/json/TabbedView.jsx +0 -28
  120. package/dist/lib/json/dialog/DialogRenderer.jsx +0 -13
  121. package/dist/lib/json/dialog/ItemDeleteDialog.jsx +0 -36
  122. package/dist/lib/json/dialog/ItemEditDialog.jsx +0 -124
  123. package/dist/lib/json/table/TableRowActionsView.jsx +0 -45
  124. package/dist/lib/json/table/TableView.jsx +0 -100
  125. package/dist/lib/layout/AdminLayout.jsx +0 -24
  126. package/dist/lib/layout/ButtonBar.jsx +0 -29
  127. package/dist/lib/layout/Content.jsx +0 -10
  128. package/dist/lib/layout/PageTitleBar.jsx +0 -12
  129. package/dist/lib/layout/Sidebar.jsx +0 -24
  130. package/dist/lib/layout/menu/Menu.jsx +0 -30
  131. package/dist/lib/layout/menu/MenuButton.jsx +0 -7
  132. package/dist/lib/layout/menu/MenuItem.jsx +0 -20
  133. package/dist/lib/layout/menu/NextMenuItem.jsx +0 -20
  134. package/dist/lib/layout/menu/SelectedIndicator.jsx +0 -3
  135. package/dist/lib/layout/menu/UserBlock.jsx +0 -55
  136. package/dist/lib/modal/FormActionDialog.jsx +0 -46
  137. package/dist/lib/page/PageContainer.jsx +0 -4
  138. package/dist/lib/page/PageContentEditor.jsx +0 -11
  139. package/dist/lib/page/PageMain.jsx +0 -4
  140. package/dist/lib/page/PageSectionTitle.jsx +0 -3
  141. package/dist/lib/page/PageSidebar.jsx +0 -3
  142. package/dist/lib/page/PageSidebarSection.jsx +0 -7
  143. package/dist/lib/page/PageStateContainer.jsx +0 -9
  144. package/dist/lib/page/PageSubSectionTitle.jsx +0 -3
  145. package/dist/lib/page/PageTitle.jsx +0 -3
  146. package/dist/lib/table/TableContainer.jsx +0 -11
  147. package/dist/lib/table/TableCreateButton.jsx +0 -9
  148. package/dist/lib/table/TableFilterButton.jsx +0 -16
  149. package/dist/lib/table/TableMassActions.jsx +0 -15
  150. package/dist/lib/table/TableRowActionBar.jsx +0 -14
  151. package/dist/lib/table/TableRowActionButton.jsx +0 -7
  152. package/dist/lib/table/TableRowActionDialogButton.jsx +0 -8
  153. package/dist/lib/table/TableTopBar.jsx +0 -17
package/dist/index.d.ts CHANGED
@@ -1,50 +1,50 @@
1
- export * from "./lib/SectionTitle";
2
- export * from "./lib/breadcrumbs/BreadCrumbs";
3
- export * from "./lib/buttons/DialogButton";
4
- export * from "./lib/buttons/InvalidateButton";
5
- export * from "./lib/buttons/NavigateButton";
6
- export * from "./lib/buttons/PublishButton";
7
- export * from "./lib/buttons/UpdateButton";
8
- export * from "./lib/buttons/ViewButton";
9
- export * from "./lib/cells/OrderCell";
10
- export * from "./lib/json/ScreenRenderer";
11
- export * from "./lib/json/dialog/ItemEditDialog";
12
- export * from "./lib/json/dialog/ItemDeleteDialog";
13
- export * from "./lib/json/types/DetailsView";
14
- export * from "./lib/json/types/EditItemDialog";
15
- export * from "./lib/json/types/MultiQueryWrapper";
16
- export * from "./lib/json/types/QueryWrapper";
17
- export * from "./lib/json/types/QueryWrapperDialog";
18
- export * from "./lib/json/types/ScreenConfig";
19
- export * from "./lib/json/types/TabbedView";
20
- export * from "./lib/json/types/TableView";
21
- export * from "./lib/layout/AdminLayout";
22
- export * from "./lib/layout/ButtonBar";
23
- export * from "./lib/layout/menu/Menu";
24
- export * from "./lib/layout/menu/MenuConfig";
25
- export * from "./lib/modal/AttachDialog";
26
- export * from "./lib/modal/FormActionDialog";
27
- export * from "./lib/page/PageContainer";
28
- export * from "./lib/page/PageContentEditor";
29
- export * from "./lib/page/PageMain";
30
- export * from "./lib/page/PageQueryStateContainer";
31
- export * from "./lib/page/PageSectionTitle";
32
- export * from "./lib/page/PageSidebar";
33
- export * from "./lib/page/PageSidebarSection";
34
- export * from "./lib/page/PageStateContainer";
35
- export * from "./lib/page/PageSubSectionTitle";
36
- export * from "./lib/page/PageTitle";
37
- export * from "./lib/page/PageTopBar";
38
- export * from "./lib/status/StatusBadge";
39
- export * from "./lib/table/TableContainer";
40
- export * from "./lib/table/TableCreateButton";
41
- export * from "./lib/table/TableFilterButton";
42
- export * from "./lib/table/TableRowActionBar";
43
- export * from "./lib/table/TableRowActionButton";
44
- export * from "./lib/table/TableRowActionDialogButton";
45
- export * from "./lib/table/TableRowDeleteButton";
46
- export * from "./lib/table/TableRowEditButton";
47
- export * from "./lib/table/TableRowNavigateButton";
48
- export * from "./lib/table/TableRowPublishPostButton";
49
- export * from "./lib/table/TableRowViewButton";
50
- export * from "./lib/table/TableTopBar";
1
+ export * from "./lib/SectionTitle.js";
2
+ export * from "./lib/breadcrumbs/BreadCrumbs.js";
3
+ export * from "./lib/buttons/DialogButton.js";
4
+ export * from "./lib/buttons/InvalidateButton.js";
5
+ export * from "./lib/buttons/NavigateButton.js";
6
+ export * from "./lib/buttons/PublishButton.js";
7
+ export * from "./lib/buttons/UpdateButton.js";
8
+ export * from "./lib/buttons/ViewButton.js";
9
+ export * from "./lib/cells/OrderCell.js";
10
+ export * from "./lib/json/ScreenRenderer.js";
11
+ export * from "./lib/json/dialog/ItemEditDialog.js";
12
+ export * from "./lib/json/dialog/ItemDeleteDialog.js";
13
+ export * from "./lib/json/types/DetailsView.js";
14
+ export * from "./lib/json/types/EditItemDialog.js";
15
+ export * from "./lib/json/types/MultiQueryWrapper.js";
16
+ export * from "./lib/json/types/QueryWrapper.js";
17
+ export * from "./lib/json/types/QueryWrapperDialog.js";
18
+ export * from "./lib/json/types/ScreenConfig.js";
19
+ export * from "./lib/json/types/TabbedView.js";
20
+ export * from "./lib/json/types/TableView.js";
21
+ export * from "./lib/layout/AdminLayout.js";
22
+ export * from "./lib/layout/ButtonBar.js";
23
+ export * from "./lib/layout/menu/Menu.js";
24
+ export * from "./lib/layout/menu/MenuConfig.js";
25
+ export * from "./lib/modal/AttachDialog.js";
26
+ export * from "./lib/modal/FormActionDialog.js";
27
+ export * from "./lib/page/PageContainer.js";
28
+ export * from "./lib/page/PageContentEditor.js";
29
+ export * from "./lib/page/PageMain.js";
30
+ export * from "./lib/page/PageQueryStateContainer.js";
31
+ export * from "./lib/page/PageSectionTitle.js";
32
+ export * from "./lib/page/PageSidebar.js";
33
+ export * from "./lib/page/PageSidebarSection.js";
34
+ export * from "./lib/page/PageStateContainer.js";
35
+ export * from "./lib/page/PageSubSectionTitle.js";
36
+ export * from "./lib/page/PageTitle.js";
37
+ export * from "./lib/page/PageTopBar.js";
38
+ export * from "./lib/status/StatusBadge.js";
39
+ export * from "./lib/table/TableContainer.js";
40
+ export * from "./lib/table/TableCreateButton.js";
41
+ export * from "./lib/table/TableFilterButton.js";
42
+ export * from "./lib/table/TableRowActionBar.js";
43
+ export * from "./lib/table/TableRowActionButton.js";
44
+ export * from "./lib/table/TableRowActionDialogButton.js";
45
+ export * from "./lib/table/TableRowDeleteButton.js";
46
+ export * from "./lib/table/TableRowEditButton.js";
47
+ export * from "./lib/table/TableRowNavigateButton.js";
48
+ export * from "./lib/table/TableRowPublishPostButton.js";
49
+ export * from "./lib/table/TableRowViewButton.js";
50
+ export * from "./lib/table/TableTopBar.js";
package/dist/index.js CHANGED
@@ -1,50 +1,50 @@
1
- export * from "./lib/SectionTitle";
2
- export * from "./lib/breadcrumbs/BreadCrumbs";
3
- export * from "./lib/buttons/DialogButton";
4
- export * from "./lib/buttons/InvalidateButton";
5
- export * from "./lib/buttons/NavigateButton";
6
- export * from "./lib/buttons/PublishButton";
7
- export * from "./lib/buttons/UpdateButton";
8
- export * from "./lib/buttons/ViewButton";
9
- export * from "./lib/cells/OrderCell";
10
- export * from "./lib/json/ScreenRenderer";
11
- export * from "./lib/json/dialog/ItemEditDialog";
12
- export * from "./lib/json/dialog/ItemDeleteDialog";
13
- export * from "./lib/json/types/DetailsView";
14
- export * from "./lib/json/types/EditItemDialog";
15
- export * from "./lib/json/types/MultiQueryWrapper";
16
- export * from "./lib/json/types/QueryWrapper";
17
- export * from "./lib/json/types/QueryWrapperDialog";
18
- export * from "./lib/json/types/ScreenConfig";
19
- export * from "./lib/json/types/TabbedView";
20
- export * from "./lib/json/types/TableView";
21
- export * from "./lib/layout/AdminLayout";
22
- export * from "./lib/layout/ButtonBar";
23
- export * from "./lib/layout/menu/Menu";
24
- export * from "./lib/layout/menu/MenuConfig";
25
- export * from "./lib/modal/AttachDialog";
26
- export * from "./lib/modal/FormActionDialog";
27
- export * from "./lib/page/PageContainer";
28
- export * from "./lib/page/PageContentEditor";
29
- export * from "./lib/page/PageMain";
30
- export * from "./lib/page/PageQueryStateContainer";
31
- export * from "./lib/page/PageSectionTitle";
32
- export * from "./lib/page/PageSidebar";
33
- export * from "./lib/page/PageSidebarSection";
34
- export * from "./lib/page/PageStateContainer";
35
- export * from "./lib/page/PageSubSectionTitle";
36
- export * from "./lib/page/PageTitle";
37
- export * from "./lib/page/PageTopBar";
38
- export * from "./lib/status/StatusBadge";
39
- export * from "./lib/table/TableContainer";
40
- export * from "./lib/table/TableCreateButton";
41
- export * from "./lib/table/TableFilterButton";
42
- export * from "./lib/table/TableRowActionBar";
43
- export * from "./lib/table/TableRowActionButton";
44
- export * from "./lib/table/TableRowActionDialogButton";
45
- export * from "./lib/table/TableRowDeleteButton";
46
- export * from "./lib/table/TableRowEditButton";
47
- export * from "./lib/table/TableRowNavigateButton";
48
- export * from "./lib/table/TableRowPublishPostButton";
49
- export * from "./lib/table/TableRowViewButton";
50
- export * from "./lib/table/TableTopBar";
1
+ export * from "./lib/SectionTitle.js";
2
+ export * from "./lib/breadcrumbs/BreadCrumbs.js";
3
+ export * from "./lib/buttons/DialogButton.js";
4
+ export * from "./lib/buttons/InvalidateButton.js";
5
+ export * from "./lib/buttons/NavigateButton.js";
6
+ export * from "./lib/buttons/PublishButton.js";
7
+ export * from "./lib/buttons/UpdateButton.js";
8
+ export * from "./lib/buttons/ViewButton.js";
9
+ export * from "./lib/cells/OrderCell.js";
10
+ export * from "./lib/json/ScreenRenderer.js";
11
+ export * from "./lib/json/dialog/ItemEditDialog.js";
12
+ export * from "./lib/json/dialog/ItemDeleteDialog.js";
13
+ export * from "./lib/json/types/DetailsView.js";
14
+ export * from "./lib/json/types/EditItemDialog.js";
15
+ export * from "./lib/json/types/MultiQueryWrapper.js";
16
+ export * from "./lib/json/types/QueryWrapper.js";
17
+ export * from "./lib/json/types/QueryWrapperDialog.js";
18
+ export * from "./lib/json/types/ScreenConfig.js";
19
+ export * from "./lib/json/types/TabbedView.js";
20
+ export * from "./lib/json/types/TableView.js";
21
+ export * from "./lib/layout/AdminLayout.js";
22
+ export * from "./lib/layout/ButtonBar.js";
23
+ export * from "./lib/layout/menu/Menu.js";
24
+ export * from "./lib/layout/menu/MenuConfig.js";
25
+ export * from "./lib/modal/AttachDialog.js";
26
+ export * from "./lib/modal/FormActionDialog.js";
27
+ export * from "./lib/page/PageContainer.js";
28
+ export * from "./lib/page/PageContentEditor.js";
29
+ export * from "./lib/page/PageMain.js";
30
+ export * from "./lib/page/PageQueryStateContainer.js";
31
+ export * from "./lib/page/PageSectionTitle.js";
32
+ export * from "./lib/page/PageSidebar.js";
33
+ export * from "./lib/page/PageSidebarSection.js";
34
+ export * from "./lib/page/PageStateContainer.js";
35
+ export * from "./lib/page/PageSubSectionTitle.js";
36
+ export * from "./lib/page/PageTitle.js";
37
+ export * from "./lib/page/PageTopBar.js";
38
+ export * from "./lib/status/StatusBadge.js";
39
+ export * from "./lib/table/TableContainer.js";
40
+ export * from "./lib/table/TableCreateButton.js";
41
+ export * from "./lib/table/TableFilterButton.js";
42
+ export * from "./lib/table/TableRowActionBar.js";
43
+ export * from "./lib/table/TableRowActionButton.js";
44
+ export * from "./lib/table/TableRowActionDialogButton.js";
45
+ export * from "./lib/table/TableRowDeleteButton.js";
46
+ export * from "./lib/table/TableRowEditButton.js";
47
+ export * from "./lib/table/TableRowNavigateButton.js";
48
+ export * from "./lib/table/TableRowPublishPostButton.js";
49
+ export * from "./lib/table/TableRowViewButton.js";
50
+ export * from "./lib/table/TableTopBar.js";
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
2
+ export function SectionTitle({ children, ...props }) {
3
+ return _jsx("h2", { textSize: "xl", fontWeight: "600", textColor: "slate-800", ...props, children: children });
4
+ }
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@soperio/jsx-runtime";
2
+ import { useApiQuery } from "@compill/api";
3
+ import { Shimmer } from "@compill/components";
4
+ import { mdiCircleSmall } from "@mdi/js";
5
+ import { Icon } from "@valerya/ui";
6
+ import { isArray } from "es-toolkit/compat";
7
+ import Link from "next/link";
8
+ import { useParams } from "react-router-dom";
9
+ export function Breadcrumbs({ breadcrumbs, ...props }) {
10
+ if (isArray(breadcrumbs)) {
11
+ return (_jsx("div", { dflex: true, alignItems: "center", trait: "typo.h5", ...props, children: breadcrumbs.map((b, index) => _jsx(BreadcrumbItem, { breadcrumb: b, showSeparator: index > 0 }, index)) }));
12
+ }
13
+ return _jsx(QueryBreadcrumbs, { queryFn: breadcrumbs.queryFn, queryField: breadcrumbs.queryField, generate: breadcrumbs.generate });
14
+ }
15
+ function QueryBreadcrumbs({ queryFn, queryField, generate, ...props }) {
16
+ const params = useParams();
17
+ const id = queryField ? params[queryField] : undefined;
18
+ const { data, isLoading, isError } = useApiQuery([""], queryFn, id);
19
+ if (isLoading || isError) {
20
+ return (_jsxs("div", { dflex: true, alignItems: "center", children: [_jsx(Shimmer, { h: "8", w: "24" }), _jsx(Icon, { path: mdiCircleSmall, mx: "1" }), _jsx(Shimmer, { h: "8", w: "20" })] }));
21
+ }
22
+ const breadcrumbs = generate(data);
23
+ return (_jsx("div", { dflex: true, alignItems: "center", trait: "typo.h5", ...props, children: breadcrumbs.map((b, index) => _jsx(BreadcrumbItem, { breadcrumb: b, showSeparator: index > 0 }, index)) }));
24
+ }
25
+ function BreadcrumbItem({ breadcrumb, showSeparator }) {
26
+ return (_jsxs(_Fragment, { children: [showSeparator && _jsx(Icon, { path: mdiCircleSmall, mx: "1" }), _jsx(Link, { href: `/${breadcrumb.path || "#"}`, children: _jsx("span", {
27
+ // onClick={breadcrumb.path ? handleClick : undefined}
28
+ hover_textDecoration: breadcrumb.path ? "underline" : undefined, cursor: breadcrumb.path ? "pointer" : undefined, children: breadcrumb.label }) })] }));
29
+ }
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@soperio/jsx-runtime";
1
2
  import { Button } from "@valerya/ui";
2
3
  import React from "react";
3
4
  export function DialogButton({ buildDialog, ...props }) {
@@ -10,8 +11,5 @@ export function DialogButton({ buildDialog, ...props }) {
10
11
  const onCloseDialog = React.useCallback(() => {
11
12
  setShowDialog(false);
12
13
  }, [setShowDialog]);
13
- return (<>
14
- <Button onClick={onShowDialog} {...props}/>
15
- {showDialog && buildDialog(onCloseDialog)}
16
- </>);
14
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: onShowDialog, ...props }), showDialog && buildDialog(onCloseDialog)] }));
17
15
  }
@@ -1,4 +1,4 @@
1
- import { ButtonBarButtonProps } from "../layout/ButtonBar";
1
+ import { ButtonBarButtonProps } from "../layout/ButtonBar.js";
2
2
  interface InvalidateButtonProps extends ButtonBarButtonProps {
3
3
  pathOrPermalink: string;
4
4
  }
@@ -1,10 +1,11 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
1
2
  import { INVALIDATE_API } from "@compill/admin-api";
2
3
  import { useApiMutation, useMutate } from "@compill/api";
3
4
  import { mdiDatabaseRefreshOutline } from "@mdi/js";
4
- import { ButtonBarButton } from "../layout/ButtonBar";
5
+ import { ButtonBarButton } from "../layout/ButtonBar.js";
5
6
  export function InvalidateButton({ pathOrPermalink, ...props }) {
6
7
  const api = INVALIDATE_API.new(pathOrPermalink);
7
8
  const mutation = useApiMutation(api.invalidate, api.queryKey);
8
9
  const invalidate = useMutate(mutation, { successMsg: "Page successfully invalidated" });
9
- return (<ButtonBarButton title="Regenerate" disabled={mutation.isLoading} onClick={invalidate} icon={mdiDatabaseRefreshOutline} {...props}/>);
10
+ return (_jsx(ButtonBarButton, { title: "Regenerate", disabled: mutation.isLoading, onClick: invalidate, icon: mdiDatabaseRefreshOutline, ...props }));
10
11
  }
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
1
2
  import { mdiPost } from "@mdi/js";
2
3
  import { Button, Icon } from "@valerya/ui";
3
4
  import React from "react";
@@ -7,7 +8,5 @@ export function NavigateButton({ path, ...props }) {
7
8
  const handleClick = React.useCallback(() => {
8
9
  navigate(path);
9
10
  }, [navigate, path]);
10
- return (<Button type="submit" scheme="dark" variant="glass" corners="pill" w="10" h="10" onClick={handleClick} {...props}>
11
- <Icon path={mdiPost}/>
12
- </Button>);
11
+ return (_jsx(Button, { type: "submit", scheme: "dark", variant: "glass", corners: "pill", w: "10", h: "10", onClick: handleClick, ...props, children: _jsx(Icon, { path: mdiPost }) }));
13
12
  }
@@ -1,8 +1,9 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
1
2
  import { useInvalidateMutation } from "@compill/api";
2
3
  import { mdiEye, mdiEyeOff } from "@mdi/js";
3
4
  import React from "react";
4
5
  import { toast } from "react-toastify";
5
- import { ButtonBarButton } from "../layout/ButtonBar";
6
+ import { ButtonBarButton } from "../layout/ButtonBar.js";
6
7
  export function PublishButton({ status, queryId, api, ...props }) {
7
8
  const isDraft = status == "draft";
8
9
  const mutation = useInvalidateMutation(isDraft ? api.publish : api.unpublish, api.queryKey, queryId, { networkMode: "always" });
@@ -12,7 +13,5 @@ export function PublishButton({ status, queryId, api, ...props }) {
12
13
  .then(() => toast.success(isDraft ? "Published!" : "Unpublished!"))
13
14
  .catch(error => toast.error(`Error: ${error}`));
14
15
  }, [mutation, queryId]);
15
- return (<ButtonBarButton disabled={mutation.isLoading} onClick={publish} icon={isDraft ? mdiEye : mdiEyeOff} {...props}>
16
- {isDraft ? "Publish" : "Switch to draft"}
17
- </ButtonBarButton>);
16
+ return (_jsx(ButtonBarButton, { disabled: mutation.isLoading, onClick: publish, icon: isDraft ? mdiEye : mdiEyeOff, ...props, children: isDraft ? "Publish" : "Switch to draft" }));
18
17
  }
@@ -1,12 +1,11 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
1
2
  import { mdiCloudUpload } from "@mdi/js";
2
3
  import { useFormikContext } from "formik";
3
4
  import { useHotkeys } from "react-hotkeys-hook";
4
- import { ButtonBarSubmitButton } from "../layout/ButtonBar";
5
+ import { ButtonBarSubmitButton } from "../layout/ButtonBar.js";
5
6
  export function UpdateButton({ ...props }) {
6
7
  const { dirty, handleSubmit } = useFormikContext() ?? { dirty: false, handleSubmit: undefined, values: {} };
7
8
  useHotkeys('ctrl+s', () => { if (dirty && !props.disabled)
8
9
  handleSubmit(); }, { preventDefault: true }, [dirty, props, handleSubmit]);
9
- return (<ButtonBarSubmitButton icon={mdiCloudUpload} {...props}>
10
- Update
11
- </ButtonBarSubmitButton>);
10
+ return (_jsx(ButtonBarSubmitButton, { icon: mdiCloudUpload, ...props, children: "Update" }));
12
11
  }
@@ -1,4 +1,4 @@
1
- import { ButtonBarButtonProps } from "../layout/ButtonBar";
1
+ import { ButtonBarButtonProps } from "../layout/ButtonBar.js";
2
2
  export declare function ViewButton({ label, path, icon, ...props }: ButtonBarButtonProps & {
3
3
  label?: string;
4
4
  path: string;
@@ -1,13 +1,12 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
1
2
  import { mdiOpenInNew } from "@mdi/js";
2
3
  import React from "react";
3
- import { ButtonBarButton } from "../layout/ButtonBar";
4
+ import { ButtonBarButton } from "../layout/ButtonBar.js";
4
5
  export function ViewButton({ label, path, icon, ...props }) {
5
6
  const openPage = React.useCallback(() => {
6
7
  window.open(path, '_blank');
7
8
  }, [path]);
8
- return (<ButtonBarButton onClick={openPage} dflex alignItems="center" gap="2" icon={icon || mdiOpenInNew} {...props}>
9
- {label}
10
- </ButtonBarButton>);
9
+ return (_jsx(ButtonBarButton, { onClick: openPage, dflex: true, alignItems: "center", gap: "2", icon: icon || mdiOpenInNew, ...props, children: label }));
11
10
  // return (
12
11
  // <IconButton icon={icon ? icon : mdiOpenInNew} type="submit" scheme="dark" variant="glass" size="md" onClick={openPage} {...props}/>
13
12
  // )
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@soperio/jsx-runtime";
1
2
  import { FlexCenter } from "@compill/components";
2
3
  import { useInvalidateMutation } from "@compill/api";
3
4
  import { mdiArrowDownBoldBox, mdiArrowUpBoldBox } from "@mdi/js";
@@ -21,15 +22,5 @@ export function OrderCell({ api, postId, order }) {
21
22
  toast.error(`Error: ${error}`);
22
23
  });
23
24
  }, [mutationUp, postId]);
24
- return (<FlexCenter placeContent="start" numericFontVariant="tabular-nums">
25
- {order}
26
-
27
- <Button ms="3" variant="borderless" scheme="dark" onClick={moveUp}>
28
- <Icon path={mdiArrowUpBoldBox}/>
29
- </Button>
30
-
31
- <Button variant="borderless" scheme="dark" onClick={moveDown}>
32
- <Icon path={mdiArrowDownBoldBox}/>
33
- </Button>
34
- </FlexCenter>);
25
+ return (_jsxs(FlexCenter, { placeContent: "start", numericFontVariant: "tabular-nums", children: [order, _jsx(Button, { ms: "3", variant: "borderless", scheme: "dark", onClick: moveUp, children: _jsx(Icon, { path: mdiArrowUpBoldBox }) }), _jsx(Button, { variant: "borderless", scheme: "dark", onClick: moveDown, children: _jsx(Icon, { path: mdiArrowDownBoldBox }) })] }));
35
26
  }
@@ -1,5 +1,5 @@
1
1
  import { SoperioComponent } from "@soperio/react";
2
- import { DetailsViewConfig } from "./types/DetailsView";
2
+ import { DetailsViewConfig } from "./types/DetailsView.js";
3
3
  export declare function DetailsView({ queryField, api, useNextRouter, processInput, screen, tabbed, ...props }: DetailsViewConfig & {
4
4
  tabbed?: boolean;
5
5
  } & SoperioComponent): JSX.Element;
@@ -0,0 +1,69 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@soperio/jsx-runtime";
2
+ import { useInvalidateParentMutation, useMutate } from "@compill/api";
3
+ import { FormProvider, FormRenderer, TextArea } from "@compill/form";
4
+ import { runIfFn } from "@soperio/react";
5
+ import React from "react";
6
+ import { useParams } from "react-router-dom";
7
+ import { PageContainer } from "../page/PageContainer.js";
8
+ import { PageContentEditor } from "../page/PageContentEditor.js";
9
+ import { PageQueryStateContainer } from "../page/PageQueryStateContainer.js";
10
+ import { PageSidebar } from "../page/PageSidebar.js";
11
+ import { PageSidebarSection } from "../page/PageSidebarSection.js";
12
+ import { ScreenTopBar } from "./ScreenTopBar.js";
13
+ import { useRouter } from "next/router";
14
+ import { useInvalidatePage } from "@compill/admin-api";
15
+ function useQueryField(queryField, useNextRouter) {
16
+ if (useNextRouter) {
17
+ const router = useRouter();
18
+ return router.query[queryField];
19
+ }
20
+ const { [queryField]: id } = useParams();
21
+ return id;
22
+ }
23
+ export function DetailsView({ queryField, api, useNextRouter, processInput, screen, tabbed, ...props }) {
24
+ const id = useQueryField(queryField, useNextRouter);
25
+ const ref = React.useRef(null);
26
+ return (_jsx(PageQueryStateContainer, { api: api, apiFn: "get", queryId: id, ref: ref, p: "5", ...props, children: (item) => _jsx(Internal, { item: item, screen: screen, api: api, tabbed: tabbed, processInput: processInput, containerRef: ref }) }));
27
+ }
28
+ function Internal({ item, screen, api, processInput, tabbed, containerRef }) {
29
+ const pScreen = runIfFn(screen, item);
30
+ const { breadcrumbs, schema, initialValues, header, sections, buttonBar, type, invalidateParentQueryKey, invalidatePage } = pScreen;
31
+ const mutation = useInvalidateParentMutation((api.update), invalidateParentQueryKey ?? api.queryKey, { networkMode: "always" });
32
+ const invalidatePageFn = useInvalidatePage(invalidatePage || "");
33
+ const save = useMutate(mutation, {
34
+ processInput,
35
+ successMsg: (item, values) => `${item.title || item.name} updated.`,
36
+ errorMsg: (error, item) => `Error updating ${item.title || item.name}: ${error}`,
37
+ onSuccess: () => {
38
+ if (invalidatePage)
39
+ invalidatePageFn();
40
+ }
41
+ });
42
+ let editorMaxW = undefined;
43
+ if (!type || type == "post")
44
+ editorMaxW = "calc(1280px - 28rem)";
45
+ else if (type == "section")
46
+ editorMaxW = "calc(1280px - 22rem)";
47
+ return (_jsxs(FormProvider, { initialValues: runIfFn(initialValues, item), validationSchema: schema, onSubmit: save, enableReinitialize: true, children: [_jsx(ScreenTopBar, { tabbed: tabbed, api: api, breadcrumbs: breadcrumbs, buttonBar: buttonBar, item: item, isLoading: mutation.isLoading, trackingRef: containerRef?.current }), type == "form" && sections?.map((section, index) => (_jsx(Section, { section: section, item: item }, index))), (pScreen.type == "post" || pScreen.type == "section") &&
48
+ (_jsx("div", { p: "5", bgColor: "slate-100", rounded: "lg", children: _jsxs(PageContainer, { w: editorMaxW ? "auto" : "full", size: "x2", id: "pagecontainer", children: [header, _jsxs("div", { dflex: true, gap: "5", children: [_jsxs("div", { dflex: true, flexCol: true, gap: "8", flexGrow: true, children: [pScreen.editor?.type != "textarea" &&
49
+ (
50
+ // TODO Find a way to make this editor shrink in width when resizing the window...
51
+ _jsx(PageContentEditor, { name: "content", maxW: editorMaxW, minW: "144", shadow: true, rounded: "lg" })), pScreen.editor?.type == "textarea" &&
52
+ (_jsx(TextArea, { name: pScreen.editor?.name, maxW: editorMaxW, minW: editorMaxW, w: editorMaxW, minH: "128", rows: 25, bgColor: "white", border: "0", shadow: true, p: "5", textColor: "slate-800" })), pScreen.editorFooter] }), _jsx(PageSidebar, { children: sections?.map((section, index) => (_jsx(Section, { section: section, item: item, cardStyle: true }, index))) })] })] }) }))] }));
53
+ }
54
+ function Section({ section, item, cardStyle }) {
55
+ if (section.type === "section") {
56
+ const style = cardStyle ?
57
+ {
58
+ bgColor: "white",
59
+ rounded: "lg",
60
+ p: "5",
61
+ textSize: "sm",
62
+ shadow: true
63
+ } : {};
64
+ return (_jsx(PageSidebarSection, { title: section.title, ...style, children: _jsx(FormRenderer, { form: runIfFn(section.form, item) }) }));
65
+ }
66
+ if (section.type === "custom")
67
+ return runIfFn(section.component, item);
68
+ return null;
69
+ }
@@ -1,2 +1,2 @@
1
- import { ItemEditDialogProps } from "./dialog/ItemEditDialog";
1
+ import { ItemEditDialogProps } from "./dialog/ItemEditDialog.js";
2
2
  export declare function EditItemView({ initialValues, ...props }: Omit<ItemEditDialogProps, "show">): JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
2
+ import { runIfFn } from "@soperio/react";
3
+ import { ItemEditDialog } from "./dialog/ItemEditDialog.js";
4
+ export function EditItemView({ initialValues, ...props }) {
5
+ return (_jsx(ItemEditDialog, { ...props, initialValues: runIfFn(initialValues, null), show: true }));
6
+ }
@@ -1,4 +1,4 @@
1
- import { MultiQueryWrapperConfig } from "./types/MultiQueryWrapper";
1
+ import { MultiQueryWrapperConfig } from "./types/MultiQueryWrapper.js";
2
2
  import { SoperioComponent } from "@soperio/react";
3
3
  export declare function MultiQueryWrapper({ queries, config, tabbed, ...props }: Omit<MultiQueryWrapperConfig, "type"> & {
4
4
  tabbed?: boolean;
@@ -1,8 +1,9 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
1
2
  import { useApiQueries } from "@compill/api";
2
3
  import { useQueryClient } from "@tanstack/react-query";
3
4
  import React from "react";
4
5
  import { useParams } from "react-router-dom";
5
- import { ScreenRenderer } from "./ScreenRenderer";
6
+ import { ScreenRenderer } from "./ScreenRenderer.js";
6
7
  import { isFunction, runIfFn } from "@soperio/react";
7
8
  import { QueryLoadingState, RetryOnError } from "@compill/components";
8
9
  function useQueries(queries) {
@@ -53,8 +54,8 @@ export function MultiQueryWrapper({ queries, config, tabbed, ...props }) {
53
54
  const { data, isFetching, isError } = useQueries(queries);
54
55
  const invalidate = useInvalidate(queries);
55
56
  if (isFetching)
56
- return <QueryLoadingState w="full" h="100vh"/>;
57
+ return _jsx(QueryLoadingState, { w: "full", h: "100vh" });
57
58
  if (isError || !data)
58
- return <RetryOnError p="0" w="full" h="100vh" onClick={invalidate}/>;
59
- return <ScreenRenderer config={config(...data)} tabbed={tabbed} {...props}/>;
59
+ return _jsx(RetryOnError, { p: "0", w: "full", h: "100vh", onClick: invalidate });
60
+ return _jsx(ScreenRenderer, { config: config(...data), tabbed: tabbed, ...props });
60
61
  }
@@ -1,4 +1,4 @@
1
- import { QueryWrapperConfig } from "./types/QueryWrapper";
1
+ import { QueryWrapperConfig } from "./types/QueryWrapper.js";
2
2
  import { SoperioComponent } from "@soperio/react";
3
3
  import { CRUD_MODEL } from "@compill/api";
4
4
  export declare function QueryWrapper<T extends CRUD_MODEL, U>({ api, queryField, fn, transformFn, config, tabbed, ...props }: Omit<QueryWrapperConfig<T, U>, "type"> & {
@@ -1,5 +1,6 @@
1
+ import { jsx as _jsx } from "@soperio/jsx-runtime";
1
2
  import React from "react";
2
- import { ScreenRenderer } from "./ScreenRenderer";
3
+ import { ScreenRenderer } from "./ScreenRenderer.js";
3
4
  import { isFunction, runIfFn } from "@soperio/react";
4
5
  import { useParams } from "react-router-dom";
5
6
  import { useApiQuery } from "@compill/api";
@@ -24,5 +25,5 @@ export function QueryWrapper({ api, queryField, fn, transformFn, config, tabbed,
24
25
  // TODO states
25
26
  if (!data)
26
27
  return null;
27
- return <ScreenRenderer config={config(transformedData)} tabbed={tabbed} {...props}/>;
28
+ return _jsx(ScreenRenderer, { config: config(transformedData), tabbed: tabbed, ...props });
28
29
  }
@@ -1,4 +1,4 @@
1
- import { ScreenConfig } from "./types/ScreenConfig";
1
+ import { ScreenConfig } from "./types/ScreenConfig.js";
2
2
  import { SoperioComponent } from "@soperio/react";
3
3
  export declare function ScreenRenderer({ config, tabbed, ...props }: {
4
4
  config: ScreenConfig;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "@soperio/jsx-runtime";
2
+ import { DetailsView } from "./DetailsView.js";
3
+ import { QueryWrapper } from "./QueryWrapper.js";
4
+ import { TabbedView } from "./TabbedView.js";
5
+ import { TableView } from "./table/TableView.js";
6
+ import { MultiQueryWrapper } from "./MultiQueryWrapper.js";
7
+ export function ScreenRenderer({ config, tabbed, ...props }) {
8
+ if (config.type === "table")
9
+ return _jsx(TableView, { ...config, ...props });
10
+ if (config.type === "tabbed")
11
+ return _jsx(TabbedView, { ...config, ...props });
12
+ if (config.type === "details")
13
+ return _jsx(DetailsView, { ...config, tabbed: tabbed, ...props });
14
+ if (config.type === "query")
15
+ return _jsx(QueryWrapper, { ...config, tabbed: tabbed, ...props });
16
+ if (config.type === "multiQuery")
17
+ return _jsx(MultiQueryWrapper, { ...config, tabbed: tabbed, ...props });
18
+ return _jsx(_Fragment, {});
19
+ }
@@ -1,6 +1,6 @@
1
1
  import { API } from "@compill/admin-api";
2
- import { Breadcrumb } from "../breadcrumbs/BreadCrumbs";
3
- import { DetailViewButton } from "./types/DetailsView";
2
+ import { Breadcrumb } from "../breadcrumbs/BreadCrumbs.js";
3
+ import { DetailViewButton } from "./types/DetailsView.js";
4
4
  import { CRUDAPI } from "@compill/api";
5
5
  interface ScreenTopBarProps {
6
6
  tabbed?: boolean;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@soperio/jsx-runtime";
2
+ import { API } from "@compill/admin-api";
3
+ import { InvalidateButton } from "../buttons/InvalidateButton.js";
4
+ import { PublishButton } from "../buttons/PublishButton.js";
5
+ import { UpdateButton } from "../buttons/UpdateButton.js";
6
+ import { ViewButton } from "../buttons/ViewButton.js";
7
+ import { PageTopBar, PageTopBarToolbar } from "../page/PageTopBar.js";
8
+ import React from "react";
9
+ import { ButtonBar } from "../layout/ButtonBar.js";
10
+ export function ScreenTopBar({ tabbed, breadcrumbs, api, item, isLoading, buttonBar, trackingRef }) {
11
+ return (_jsxs(_Fragment, { children: [tabbed &&
12
+ (_jsx(PageTopBarToolbar, { trackingRef: trackingRef, children: _jsx(Buttons, { api: api, item: item, isLoading: isLoading, buttonBar: buttonBar }) })), !tabbed &&
13
+ (_jsx(PageTopBar, { breadcrumbs: breadcrumbs, children: _jsx(Buttons, { api: api, item: item, isLoading: isLoading, buttonBar: buttonBar }) }))] }));
14
+ }
15
+ function Buttons({ api, item, isLoading, buttonBar }) {
16
+ return (_jsxs(_Fragment, { children: [buttonBar && buttonBar.length > 0 &&
17
+ (_jsx(ButtonBar, { children: buttonBar.map((button, index) => (_jsxs(React.Fragment, { children: [button.type === "link" && _jsx(ViewButton, { label: button.label, path: button.path, icon: button.icon }), button.type === "invalidate" && _jsx(InvalidateButton, { pathOrPermalink: button.pathOrPermalink }), button.type == "custom" && button.render(item)] }, index))) })), _jsxs(ButtonBar, { children: [api instanceof API && _jsx(PublishButton, { api: api, queryId: item.id, status: item.status, disabled: isLoading }), _jsx(UpdateButton, { disabled: isLoading })] })] }));
18
+ }
@@ -1,3 +1,3 @@
1
- import { TabbedViewConfig } from "./types/TabbedView";
1
+ import { TabbedViewConfig } from "./types/TabbedView.js";
2
2
  import { SoperioComponent } from "@soperio/react";
3
3
  export declare function TabbedView({ queryField, api, screen, ...props }: TabbedViewConfig & SoperioComponent): JSX.Element;