Files
outline/app/typings/styled-components.d.ts
Saumya Pandey 4c95674ef0 fix: Add ability to collapse and expand collections that are not active (#3102)
* fix: add disclosure and transition

* fix: keep collections expanded

* fix: tune transition and collapsing conditions

* fix: collectionIcon expanded props is no longer driven by expanded state

* fix: sync issue

* fix: managing state together

* fix: remove comment

* fix: simplify expanded state

* fix: remove extra state

* fix: remove animation and retain expanded state

* fix: remove isCollectionDropped

* fix: don't use ref

* review suggestions

* fix many functional and design issues

* don't render every single document in the sidebar, just ones that the user has seen before

* chore: Sidebar refinement (#3154)

* stash

* wip: More sidebar tweaks

* Simplify draft bubble

* disclosure refactor

* wip wip

* lint

* tweak menu position

* Use document emoji for starred docs where available

* feat: Trigger cmd+k from sidebar (#3149)

* feat: Trigger cmd+k from sidebar

* Add hint when opening command bar from sidebar

* fix: Clicking internal links in shared documents sometimes reroutes to Login

* fix: Spacing issues on connected slack channels list

* Merge

* fix: Do not prefetch JS bundles on public share links

* fix: Buttons show on collection empty state when user does not have permission to edit

* fix: the hover area for the "collections" subheading was being obfuscated by the initial collection drop cursor

* fix: top-align disclosures

* fix: Disclosure color PR feedback
fix: Starred no longer draggable

* fix: Overflow on sidebar button

* fix: Scrollbar in sidebar when command menu is open

* Minor alignment issues, clarify back in settings sidebar

* fix: Fade component causes SidebarButton missizing

Co-authored-by: Nan Yu <thenanyu@gmail.com>

Co-authored-by: Tom Moor <tom.moor@gmail.com>
Co-authored-by: Nan Yu <thenanyu@gmail.com>
2022-02-23 21:26:38 -08:00

188 lines
4.5 KiB
TypeScript

// import original module declarations
import "styled-components";
// and extend them!
declare module "styled-components" {
interface EditorTheme {
background: string;
text: string;
cursor: string;
divider: string;
toolbarBackground: string;
toolbarHoverBackground: string;
toolbarInput: string;
toolbarItem: string;
tableDivider: string;
tableSelected: string;
tableSelectedBackground: string;
tableHeaderBackground: string;
quote: string;
codeBackground: string;
codeBorder: string;
horizontalRule: string;
scrollbarBackground: string;
scrollbarThumb: string;
fontFamily: string;
fontFamilyMono: string;
fontWeight: number;
zIndex: 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;
blockToolbarBackground: string;
blockToolbarTrigger: string;
blockToolbarTriggerIcon: string;
blockToolbarItem: string;
blockToolbarIcon: undefined;
blockToolbarIconSelected: string;
blockToolbarText: string;
blockToolbarTextSelected: string;
blockToolbarSelectedBackground: string;
blockToolbarHoverBackground: string;
blockToolbarDivider: 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;
white10: string;
white50: string;
white75: string;
black: string;
black05: string;
black10: string;
black50: string;
primary: 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 Spacing {
padding: string;
vpadding: string;
hpadding: string;
sidebarWidth: number;
sidebarCollapsedWidth: number;
sidebarMinWidth: number;
sidebarMaxWidth: number;
}
interface Breakpoints {
mobile: number;
tablet: number;
desktop: number;
desktopLarge: number;
}
interface Depths {
header: number;
sidebar: number;
hoverPreview: number;
modalOverlay: number;
modal: number;
menu: number;
toasts: number;
popover: number;
titleBarDivider: number;
loadingIndicatorBar: number;
commandBar: number;
}
export interface DefaultTheme extends Colors, Spacing, EditorTheme {
background: string;
backgroundTransition: string;
buttonBackground: string;
buttonText: string;
secondaryBackground: string;
link: string;
text: string;
cursor: string;
textSecondary: string;
textTertiary: string;
placeholder: string;
sidebarBackground: string;
sidebarActiveBackground: string;
sidebarControlHoverBackground: string;
sidebarDraftBorder: string;
sidebarText: string;
backdrop: string;
shadow: 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;
breakpoints: Breakpoints;
depths: Depths;
}
}