@appcorp/fusion-storybook 0.1.45 → 0.1.47

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.
@@ -762,6 +762,7 @@ export const useAdmissionModule = () => {
762
762
  handleOnClick: handleDelete,
763
763
  label: t("rowActionsDelete"),
764
764
  order: 3,
765
+ variant: "destructive",
765
766
  },
766
767
  {
767
768
  enabled: true,
@@ -19,7 +19,7 @@ import { useTranslations } from "next-intl";
19
19
  import { formatValue } from "../../utils/format-value";
20
20
  import { formatDate, DATE_FORMATS } from "@react-pakistan/util-functions";
21
21
  import { getCachedWorkspaceSync } from "../workspace/cache";
22
- import { ADMISSION_STATUS } from "@/type";
22
+ import { ADMISSION_STATUS } from "../../type";
23
23
  export const AdmissionView = () => {
24
24
  var _a, _b;
25
25
  const { state, handleAnalyze } = useAdmissionModule();
@@ -383,6 +383,7 @@ export const useClassModule = () => {
383
383
  icon: Trash2,
384
384
  label: t("rowActionsDelete"),
385
385
  order: 3,
386
+ variant: "destructive",
386
387
  },
387
388
  ], [handleView, handleEdit, handleDelete, t]);
388
389
  const applyFilters = useCallback(() => {
@@ -360,6 +360,7 @@ export const useDiscountCodeModule = () => {
360
360
  handleOnClick: handleDelete,
361
361
  label: t("rowActionsDelete"),
362
362
  order: 3,
363
+ variant: "destructive",
363
364
  },
364
365
  ], [handleView, handleEdit, handleDelete, t]);
365
366
  const applyFilters = useCallback(() => {
@@ -435,6 +435,7 @@ export const useExpenseModule = () => {
435
435
  handleOnClick: handleDelete,
436
436
  label: t("rowActionsDelete"),
437
437
  order: 3,
438
+ variant: "destructive",
438
439
  },
439
440
  ], [handleView, handleEdit, handleDelete, t]);
440
441
  // ============================================================================
@@ -366,6 +366,7 @@ export const useSectionModule = () => {
366
366
  icon: Trash2,
367
367
  label: t("rowActionsDelete"),
368
368
  order: 3,
369
+ variant: "destructive",
369
370
  },
370
371
  ], [handleView, handleEdit, handleDelete, t]);
371
372
  const applyFilters = useCallback(() => {
@@ -636,6 +636,7 @@ export const useStudentFeeModule = () => {
636
636
  handleOnClick: handleDelete,
637
637
  label: t("rowActionsDelete"),
638
638
  order: 3,
639
+ variant: "destructive",
639
640
  },
640
641
  ], [handleView, handleEdit, handleDelete, t]);
641
642
  // ============================================================================
@@ -534,6 +534,7 @@ export const useStudentProfileModule = () => {
534
534
  handleOnClick: (row) => handleDelete(row),
535
535
  label: t("rowActionsDelete"),
536
536
  order: 3,
537
+ variant: "destructive",
537
538
  },
538
539
  {
539
540
  enabled: (row) => (row === null || row === void 0 ? void 0 : row.status) === STUDENT_STATUS.ACTIVE,
@@ -389,6 +389,7 @@ export const useSubjectModule = () => {
389
389
  label: t("rowActionsDelete"),
390
390
  order: 3,
391
391
  icon: Trash2,
392
+ variant: "destructive",
392
393
  },
393
394
  ], [handleView, handleEdit, handleDelete, t]);
394
395
  const applyFilters = useCallback(() => {
@@ -412,6 +412,7 @@ export const useTeacherModule = () => {
412
412
  icon: Trash2,
413
413
  label: t("rowActionsDelete"),
414
414
  order: 3,
415
+ variant: "destructive",
415
416
  },
416
417
  ], [handleView, handleEdit, handleDelete, t]);
417
418
  // ============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",