@appcorp/fusion-storybook 0.1.81 → 0.1.83

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.
@@ -27,7 +27,7 @@ export declare const SUBJECT_ACTION_TYPES: {
27
27
  disableSaveButton: boolean;
28
28
  drawer: string | null;
29
29
  code: string;
30
- description: string | null;
30
+ description: string;
31
31
  enabled: boolean;
32
32
  errors: Record<string, string>;
33
33
  filterEnabled: boolean | undefined;
@@ -43,7 +43,7 @@ export declare const SUBJECT_ACTION_TYPES: {
43
43
  disableSaveButton: boolean;
44
44
  drawer: string | null;
45
45
  code: string;
46
- description: string | null;
46
+ description: string;
47
47
  enabled: boolean;
48
48
  errors: Record<string, string>;
49
49
  filterEnabled: boolean | undefined;
@@ -61,7 +61,7 @@ export declare const SUBJECT_ACTION_TYPES: {
61
61
  disableSaveButton: boolean;
62
62
  drawer: string | null;
63
63
  code: string;
64
- description: string | null;
64
+ description: string;
65
65
  enabled: boolean;
66
66
  errors: Record<string, string>;
67
67
  filterEnabled: boolean | undefined;
@@ -77,7 +77,7 @@ export declare const SUBJECT_ACTION_TYPES: {
77
77
  disableSaveButton: boolean;
78
78
  drawer: string | null;
79
79
  code: string;
80
- description: string | null;
80
+ description: string;
81
81
  enabled: boolean;
82
82
  errors: Record<string, string>;
83
83
  filterEnabled: boolean | undefined;
@@ -93,7 +93,7 @@ export declare const SUBJECT_ACTION_TYPES: {
93
93
  disableSaveButton: boolean;
94
94
  drawer: string | null;
95
95
  code: string;
96
- description: string | null;
96
+ description: string;
97
97
  enabled: boolean;
98
98
  errors: Record<string, string>;
99
99
  filterEnabled: boolean | undefined;
@@ -138,7 +138,7 @@ export declare const useSubjectModule: () => {
138
138
  disableSaveButton: boolean;
139
139
  drawer: string | null;
140
140
  code: string;
141
- description: string | null;
141
+ description: string;
142
142
  enabled: boolean;
143
143
  errors: Record<string, string>;
144
144
  filterEnabled: boolean | undefined;
@@ -60,7 +60,7 @@ const subjectConfig = {
60
60
  drawer: null,
61
61
  // Form State
62
62
  code: "",
63
- description: null,
63
+ description: "",
64
64
  enabled: true,
65
65
  errors: {},
66
66
  filterEnabled: undefined,
@@ -14,5 +14,5 @@ export const SubjectForm = () => {
14
14
  const { state, handleChange } = useSubjectModule();
15
15
  const { code, description, enabled, errors, name } = state;
16
16
  const t = useTranslations("subject");
17
- return (_jsx("div", { className: "space-y-4", children: _jsxs("div", { className: "space-y-4", children: [_jsx("h3", { className: "text-lg font-semibold", children: t("subjectInformation") }), _jsxs("div", { className: "grid grid-cols-1 gap-4", children: [_jsx(EnhancedInput, { error: errors.name, id: "name", info: t("subjectNameInfo"), label: t("subjectName"), onChange: (e) => handleChange("name", e.target.value), placeholder: t("subjectNamePlaceholder"), required: true, value: name }), _jsx(EnhancedInput, { error: errors.code, id: "code", info: t("codeInfo"), label: t("subjectCode"), onChange: (e) => handleChange("code", e.target.value), placeholder: t("codePlaceholder"), required: true, value: code }), _jsx(EnhancedTextarea, { error: errors.description, id: "description", info: t("descriptionInfo"), label: t("description"), onChange: (e) => handleChange("description", e.target.value || null), placeholder: t("descriptionPlaceholder"), value: description !== null && description !== void 0 ? description : "" }), _jsx(EnhancedCheckbox, { label: t("activeSubject"), defaultChecked: enabled, onCheckedChange: (checked) => handleChange("enabled", checked), info: t("toggleToEnableOrDisableSubject") })] })] }) }));
17
+ return (_jsxs("div", { className: "grid grid-cols-1 gap-4", children: [_jsx(EnhancedInput, { error: errors.name, id: "name", info: t("subjectNameInfo"), label: t("subjectName"), onChange: (e) => handleChange("name", e.target.value), placeholder: t("subjectNamePlaceholder"), required: true, value: name }), _jsx(EnhancedInput, { error: errors.code, id: "code", info: t("codeInfo"), label: t("subjectCode"), onChange: (e) => handleChange("code", e.target.value), placeholder: t("codePlaceholder"), required: true, value: code }), _jsx(EnhancedTextarea, { error: errors.description, id: "description", info: t("descriptionInfo"), label: t("description"), onChange: (e) => handleChange("description", e.target.value || null), placeholder: t("descriptionPlaceholder"), value: description !== null && description !== void 0 ? description : "" }), _jsx(EnhancedCheckbox, { label: t("activeSubject"), defaultChecked: enabled, onCheckedChange: (checked) => handleChange("enabled", checked), info: t("toggleToEnableOrDisableSubject") })] }));
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.1.81",
3
+ "version": "0.1.83",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",