-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Heatmaps toolbar code (#21630)
- Loading branch information
1 parent
2f6344a
commit c0b3406
Showing
30 changed files
with
1,103 additions
and
269 deletions.
There are no files selected for viewing
Binary file modified
BIN
+34 Bytes
(100%)
frontend/__snapshots__/scenes-other-billing-v2--billing-v-2--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-350 Bytes
(99%)
frontend/__snapshots__/scenes-other-toolbar--heatmap--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.28 KB
(97%)
frontend/__snapshots__/scenes-other-toolbar--heatmap--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-480 Bytes
(99%)
frontend/__snapshots__/scenes-other-toolbar--heatmap-dark--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-588 Bytes
(98%)
frontend/__snapshots__/scenes-other-toolbar--heatmap-dark--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 +1,24 @@ | ||
export function ToolbarMenu({ children }: { children: React.ReactNode }): JSX.Element { | ||
return <div className="w-full h-full flex flex-col overflow-hidden">{children}</div> | ||
import clsx from 'clsx' | ||
|
||
export type ToolbarMenuProps = { | ||
children: React.ReactNode | ||
className?: string | ||
} | ||
|
||
export function ToolbarMenu({ children, className }: ToolbarMenuProps): JSX.Element { | ||
return <div className={clsx('w-full h-full flex flex-col overflow-hidden', className)}>{children}</div> | ||
} | ||
|
||
ToolbarMenu.Header = function ToolbarMenuHeader({ children }: { children: React.ReactNode }): JSX.Element { | ||
return <div className="pt-1 px-1">{children}</div> | ||
ToolbarMenu.Header = function ToolbarMenuHeader({ children, className }: ToolbarMenuProps): JSX.Element { | ||
return <div className={clsx('pt-1 px-1', className)}>{children}</div> | ||
} | ||
|
||
ToolbarMenu.Body = function ToolbarMenuBody({ children }: { children: React.ReactNode }): JSX.Element { | ||
return <div className="flex flex-col flex-1 h-full overflow-y-auto px-1 min-h-20">{children}</div> | ||
ToolbarMenu.Body = function ToolbarMenuBody({ children, className }: ToolbarMenuProps): JSX.Element { | ||
return ( | ||
<div className={clsx('flex flex-col flex-1 h-full overflow-y-auto px-1 min-h-20', className)}>{children}</div> | ||
) | ||
} | ||
|
||
ToolbarMenu.Footer = function ToolbarMenufooter({ children }: { children: React.ReactNode }): JSX.Element { | ||
return <div className="flex flex-row items-center p-2 border-t">{children}</div> | ||
ToolbarMenu.Footer = function ToolbarMenufooter({ children, className }: ToolbarMenuProps): JSX.Element { | ||
return <div className={clsx('flex flex-row items-center p-2 border-t gap-2', className)}>{children}</div> | ||
} |
6 changes: 3 additions & 3 deletions
6
...d/src/toolbar/elements/HeatmapElement.tsx → ...c/toolbar/elements/AutocaptureElement.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
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
Oops, something went wrong.