@appcorp/fusion-storybook 0.1.49 → 0.1.51

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.
@@ -15,7 +15,7 @@ import { useMemo } from "react";
15
15
  import { COMPONENT_TYPE } from "@appcorp/shadcn/components/enhanced-table";
16
16
  import { createGenericModulePage, } from "@react-pakistan/util-functions/factory/generic-component-factory";
17
17
  import { DATE_FORMATS, formatDate } from "@react-pakistan/util-functions";
18
- import { useExpenseModule, ExpenseProvider, EXPENSE_ACTION_TYPES, EXPENSE_DRAWER, } from "./context";
18
+ import { useExpenseModule, ExpenseProvider, EXPENSE_ACTION_TYPES, } from "./context";
19
19
  import { ExpenseFilter } from "./filter";
20
20
  import { ExpenseForm } from "./form";
21
21
  import { ExpenseMoreActions } from "./more-actions";
@@ -61,7 +61,7 @@ const createComponentInstances = () => ({
61
61
  moreActions: _jsx(ExpenseMoreActions, {}),
62
62
  view: _jsx(ExpenseView, {}),
63
63
  });
64
- const createExpenseConfig = ({ cancelLabel, dispatch, drawer, drawerTitle, labelActions, labelAmount, labelCategory, labelExpenseDate, labelId, labelStatus, labelTitle, labelVendorName, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
64
+ const createExpenseConfig = ({ cancelLabel, dispatch, drawerTitle, labelActions, labelAmount, labelCategory, labelExpenseDate, labelId, labelStatus, labelTitle, labelVendorName, saveLabel, searchPlaceholder, tableDescription, tableTitle, }) => {
65
65
  const components = createComponentInstances();
66
66
  return {
67
67
  moduleName: "expense",
@@ -85,7 +85,6 @@ const createExpenseConfig = ({ cancelLabel, dispatch, drawer, drawerTitle, label
85
85
  tableDescription,
86
86
  tableTitle,
87
87
  viewContent: components.view,
88
- size: drawer === EXPENSE_DRAWER.FORM_DRAWER ? "full" : "small",
89
88
  onClearFilters: () => {
90
89
  dispatch({ type: EXPENSE_ACTION_TYPES.RESET_FORM });
91
90
  },
@@ -20,12 +20,12 @@ export const StudentFeeFilter = () => {
20
20
  : filterEnabled
21
21
  ? "true"
22
22
  : "false";
23
- return (_jsx("div", { className: "space-y-4", children: _jsxs("div", { className: "grid grid-cols-1 gap-4", children: [_jsx(EnhancedRadio, { label: t("enabled"), name: "filterEnabled", value: filterEnabledValue, options: [
24
- { label: t("all"), value: "undefined" },
25
- { label: t("enabled"), value: "true" },
26
- { label: t("disabled"), value: "false" },
27
- ], onValueChange: (next) => {
28
- const parsed = next === "true" ? true : next === "false" ? false : undefined;
29
- handleChange("filterEnabled", parsed);
30
- } }), _jsx(EnhancedCombobox, { emptyText: t("noStatusFound"), id: "filterStatus", info: t("filterByPaymentStatus"), label: t("paymentStatus"), onValueChange: (value) => handleChange("filterStatus", value), options: PAYMENT_STATUS_OPTIONS, placeholder: t("allStatuses"), searchPlaceholder: t("searchStatus"), value: filterStatus || "" })] }) }));
23
+ return (_jsxs("div", { className: "space-y-4", children: [_jsx(EnhancedCombobox, { emptyText: t("noStatusFound"), id: "filterStatus", info: t("filterByPaymentStatus"), label: t("paymentStatus"), onValueChange: (value) => handleChange("filterStatus", value), options: PAYMENT_STATUS_OPTIONS, placeholder: t("allStatuses"), searchPlaceholder: t("searchStatus"), value: filterStatus || "" }), _jsx(EnhancedRadio, { label: t("enabled"), name: "filterEnabled", value: filterEnabledValue, options: [
24
+ { label: t("all"), value: "undefined" },
25
+ { label: t("enabled"), value: "true" },
26
+ { label: t("disabled"), value: "false" },
27
+ ], onValueChange: (next) => {
28
+ const parsed = next === "true" ? true : next === "false" ? false : undefined;
29
+ handleChange("filterEnabled", parsed);
30
+ } })] }));
31
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",