aq-fe-framework 0.1.437 → 0.1.439
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.
@@ -383,11 +383,14 @@ function MyDataTableSelectOne({
|
|
383
383
|
// src/core/dataDisplay/MyInfoBox.tsx
|
384
384
|
import { Group, Paper, Stack, Text } from "@mantine/core";
|
385
385
|
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
386
|
-
function MyInfoBox({ data }) {
|
387
|
-
return /* @__PURE__ */ jsx7(Paper, { withBorder: true, shadow: "xs", radius: "md", p: "md",
|
388
|
-
/* @__PURE__ */ jsx7(Text, {
|
389
|
-
/* @__PURE__ */
|
390
|
-
|
386
|
+
function MyInfoBox({ title, data, paperProps }) {
|
387
|
+
return /* @__PURE__ */ jsx7(Paper, __spreadProps(__spreadValues({ withBorder: true, shadow: "xs", radius: "md", p: "md", bg: const_object_colors.mantineBackgroundBlueLight }, paperProps), { children: /* @__PURE__ */ jsxs3(Stack, { children: [
|
388
|
+
title && /* @__PURE__ */ jsx7(Text, { fw: 600, size: "sm", children: title }),
|
389
|
+
data.map((item, index) => /* @__PURE__ */ jsxs3(Group, { justify: "space-between", children: [
|
390
|
+
/* @__PURE__ */ jsx7(Text, { size: "sm", c: "dimmed", children: item.label }),
|
391
|
+
/* @__PURE__ */ jsx7(Text, { size: "sm", fw: 500, children: item.value })
|
392
|
+
] }, index))
|
393
|
+
] }) }));
|
391
394
|
}
|
392
395
|
|
393
396
|
// src/core/dataDisplay/MyLabelValueRow.tsx
|
package/dist/core/index.d.mts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import { t as type_action } from '../types-B5rmBuXz.mjs';
|
3
|
-
import { ActionIconProps, ButtonProps, ModalProps, ScrollAreaAutosizeProps, TextProps, GroupProps, ThemeIconProps, InputWrapperProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
|
3
|
+
import { ActionIconProps, ButtonProps, ModalProps, ScrollAreaAutosizeProps, PaperProps, TextProps, GroupProps, ThemeIconProps, InputWrapperProps, SelectProps, TextInputProps, FlexProps } from '@mantine/core';
|
4
4
|
import { ReactNode } from 'react';
|
5
5
|
import { M as MyApiResponse } from '../createBaseApi-D9OK2lA_.mjs';
|
6
6
|
import { AxiosResponse } from 'axios';
|
@@ -61,9 +61,11 @@ interface MyInfoBoxItem {
|
|
61
61
|
value: React.ReactNode;
|
62
62
|
}
|
63
63
|
interface MyInfoBoxProps {
|
64
|
+
title?: string;
|
64
65
|
data: MyInfoBoxItem[];
|
66
|
+
paperProps?: PaperProps;
|
65
67
|
}
|
66
|
-
declare function MyInfoBox({ data }: MyInfoBoxProps): react_jsx_runtime.JSX.Element;
|
68
|
+
declare function MyInfoBox({ title, data, paperProps }: MyInfoBoxProps): react_jsx_runtime.JSX.Element;
|
67
69
|
|
68
70
|
interface LabelValueRowProps {
|
69
71
|
label?: ReactNode;
|
package/dist/core/index.mjs
CHANGED
@@ -14,9 +14,9 @@ import {
|
|
14
14
|
MyStatsCard,
|
15
15
|
MyTextInput,
|
16
16
|
MyWeeklySessionSchedulerPicker
|
17
|
-
} from "../chunk-
|
18
|
-
import "../chunk-GFEMKKFH.mjs";
|
17
|
+
} from "../chunk-2WD24SBN.mjs";
|
19
18
|
import "../chunk-RZBHPPQT.mjs";
|
19
|
+
import "../chunk-GFEMKKFH.mjs";
|
20
20
|
import "../chunk-OMJJAHOC.mjs";
|
21
21
|
import "../chunk-K6S7R6LU.mjs";
|
22
22
|
import "../chunk-PRN7KYPD.mjs";
|
@@ -42,15 +42,15 @@ import {
|
|
42
42
|
MyButton as MyButton2,
|
43
43
|
MyDataTableSelectOne,
|
44
44
|
MyTextInput as MyTextInput2
|
45
|
-
} from "../chunk-
|
46
|
-
import {
|
47
|
-
const_object_documentTypes
|
48
|
-
} from "../chunk-GFEMKKFH.mjs";
|
45
|
+
} from "../chunk-2WD24SBN.mjs";
|
49
46
|
import {
|
50
47
|
MyDataTable,
|
51
48
|
MyFlexColumn,
|
52
49
|
MyFlexRow
|
53
50
|
} from "../chunk-RZBHPPQT.mjs";
|
51
|
+
import {
|
52
|
+
const_object_documentTypes
|
53
|
+
} from "../chunk-GFEMKKFH.mjs";
|
54
54
|
import {
|
55
55
|
const_object_colors
|
56
56
|
} from "../chunk-OMJJAHOC.mjs";
|