generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui): transfer ToolTip to Typescript (#306)
* chore(ui): add typescript to ToolTip * chore(ui): add license checker * chore(ui): optimize Tooltip stories * chore(ui): fix tooltip component * chore(ui): add changeset
- Loading branch information
Showing
16 changed files
with
217 additions
and
228 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 @@ | ||
--- | ||
"@cloudoperators/juno-ui-components": patch | ||
--- | ||
|
||
Introduce a ToolTip typescript version along with storybook doc type support |
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
20 changes: 20 additions & 0 deletions
20
packages/ui-components/src/components/Tooltip/ToolTip.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,20 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Juno contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export type TooltipPlacement = | ||
| "top" | ||
| "top-start" | ||
| "top-end" | ||
| "right" | ||
| "right-start" | ||
| "right-end" | ||
| "bottom" | ||
| "bottom-start" | ||
| "bottom-end" | ||
| "left" | ||
| "left-start" | ||
| "left-end" | ||
|
||
export type ToolTipVariant = "info" | "warning" | "danger" | "error" | "success" |
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
Oops, something went wrong.