Skip to content

Commit 55e5807

Browse files
fix: mark old components deprecated and delete old doc (#230)
1 parent 27209f3 commit 55e5807

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

apps/www/content/primitives/components/togglegroup.mdx

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

apps/www/utils/routes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export const primitivesRoutes = [
102102
{ title: "Text Field", slug: "docs/primitives/components/textfield" },
103103
{ title: "Tooltip", slug: "docs/primitives/components/tooltip", newBadge: true },
104104
{ title: "Text Area", slug: "docs/primitives/components/textArea", newBadge: true },
105-
{ title: "Toggle Group", slug: "docs/primitives/components/togglegroup" },
106105
{
107106
title: "Toast",
108107
slug: "docs/primitives/components/toast",

packages/raystack/sidebar/sidebar.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ const SidebarFooter = ({ children, action }: SidebarFooterProps) => {
145145
);
146146
};
147147

148+
/**
149+
* @deprecated Use Sidebar from '@raystack/apsara/v1' instead.
150+
*/
148151
export const Sidebar = Object.assign(SidebarRoot, {
149152
Logo: SidebarLogo,
150153
Navigations: SidebarNavigations,

packages/raystack/toggle-group/togglegroup.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ import { cva, VariantProps } from "class-variance-authority";
55

66
const root = cva(styles.root);
77

8+
/**
9+
* @deprecated Use ToggleGroupProps from '@raystack/apsara/v1' instead.
10+
*/
811
export type ToggleGroupProps = ComponentPropsWithoutRef<
912
typeof ToggleGroupPrimitive.Root
1013
> &
1114
VariantProps<typeof root>;
1215

16+
/**
17+
* @deprecated Use ToggleGroupRoot from '@raystack/apsara/v1' instead.
18+
*/
1319
export const ToggleGroupRoot = ({ className, ...props }: ToggleGroupProps) => {
1420
return (
1521
<ToggleGroupPrimitive.Root className={root({ className })} {...props} />
@@ -20,10 +26,16 @@ ToggleGroupRoot.defaultProps = { type: "single" };
2026

2127
const item = cva(styles.item);
2228

29+
/**
30+
* @deprecated Use ToggleGroupItemProps from '@raystack/apsara/v1' instead.
31+
*/
2332
export interface ToggleGroupItemProps
2433
extends ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>,
2534
VariantProps<typeof item> {}
2635

36+
/**
37+
* @deprecated Use ToggleGroupItem from '@raystack/apsara/v1' instead.
38+
*/
2739
export const ToggleGroupItem = ({
2840
className,
2941
...props
@@ -33,6 +45,9 @@ export const ToggleGroupItem = ({
3345
);
3446
};
3547

48+
/**
49+
* @deprecated Use ToggleGroup from '@raystack/apsara/v1' instead.
50+
*/
3651
export const ToggleGroup = Object.assign(ToggleGroupRoot, {
3752
Item: ToggleGroupItem,
3853
});

0 commit comments

Comments
 (0)