@appcorp/stellar-solutions-modules 0.1.58 → 0.1.60

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.
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * Naming Convention: Descriptive names with clear purpose
14
14
  */
15
- import { VISTA_TABLE_CELL_TYPE } from "@appcorp/app-corp-vista/type/vista-table-type";
15
+ import { COMPONENT_TYPE } from "@appcorp/shadcn/components/enhanced-table";
16
16
  /**
17
17
  * Default page limit for pagination
18
18
  */
@@ -29,7 +29,7 @@ export declare const BANK_API_ROUTES: {
29
29
  * Table column definitions for bank listing
30
30
  */
31
31
  export declare const tableBodyCols: {
32
- componentType: VISTA_TABLE_CELL_TYPE;
32
+ componentType: COMPONENT_TYPE;
33
33
  key: string;
34
34
  }[];
35
35
  /**
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.toastErrors = exports.tableBodyCols = exports.BANK_API_ROUTES = exports.pageLimit = void 0;
18
- var vista_table_type_1 = require("@appcorp/app-corp-vista/type/vista-table-type");
18
+ var enhanced_table_1 = require("@appcorp/shadcn/components/enhanced-table");
19
19
  // ============================================================================
20
20
  // PAGE CONFIGURATION
21
21
  // ============================================================================
@@ -42,43 +42,43 @@ exports.BANK_API_ROUTES = {
42
42
  */
43
43
  exports.tableBodyCols = [
44
44
  {
45
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ID,
45
+ componentType: enhanced_table_1.COMPONENT_TYPE.ID,
46
46
  key: "id",
47
47
  },
48
48
  {
49
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOLD_TEXT,
49
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOLD_TEXT,
50
50
  key: "bankName",
51
51
  },
52
52
  {
53
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
53
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
54
54
  key: "bankAddress",
55
55
  },
56
56
  {
57
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
57
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
58
58
  key: "accountTitle",
59
59
  },
60
60
  {
61
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
61
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
62
62
  key: "accountNumber",
63
63
  },
64
64
  {
65
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
65
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
66
66
  key: "iban",
67
67
  },
68
68
  {
69
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
69
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
70
70
  key: "swiftCode",
71
71
  },
72
72
  {
73
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
73
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
74
74
  key: "enabled",
75
75
  },
76
76
  {
77
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
77
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
78
78
  key: "isDefault",
79
79
  },
80
80
  {
81
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS,
81
+ componentType: enhanced_table_1.COMPONENT_TYPE.ACTIONS,
82
82
  key: "action",
83
83
  },
84
84
  ];
@@ -61,7 +61,7 @@ var BankDrawer = function (_a) {
61
61
  return (react_1.default.createElement(drawer_1.Drawer, { open: isDrawerOpen, onOpenChange: function (open) { return !open && closeDrawer(); }, direction: drawerDirection },
62
62
  react_1.default.createElement(drawer_1.DrawerContent, { className: "h-full ".concat(DRAWER_WIDTH, " ").concat(isRTL ? "rtl" : "ltr"), dir: isRTL ? "rtl" : "ltr" },
63
63
  react_1.default.createElement(drawer_1.DrawerHeader, { className: "flex-row items-center justify-between border-b pb-4 ".concat(isRTL ? "flex-row-reverse" : "") },
64
- react_1.default.createElement(drawer_1.DrawerTitle, { className: "text-xl font-semibold flex items-center ".concat(isRTL ? "flex-row-reverse gap-2" : "gap-2") }, t("drawerTitleProduct")),
64
+ react_1.default.createElement(drawer_1.DrawerTitle, { className: "text-xl font-semibold flex items-center ".concat(isRTL ? "flex-row-reverse gap-2" : "gap-2") }, t("drawerTitleBank")),
65
65
  react_1.default.createElement(drawer_1.DrawerClose, { asChild: true },
66
66
  react_1.default.createElement(button_1.Button, { variant: "ghost", size: "icon", className: "h-8 w-8" },
67
67
  react_1.default.createElement(lucide_react_1.X, { className: "h-4 w-4" }),
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * Naming Convention: Descriptive names with clear purpose
14
14
  */
15
- import { VISTA_TABLE_CELL_TYPE } from "@appcorp/app-corp-vista/type/vista-table-type";
15
+ import { COMPONENT_TYPE } from "@appcorp/shadcn/components/enhanced-table";
16
16
  /**
17
17
  * Default page limit for pagination
18
18
  */
@@ -29,6 +29,6 @@ export declare const BRANCH_API_ROUTES: {
29
29
  * Table column definitions for branch listing
30
30
  */
31
31
  export declare const tableBodyCols: {
32
- componentType: VISTA_TABLE_CELL_TYPE;
32
+ componentType: COMPONENT_TYPE;
33
33
  key: string;
34
34
  }[];
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.tableBodyCols = exports.BRANCH_API_ROUTES = exports.pageLimit = void 0;
18
- var vista_table_type_1 = require("@appcorp/app-corp-vista/type/vista-table-type");
18
+ var enhanced_table_1 = require("@appcorp/shadcn/components/enhanced-table");
19
19
  // ============================================================================
20
20
  // PAGE CONFIGURATION
21
21
  // ============================================================================
@@ -42,43 +42,43 @@ exports.BRANCH_API_ROUTES = {
42
42
  */
43
43
  exports.tableBodyCols = [
44
44
  {
45
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ID,
45
+ componentType: enhanced_table_1.COMPONENT_TYPE.ID,
46
46
  key: "id",
47
47
  },
48
48
  {
49
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOLD_TEXT,
49
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOLD_TEXT,
50
50
  key: "branchName",
51
51
  },
52
52
  {
53
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
53
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
54
54
  key: "branchAddress",
55
55
  },
56
56
  {
57
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
57
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
58
58
  key: "personName",
59
59
  },
60
60
  {
61
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
61
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
62
62
  key: "personPhone",
63
63
  },
64
64
  {
65
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
65
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
66
66
  key: "personEmail",
67
67
  },
68
68
  {
69
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
69
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
70
70
  key: "enabled",
71
71
  },
72
72
  {
73
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
73
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
74
74
  key: "isDefault",
75
75
  },
76
76
  {
77
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.CREATED_UPDATED_AT,
77
+ componentType: enhanced_table_1.COMPONENT_TYPE.CREATED_UPDATED_AT,
78
78
  key: "createdAt",
79
79
  },
80
80
  {
81
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS,
81
+ componentType: enhanced_table_1.COMPONENT_TYPE.ACTIONS,
82
82
  key: "action",
83
83
  },
84
84
  ];
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * Naming Convention: Descriptive names with clear purpose
13
13
  */
14
- import { VISTA_TABLE_CELL_TYPE } from "@appcorp/app-corp-vista/type/vista-table-type";
14
+ import { COMPONENT_TYPE } from "@appcorp/shadcn/components/enhanced-table";
15
15
  /**
16
16
  * Default page limit for pagination
17
17
  */
@@ -28,6 +28,6 @@ export declare const CURRENCY_API_ROUTES: {
28
28
  * Table column definitions for currency listing
29
29
  */
30
30
  export declare const tableBodyCols: {
31
- componentType: VISTA_TABLE_CELL_TYPE;
31
+ componentType: COMPONENT_TYPE;
32
32
  key: string;
33
33
  }[];
@@ -14,7 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.tableBodyCols = exports.CURRENCY_API_ROUTES = exports.pageLimit = void 0;
17
- var vista_table_type_1 = require("@appcorp/app-corp-vista/type/vista-table-type");
17
+ var enhanced_table_1 = require("@appcorp/shadcn/components/enhanced-table");
18
18
  // ============================================================================
19
19
  // PAGE CONFIGURATION
20
20
  // ============================================================================
@@ -41,31 +41,31 @@ exports.CURRENCY_API_ROUTES = {
41
41
  */
42
42
  exports.tableBodyCols = [
43
43
  {
44
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ID,
44
+ componentType: enhanced_table_1.COMPONENT_TYPE.ID,
45
45
  key: "id",
46
46
  },
47
47
  {
48
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOLD_TEXT,
48
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOLD_TEXT,
49
49
  key: "label",
50
50
  },
51
51
  {
52
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
52
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
53
53
  key: "code",
54
54
  },
55
55
  {
56
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
56
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
57
57
  key: "enabled",
58
58
  },
59
59
  {
60
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
60
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
61
61
  key: "isDefault",
62
62
  },
63
63
  {
64
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.CREATED_UPDATED_AT,
64
+ componentType: enhanced_table_1.COMPONENT_TYPE.CREATED_UPDATED_AT,
65
65
  key: "createdAt",
66
66
  },
67
67
  {
68
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS,
68
+ componentType: enhanced_table_1.COMPONENT_TYPE.ACTIONS,
69
69
  key: "action",
70
70
  },
71
71
  ];
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * Naming Convention: Descriptive names with clear purpose
14
14
  */
15
- import { VISTA_TABLE_CELL_TYPE } from "@appcorp/app-corp-vista/type/vista-table-type";
15
+ import { COMPONENT_TYPE } from "@appcorp/shadcn/components/enhanced-table";
16
16
  /**
17
17
  * Default page limit for pagination
18
18
  */
@@ -29,7 +29,7 @@ export declare const PAYMENT_MODE_API_ROUTES: {
29
29
  * Table column definitions for payment mode listing
30
30
  */
31
31
  export declare const tableBodyCols: {
32
- componentType: VISTA_TABLE_CELL_TYPE;
32
+ componentType: COMPONENT_TYPE;
33
33
  key: string;
34
34
  }[];
35
35
  /**
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.toastErrors = exports.tableBodyCols = exports.PAYMENT_MODE_API_ROUTES = exports.pageLimit = void 0;
18
- var vista_table_type_1 = require("@appcorp/app-corp-vista/type/vista-table-type");
18
+ var enhanced_table_1 = require("@appcorp/shadcn/components/enhanced-table");
19
19
  // ============================================================================
20
20
  // PAGE CONFIGURATION
21
21
  // ============================================================================
@@ -42,27 +42,27 @@ exports.PAYMENT_MODE_API_ROUTES = {
42
42
  */
43
43
  exports.tableBodyCols = [
44
44
  {
45
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ID,
45
+ componentType: enhanced_table_1.COMPONENT_TYPE.ID,
46
46
  key: "id",
47
47
  },
48
48
  {
49
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOLD_TEXT,
49
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOLD_TEXT,
50
50
  key: "label",
51
51
  },
52
52
  {
53
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
53
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
54
54
  key: "enabled",
55
55
  },
56
56
  {
57
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
57
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
58
58
  key: "isDefault",
59
59
  },
60
60
  {
61
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.CREATED_UPDATED_AT,
61
+ componentType: enhanced_table_1.COMPONENT_TYPE.CREATED_UPDATED_AT,
62
62
  key: "createdAt",
63
63
  },
64
64
  {
65
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS,
65
+ componentType: enhanced_table_1.COMPONENT_TYPE.ACTIONS,
66
66
  key: "action",
67
67
  },
68
68
  ];
@@ -48,12 +48,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.usePreferenceStateContext = exports.PreferenceStateContextProvider = exports.PreferenceStateContext = void 0;
49
49
  var react_1 = __importStar(require("react"));
50
50
  var util_functions_1 = require("@react-pakistan/util-functions");
51
- var vista_notification_type_1 = require("@appcorp/app-corp-vista/type/vista-notification-type");
52
51
  var next_intl_1 = require("next-intl");
53
52
  var actions_1 = require("./actions");
54
53
  var constants_1 = require("./constants");
55
54
  var reducer_1 = require("./reducer");
56
- var generate_toast_1 = require("@appcorp/app-corp-vista/utils/generate-toast");
55
+ var toast_utils_1 = require("@appcorp/shadcn/lib/toast-utils");
57
56
  var usePreferenceState = function () {
58
57
  var _a = (0, react_1.useReducer)(reducer_1.preferenceReducer, reducer_1.initialPreferenceState), state = _a[0], dispatch = _a[1];
59
58
  var t = (0, next_intl_1.useTranslations)("preferences");
@@ -65,8 +64,8 @@ var usePreferenceState = function () {
65
64
  var listCallback = function (_a) {
66
65
  var data = _a.data, error = _a.error;
67
66
  if (error) {
68
- (0, generate_toast_1.generateToast)({
69
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.ERROR,
67
+ (0, toast_utils_1.generateThemeToast)({
68
+ variant: toast_utils_1.TOAST_VARIANT.ERROR,
70
69
  description: tCommon("messagesNetworkError"),
71
70
  });
72
71
  }
@@ -95,15 +94,15 @@ var usePreferenceState = function () {
95
94
  var updateCallback = function (_a) {
96
95
  var data = _a.data, error = _a.error;
97
96
  if (error) {
98
- (0, generate_toast_1.generateToast)({
97
+ (0, toast_utils_1.generateThemeToast)({
99
98
  description: tCommon("messagesNetworkError"),
100
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.ERROR,
99
+ variant: toast_utils_1.TOAST_VARIANT.ERROR,
101
100
  });
102
101
  }
103
102
  if (data) {
104
- (0, generate_toast_1.generateToast)({
103
+ (0, toast_utils_1.generateThemeToast)({
105
104
  description: t("messagesPreferenceUpdated"),
106
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.SUCCESS,
105
+ variant: toast_utils_1.TOAST_VARIANT.SUCCESS,
107
106
  });
108
107
  dispatch({
109
108
  type: actions_1.PREFERENCE_ACTION_TYPES.RESET_FORM,
@@ -124,9 +123,9 @@ var usePreferenceState = function () {
124
123
  var byIdCallback = function (_a) {
125
124
  var data = _a.data, error = _a.error;
126
125
  if (error) {
127
- (0, generate_toast_1.generateToast)({
126
+ (0, toast_utils_1.generateThemeToast)({
128
127
  description: tCommon("messagesNetworkError"),
129
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.ERROR,
128
+ variant: toast_utils_1.TOAST_VARIANT.ERROR,
130
129
  });
131
130
  }
132
131
  if (data) {
@@ -146,15 +145,15 @@ var usePreferenceState = function () {
146
145
  var deleteCallback = function (_a) {
147
146
  var data = _a.data, error = _a.error;
148
147
  if (error) {
149
- (0, generate_toast_1.generateToast)({
148
+ (0, toast_utils_1.generateThemeToast)({
150
149
  description: tCommon("messagesNetworkError"),
151
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.ERROR,
150
+ variant: toast_utils_1.TOAST_VARIANT.ERROR,
152
151
  });
153
152
  }
154
153
  if (data) {
155
- (0, generate_toast_1.generateToast)({
154
+ (0, toast_utils_1.generateThemeToast)({
156
155
  description: t("messagesPreferenceDeleted"),
157
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.SUCCESS,
156
+ variant: toast_utils_1.TOAST_VARIANT.SUCCESS,
158
157
  });
159
158
  dispatch({
160
159
  type: actions_1.PREFERENCE_ACTION_TYPES.RESET_FORM,
@@ -187,8 +186,8 @@ var usePreferenceState = function () {
187
186
  var currencyListCallback = function (_a) {
188
187
  var data = _a.data, error = _a.error;
189
188
  if (error) {
190
- (0, generate_toast_1.generateToast)({
191
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.ERROR,
189
+ (0, toast_utils_1.generateThemeToast)({
190
+ variant: toast_utils_1.TOAST_VARIANT.ERROR,
192
191
  description: tCommon("messagesNetworkError"),
193
192
  });
194
193
  }
@@ -214,15 +213,15 @@ var usePreferenceState = function () {
214
213
  var currencyUpdateCallback = function (_a) {
215
214
  var data = _a.data, error = _a.error;
216
215
  if (error) {
217
- (0, generate_toast_1.generateToast)({
216
+ (0, toast_utils_1.generateThemeToast)({
218
217
  description: tCommon("messagesNetworkError"),
219
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.ERROR,
218
+ variant: toast_utils_1.TOAST_VARIANT.ERROR,
220
219
  });
221
220
  }
222
221
  if (data) {
223
- (0, generate_toast_1.generateToast)({
222
+ (0, toast_utils_1.generateThemeToast)({
224
223
  description: t("messagesPreferenceUpdated"),
225
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.SUCCESS,
224
+ variant: toast_utils_1.TOAST_VARIANT.SUCCESS,
226
225
  });
227
226
  dispatch({
228
227
  type: actions_1.PREFERENCE_ACTION_TYPES.SET_CURRENCY_UPDATE_ID,
@@ -240,9 +239,9 @@ var usePreferenceState = function () {
240
239
  var currencyByIdCallback = function (_a) {
241
240
  var data = _a.data, error = _a.error;
242
241
  if (error) {
243
- (0, generate_toast_1.generateToast)({
242
+ (0, toast_utils_1.generateThemeToast)({
244
243
  description: tCommon("messagesNetworkError"),
245
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.ERROR,
244
+ variant: toast_utils_1.TOAST_VARIANT.ERROR,
246
245
  });
247
246
  }
248
247
  if (data) {
@@ -262,15 +261,15 @@ var usePreferenceState = function () {
262
261
  var currencyDeleteCallback = function (_a) {
263
262
  var data = _a.data, error = _a.error;
264
263
  if (error) {
265
- (0, generate_toast_1.generateToast)({
264
+ (0, toast_utils_1.generateThemeToast)({
266
265
  description: tCommon("messagesNetworkError"),
267
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.ERROR,
266
+ variant: toast_utils_1.TOAST_VARIANT.ERROR,
268
267
  });
269
268
  }
270
269
  if (data) {
271
- (0, generate_toast_1.generateToast)({
270
+ (0, toast_utils_1.generateThemeToast)({
272
271
  description: t("messagesPreferenceDeleted"),
273
- variant: vista_notification_type_1.VISTA_NOTIFICATION_V1_VARIANT.SUCCESS,
272
+ variant: toast_utils_1.TOAST_VARIANT.SUCCESS,
274
273
  });
275
274
  dispatch({
276
275
  type: actions_1.PREFERENCE_ACTION_TYPES.RESET_FORM,
@@ -6,11 +6,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.PreferencesPage = void 0;
8
8
  var react_1 = __importDefault(require("react"));
9
- // import { usePreferenceStateContext } from "./context";
10
- var generate_toast_1 = require("@appcorp/app-corp-vista/utils/generate-toast");
9
+ var sonner_1 = require("@appcorp/shadcn/components/sonner");
11
10
  var PreferencesPage = function () {
12
11
  // const { headerTabs, activeTab } = usePreferenceStateContext();
13
12
  return (react_1.default.createElement(react_1.default.Fragment, null,
14
- react_1.default.createElement(generate_toast_1.VistaToaster, null)));
13
+ react_1.default.createElement(sonner_1.Toaster, null)));
15
14
  };
16
15
  exports.PreferencesPage = PreferencesPage;
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * Naming Convention: Descriptive names with clear purpose
14
14
  */
15
- import { VISTA_TABLE_CELL_TYPE } from "@appcorp/app-corp-vista/type/vista-table-type";
15
+ import { COMPONENT_TYPE } from "@appcorp/shadcn/components/enhanced-table";
16
16
  /**
17
17
  * Default page limit for pagination
18
18
  */
@@ -29,6 +29,6 @@ export declare const TAX_API_ROUTES: {
29
29
  * Table column definitions for tax listing
30
30
  */
31
31
  export declare const tableBodyCols: {
32
- componentType: VISTA_TABLE_CELL_TYPE;
32
+ componentType: COMPONENT_TYPE;
33
33
  key: string;
34
34
  }[];
@@ -15,7 +15,7 @@
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.tableBodyCols = exports.TAX_API_ROUTES = exports.pageLimit = void 0;
18
- var vista_table_type_1 = require("@appcorp/app-corp-vista/type/vista-table-type");
18
+ var enhanced_table_1 = require("@appcorp/shadcn/components/enhanced-table");
19
19
  // ============================================================================
20
20
  // PAGE CONFIGURATION
21
21
  // ============================================================================
@@ -42,35 +42,35 @@ exports.TAX_API_ROUTES = {
42
42
  */
43
43
  exports.tableBodyCols = [
44
44
  {
45
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ID,
45
+ componentType: enhanced_table_1.COMPONENT_TYPE.ID,
46
46
  key: "id",
47
47
  },
48
48
  {
49
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOLD_TEXT,
49
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOLD_TEXT,
50
50
  key: "taxName",
51
51
  },
52
52
  {
53
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
53
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
54
54
  key: "taxRate",
55
55
  },
56
56
  {
57
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
57
+ componentType: enhanced_table_1.COMPONENT_TYPE.TEXT,
58
58
  key: "description",
59
59
  },
60
60
  {
61
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
61
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
62
62
  key: "enabled",
63
63
  },
64
64
  {
65
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
65
+ componentType: enhanced_table_1.COMPONENT_TYPE.BOOLEAN,
66
66
  key: "isDefault",
67
67
  },
68
68
  {
69
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.CREATED_UPDATED_AT,
69
+ componentType: enhanced_table_1.COMPONENT_TYPE.CREATED_UPDATED_AT,
70
70
  key: "createdAt",
71
71
  },
72
72
  {
73
- componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS,
73
+ componentType: enhanced_table_1.COMPONENT_TYPE.ACTIONS,
74
74
  key: "action",
75
75
  },
76
76
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/stellar-solutions-modules",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "scripts": {
5
5
  "automate": "./automate.sh",
6
6
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib && cp yarn.lock lib",
@@ -16,11 +16,11 @@
16
16
  "publish:npm": "yarn build && cd lib/ && npm publish --access public && cd ..",
17
17
  "start": "next start",
18
18
  "upgrade": "ncu -u",
19
- "upgrade:own": "ncu -f '@appcorp/app-corp-vista, @react-pakistan/util-functions' -u"
19
+ "upgrade:own": "ncu -f '@appcorp/app-corp-vista, @appcorp/shadcn, @react-pakistan/util-functions' -u"
20
20
  },
21
21
  "devDependencies": {
22
- "@appcorp/app-corp-vista": "^0.3.47",
23
- "@appcorp/shadcn": "^1.0.23",
22
+ "@appcorp/app-corp-vista": "^0.3.48",
23
+ "@appcorp/shadcn": "^1.0.32",
24
24
  "@dnd-kit/core": "^6.3.1",
25
25
  "@dnd-kit/modifiers": "^9.0.0",
26
26
  "@eslint/eslintrc": "^3",
@@ -34,7 +34,7 @@
34
34
  "@radix-ui/react-separator": "^1.1.7",
35
35
  "@radix-ui/react-slot": "^1.2.3",
36
36
  "@radix-ui/react-switch": "^1.2.6",
37
- "@react-pakistan/util-functions": "^1.24.64",
37
+ "@react-pakistan/util-functions": "^1.24.78",
38
38
  "@supabase/supabase-js": "^2",
39
39
  "@tailwindcss/forms": "^0",
40
40
  "@tailwindcss/postcss": "^4",