* Comment model * Framework, model, policy, presenter, api endpoint etc * Iteration, first pass of UI * fixes, refactors * Comment commands * comment socket support * typing indicators * comment component, styling * wip * right sidebar resize * fix: CMD+Enter submit * Add usePersistedState fix: Main page scrolling on comment highlight * drafts * Typing indicator * refactor * policies * Click thread to highlight Improve comment timestamps * padding * Comment menu v1 * Change comments to use editor * Basic comment editing * fix: Hide commenting button when disabled at team level * Enable opening sidebar without mark * Move selected comment to location state * Add comment delete confirmation * Add comment count to document meta * fix: Comment sidebar togglable Add copy link to comment * stash * Restore History changes * Refactor right sidebar to allow for comment animation * Update to new router best practices * stash * Various improvements * stash * Handle click outside * Fix incorrect placeholder in input fix: Input box appearing on other sessions erroneously * stash * fix: Don't leave orphaned child comments * styling * stash * Enable comment toggling again * Edit styling, merge conflicts * fix: Cannot navigate from insights to comments * Remove draft comment mark on click outside * Fix: Empty comment sidebar, tsc * Remove public toggle * fix: All comments are recessed fix: Comments should not be printed * fix: Associated mark should be removed on comment delete * Revert unused changes * Empty state, basic RTL support * Create dont toggle comment mark * Make it feel more snappy * Highlight active comment in text * fix animation * RTL support * Add reply CTA * Translations
177 lines
4.1 KiB
TypeScript
177 lines
4.1 KiB
TypeScript
// import original module declarations
|
|
import "styled-components";
|
|
|
|
// and extend them!
|
|
declare module "styled-components" {
|
|
interface EditorTheme {
|
|
isDark: boolean;
|
|
background: string;
|
|
text: string;
|
|
cursor: string;
|
|
divider: string;
|
|
toolbarBackground: string;
|
|
toolbarHoverBackground: string;
|
|
toolbarInput: string;
|
|
toolbarItem: string;
|
|
tableDivider: string;
|
|
tableSelected: string;
|
|
tableSelectedBackground: string;
|
|
quote: string;
|
|
codeBackground: string;
|
|
codeBorder: string;
|
|
horizontalRule: string;
|
|
scrollbarBackground: string;
|
|
scrollbarThumb: string;
|
|
fontFamily: string;
|
|
fontFamilyMono: string;
|
|
fontWeight: number;
|
|
link: string;
|
|
placeholder: string;
|
|
textSecondary: string;
|
|
textHighlight: string;
|
|
textHighlightForeground: string;
|
|
selected: string;
|
|
code: string;
|
|
codeComment: string;
|
|
codePunctuation: string;
|
|
codeNumber: string;
|
|
codeProperty: string;
|
|
codeTag: string;
|
|
codeString: string;
|
|
codeSelector: string;
|
|
codeAttr: string;
|
|
codeEntity: string;
|
|
codeKeyword: string;
|
|
codeFunction: string;
|
|
codeStatement: string;
|
|
codePlaceholder: string;
|
|
codeInserted: string;
|
|
codeImportant: string;
|
|
noticeInfoBackground: string;
|
|
noticeInfoText: string;
|
|
noticeTipBackground: string;
|
|
noticeTipText: string;
|
|
noticeWarningBackground: string;
|
|
noticeWarningText: string;
|
|
}
|
|
|
|
interface Colors {
|
|
transparent: string;
|
|
almostBlack: string;
|
|
lightBlack: string;
|
|
almostWhite: string;
|
|
veryDarkBlue: string;
|
|
slate: string;
|
|
slateLight: string;
|
|
slateDark: string;
|
|
smoke: string;
|
|
smokeLight: string;
|
|
smokeDark: string;
|
|
white: string;
|
|
white05: string;
|
|
white10: string;
|
|
white50: string;
|
|
white75: string;
|
|
black: string;
|
|
black05: string;
|
|
black10: string;
|
|
black50: string;
|
|
black75: string;
|
|
accent: string;
|
|
yellow: string;
|
|
warmGrey: string;
|
|
searchHighlight: string;
|
|
danger: string;
|
|
warning: string;
|
|
success: string;
|
|
info: string;
|
|
brand: {
|
|
red: string;
|
|
pink: string;
|
|
purple: string;
|
|
blue: string;
|
|
marine: string;
|
|
green: string;
|
|
yellow: string;
|
|
};
|
|
}
|
|
|
|
interface Breakpoints {
|
|
breakpoints: {
|
|
mobile: number;
|
|
mobileLarge: number;
|
|
tablet: number;
|
|
desktop: number;
|
|
desktopLarge: number;
|
|
};
|
|
}
|
|
|
|
interface Spacing {
|
|
padding: string;
|
|
vpadding: string;
|
|
hpadding: string;
|
|
sidebarWidth: number;
|
|
sidebarCollapsedWidth: number;
|
|
sidebarMinWidth: number;
|
|
sidebarMaxWidth: number;
|
|
}
|
|
|
|
export interface DefaultTheme
|
|
extends Colors,
|
|
Spacing,
|
|
Breakpoints,
|
|
EditorTheme {
|
|
background: string;
|
|
backgroundTransition: string;
|
|
accent: string;
|
|
accentText: string;
|
|
secondaryBackground: string;
|
|
link: string;
|
|
text: string;
|
|
cursor: string;
|
|
textSecondary: string;
|
|
textTertiary: string;
|
|
textDiffInserted: string;
|
|
textDiffInsertedBackground: string;
|
|
textDiffDeleted: string;
|
|
textDiffDeletedBackground: string;
|
|
placeholder: string;
|
|
commentBackground: string;
|
|
commentActiveBackground: string;
|
|
sidebarBackground: string;
|
|
sidebarActiveBackground: string;
|
|
sidebarControlHoverBackground: string;
|
|
sidebarDraftBorder: string;
|
|
sidebarText: string;
|
|
backdrop: string;
|
|
shadow: string;
|
|
modalBackdrop: string;
|
|
modalBackground: string;
|
|
modalShadow: string;
|
|
menuItemSelected: string;
|
|
menuBackground: string;
|
|
menuShadow: string;
|
|
menuBorder?: string;
|
|
divider: string;
|
|
titleBarDivider: string;
|
|
inputBorder: string;
|
|
inputBorderFocused: string;
|
|
listItemHoverBackground: string;
|
|
buttonNeutralBackground: string;
|
|
buttonNeutralText: string;
|
|
buttonNeutralBorder: string;
|
|
tooltipBackground: string;
|
|
tooltipText: string;
|
|
toastBackground: string;
|
|
toastText: string;
|
|
quote: string;
|
|
codeBackground: string;
|
|
codeBorder: string;
|
|
embedBorder: string;
|
|
horizontalRule: string;
|
|
progressBarBackground: string;
|
|
scrollbarBackground: string;
|
|
scrollbarThumb: string;
|
|
}
|
|
}
|