Skip to content

Commit 0c070b9

Browse files
chore: deprecate old components (#369)
* chore: deprecate old components * chore: inputfield
1 parent d0cf141 commit 0c070b9

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

apps/www/src/content/docs/components/checkbox/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { playground, statesExamples } from "./demo.ts";
1212
You can control the checkbox state using the `checked` and `onCheckedChange` props:
1313

1414
```tsx
15-
import { Checkbox } from "@raystack/apsara";
15+
import { Checkbox } from "@raystack/apsara/v1";
1616

1717
const [checked, setChecked] = useState(false);
1818

apps/www/src/content/docs/components/command/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { preview } from "./demo.ts";
1212
Import all parts and piece them together.
1313

1414
```tsx
15-
import { Command } from "@raystack/apsara";
15+
import { Command } from "@raystack/apsara/v1";
1616

1717
<Command>
1818
<Command.Input placeholder="Type a command or search..." />

packages/raystack/errorstate/errorstate.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ type ErrorStateProps = PropsWithChildren<VariantProps<typeof errorstate>> &
7272
message?: string;
7373
};
7474

75+
/**
76+
* @deprecated Use EmptyState from '@raystack/apsara/v1' instead.
77+
*/
7578
export function ErrorState({
7679
children,
7780
className,

packages/raystack/textfield/textfield.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ const textfield = cva(styles.textfield, {
2727
},
2828
});
2929

30+
/**
31+
* @deprecated Use InputFieldProps from '@raystack/apsara/v1' instead.
32+
*/
3033
export type TextfieldProps = Omit<
3134
InputHTMLAttributes<HTMLInputElement>,
3235
"size"
@@ -37,6 +40,9 @@ export type TextfieldProps = Omit<
3740
iconClass?: { leadingIcon?: string; trailingIcon?: string };
3841
};
3942

43+
/**
44+
* @deprecated Use InputField from '@raystack/apsara/v1' instead.
45+
*/
4046
export const TextField = forwardRef<HTMLInputElement, TextfieldProps>(
4147
(
4248
{

0 commit comments

Comments
 (0)