warqadui 0.0.36 → 0.0.38

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/dist/index.d.mts CHANGED
@@ -577,7 +577,8 @@ declare const useA4StatementView: ({ url, v, delay, params, }?: {
577
577
  delay?: number;
578
578
  params?: Record<string, any>;
579
579
  }) => {
580
- A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, }: {
580
+ A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, }: {
581
+ tableTitle?: string;
581
582
  columns?: SimpleTableColumn<any>[];
582
583
  data?: any[];
583
584
  error?: string | null;
package/dist/index.d.ts CHANGED
@@ -577,7 +577,8 @@ declare const useA4StatementView: ({ url, v, delay, params, }?: {
577
577
  delay?: number;
578
578
  params?: Record<string, any>;
579
579
  }) => {
580
- A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, }: {
580
+ A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, }: {
581
+ tableTitle?: string;
581
582
  columns?: SimpleTableColumn<any>[];
582
583
  data?: any[];
583
584
  error?: string | null;
package/dist/index.js CHANGED
@@ -1119,7 +1119,16 @@ var useModal = (initialState = false) => {
1119
1119
  }, []);
1120
1120
  const ModalComponent = () => {
1121
1121
  if (!state?.type) return null;
1122
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Modal, { isOpen: true, onClose: close, title: state?.title, children: state?.content });
1122
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1123
+ Modal,
1124
+ {
1125
+ isOpen: true,
1126
+ onClose: close,
1127
+ title: state?.title,
1128
+ width: state?.width || 600,
1129
+ children: state?.content
1130
+ }
1131
+ );
1123
1132
  };
1124
1133
  return {
1125
1134
  isOpen,
@@ -4115,7 +4124,8 @@ var useA4StatementView = ({
4115
4124
  printable = true,
4116
4125
  rowPadding = "p-3",
4117
4126
  verticalLines = true,
4118
- headers
4127
+ headers,
4128
+ tableTitle = "Recent Transactions"
4119
4129
  }) => {
4120
4130
  const { store } = useWarqadConfig();
4121
4131
  const measureContainerRef = (0, import_react19.useRef)(null);
@@ -4278,7 +4288,7 @@ var useA4StatementView = ({
4278
4288
  HeaderEl,
4279
4289
  DisplayInfoGridEl,
4280
4290
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "grow w-full px-8 pb-8", children: [
4281
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "mb-4 border-b border-gray-200 dark:border-zinc-800 print:border-gray-200 pb-2 flex items-center gap-2 justify-between px-2 mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h3", { className: "text-sm font-bold text-gray-800 dark:text-gray-100 print:text-gray-800 uppercase tracking-wide shrink-0", children: "Recent Transactions" }) }),
4291
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "mb-4 border-b border-gray-200 dark:border-zinc-800 print:border-gray-200 pb-2 flex items-center gap-2 justify-between px-2 mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h3", { className: "text-sm font-bold text-gray-800 dark:text-gray-100 print:text-gray-800 uppercase tracking-wide shrink-0", children: tableTitle }) }),
4282
4292
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4283
4293
  SimpleTable,
4284
4294
  {
package/dist/index.mjs CHANGED
@@ -1039,7 +1039,16 @@ var useModal = (initialState = false) => {
1039
1039
  }, []);
1040
1040
  const ModalComponent = () => {
1041
1041
  if (!state?.type) return null;
1042
- return /* @__PURE__ */ jsx16(Modal, { isOpen: true, onClose: close, title: state?.title, children: state?.content });
1042
+ return /* @__PURE__ */ jsx16(
1043
+ Modal,
1044
+ {
1045
+ isOpen: true,
1046
+ onClose: close,
1047
+ title: state?.title,
1048
+ width: state?.width || 600,
1049
+ children: state?.content
1050
+ }
1051
+ );
1043
1052
  };
1044
1053
  return {
1045
1054
  isOpen,
@@ -4090,7 +4099,8 @@ var useA4StatementView = ({
4090
4099
  printable = true,
4091
4100
  rowPadding = "p-3",
4092
4101
  verticalLines = true,
4093
- headers
4102
+ headers,
4103
+ tableTitle = "Recent Transactions"
4094
4104
  }) => {
4095
4105
  const { store } = useWarqadConfig();
4096
4106
  const measureContainerRef = useRef6(null);
@@ -4253,7 +4263,7 @@ var useA4StatementView = ({
4253
4263
  HeaderEl,
4254
4264
  DisplayInfoGridEl,
4255
4265
  /* @__PURE__ */ jsxs20("div", { className: "grow w-full px-8 pb-8", children: [
4256
- /* @__PURE__ */ jsx28("div", { className: "mb-4 border-b border-gray-200 dark:border-zinc-800 print:border-gray-200 pb-2 flex items-center gap-2 justify-between px-2 mt-2", children: /* @__PURE__ */ jsx28("h3", { className: "text-sm font-bold text-gray-800 dark:text-gray-100 print:text-gray-800 uppercase tracking-wide shrink-0", children: "Recent Transactions" }) }),
4266
+ /* @__PURE__ */ jsx28("div", { className: "mb-4 border-b border-gray-200 dark:border-zinc-800 print:border-gray-200 pb-2 flex items-center gap-2 justify-between px-2 mt-2", children: /* @__PURE__ */ jsx28("h3", { className: "text-sm font-bold text-gray-800 dark:text-gray-100 print:text-gray-800 uppercase tracking-wide shrink-0", children: tableTitle }) }),
4257
4267
  /* @__PURE__ */ jsx28(
4258
4268
  SimpleTable,
4259
4269
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warqadui",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",