aq-fe-framework 0.1.135 → 0.1.136

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,7 +1,7 @@
1
1
  import {
2
2
  baseAxios_default,
3
3
  useQ_AQ_GetAQModule
4
- } from "./chunk-7EHNYA4A.mjs";
4
+ } from "./chunk-KI5V7QJP.mjs";
5
5
  import {
6
6
  createGenericStore
7
7
  } from "./chunk-Y3YGC5IH.mjs";
@@ -6707,6 +6707,92 @@ function MyIconText({ icon: Icon, text }) {
6707
6707
  import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group10, Paper as Paper6, Text as Text9 } from "@mantine/core";
6708
6708
  import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
6709
6709
  import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
6710
+ function MyInformationCard({
6711
+ title: title3,
6712
+ value,
6713
+ unit = "",
6714
+ description,
6715
+ icons,
6716
+ diff
6717
+ }) {
6718
+ return /* @__PURE__ */ jsxs26(
6719
+ Paper6,
6720
+ {
6721
+ withBorder: true,
6722
+ p: "md",
6723
+ radius: "md",
6724
+ children: [
6725
+ /* @__PURE__ */ jsxs26(Group10, { justify: "space-between", children: [
6726
+ /* @__PURE__ */ jsxs26(Flex3, { direction: "column", children: [
6727
+ /* @__PURE__ */ jsx47(
6728
+ Text9,
6729
+ {
6730
+ tt: "uppercase",
6731
+ size: "lg",
6732
+ c: "dimmed",
6733
+ children: title3
6734
+ }
6735
+ ),
6736
+ unit == "" ? /* @__PURE__ */ jsxs26(Text9, { size: "xs", style: { visibility: "hidden" }, children: [
6737
+ "\u0110\u01A1n v\u1ECB: ",
6738
+ /* @__PURE__ */ jsx47("strong", { children: unit })
6739
+ ] }) : /* @__PURE__ */ jsxs26(Text9, { size: "xs", children: [
6740
+ "\u0110\u01A1n v\u1ECB: ",
6741
+ /* @__PURE__ */ jsx47("strong", { children: unit })
6742
+ ] })
6743
+ ] }),
6744
+ /* @__PURE__ */ jsx47(Box2, { children: icons })
6745
+ ] }),
6746
+ /* @__PURE__ */ jsxs26(
6747
+ Group10,
6748
+ {
6749
+ mt: "5",
6750
+ align: "flex-end",
6751
+ gap: "xs",
6752
+ children: [
6753
+ /* @__PURE__ */ jsx47(
6754
+ Text9,
6755
+ {
6756
+ fw: 700,
6757
+ fz: "h1",
6758
+ children: value
6759
+ }
6760
+ ),
6761
+ /* @__PURE__ */ jsxs26(
6762
+ Text9,
6763
+ {
6764
+ mb: "2",
6765
+ c: diff > 0 ? "teal" : "red",
6766
+ fz: "h2",
6767
+ fw: 500,
6768
+ children: [
6769
+ /* @__PURE__ */ jsxs26("span", { children: [
6770
+ diff,
6771
+ "%"
6772
+ ] }),
6773
+ diff > 0 ? /* @__PURE__ */ jsx47(IconArrowUpRight, {}) : /* @__PURE__ */ jsx47(IconArrowDownRight, {})
6774
+ ]
6775
+ }
6776
+ )
6777
+ ]
6778
+ }
6779
+ ),
6780
+ /* @__PURE__ */ jsxs26(Group10, { justify: "space-between", children: [
6781
+ /* @__PURE__ */ jsx47(Text9, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
6782
+ /* @__PURE__ */ jsx47(
6783
+ Button13,
6784
+ {
6785
+ variant: "light",
6786
+ size: "xs",
6787
+ children: "Xem chi ti\u1EBFt"
6788
+ }
6789
+ )
6790
+ ] })
6791
+ ]
6792
+ },
6793
+ title3
6794
+ );
6795
+ }
6710
6796
 
6711
6797
  // src/components/DataDisplay/KeyLabel/MyKeyLabel.tsx
6712
6798
  import { Group as Group11, Text as Text10 } from "@mantine/core";
@@ -11438,6 +11524,7 @@ export {
11438
11524
  MyFlexRow,
11439
11525
  AQCard,
11440
11526
  MyIconText,
11527
+ MyInformationCard,
11441
11528
  MyKeyLabel,
11442
11529
  MyNumberFormatter,
11443
11530
  AQStatCard1,
@@ -2,8 +2,6 @@
2
2
  import axios from "axios";
3
3
  var baseAxios = axios.create({
4
4
  baseURL: process.env.NEXT_PUBLIC_API
5
- // server
6
- // baseURL: process.env.NEXT_PUBLIC_API_LOCAL, // local debug
7
5
  });
8
6
  baseAxios.interceptors.request.use(
9
7
  (config) => {
@@ -299,6 +299,16 @@ interface MyIconTextProps {
299
299
  }
300
300
  declare function MyIconText({ icon: Icon, text }: MyIconTextProps): react_jsx_runtime.JSX.Element;
301
301
 
302
+ interface MyInformationCardProps {
303
+ title: string;
304
+ value: string;
305
+ unit?: string;
306
+ description: string;
307
+ icons: ReactNode;
308
+ diff: number;
309
+ }
310
+ declare function MyInformationCard({ title, value, unit, description, icons, diff }: MyInformationCardProps): react_jsx_runtime.JSX.Element;
311
+
302
312
  interface I$4 {
303
313
  keyLabel?: string;
304
314
  label?: string;
@@ -495,4 +505,4 @@ interface IMySkeletonTable extends SkeletonProps {
495
505
  }
496
506
  declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
497
507
 
498
- export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, SpotlightTrigger, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
508
+ export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyIconText, MyInformationCard, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, SpotlightTrigger, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
@@ -44,6 +44,7 @@ import {
44
44
  MyFlexRow,
45
45
  MyHtmlWrapper,
46
46
  MyIconText,
47
+ MyInformationCard,
47
48
  MyKeyLabel,
48
49
  MyNumberFormatter,
49
50
  MyNumberInput,
@@ -65,8 +66,8 @@ import {
65
66
  useS_BasicAppShell,
66
67
  useS_ButtonImport,
67
68
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-AG6IAZ3Q.mjs";
69
- import "../chunk-7EHNYA4A.mjs";
69
+ } from "../chunk-DDG53CYP.mjs";
70
+ import "../chunk-KI5V7QJP.mjs";
70
71
  import "../chunk-Y3YGC5IH.mjs";
71
72
  import "../chunk-CJDXLINF.mjs";
72
73
  import "../chunk-7ZCOFATU.mjs";
@@ -117,6 +118,7 @@ export {
117
118
  MyFlexRow,
118
119
  MyHtmlWrapper,
119
120
  MyIconText,
121
+ MyInformationCard,
120
122
  MyKeyLabel,
121
123
  MyNumberFormatter,
122
124
  MyNumberInput,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useQ_AQ_GetAQModule
3
- } from "../chunk-7EHNYA4A.mjs";
3
+ } from "../chunk-KI5V7QJP.mjs";
4
4
  import "../chunk-7ZCOFATU.mjs";
5
5
  import "../chunk-FWCSY2DS.mjs";
6
6
 
@@ -65,8 +65,8 @@ import {
65
65
  useS_core60524,
66
66
  useS_core83092,
67
67
  utils_core83092_mergePage
68
- } from "../chunk-AG6IAZ3Q.mjs";
69
- import "../chunk-7EHNYA4A.mjs";
68
+ } from "../chunk-DDG53CYP.mjs";
69
+ import "../chunk-KI5V7QJP.mjs";
70
70
  import "../chunk-Y3YGC5IH.mjs";
71
71
  import "../chunk-CJDXLINF.mjs";
72
72
  import "../chunk-7ZCOFATU.mjs";
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.135",
25
+ "version": "0.1.136",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"