Fix the ref, upload, keyframes, and implicit-any type errors. [skip build]
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { style, keyframes } from '@vanilla-extract/css';
|
||||
import { color, config } from 'folds';
|
||||
import { AppRegionStyleRule } from '../../../types/utils';
|
||||
|
||||
const wipeIn = keyframes({
|
||||
'0%': {
|
||||
@@ -23,7 +24,7 @@ const wipeOut = keyframes({
|
||||
},
|
||||
});
|
||||
|
||||
export const NewMessagePill = style({
|
||||
const newMessagePill: AppRegionStyleRule = {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: config.space.S100,
|
||||
@@ -45,7 +46,9 @@ export const NewMessagePill = style({
|
||||
backgroundColor: '#388E3C',
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const NewMessagePill = style(newMessagePill);
|
||||
|
||||
export const NewMessagePillExiting = style({
|
||||
animation: `${wipeOut} 0.2s ease-in forwards`,
|
||||
@@ -65,7 +68,7 @@ export const TitleBar = style({
|
||||
WebkitUserSelect: 'none',
|
||||
});
|
||||
|
||||
export const TitleBarDragRegion = style({
|
||||
const titleBarDragRegion: AppRegionStyleRule = {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
height: '100%',
|
||||
@@ -74,14 +77,18 @@ export const TitleBarDragRegion = style({
|
||||
cursor: 'default',
|
||||
WebkitAppRegion: 'drag',
|
||||
color: color.Surface.OnContainer,
|
||||
});
|
||||
};
|
||||
|
||||
export const TitleBarBackButton = style({
|
||||
export const TitleBarDragRegion = style(titleBarDragRegion);
|
||||
|
||||
const titleBarBackButton: AppRegionStyleRule = {
|
||||
WebkitAppRegion: 'no-drag',
|
||||
flexShrink: 0,
|
||||
});
|
||||
};
|
||||
|
||||
export const SyncStatusBadge = style({
|
||||
export const TitleBarBackButton = style(titleBarBackButton);
|
||||
|
||||
const syncStatusBadge: AppRegionStyleRule = {
|
||||
position: 'absolute',
|
||||
left: '50%',
|
||||
top: '50%',
|
||||
@@ -94,7 +101,9 @@ export const SyncStatusBadge = style({
|
||||
zIndex: 1001,
|
||||
pointerEvents: 'none',
|
||||
WebkitAppRegion: 'no-drag',
|
||||
});
|
||||
};
|
||||
|
||||
export const SyncStatusBadge = style(syncStatusBadge);
|
||||
|
||||
export const SyncStatusSuccess = style({
|
||||
backgroundColor: color.Success.Container,
|
||||
|
||||
Reference in New Issue
Block a user