-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bec5e8
commit 23c8fbe
Showing
7 changed files
with
41 additions
and
32 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
10 changes: 10 additions & 0 deletions
10
app/client/packages/design-system/ads/src/DismissibleTab/DismissibleTab.types.ts
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,10 @@ | ||
import type React from "react"; | ||
|
||
export interface DismissibleTabProps { | ||
children: React.ReactNode; | ||
dataTestId?: string; | ||
isActive: boolean; | ||
onClick: () => void; | ||
onClose: (e: React.MouseEvent) => void; | ||
onDoubleClick?: () => void; | ||
} |
2 changes: 1 addition & 1 deletion
2
app/client/packages/design-system/ads/src/DismissibleTab/index.ts
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,2 +1,2 @@ | ||
export { DismissibleTab } from "./DismissibleTab"; | ||
export type { DismissibleTabProps } from "./DismissibleTab"; | ||
export type { DismissibleTabProps } from "./DismissibleTab.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
14 changes: 14 additions & 0 deletions
14
...es/design-system/ads/src/Templates/EditableDismissibleTab/EditableDismissibleTab.types.ts
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,14 @@ | ||
import type React from "react"; | ||
|
||
export interface EditableDismissibleTabProps { | ||
dataTestId?: string; | ||
icon: React.ReactNode; | ||
isActive: boolean; | ||
isEditable?: boolean; | ||
isLoading: boolean; | ||
name: string; | ||
onClick: () => void; | ||
onClose: () => void; | ||
onNameSave: (name: string) => void; | ||
validateName: (name: string) => string | null; | ||
} |
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
12 changes: 12 additions & 0 deletions
12
...t/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts
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,12 @@ | ||
import type React from "react"; | ||
|
||
export interface EditableEntityNameProps { | ||
icon: React.ReactNode; | ||
inputTestId?: string; | ||
isEditing: boolean; | ||
isLoading?: boolean; | ||
name: string; | ||
onExitEditing: () => void; | ||
onNameSave: (name: string) => void; | ||
validateName: (name: string) => string | null; | ||
} |