Skip to content

Commit 0ede27b

Browse files
committed
Revert "feat: add alert component"
This reverts commit ea67c26.
1 parent e21b57d commit 0ede27b

5 files changed

Lines changed: 0 additions & 197 deletions

File tree

examples/nextjs-app/src/modules/pages/primitives-demo.tsx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ import {
1111
Menu,
1212
Table,
1313
Tabs,
14-
Alert,
15-
AlertTitle,
16-
AlertDescription,
1714
} from "@tailor-platform/app-shell";
1815
import {
1916
LayoutDashboard as LayoutDashboardIcon,
@@ -508,31 +505,6 @@ export const primitiveComponentsDemoResource = defineResource({
508505
</Table.Root>
509506
</Card.Content>
510507
</Card.Root>
511-
512-
{/* Alert */}
513-
<Card.Root>
514-
<Card.Header title="Alert" />
515-
<Card.Content>
516-
<div style={{ display: "flex", flexDirection: "column", gap: "1rem" }}>
517-
<Alert>
518-
<AlertTitle>Default Alert</AlertTitle>
519-
<AlertDescription>This is a default alert message.</AlertDescription>
520-
</Alert>
521-
<Alert variant="success">
522-
<AlertTitle>Success</AlertTitle>
523-
<AlertDescription>Operation completed successfully.</AlertDescription>
524-
</Alert>
525-
<Alert variant="error">
526-
<AlertTitle>Error</AlertTitle>
527-
<AlertDescription>Something went wrong. Please try again.</AlertDescription>
528-
</Alert>
529-
<Alert variant="neutral">
530-
<AlertTitle>Information</AlertTitle>
531-
<AlertDescription>This is a neutral informational message.</AlertDescription>
532-
</Alert>
533-
</div>
534-
</Card.Content>
535-
</Card.Root>
536508
</Layout.Column>
537509
</Layout>
538510
);

packages/core/__snapshots__/src__components__alert.test.tsx.snap

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/core/src/components/alert.test.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.

packages/core/src/components/alert.tsx

Lines changed: 0 additions & 80 deletions
This file was deleted.

packages/core/src/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ export { useToast } from "./hooks/use-toast";
8383
export { useOverrideBreadcrumb } from "./hooks/use-override-breadcrumb";
8484

8585
// Components
86-
export {
87-
Alert,
88-
AlertTitle,
89-
AlertDescription,
90-
alertVariants,
91-
type AlertProps,
92-
} from "./components/alert";
9386
export { Badge, badgeVariants, type BadgeProps } from "./components/badge";
9487
export type { BadgeVariant, BadgeOptions } from "./components/badge-list";
9588
export { DescriptionCard, type DescriptionCardProps } from "./components/description-card";

0 commit comments

Comments
 (0)