-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a small variant for SharedDialog to be small
- Loading branch information
1 parent
37baf21
commit ddb5db3
Showing
6 changed files
with
104 additions
and
60 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,61 @@ | ||
import * as Tooltip from "@radix-ui/react-tooltip"; | ||
|
||
import { styled } from "@/stitches.config"; | ||
|
||
/* eslint sort-keys: 0 */ | ||
|
||
const GenerativeAIToggleWrapper = styled("div", { | ||
color: "$black50", | ||
fontSize: "$gr2", | ||
display: "flex", | ||
flexShrink: "0", | ||
alignItems: "center", | ||
marginRight: "$gr1", | ||
|
||
"& label": { | ||
cursor: "pointer", | ||
flexShrink: "0", | ||
marginLeft: "3px", | ||
marginRight: "4px", | ||
}, | ||
|
||
"& svg": { | ||
position: "relative", | ||
padding: "0 0 1px", | ||
height: "$gr3", | ||
width: "$gr3", | ||
fill: "$black50", | ||
}, | ||
}); | ||
|
||
const GenerativeAIDialogMessage = styled("p", {}); | ||
|
||
const FlexBody = styled("div", { | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "space-between", | ||
width: "100%", | ||
}); | ||
|
||
const DialogButtonRow = styled("div", { | ||
display: "flex", | ||
justifyContent: "flex-end", | ||
}); | ||
|
||
const TooltipTrigger = styled(Tooltip.Trigger, { | ||
background: "transparent", | ||
border: "none", | ||
}); | ||
|
||
const TooltipContent = styled(Tooltip.Content, { | ||
zIndex: 2, | ||
}); | ||
|
||
export { | ||
DialogButtonRow, | ||
FlexBody, | ||
GenerativeAIDialogMessage, | ||
GenerativeAIToggleWrapper, | ||
TooltipContent, | ||
TooltipTrigger, | ||
}; |
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