-
-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tags folder design review (#785)
* fix: upgrade design after review * fix: tweak dropzone * fix: sync after assign parent * fix: tsc error on build * fix: vertical center the fold arrows * fix: define our own hoist for react-dnd * feat: hide fold when there are no folders * fix: show children usability + resize UI * fix: use old colors for now, theme compat * fix: tweak alignment and add title * fix: meta offset with folders * fix: tweak tag size * fix: observable setup * fix: use link-off icon on dropzone * fix: more tweak on text sizes
- Loading branch information
1 parent
394049b
commit 01e3e9e
Showing
9 changed files
with
156 additions
and
33 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
67 changes: 67 additions & 0 deletions
67
app/assets/javascripts/typings/hoist-non-react-statics.d.ts
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,67 @@ | ||
/* eslint-disable @typescript-eslint/ban-types */ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
// Type definitions for hoist-non-react-statics 3.3 | ||
// Project: https://github.com/mridgway/hoist-non-react-statics#readme | ||
// Definitions by: JounQin <https://github.com/JounQin>, James Reggio <https://github.com/jamesreggio> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
// https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hoist-non-react-statics | ||
|
||
declare module 'hoist-non-react-statics' { | ||
interface REACT_STATICS { | ||
childContextTypes: true; | ||
contextType: true; | ||
contextTypes: true; | ||
defaultProps: true; | ||
displayName: true; | ||
getDefaultProps: true; | ||
getDerivedStateFromError: true; | ||
getDerivedStateFromProps: true; | ||
mixins: true; | ||
propTypes: true; | ||
type: true; | ||
} | ||
|
||
interface KNOWN_STATICS { | ||
name: true; | ||
length: true; | ||
prototype: true; | ||
caller: true; | ||
callee: true; | ||
arguments: true; | ||
arity: true; | ||
} | ||
|
||
interface MEMO_STATICS { | ||
$$typeof: true; | ||
compare: true; | ||
defaultProps: true; | ||
displayName: true; | ||
propTypes: true; | ||
type: true; | ||
} | ||
|
||
interface FORWARD_REF_STATICS { | ||
$$typeof: true; | ||
render: true; | ||
defaultProps: true; | ||
displayName: true; | ||
propTypes: true; | ||
} | ||
|
||
export type NonReactStatics< | ||
S extends React.ComponentType<any>, | ||
C extends { | ||
[key: string]: true; | ||
} = {} | ||
> = { | ||
[key in Exclude< | ||
keyof S, | ||
S extends React.MemoExoticComponent<any> | ||
? keyof MEMO_STATICS | keyof C | ||
: S extends React.ForwardRefExoticComponent<any> | ||
? keyof FORWARD_REF_STATICS | keyof C | ||
: keyof REACT_STATICS | keyof KNOWN_STATICS | keyof C | ||
>]: S[key]; | ||
}; | ||
} |
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