-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: export Primitive Prop Types (#330)
changeset
- Loading branch information
Showing
59 changed files
with
499 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@assistant-ui/react": patch | ||
--- | ||
|
||
feat: Primitive Prop Types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
"use client"; | ||
|
||
import { useActionBarCopy } from "../../primitive-hooks/actionBar/useActionBarCopy"; | ||
import { createActionButton } from "../../utils/createActionButton"; | ||
import { | ||
ActionButtonProps, | ||
createActionButton, | ||
} from "../../utils/createActionButton"; | ||
|
||
export const ActionBarCopy = createActionButton( | ||
"ActionBarCopy", | ||
export type ActionBarPrimitiveCopyProps = ActionButtonProps< | ||
typeof useActionBarCopy | ||
>; | ||
|
||
export const ActionBarPrimitiveCopy = createActionButton( | ||
"ActionBarPrimitive.Copy", | ||
useActionBarCopy, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
"use client"; | ||
|
||
import { useActionBarEdit } from "../../primitive-hooks/actionBar/useActionBarEdit"; | ||
import { createActionButton } from "../../utils/createActionButton"; | ||
import { | ||
ActionButtonProps, | ||
createActionButton, | ||
} from "../../utils/createActionButton"; | ||
|
||
export const ActionBarEdit = createActionButton( | ||
"ActionBarEdit", | ||
export type ActionBarPrimitiveEditProps = ActionButtonProps< | ||
typeof useActionBarEdit | ||
>; | ||
|
||
export const ActionBarPrimitiveEdit = createActionButton( | ||
"ActionBarPrimitive.Edit", | ||
useActionBarEdit, | ||
); |
13 changes: 10 additions & 3 deletions
13
packages/react/src/primitives/actionBar/ActionBarReload.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
"use client"; | ||
|
||
import { useActionBarReload } from "../../primitive-hooks/actionBar/useActionBarReload"; | ||
import { createActionButton } from "../../utils/createActionButton"; | ||
import { | ||
ActionButtonProps, | ||
createActionButton, | ||
} from "../../utils/createActionButton"; | ||
|
||
export const ActionBarReload = createActionButton( | ||
"ActionBarReload", | ||
export type ActionBarPrimitiveReloadProps = ActionButtonProps< | ||
typeof useActionBarReload | ||
>; | ||
|
||
export const ActionBarPrimitiveReload = createActionButton( | ||
"ActionBarPrimitive.Reload", | ||
useActionBarReload, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { ActionBarRoot as Root } from "./ActionBarRoot"; | ||
export { ActionBarCopy as Copy } from "./ActionBarCopy"; | ||
export { ActionBarReload as Reload } from "./ActionBarReload"; | ||
export { ActionBarEdit as Edit } from "./ActionBarEdit"; | ||
export { ActionBarPrimitiveRoot as Root } from "./ActionBarRoot"; | ||
export { ActionBarPrimitiveCopy as Copy } from "./ActionBarCopy"; | ||
export { ActionBarPrimitiveReload as Reload } from "./ActionBarReload"; | ||
export { ActionBarPrimitiveEdit as Edit } from "./ActionBarEdit"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type { ActionBarPrimitiveRootProps } from "./ActionBarRoot"; | ||
export type { ActionBarPrimitiveEditProps } from "./ActionBarEdit"; | ||
export type { ActionBarPrimitiveReloadProps } from "./ActionBarReload"; | ||
export type { ActionBarPrimitiveCopyProps } from "./ActionBarCopy"; |
Oops, something went wrong.