@hed-hog/contact 0.0.302 → 0.0.303

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.
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import { EmptyState } from '@/components/entity-list';
3
4
  import {
4
5
  AlertDialog,
5
6
  AlertDialogAction,
@@ -810,25 +811,15 @@ export function LeadProposalsTab({
810
811
  {t('proposals.loading')}
811
812
  </div>
812
813
  ) : proposals.length === 0 ? (
813
- <Card className="border-dashed shadow-none">
814
- <CardHeader className="space-y-2">
815
- <div className="flex size-10 items-center justify-center rounded-xl bg-muted text-muted-foreground">
816
- <FileText className="size-5" />
817
- </div>
818
- <CardTitle className="text-base">
819
- {t('proposals.emptyTitle')}
820
- </CardTitle>
821
- <CardDescription>
822
- {t('proposals.emptyDescription')}
823
- </CardDescription>
824
- </CardHeader>
825
- <CardContent>
826
- <Button size="sm" className="gap-2" onClick={openCreateSheet}>
827
- <Plus className="size-4" />
828
- {t('proposals.emptyAction')}
829
- </Button>
830
- </CardContent>
831
- </Card>
814
+ <EmptyState
815
+ className="min-h-60"
816
+ icon={<FileText className="size-5" />}
817
+ title={t('proposals.emptyTitle')}
818
+ description={t('proposals.emptyDescription')}
819
+ actionLabel={t('proposals.emptyAction')}
820
+ actionIcon={<Plus className="mr-2 size-4" />}
821
+ onAction={openCreateSheet}
822
+ />
832
823
  ) : (
833
824
  <div className="grid gap-4 xl:grid-cols-[minmax(0,340px)_minmax(0,1fr)]">
834
825
  <Card className="min-w-0 border-border/60 shadow-sm">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/contact",
3
- "version": "0.0.302",
3
+ "version": "0.0.303",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -10,10 +10,10 @@
10
10
  "@nestjs/jwt": "^11",
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api-prisma": "0.0.6",
13
+ "@hed-hog/core": "0.0.303",
13
14
  "@hed-hog/api-locale": "0.0.14",
14
15
  "@hed-hog/api-mail": "0.0.9",
15
- "@hed-hog/core": "0.0.302",
16
- "@hed-hog/address": "0.0.302",
16
+ "@hed-hog/address": "0.0.303",
17
17
  "@hed-hog/api": "0.0.6",
18
18
  "@hed-hog/api-pagination": "0.0.7"
19
19
  },