@appcorp/fusion-storybook 0.1.9 → 0.1.10
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/base-modules/admission/page.js +2 -20
- package/i18n/request.d.ts +2 -0
- package/i18n/request.js +9 -0
- package/package.json +14 -2
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -40,24 +40,6 @@ const tableBodyCols = [
|
|
|
40
40
|
{ componentType: COMPONENT_TYPE.BOOLEAN, key: "enabled" },
|
|
41
41
|
{ componentType: COMPONENT_TYPE.ACTIONS },
|
|
42
42
|
];
|
|
43
|
-
// const tableColumns = [
|
|
44
|
-
// { label: "id", width: "5%" },
|
|
45
|
-
// { label: "firstName", width: "15%" },
|
|
46
|
-
// { label: "lastName", width: "15%" },
|
|
47
|
-
// { label: "registrationCode", width: "20%" },
|
|
48
|
-
// { label: "class", width: "20%" },
|
|
49
|
-
// { label: "status", width: "10%" },
|
|
50
|
-
// { label: "enabled", width: "10%" },
|
|
51
|
-
// { label: "actions", width: "5%" },
|
|
52
|
-
// ] as const;
|
|
53
|
-
// ============================================================================
|
|
54
|
-
// TRANSLATED COLUMNS HELPER
|
|
55
|
-
// ============================================================================
|
|
56
|
-
// const getTranslatedColumns = (t: (key: string) => string) =>
|
|
57
|
-
// tableColumns.map((col) => ({
|
|
58
|
-
// ...col,
|
|
59
|
-
// label: t(col.label),
|
|
60
|
-
// }));
|
|
61
43
|
// ============================================================================
|
|
62
44
|
// COMPONENT FACTORY (creates JSX elements when config is created, not during render)
|
|
63
45
|
// ============================================================================
|
|
@@ -113,7 +95,7 @@ const GenericAdmissionPage = createGenericModulePage({
|
|
|
113
95
|
size: "small",
|
|
114
96
|
tableColumns: [],
|
|
115
97
|
tableDescription: "",
|
|
116
|
-
tableTitle: "",
|
|
98
|
+
tableTitle: "ww",
|
|
117
99
|
viewContent: _jsx(AdmissionView, {}),
|
|
118
100
|
});
|
|
119
101
|
// ============================================================================
|
|
@@ -131,6 +113,6 @@ const AdmissionPageInner = (props) => {
|
|
|
131
113
|
if (!hasPermission) {
|
|
132
114
|
return _jsx(RbacNoAccess, { moduleName: "Admission" });
|
|
133
115
|
}
|
|
134
|
-
return (_jsx("div", { className: "p-4", children: _jsx(GenericAdmissionPage, { config: admissionConfig, context: context, tableBodyCols: tableBodyCols }) }));
|
|
116
|
+
return (_jsx("div", { className: "p-4", children: _jsx(GenericAdmissionPage, { overrideConfig: admissionConfig, config: admissionConfig, context: context, tableBodyCols: tableBodyCols }) }));
|
|
135
117
|
};
|
|
136
118
|
export const AdmissionPage = (props) => (_jsx(AdmissionProvider, { children: _jsx(AdmissionPageInner, Object.assign({}, props)) }));
|
package/i18n/request.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getRequestConfig } from "next-intl/server";
|
|
2
|
+
export default getRequestConfig(async () => {
|
|
3
|
+
// Static for now, we'll change this later
|
|
4
|
+
const locale = "en";
|
|
5
|
+
return {
|
|
6
|
+
locale,
|
|
7
|
+
messages: (await import(`../../messages/${locale}.json`)).default,
|
|
8
|
+
};
|
|
9
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/fusion-storybook",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build-storybook": "storybook build",
|
|
6
6
|
"build:next": "next build",
|
|
@@ -45,19 +45,25 @@
|
|
|
45
45
|
"@pdfme/generator": "^6.0.6",
|
|
46
46
|
"@pdfme/schemas": "^6.0.6",
|
|
47
47
|
"@playwright/test": "^1.59.1",
|
|
48
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
48
49
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
49
50
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
51
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
50
52
|
"@radix-ui/react-label": "^2.1.8",
|
|
53
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
54
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
55
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
51
56
|
"@radix-ui/react-separator": "^1.1.8",
|
|
52
57
|
"@radix-ui/react-slot": "^1.2.4",
|
|
53
58
|
"@radix-ui/react-toast": "^1.2.15",
|
|
54
|
-
"@react-pakistan/util-functions": "^1.25.
|
|
59
|
+
"@react-pakistan/util-functions": "^1.25.64",
|
|
55
60
|
"@storybook/addon-a11y": "^10.3.4",
|
|
56
61
|
"@storybook/addon-docs": "^10.3.4",
|
|
57
62
|
"@storybook/addon-onboarding": "^10.3.4",
|
|
58
63
|
"@storybook/addon-vitest": "^10.3.4",
|
|
59
64
|
"@storybook/nextjs-vite": "^10.3.4",
|
|
60
65
|
"@supabase/supabase-js": "^2.103.0",
|
|
66
|
+
"@tailwindcss/forms": "^0.5.11",
|
|
61
67
|
"@tailwindcss/postcss": "^4",
|
|
62
68
|
"@testing-library/jest-dom": "^6.9.1",
|
|
63
69
|
"@testing-library/react": "^16.3.2",
|
|
@@ -70,6 +76,7 @@
|
|
|
70
76
|
"@vitest/coverage-v8": "^4.1.2",
|
|
71
77
|
"class-variance-authority": "^0.7.1",
|
|
72
78
|
"clsx": "^2.1.1",
|
|
79
|
+
"cmdk": "^1.1.1",
|
|
73
80
|
"eslint": "^9",
|
|
74
81
|
"eslint-config-next": "16.2.2",
|
|
75
82
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -77,22 +84,27 @@
|
|
|
77
84
|
"husky": "^9.1.7",
|
|
78
85
|
"jest": "^30.3.0",
|
|
79
86
|
"jest-environment-jsdom": "^30.3.0",
|
|
87
|
+
"libphonenumber-js": "^1.12.41",
|
|
80
88
|
"lint-staged": "^16.4.0",
|
|
81
89
|
"lucide-react": "^1.8.0",
|
|
82
90
|
"next": "^16.2.3",
|
|
83
91
|
"next-intl": "^4.9.1",
|
|
92
|
+
"next-themes": "^0.4.6",
|
|
84
93
|
"playwright": "^1.59.1",
|
|
85
94
|
"prettier": "^3.8.1",
|
|
86
95
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
87
96
|
"react": "^19.2.5",
|
|
88
97
|
"react-dom": "^19.2.5",
|
|
89
98
|
"rimraf": "^6.1.3",
|
|
99
|
+
"sonner": "^2.0.7",
|
|
90
100
|
"storybook": "^10.3.4",
|
|
91
101
|
"tailwind-merge": "^3.5.0",
|
|
92
102
|
"tailwindcss": "^4",
|
|
93
103
|
"ts-jest": "^29.4.9",
|
|
104
|
+
"tw-animate-css": "^1.4.0",
|
|
94
105
|
"typescript": "^5",
|
|
95
106
|
"uuid": "^13.0.0",
|
|
107
|
+
"vaul": "^1.1.2",
|
|
96
108
|
"vite": "^8.0.5",
|
|
97
109
|
"vitest": "^4.1.2"
|
|
98
110
|
},
|