Merge pull request #74 from TiE23/ISSUE-068
ISSUE-068 - Now Styled-Components can self-label.
This commit is contained in:
38 files changed
+66
-133
No files matched your search
+15
-1
@@ -63,6 +63,20 @@
|
|||||||
"as-needed"
|
"as-needed"
|
||||||
],
|
],
|
||||||
"react/jsx-uses-react": "off",
|
"react/jsx-uses-react": "off",
|
||||||
"react/react-in-jsx-scope": "off"
|
"react/react-in-jsx-scope": "off",
|
||||||
|
"no-restricted-imports": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
{
|
||||||
|
"name": "styled-components",
|
||||||
|
"message": "Please import from styled-components/macro."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"patterns": [
|
||||||
|
"!styled-components/macro"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+6
-1
@@ -74,8 +74,13 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
||||||
"@typescript-eslint/parser": "^5.7.0",
|
"@typescript-eslint/parser": "^5.7.0",
|
||||||
"babel-plugin-styled-components": "^2.0.2",
|
"babel-plugin-styled-components": "^2.0.6",
|
||||||
"eslint": "^8.4.1",
|
"eslint": "^8.4.1",
|
||||||
"eslint-plugin-react": "^7.27.1"
|
"eslint-plugin-react": "^7.27.1"
|
||||||
|
},
|
||||||
|
"babelMacros": {
|
||||||
|
"styledComponents": {
|
||||||
|
"fileName": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const Title = styled.h4`
|
export const Title = styled.h4`
|
||||||
font-family: ${p => p.theme.fonts.f1Italic};
|
font-family: ${p => p.theme.fonts.f1Italic};
|
||||||
`;
|
`;
|
||||||
Title.displayName = "Title";
|
|
||||||
|
|
||||||
type ButtonProps = {
|
type ButtonProps = {
|
||||||
disabled: boolean,
|
disabled: boolean,
|
||||||
@@ -26,16 +25,13 @@ export const Button = styled.button<ButtonProps>`
|
|||||||
box-shadow: inset 0px 0px 10px 4px rgba(255, 255, 255, 0.8);
|
box-shadow: inset 0px 0px 10px 4px rgba(255, 255, 255, 0.8);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
Button.displayName = "Button";
|
|
||||||
|
|
||||||
export const OpenButton = styled(Button)<ButtonProps>`
|
export const OpenButton = styled(Button)<ButtonProps>`
|
||||||
background-color: ${({ disabled }) => disabled
|
background-color: ${({ disabled }) => disabled
|
||||||
? p => p.theme.colors.disabledGreen : p => p.theme.colors.activeGreen};
|
? p => p.theme.colors.disabledGreen : p => p.theme.colors.activeGreen};
|
||||||
`;
|
`;
|
||||||
OpenButton.displayName = "OpenButton";
|
|
||||||
|
|
||||||
export const CloseButton = styled(Button)<ButtonProps>`
|
export const CloseButton = styled(Button)<ButtonProps>`
|
||||||
background-color: ${({ disabled }) => disabled
|
background-color: ${({ disabled }) => disabled
|
||||||
? p => p.theme.colors.disabledRed : p => p.theme.colors.activeRed};
|
? p => p.theme.colors.disabledRed : p => p.theme.colors.activeRed};
|
||||||
`;
|
`;
|
||||||
CloseButton.displayName = "CloseButton";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled, { css } from "styled-components";
|
import styled, { css } from "styled-components/macro";
|
||||||
|
|
||||||
type VideoFeedFrameProps = {
|
type VideoFeedFrameProps = {
|
||||||
centered?: boolean,
|
centered?: boolean,
|
||||||
@@ -19,14 +19,12 @@ export const VideoFeedFrame = styled.div<VideoFeedFrameProps>`
|
|||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
`;
|
`;
|
||||||
VideoFeedFrame.displayName = "VideoFeedFrame";
|
|
||||||
|
|
||||||
export const BackgroundImage = styled.img`
|
export const BackgroundImage = styled.img`
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
`;
|
`;
|
||||||
BackgroundImage.displayName = "BackgroundImage";
|
|
||||||
|
|
||||||
type BackgroundImageDivProps = {
|
type BackgroundImageDivProps = {
|
||||||
src: string,
|
src: string,
|
||||||
@@ -39,4 +37,3 @@ export const BackgroundImageDiv = styled.div<BackgroundImageDivProps>`
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 0% 50%;
|
background-position: 0% 50%;
|
||||||
`;
|
`;
|
||||||
BackgroundImageDiv.displayName = "BackgroundImageDiv";
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const DoubleChyronContainer = styled.div`
|
export const DoubleChyronContainer = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 1196px;
|
width: 1196px;
|
||||||
`;
|
`;
|
||||||
DoubleChyronContainer.displayName = "DoubleChyronContainer";
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { animated } from "@react-spring/web";
|
import { animated } from "@react-spring/web";
|
||||||
import styled, { css, keyframes } from "styled-components";
|
import styled, { css, keyframes } from "styled-components/macro";
|
||||||
|
|
||||||
import { Placement, Px, TransitionArgs } from "../../../../types/style";
|
import { Placement, Px, TransitionArgs } from "../../../../types/style";
|
||||||
import { Milliseconds } from "../../../../types/util";
|
import { Milliseconds } from "../../../../types/util";
|
||||||
@@ -21,7 +21,6 @@ export const AnimatedBaseContainer = animated(styled.div<AnimatedBaseContainerPr
|
|||||||
width: ${({ width }) => `${width}px`};
|
width: ${({ width }) => `${width}px`};
|
||||||
height: ${({ height }) => `${height}px`};
|
height: ${({ height }) => `${height}px`};
|
||||||
`);
|
`);
|
||||||
AnimatedBaseContainer.displayName = "AnimatedBaseContainer";
|
|
||||||
|
|
||||||
const BaseShape = styled.div`
|
const BaseShape = styled.div`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -44,7 +43,6 @@ export const AnimatedBaseOutline = animated(styled(BaseShape)<AnimatedBaseOutlin
|
|||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`);
|
`);
|
||||||
AnimatedBaseOutline.displayName = "AnimatedBaseOutline";
|
|
||||||
|
|
||||||
export const BaseBlack = styled(BaseShape)<TransitionProps>`
|
export const BaseBlack = styled(BaseShape)<TransitionProps>`
|
||||||
opacity: ${({ open }) => open ? 1 : 0.1};
|
opacity: ${({ open }) => open ? 1 : 0.1};
|
||||||
@@ -54,7 +52,6 @@ export const BaseBlack = styled(BaseShape)<TransitionProps>`
|
|||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
BaseBlack.displayName = "BaseBlack";
|
|
||||||
|
|
||||||
type BaseBackgroundColorProps = {
|
type BaseBackgroundColorProps = {
|
||||||
teamColor: string,
|
teamColor: string,
|
||||||
@@ -67,7 +64,6 @@ export const BaseBackgroundColor = styled(BaseShape)<BaseBackgroundColorProps &
|
|||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
BaseBackgroundColor.displayName = "BaseBackgroundColor";
|
|
||||||
|
|
||||||
export const BaseLayout = styled(BaseShape)<TransitionProps>`
|
export const BaseLayout = styled(BaseShape)<TransitionProps>`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -85,7 +81,6 @@ export const BaseLayout = styled(BaseShape)<TransitionProps>`
|
|||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
BaseLayout.displayName = "BaseLayout";
|
|
||||||
|
|
||||||
type TeamColorBarProps = {
|
type TeamColorBarProps = {
|
||||||
color: string,
|
color: string,
|
||||||
@@ -105,7 +100,6 @@ export const TeamColorBar = styled.div<TeamColorBarProps & TransitionProps>`
|
|||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
TeamColorBar.displayName = "TeamColorBar";
|
|
||||||
|
|
||||||
export const TextContainer = styled.div`
|
export const TextContainer = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -114,20 +108,17 @@ export const TextContainer = styled.div`
|
|||||||
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
`;
|
`;
|
||||||
TextContainer.displayName = "TextContainer";
|
|
||||||
|
|
||||||
export const NameContainer = styled.div`
|
export const NameContainer = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
`;
|
`;
|
||||||
NameContainer.displayName = "NameContainer";
|
|
||||||
|
|
||||||
export const FirstName = styled.span`
|
export const FirstName = styled.span`
|
||||||
font-family: ${p => p.theme.fonts.f1Regular};
|
font-family: ${p => p.theme.fonts.f1Regular};
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
`;
|
`;
|
||||||
FirstName.displayName = "FirstName";
|
|
||||||
|
|
||||||
export const LastName = styled.span`
|
export const LastName = styled.span`
|
||||||
font-family: ${p => p.theme.fonts.f1Bold};
|
font-family: ${p => p.theme.fonts.f1Bold};
|
||||||
@@ -136,7 +127,6 @@ export const LastName = styled.span`
|
|||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
`;
|
`;
|
||||||
LastName.displayName = "LastName";
|
|
||||||
|
|
||||||
export const NumberContainer = styled.div`
|
export const NumberContainer = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -145,7 +135,6 @@ export const NumberContainer = styled.div`
|
|||||||
bottom: 3px;
|
bottom: 3px;
|
||||||
left: 10px;
|
left: 10px;
|
||||||
`;
|
`;
|
||||||
NumberContainer.displayName = "NumberContainer";
|
|
||||||
|
|
||||||
const blinkingAnimation = keyframes`
|
const blinkingAnimation = keyframes`
|
||||||
0% { opacity: 0.4 }
|
0% { opacity: 0.4 }
|
||||||
@@ -169,7 +158,6 @@ export const TeamName = styled.div<TeamNameProps>`
|
|||||||
animation: ${blinkingAnimation} ${duration}ms step-end ${delay}ms;
|
animation: ${blinkingAnimation} ${duration}ms step-end ${delay}ms;
|
||||||
`}
|
`}
|
||||||
`;
|
`;
|
||||||
TeamName.displayName = "TeamName";
|
|
||||||
|
|
||||||
type FlagContainerProps = {
|
type FlagContainerProps = {
|
||||||
height: Px,
|
height: Px,
|
||||||
@@ -194,7 +182,6 @@ export const FlagContainer = styled.div<FlagContainerProps & TransitionProps>`
|
|||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
FlagContainer.displayName = "FlagContainer";
|
|
||||||
|
|
||||||
type DriverPortraitContainerProps = TransitionProps & {
|
type DriverPortraitContainerProps = TransitionProps & {
|
||||||
placement: Placement,
|
placement: Placement,
|
||||||
@@ -207,4 +194,3 @@ export const DriverPortraitContainer = styled.div<DriverPortraitContainerProps>`
|
|||||||
opacity: ${({ open }) => open ? 1 : 0};
|
opacity: ${({ open }) => open ? 1 : 0};
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
DriverPortraitContainer.displayName = "DriverPortraitContainer";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled, { css } from "styled-components";
|
import styled, { css } from "styled-components/macro";
|
||||||
import { TeamFlagStyle } from "../../../../domain/data/teams";
|
import { TeamFlagStyle } from "../../../../domain/data/teams";
|
||||||
import { Px } from "../../../../types/style";
|
import { Px } from "../../../../types/style";
|
||||||
|
|
||||||
@@ -25,7 +25,6 @@ export const Container = styled.div<ContainerProps>`
|
|||||||
transparent 100%
|
transparent 100%
|
||||||
);
|
);
|
||||||
`;
|
`;
|
||||||
Container.displayName = "Container";
|
|
||||||
|
|
||||||
type FlagContainerProps = {
|
type FlagContainerProps = {
|
||||||
height: Px,
|
height: Px,
|
||||||
@@ -68,7 +67,6 @@ export const FlagContainer = styled.div<FlagContainerProps>`
|
|||||||
);
|
);
|
||||||
`}
|
`}
|
||||||
`;
|
`;
|
||||||
FlagContainer.displayName = "FlagContainer";
|
|
||||||
|
|
||||||
type FlagDivBaseProps = {
|
type FlagDivBaseProps = {
|
||||||
src: string,
|
src: string,
|
||||||
@@ -92,7 +90,6 @@ export const CountryFlagDiv = styled(FlagDivBase)<CountryFlagDivProps>`
|
|||||||
? css`background-position: center;`
|
? css`background-position: center;`
|
||||||
: css`background-position-x: ${xOffset}px`}
|
: css`background-position-x: ${xOffset}px`}
|
||||||
`;
|
`;
|
||||||
CountryFlagDiv.displayName = "CountryFlagDiv";
|
|
||||||
|
|
||||||
type TeamFlagDivProps = {
|
type TeamFlagDivProps = {
|
||||||
style: TeamFlagStyle,
|
style: TeamFlagStyle,
|
||||||
@@ -156,7 +153,6 @@ export const Sheen = styled.div<SlashProps>`
|
|||||||
|
|
||||||
border-left: 0.015em solid rgba(255, 255, 255, 0.1);
|
border-left: 0.015em solid rgba(255, 255, 255, 0.1);
|
||||||
`;
|
`;
|
||||||
Sheen.displayName = "Sheen";
|
|
||||||
|
|
||||||
export const Slant = styled.div<SlashProps>`
|
export const Slant = styled.div<SlashProps>`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -166,7 +162,6 @@ export const Slant = styled.div<SlashProps>`
|
|||||||
background: #1a1a28;
|
background: #1a1a28;
|
||||||
transform: skewX(-45deg) translateX(${({ x = 0 }) => `${x}px`});
|
transform: skewX(-45deg) translateX(${({ x = 0 }) => `${x}px`});
|
||||||
`;
|
`;
|
||||||
Slant.displayName = "Slant";
|
|
||||||
|
|
||||||
export const FlagEdge = styled.div<SlashProps>`
|
export const FlagEdge = styled.div<SlashProps>`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -184,4 +179,3 @@ export const FlagEdge = styled.div<SlashProps>`
|
|||||||
black 100%
|
black 100%
|
||||||
);
|
);
|
||||||
`;
|
`;
|
||||||
FlagEdge.displayName = "FlagEdge";
|
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const NumberContainer = styled.div`
|
export const NumberContainer = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline;
|
display: inline;
|
||||||
`;
|
`;
|
||||||
NumberContainer.displayName = "NumberContainer";
|
|
||||||
|
|
||||||
type NumberProps = {
|
type NumberProps = {
|
||||||
fontFamily: string,
|
fontFamily: string,
|
||||||
@@ -24,7 +23,6 @@ export const StrokeNumber = styled.span<StrokeNumberProps>`
|
|||||||
-webkit-text-stroke-color: ${({ strokeColor }) => strokeColor};
|
-webkit-text-stroke-color: ${({ strokeColor }) => strokeColor};
|
||||||
-webkit-text-stroke-width: ${({ strokeWidth }) => strokeWidth};
|
-webkit-text-stroke-width: ${({ strokeWidth }) => strokeWidth};
|
||||||
`;
|
`;
|
||||||
StrokeNumber.displayName = "StrokeNumber";
|
|
||||||
|
|
||||||
type ShadowNumberProps = NumberProps & {
|
type ShadowNumberProps = NumberProps & {
|
||||||
shadowProperties: string,
|
shadowProperties: string,
|
||||||
@@ -37,4 +35,3 @@ export const ShadowNumber = styled.span<ShadowNumberProps>`
|
|||||||
|
|
||||||
text-shadow: ${({ shadowProperties }) => shadowProperties};
|
text-shadow: ${({ shadowProperties }) => shadowProperties};
|
||||||
`;
|
`;
|
||||||
ShadowNumber.displayName = "ShadowNumber";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
import { Percent, Px } from "../../../../types/style";
|
import { Percent, Px } from "../../../../types/style";
|
||||||
|
|
||||||
@@ -26,4 +26,3 @@ export const PortraitDiv = styled.div<PortraitDivProps>`
|
|||||||
mask-repeat: no-repeat;
|
mask-repeat: no-repeat;
|
||||||
mask-position: var(--position);
|
mask-position: var(--position);
|
||||||
`;
|
`;
|
||||||
PortraitDiv.displayName = "PortraitDiv";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
import { Px } from "../../../../types/style";
|
import { Px } from "../../../../types/style";
|
||||||
|
|
||||||
type PositionFlagBoxProps = {
|
type PositionFlagBoxProps = {
|
||||||
@@ -17,7 +17,6 @@ export const PositionFlagBox = styled.div<PositionFlagBoxProps>`
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
`;
|
`;
|
||||||
PositionFlagBox.displayName = "PositionFlagBox";
|
|
||||||
|
|
||||||
type PositionNumberProps = {
|
type PositionNumberProps = {
|
||||||
size: Px,
|
size: Px,
|
||||||
@@ -29,4 +28,3 @@ export const PositionNumber = styled.span<PositionNumberProps>`
|
|||||||
color: ${({ color }) => color};
|
color: ${({ color }) => color};
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
`;
|
`;
|
||||||
PositionNumber.displayName = "PositionNumber";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
type SpacerProps = {
|
type SpacerProps = {
|
||||||
width?: string,
|
width?: string,
|
||||||
@@ -8,4 +8,3 @@ export const Spacer = styled.div<SpacerProps>`
|
|||||||
width: ${({ width = "0" }) => width};
|
width: ${({ width = "0" }) => width};
|
||||||
height: ${({ height = "0" }) => height};
|
height: ${({ height = "0" }) => height};
|
||||||
`;
|
`;
|
||||||
Spacer.displayName = "Spacer";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
import { TeamGemStyle } from "../../../../domain/data/teams";
|
import { TeamGemStyle } from "../../../../domain/data/teams";
|
||||||
import { Px } from "../../../../types/style";
|
import { Px } from "../../../../types/style";
|
||||||
|
|
||||||
@@ -20,7 +20,6 @@ export const GemContainer = styled.div<GemContainerProps>`
|
|||||||
mask-image: linear-gradient(to left, black 0%, black 80%, transparent 100%);
|
mask-image: linear-gradient(to left, black 0%, black 80%, transparent 100%);
|
||||||
clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%, 0 50%);
|
clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%, 0 50%);
|
||||||
`;
|
`;
|
||||||
GemContainer.displayName = "GemContainer";
|
|
||||||
|
|
||||||
type GemColorDivProps = {
|
type GemColorDivProps = {
|
||||||
height: Px,
|
height: Px,
|
||||||
@@ -57,4 +56,3 @@ export const GemLogoDiv = styled.div<GemLogoDivProps>`
|
|||||||
)};
|
)};
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
`;
|
`;
|
||||||
GemLogoDiv.displayName = "GemDiv";
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { animated } from "@react-spring/web";
|
import { animated } from "@react-spring/web";
|
||||||
import styled, { css, keyframes } from "styled-components";
|
import styled, { css, keyframes } from "styled-components/macro";
|
||||||
|
|
||||||
import { Degrees, Px } from "../../../../types/style";
|
import { Degrees, Px } from "../../../../types/style";
|
||||||
import { Milliseconds } from "../../../../types/util";
|
import { Milliseconds } from "../../../../types/util";
|
||||||
@@ -58,7 +58,5 @@ export const VenetianBlindsFilter = styled.div<VenetianBlindsFilterProps>`
|
|||||||
: null)
|
: null)
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
VenetianBlindsFilter.displayName = "VenetianBlindsFilter";
|
|
||||||
|
|
||||||
export const AnimatedVenetianBlindsFilter = animated(VenetianBlindsFilter);
|
export const AnimatedVenetianBlindsFilter = animated(VenetianBlindsFilter);
|
||||||
AnimatedVenetianBlindsFilter.displayName = "AnimatedVenetianBlindsFilter";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
import { BGStatusIndicatorModes } from "../../../../types/state";
|
import { BGStatusIndicatorModes } from "../../../../types/state";
|
||||||
|
|
||||||
import { DirectionalTransitionProps } from "../../../../types/style";
|
import { DirectionalTransitionProps } from "../../../../types/style";
|
||||||
@@ -15,7 +15,6 @@ export const StatusIndicatorBase = styled.div<DirectionalTransitionProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
StatusIndicatorBase.displayName = "StatusIndicatorBase";
|
|
||||||
|
|
||||||
|
|
||||||
export const StatusIndicatorLayout = styled.div`
|
export const StatusIndicatorLayout = styled.div`
|
||||||
@@ -23,7 +22,6 @@ export const StatusIndicatorLayout = styled.div`
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
`;
|
`;
|
||||||
StatusIndicatorLayout.displayName = "StatusIndicatorLayout";
|
|
||||||
|
|
||||||
type IndicatorModeProps = {
|
type IndicatorModeProps = {
|
||||||
mode: BGStatusIndicatorModes,
|
mode: BGStatusIndicatorModes,
|
||||||
@@ -64,7 +62,6 @@ export const LapLine = styled.div<LapLineProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
LapLine.displayName = "LapLine";
|
|
||||||
|
|
||||||
|
|
||||||
type LapLabelProps = DirectionalTransitionProps & IndicatorModeProps;
|
type LapLabelProps = DirectionalTransitionProps & IndicatorModeProps;
|
||||||
@@ -84,7 +81,6 @@ export const LapLabel = styled.span<LapLabelProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
LapLabel.displayName = "LapLabel";
|
|
||||||
|
|
||||||
|
|
||||||
type LapCountProps = DirectionalTransitionProps & IndicatorModeProps;
|
type LapCountProps = DirectionalTransitionProps & IndicatorModeProps;
|
||||||
@@ -117,4 +113,3 @@ export const LapCount = styled.div<LapCountProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
LapCount.displayName = "LapCount";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled, { css } from "styled-components";
|
import styled, { css } from "styled-components/macro";
|
||||||
import { animated } from "@react-spring/web";
|
import { animated } from "@react-spring/web";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -33,7 +33,6 @@ export const RowsContainer = styled.div<RowsContainerProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
RowsContainer.displayName = "RowsContainer";
|
|
||||||
|
|
||||||
type AnimatedRowContainerProps = {
|
type AnimatedRowContainerProps = {
|
||||||
retired?: boolean,
|
retired?: boolean,
|
||||||
@@ -59,7 +58,6 @@ export const AnimatedRowContainer = animated(styled.div.attrs<AnimatedRowContain
|
|||||||
|
|
||||||
${({ retired }) => retired && css`opacity: 0.7;`}
|
${({ retired }) => retired && css`opacity: 0.7;`}
|
||||||
`);
|
`);
|
||||||
AnimatedRowContainer.displayName = "AnimatedRowContainer";
|
|
||||||
|
|
||||||
type RoundedProp = {
|
type RoundedProp = {
|
||||||
roundedCornerTop?: Px,
|
roundedCornerTop?: Px,
|
||||||
@@ -86,7 +84,6 @@ export const RowLeftHalf = styled(Rounded)<DirectionalTransitionProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
RowLeftHalf.displayName = "RowLeftHalf";
|
|
||||||
|
|
||||||
type AnimatedRowLeftHalfOutlineProps = DirectionalTransitionProps & {
|
type AnimatedRowLeftHalfOutlineProps = DirectionalTransitionProps & {
|
||||||
startThickness: Px,
|
startThickness: Px,
|
||||||
@@ -110,7 +107,6 @@ export const AnimatedRowLeftHalfOutline = animated(styled(Rounded)<AnimatedRowLe
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`);
|
`);
|
||||||
AnimatedRowLeftHalfOutline.displayName = "AnimatedRowLeftHalfOutline";
|
|
||||||
|
|
||||||
export const RowLeftHalfLayout = styled.div`
|
export const RowLeftHalfLayout = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -123,7 +119,6 @@ export const RowLeftHalfLayout = styled.div`
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
`;
|
`;
|
||||||
RowLeftHalfLayout.displayName = "RowLeftHalfLayout";
|
|
||||||
|
|
||||||
type RowLeftHalfPosFlagContainerProps = {
|
type RowLeftHalfPosFlagContainerProps = {
|
||||||
size: Px,
|
size: Px,
|
||||||
@@ -133,7 +128,6 @@ export const RowLeftHalfPosFlagContainer = styled.div<RowLeftHalfPosFlagContaine
|
|||||||
height: ${({ size }) => size}px;
|
height: ${({ size }) => size}px;
|
||||||
width: ${({ size }) => size}px;
|
width: ${({ size }) => size}px;
|
||||||
`;
|
`;
|
||||||
RowLeftHalfPosFlagContainer.displayName = "RowLeftHalfPosFlagContainer";
|
|
||||||
|
|
||||||
export const RowLeftHalfPosFlagChangeContainer = styled.div<OpenProps>`
|
export const RowLeftHalfPosFlagChangeContainer = styled.div<OpenProps>`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -142,7 +136,6 @@ export const RowLeftHalfPosFlagChangeContainer = styled.div<OpenProps>`
|
|||||||
|
|
||||||
opacity: ${({ open }) => open ? 1 : 0};
|
opacity: ${({ open }) => open ? 1 : 0};
|
||||||
`;
|
`;
|
||||||
RowLeftHalfPosFlagChangeContainer.displayName = "RowLeftHalfPosFlagChangeContainer";
|
|
||||||
|
|
||||||
export const RowLeftHalfGemContainer = styled.div`
|
export const RowLeftHalfGemContainer = styled.div`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -150,7 +143,6 @@ export const RowLeftHalfGemContainer = styled.div`
|
|||||||
top: 0;
|
top: 0;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
`;
|
`;
|
||||||
RowLeftHalfGemContainer.displayName = "RowLeftHalfGemContainer";
|
|
||||||
|
|
||||||
type RowRightHalfProps = DirectionalTransitionProps & {
|
type RowRightHalfProps = DirectionalTransitionProps & {
|
||||||
hugRight: boolean,
|
hugRight: boolean,
|
||||||
@@ -176,7 +168,6 @@ export const RowRightHalf = styled(Rounded)<RowRightHalfProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
RowRightHalf.displayName = "RowRightHalf";
|
|
||||||
|
|
||||||
export const RowRightHalfLayout = styled.div`
|
export const RowRightHalfLayout = styled.div`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -188,14 +179,12 @@ export const RowRightHalfLayout = styled.div`
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
`;
|
`;
|
||||||
RowRightHalfLayout.displayName = "RowRightHalfLayout";
|
|
||||||
|
|
||||||
export const DriverNameContainer = styled.div`
|
export const DriverNameContainer = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: ${p => p.theme.design.timingTower.nameLeftMarginPx}px;
|
margin-left: ${p => p.theme.design.timingTower.nameLeftMarginPx}px;
|
||||||
margin-top: ${p => p.theme.design.timingTower.nameTopMarginPx}px;
|
margin-top: ${p => p.theme.design.timingTower.nameTopMarginPx}px;
|
||||||
`;
|
`;
|
||||||
DriverNameContainer.displayName = "DriverNameContainer";
|
|
||||||
|
|
||||||
export const DriverName = styled.span<DirectionalTransitionProps>`
|
export const DriverName = styled.span<DirectionalTransitionProps>`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -211,7 +200,6 @@ export const DriverName = styled.span<DirectionalTransitionProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
DriverName.displayName = "DriverName";
|
|
||||||
|
|
||||||
export const DriverNameWipe = styled.div<DirectionalTransitionProps>`
|
export const DriverNameWipe = styled.div<DirectionalTransitionProps>`
|
||||||
width: ${({ open }) => open ? 800 : 200}px;
|
width: ${({ open }) => open ? 800 : 200}px;
|
||||||
@@ -224,7 +212,6 @@ export const DriverNameWipe = styled.div<DirectionalTransitionProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
DriverNameWipe.displayName = "DriverNameWipe";
|
|
||||||
|
|
||||||
type TimeDiffProps = DirectionalTransitionProps & {
|
type TimeDiffProps = DirectionalTransitionProps & {
|
||||||
xScale: Fraction,
|
xScale: Fraction,
|
||||||
@@ -245,7 +232,6 @@ export const TimeDiff = styled.span<TimeDiffProps>`
|
|||||||
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
${({ open, transitionOpeningProps, transitionClosingProps, transitionProps }) =>
|
||||||
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
commonDirectionalTransition(open, transitionOpeningProps, transitionClosingProps, transitionProps)}
|
||||||
`;
|
`;
|
||||||
TimeDiff.displayName = "TimeDiff";
|
|
||||||
|
|
||||||
export const FastestLapContainer = styled.div`
|
export const FastestLapContainer = styled.div`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -275,4 +261,3 @@ export const FastestLapGem = styled.div<TransitionProps>`
|
|||||||
|
|
||||||
${({ transitionProps }) => commonTransition(transitionProps)}
|
${({ transitionProps }) => commonTransition(transitionProps)}
|
||||||
`;
|
`;
|
||||||
FastestLapGem.displayName = "FastestLapGem";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const TimingBoardLayout = styled.div`
|
export const TimingBoardLayout = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
type FullScreenContainerProps = {
|
type FullScreenContainerProps = {
|
||||||
minHeight?: number,
|
minHeight?: number,
|
||||||
@@ -25,4 +25,3 @@ export const FullScreenContainer = styled.div<FullScreenContainerProps>`
|
|||||||
overflow-y: var(--overflowY);
|
overflow-y: var(--overflowY);
|
||||||
overflow-x: var(--overflowX);
|
overflow-x: var(--overflowX);
|
||||||
`;
|
`;
|
||||||
FullScreenContainer.displayName = "FullScreenContainer";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const IndexHeading = styled.div`
|
export const IndexHeading = styled.div`
|
||||||
font-family: ${p => p.theme.fonts.f1Bold};
|
font-family: ${p => p.theme.fonts.f1Bold};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { animated } from "@react-spring/web";
|
import { animated } from "@react-spring/web";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const ProgressSliderBody = styled.div`
|
export const ProgressSliderBody = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -32,10 +32,8 @@ export const ProgressSliderBar = styled.div<ProgressSliderBarProps>`
|
|||||||
)};
|
)};
|
||||||
transition: background-color 0.2s ease;
|
transition: background-color 0.2s ease;
|
||||||
`;
|
`;
|
||||||
ProgressSliderBar.displayName = "ProgressSliderBar";
|
|
||||||
|
|
||||||
export const AnimatedProgressSliderBar = animated(ProgressSliderBar);
|
export const AnimatedProgressSliderBar = animated(ProgressSliderBar);
|
||||||
AnimatedProgressSliderBar.displayName = "AnimatedProgressSliderBar";
|
|
||||||
|
|
||||||
type ProgressSliderBarHandleProps = {
|
type ProgressSliderBarHandleProps = {
|
||||||
color?: string,
|
color?: string,
|
||||||
@@ -61,7 +59,6 @@ export const ProgressSliderBarHandle = styled.div<ProgressSliderBarHandleProps>`
|
|||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
ProgressSliderBarHandle.displayName = "ProgressSliderBarHandle";
|
|
||||||
|
|
||||||
type ProgressSliderBarIndicatorProps = {
|
type ProgressSliderBarIndicatorProps = {
|
||||||
left: number,
|
left: number,
|
||||||
@@ -90,4 +87,3 @@ export const ProgressSliderBarIndicator = styled.span<ProgressSliderBarIndicator
|
|||||||
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
`;
|
`;
|
||||||
ProgressSliderBarIndicator.displayName = "ProgressSliderBarIndicator";
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { animated } from "@react-spring/web";
|
import { animated } from "@react-spring/web";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
type SlotWindowProps = {
|
type SlotWindowProps = {
|
||||||
disabled: boolean,
|
disabled: boolean,
|
||||||
@@ -23,7 +23,6 @@ export const SlotWindow = styled.div<SlotWindowProps>`
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
`;
|
`;
|
||||||
SlotWindow.displayName = "SlotWindow";
|
|
||||||
|
|
||||||
export const SlotText = styled.span`
|
export const SlotText = styled.span`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -34,13 +33,10 @@ export const SlotText = styled.span`
|
|||||||
color: ${p => p.theme.colors.darkGrey};
|
color: ${p => p.theme.colors.darkGrey};
|
||||||
user-select: none;
|
user-select: none;
|
||||||
`;
|
`;
|
||||||
SlotText.displayName = "SlotText";
|
|
||||||
|
|
||||||
export const AnimatedSlotText = animated(SlotText);
|
export const AnimatedSlotText = animated(SlotText);
|
||||||
AnimatedSlotText.displayName = "AnimatedSlotText";
|
|
||||||
|
|
||||||
export const SelectorLabel = styled.span`
|
export const SelectorLabel = styled.span`
|
||||||
font-family: ${p => p.theme.fonts.f1Regular};
|
font-family: ${p => p.theme.fonts.f1Regular};
|
||||||
font-size: ${p => p.theme.fontSizes.label};
|
font-size: ${p => p.theme.fontSizes.label};
|
||||||
`;
|
`;
|
||||||
SelectorLabel.displayName = "SelectorLabel";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled, { css } from "styled-components";
|
import styled, { css } from "styled-components/macro";
|
||||||
|
|
||||||
type ToggleContainerProps = {
|
type ToggleContainerProps = {
|
||||||
fontSize?: string;
|
fontSize?: string;
|
||||||
@@ -8,26 +8,22 @@ export const ToggleContainer = styled.div<ToggleContainerProps>`
|
|||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
font-size: ${({ fontSize = "inherit" }) => fontSize};
|
font-size: ${({ fontSize = "inherit" }) => fontSize};
|
||||||
`;
|
`;
|
||||||
ToggleContainer.displayName = "ToggleContainer";
|
|
||||||
|
|
||||||
export const ToggleBody = styled.div`
|
export const ToggleBody = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
`;
|
`;
|
||||||
ToggleBody.displayName = "ToggleBody";
|
|
||||||
|
|
||||||
export const ToggleInput = styled.input`
|
export const ToggleInput = styled.input`
|
||||||
display: none;
|
display: none;
|
||||||
`;
|
`;
|
||||||
ToggleInput.displayName = "ToggleInput";
|
|
||||||
|
|
||||||
export const ToggleLabelText = styled.span`
|
export const ToggleLabelText = styled.span`
|
||||||
margin-right: 1ch;
|
margin-right: 1ch;
|
||||||
font-family: ${p => p.theme.fonts.f1Regular};
|
font-family: ${p => p.theme.fonts.f1Regular};
|
||||||
font-size: ${p => p.theme.fontSizes.label};
|
font-size: ${p => p.theme.fontSizes.label};
|
||||||
`;
|
`;
|
||||||
ToggleLabelText.displayName = "ToggleLabelText";
|
|
||||||
|
|
||||||
export const ToggleLabel = styled.label`
|
export const ToggleLabel = styled.label`
|
||||||
display: block;
|
display: block;
|
||||||
@@ -37,7 +33,6 @@ export const ToggleLabel = styled.label`
|
|||||||
width: 2.7em;
|
width: 2.7em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
`;
|
`;
|
||||||
ToggleLabel.displayName = "ToggleLabel";
|
|
||||||
|
|
||||||
type ToggleBackgroundProps = {
|
type ToggleBackgroundProps = {
|
||||||
toggled: boolean,
|
toggled: boolean,
|
||||||
@@ -81,7 +76,6 @@ export const ToggleBackground = styled.div<ToggleBackgroundProps>`
|
|||||||
}
|
}
|
||||||
`)}
|
`)}
|
||||||
`;
|
`;
|
||||||
ToggleBackground.displayName = "ToggleBackground";
|
|
||||||
|
|
||||||
type ToggleCircleProps = {
|
type ToggleCircleProps = {
|
||||||
toggled: boolean,
|
toggled: boolean,
|
||||||
@@ -97,4 +91,3 @@ export const ToggleCircle = styled.div<ToggleCircleProps>`
|
|||||||
top: 0;
|
top: 0;
|
||||||
${({ toggled }) => toggled ? css`right: 0;` : css`left: 0;`}
|
${({ toggled }) => toggled ? css`right: 0;` : css`left: 0;`}
|
||||||
`;
|
`;
|
||||||
ToggleCircle.displayName = "ToggleCircle";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
type SizeProp = number | Array<number | string>;
|
type SizeProp = number | Array<number | string>;
|
||||||
|
|
||||||
@@ -36,7 +36,6 @@ export const LayoutGrid = styled.div<LayoutGridProps>`
|
|||||||
height: calc(100% - ${({ headerOffset = 0 }) => headerOffset}px);
|
height: calc(100% - ${({ headerOffset = 0 }) => headerOffset}px);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
`;
|
`;
|
||||||
LayoutGrid.displayName = "LayoutGrid";
|
|
||||||
|
|
||||||
type LayoutGridItemProps = {
|
type LayoutGridItemProps = {
|
||||||
column: number,
|
column: number,
|
||||||
@@ -50,4 +49,3 @@ export const LayoutGridItem = styled.div<LayoutGridItemProps>`
|
|||||||
grid-row: ${({ row }) => row}
|
grid-row: ${({ row }) => row}
|
||||||
/ span ${({ rowSpan = 1 }) => rowSpan};;
|
/ span ${({ rowSpan = 1 }) => rowSpan};;
|
||||||
`;
|
`;
|
||||||
LayoutGridItem.displayName = "LayoutGridItem";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled, { css } from "styled-components";
|
import styled, { css } from "styled-components/macro";
|
||||||
import { PadBox } from "@bedrock-layout/padbox";
|
import { PadBox } from "@bedrock-layout/padbox";
|
||||||
|
|
||||||
const hoverRules = css`
|
const hoverRules = css`
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
type MockupBlockProps = {
|
type MockupBlockProps = {
|
||||||
color: string,
|
color: string,
|
||||||
@@ -16,4 +16,3 @@ export const MockupBlock = styled.div<MockupBlockProps>`
|
|||||||
background-color: ${({ color }) => color};
|
background-color: ${({ color }) => color};
|
||||||
padding: 0.3em;
|
padding: 0.3em;
|
||||||
`;
|
`;
|
||||||
MockupBlock.displayName = "MockupBlock";
|
|
||||||
@@ -21,7 +21,6 @@ export const MainMenu = React.forwardRef<HTMLDivElement>(
|
|||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
MainMenu.displayName = "MainMenu";
|
|
||||||
|
|
||||||
type MenuProps = {
|
type MenuProps = {
|
||||||
links: Array<{label: string, to: string}>,
|
links: Array<{label: string, to: string}>,
|
||||||
@@ -56,7 +55,6 @@ const Menu = React.forwardRef<HTMLDivElement, MenuProps>(
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
Menu.displayName = "Menu";
|
|
||||||
|
|
||||||
type MenuNavLinkProps = {
|
type MenuNavLinkProps = {
|
||||||
to: string,
|
to: string,
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import { InlineCluster } from "@bedrock-layout/inline-cluster";
|
import { InlineCluster } from "@bedrock-layout/inline-cluster";
|
||||||
import { PadBox } from "@bedrock-layout/padbox";
|
import { PadBox } from "@bedrock-layout/padbox";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const Title = styled.h3`
|
export const Title = styled.h3`
|
||||||
font-family: ${p => p.theme.fonts.f1Bold};
|
font-family: ${p => p.theme.fonts.f1Bold};
|
||||||
`;
|
`;
|
||||||
Title.displayName = "Title";
|
|
||||||
|
|
||||||
export const MenuBar = styled(InlineCluster).attrs(() => ({
|
export const MenuBar = styled(InlineCluster).attrs(() => ({
|
||||||
as: PadBox,
|
as: PadBox,
|
||||||
@@ -17,4 +16,3 @@ export const MenuBar = styled(InlineCluster).attrs(() => ({
|
|||||||
background-image: linear-gradient(to right, #f0f0f0, #fff);
|
background-image: linear-gradient(to right, #f0f0f0, #fff);
|
||||||
border-block-end: 1px solid ${p => p.theme.colors.darkGrey};
|
border-block-end: 1px solid ${p => p.theme.colors.darkGrey};
|
||||||
`;
|
`;
|
||||||
MenuBar.displayName = "MenuBar";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* scale is a percentage (0-100%)
|
* scale is a percentage (0-100%)
|
||||||
@@ -20,7 +20,6 @@ export const OverlayImage = styled.img.attrs<OverlayImageProps>(({
|
|||||||
outline-offset: -2px;
|
outline-offset: -2px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
OverlayImage.displayName = "OverlayImage";
|
|
||||||
|
|
||||||
type OverlayImageContainerProps = {
|
type OverlayImageContainerProps = {
|
||||||
opacity: number,
|
opacity: number,
|
||||||
@@ -41,12 +40,10 @@ export const OverlayImageContainer = styled.div.attrs<OverlayImageContainerProps
|
|||||||
}
|
}
|
||||||
|
|
||||||
`;
|
`;
|
||||||
OverlayImageContainer.displayName = "OverlayImageContainer";
|
|
||||||
|
|
||||||
export const OverlayImageSubContainer = styled.div`
|
export const OverlayImageSubContainer = styled.div`
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
`;
|
`;
|
||||||
OverlayImageSubContainer.displayName = "OverlayImageSubContainer";
|
|
||||||
|
|
||||||
export const OverlayImageSize = styled.span`
|
export const OverlayImageSize = styled.span`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -61,4 +58,3 @@ export const OverlayImageSize = styled.span`
|
|||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
text-shadow: -1px -1px 1px rgba(255,255,255,.1), 1px 1px 1px rgba(0,0,0,.5);
|
text-shadow: -1px -1px 1px rgba(255,255,255,.1), 1px 1px 1px rgba(0,0,0,.5);
|
||||||
`;
|
`;
|
||||||
OverlayImageSize.displayName = "OverlayImageSize";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
import { Px } from "../../../types/style";
|
import { Px } from "../../../types/style";
|
||||||
|
|
||||||
type BasicBlockProps = {
|
type BasicBlockProps = {
|
||||||
@@ -19,4 +19,3 @@ export const BasicBlock = styled.div<BasicBlockProps>`
|
|||||||
|
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
`;
|
`;
|
||||||
BasicBlock.displayName = "BasicBlock";
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const ChyronControlsContainer = styled.div`
|
export const ChyronControlsContainer = styled.div`
|
||||||
width: 420px;
|
width: 420px;
|
||||||
height: auto;
|
height: auto;
|
||||||
`;
|
`;
|
||||||
ChyronControlsContainer.displayName = "ChyronControlsContainer";
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { PadBox } from "@bedrock-layout/padbox";
|
import { PadBox } from "@bedrock-layout/padbox";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
type GridItemProps = {
|
type GridItemProps = {
|
||||||
selected: boolean,
|
selected: boolean,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
|
|
||||||
export const ClickSpan = styled.span`
|
export const ClickSpan = styled.span`
|
||||||
font-family: ${p => p.theme.fonts.f1Bold};
|
font-family: ${p => p.theme.fonts.f1Bold};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled, { css, keyframes } from "styled-components";
|
import styled, { css, keyframes } from "styled-components/macro";
|
||||||
import { PadBox } from "@bedrock-layout/padbox";
|
import { PadBox } from "@bedrock-layout/padbox";
|
||||||
|
|
||||||
import { Dimensions } from "../../../types/state";
|
import { Dimensions } from "../../../types/state";
|
||||||
@@ -35,7 +35,6 @@ export const PreviewWindow = styled.div<PreviewWindowProps>`
|
|||||||
animation: ${scrollAnimation} 5s linear infinite;
|
animation: ${scrollAnimation} 5s linear infinite;
|
||||||
`}
|
`}
|
||||||
`;
|
`;
|
||||||
PreviewWindow.displayName = "PreviewWindow";
|
|
||||||
|
|
||||||
export const H2 = styled.h2`
|
export const H2 = styled.h2`
|
||||||
margin: 0.2em;
|
margin: 0.2em;
|
||||||
@@ -43,7 +42,6 @@ export const H2 = styled.h2`
|
|||||||
font-family: ${p => p.theme.fonts.f1Regular};
|
font-family: ${p => p.theme.fonts.f1Regular};
|
||||||
max-inline-size: 600px;
|
max-inline-size: 600px;
|
||||||
`;
|
`;
|
||||||
H2.displayName = "H2";
|
|
||||||
|
|
||||||
export const ControlsContainer = styled(PadBox).attrs(() => ({
|
export const ControlsContainer = styled(PadBox).attrs(() => ({
|
||||||
padding: "lg",
|
padding: "lg",
|
||||||
@@ -53,4 +51,3 @@ export const ControlsContainer = styled(PadBox).attrs(() => ({
|
|||||||
width: 800px;
|
width: 800px;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
`;
|
`;
|
||||||
ControlsContainer.displayName = "ControlsContainer";
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components/macro";
|
||||||
import { PadBox } from "@bedrock-layout/padbox";
|
import { PadBox } from "@bedrock-layout/padbox";
|
||||||
|
|
||||||
type WorkspaceListBoxProps = {
|
type WorkspaceListBoxProps = {
|
||||||
@@ -13,4 +13,3 @@ export const WorkspaceListBox = styled(PadBox).attrs(() => ({
|
|||||||
border-right: 1px solid ${p => p.theme.colors.darkGrey};
|
border-right: 1px solid ${p => p.theme.colors.darkGrey};
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
`;
|
`;
|
||||||
WorkspaceListBox.displayName = "WorkspaceListBox";
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { createGlobalStyle } from "styled-components";
|
import { createGlobalStyle } from "styled-components/macro";
|
||||||
|
|
||||||
import Formula1RegularWoff2 from "./Formula1-Regular.woff2";
|
import Formula1RegularWoff2 from "./Formula1-Regular.woff2";
|
||||||
import Formula1RegularTTF from "./Formula1-Regular.ttf";
|
import Formula1RegularTTF from "./Formula1-Regular.ttf";
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ import React from "react";
|
|||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
import { Provider } from "react-redux";
|
import { Provider } from "react-redux";
|
||||||
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
||||||
import { ThemeProvider } from "styled-components";
|
import { ThemeProvider } from "styled-components/macro";
|
||||||
|
|
||||||
import "./clear.css";
|
import "./clear.css";
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { createGlobalStyle, ThemeProps } from "styled-components";
|
import { createGlobalStyle, ThemeProps } from "styled-components/macro";
|
||||||
|
|
||||||
export const theme = {
|
export const theme = {
|
||||||
fonts: {
|
fonts: {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { css }from "styled-components";
|
import { css }from "styled-components/macro";
|
||||||
import { clamp } from "lodash";
|
import { clamp } from "lodash";
|
||||||
|
|
||||||
import { Corner, Fraction, Placement, Px, TransitionArgs } from "../types/style";
|
import { Corner, Fraction, Placement, Px, TransitionArgs } from "../types/style";
|
||||||
|
|||||||
@@ -2877,15 +2877,16 @@ babel-plugin-polyfill-regenerator@^0.3.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/helper-define-polyfill-provider" "^0.3.0"
|
"@babel/helper-define-polyfill-provider" "^0.3.0"
|
||||||
|
|
||||||
"babel-plugin-styled-components@>= 1.12.0", babel-plugin-styled-components@^2.0.2:
|
"babel-plugin-styled-components@>= 1.12.0", babel-plugin-styled-components@^2.0.6:
|
||||||
version "2.0.2"
|
version "2.0.6"
|
||||||
resolved "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-2.0.2.tgz"
|
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-2.0.6.tgz#6f76c7f7224b7af7edc24a4910351948c691fc90"
|
||||||
integrity sha512-7eG5NE8rChnNTDxa6LQfynwgHTVOYYaHJbUYSlOhk8QBXIQiMBKq4gyfHBBKPrxUcVBXVJL61ihduCpCQbuNbw==
|
integrity sha512-Sk+7o/oa2HfHv3Eh8sxoz75/fFvEdHsXV4grdeHufX0nauCmymlnN0rGhIvfpMQSJMvGutJ85gvCGea4iqmDpg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/helper-annotate-as-pure" "^7.16.0"
|
"@babel/helper-annotate-as-pure" "^7.16.0"
|
||||||
"@babel/helper-module-imports" "^7.16.0"
|
"@babel/helper-module-imports" "^7.16.0"
|
||||||
babel-plugin-syntax-jsx "^6.18.0"
|
babel-plugin-syntax-jsx "^6.18.0"
|
||||||
lodash "^4.17.11"
|
lodash "^4.17.11"
|
||||||
|
picomatch "^2.3.0"
|
||||||
|
|
||||||
babel-plugin-syntax-jsx@^6.18.0:
|
babel-plugin-syntax-jsx@^6.18.0:
|
||||||
version "6.18.0"
|
version "6.18.0"
|
||||||
@@ -6975,6 +6976,11 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3:
|
|||||||
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz"
|
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz"
|
||||||
integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==
|
integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==
|
||||||
|
|
||||||
|
picomatch@^2.3.0:
|
||||||
|
version "2.3.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
|
||||||
|
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
|
||||||
|
|
||||||
pirates@^4.0.1:
|
pirates@^4.0.1:
|
||||||
version "4.0.4"
|
version "4.0.4"
|
||||||
resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.4.tgz"
|
resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.4.tgz"
|
||||||
@@ -8609,7 +8615,7 @@ style-loader@^3.3.1:
|
|||||||
|
|
||||||
styled-components@^5.3.3:
|
styled-components@^5.3.3:
|
||||||
version "5.3.3"
|
version "5.3.3"
|
||||||
resolved "https://registry.npmjs.org/styled-components/-/styled-components-5.3.3.tgz"
|
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-5.3.3.tgz#312a3d9a549f4708f0fb0edc829eb34bde032743"
|
||||||
integrity sha512-++4iHwBM7ZN+x6DtPPWkCI4vdtwumQ+inA/DdAsqYd4SVgUKJie5vXyzotA00ttcFdQkCng7zc6grwlfIfw+lw==
|
integrity sha512-++4iHwBM7ZN+x6DtPPWkCI4vdtwumQ+inA/DdAsqYd4SVgUKJie5vXyzotA00ttcFdQkCng7zc6grwlfIfw+lw==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/helper-module-imports" "^7.0.0"
|
"@babel/helper-module-imports" "^7.0.0"
|
||||||
|
|||||||
Reference in new issue
Block a user