-
Notifications
You must be signed in to change notification settings - Fork 17
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
2083966
commit b74a2be
Showing
43 changed files
with
459 additions
and
426 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
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,29 +1,8 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import { CalendarDots } from "@phosphor-icons/react"; | ||
|
||
import { TooltipWrapper } from "../Tooltip/TooltipWrapper"; | ||
import { IconProps } from "./icon.types"; | ||
import { iconStyles } from "./styled"; | ||
|
||
const StyledCalendarIcon = styled(CalendarDots)` | ||
color: ${({ theme }) => theme.color.text.lighter}; | ||
transition: filter 0.2s ease; | ||
&:hover { | ||
filter: brightness(130%); | ||
} | ||
export const CalendarIcon = styled(CalendarDots)` | ||
${iconStyles} | ||
`; | ||
|
||
export const CalendarIcon: React.FC<IconProps> = (props) => { | ||
return ( | ||
<TooltipWrapper | ||
description="Open month widget" | ||
shortcut="SHIFT + 2" | ||
onClick={() => { | ||
console.log("Open month widget"); | ||
}} | ||
> | ||
<StyledCalendarIcon {...props} /> | ||
</TooltipWrapper> | ||
); | ||
}; |
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,8 @@ | ||
import styled from "styled-components"; | ||
import { Command } from "@phosphor-icons/react"; | ||
|
||
import { iconStyles } from "./styled"; | ||
|
||
export const CommandIcon = styled(Command)` | ||
${iconStyles} | ||
`; |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
import styled from "styled-components"; | ||
import { Sidebar } from "@phosphor-icons/react"; | ||
|
||
import { iconStyles } from "./styled"; | ||
|
||
export const SidebarIcon = styled(Sidebar)` | ||
${iconStyles} | ||
`; |
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,29 +1,8 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import { CheckCircle } from "@phosphor-icons/react"; | ||
|
||
import { IconProps } from "./icon.types"; | ||
import { TooltipWrapper } from "../Tooltip/TooltipWrapper"; | ||
import { iconStyles } from "./styled"; | ||
|
||
const StyledCheckCircleIcon = styled(CheckCircle)` | ||
color: ${({ theme }) => theme.color.text.lighter}; | ||
transition: filter 0.2s ease; | ||
&:hover { | ||
filter: brightness(130%); | ||
} | ||
export const TodoIcon = styled(CheckCircle)` | ||
${iconStyles} | ||
`; | ||
|
||
export const TodoIcon: React.FC<IconProps> = (props) => { | ||
return ( | ||
<TooltipWrapper | ||
description="Open tasks" | ||
shortcut="SHIFT + 1" | ||
onClick={() => { | ||
console.log("Open tasks"); | ||
}} | ||
> | ||
<StyledCheckCircleIcon {...props} /> | ||
</TooltipWrapper> | ||
); | ||
}; |
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,16 @@ | ||
import { IconProps } from "@phosphor-icons/react"; | ||
import { css } from "styled-components"; | ||
|
||
export interface CompassIconProps extends IconProps { | ||
isFocused: boolean; | ||
} | ||
|
||
export const iconStyles = css<CompassIconProps>` | ||
color: ${({ theme, isFocused }) => | ||
isFocused ? theme.color.text.light : theme.color.text.lightInactive}; | ||
transition: filter 0.2s ease; | ||
&:hover { | ||
filter: brightness(130%); | ||
} | ||
`; |
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
82 changes: 0 additions & 82 deletions
82
packages/web/src/views/Calendar/components/LeftSidebar/LeftSidebar.tsx
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
packages/web/src/views/Calendar/components/LeftSidebar/SidebarIconRow/SidebarIconRow.tsx
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
packages/web/src/views/Calendar/components/LeftSidebar/SomedaySection/styled.ts
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/web/src/views/Calendar/components/LeftSidebar/index.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.