-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c8f34d
commit cbd123f
Showing
14 changed files
with
209 additions
and
110 deletions.
There are no files selected for viewing
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,4 @@ | ||
declare module 'classnames' { | ||
const classNames: (...args: (string | undefined | null | boolean)[]) => string | ||
export default classNames | ||
} |
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 |
---|---|---|
@@ -1,68 +1,58 @@ | ||
/* eslint-disable react/no-multi-comp, @typescript-eslint/no-empty-function*/ | ||
declare module 'part:@sanity/components/*' { | ||
class SanityInputComponent extends React.Component<any> { | ||
focus() {} | ||
} | ||
export default SanityInputComponent | ||
} | ||
/* eslint-disable import/export */ | ||
|
||
declare module 'part:@sanity/components/click-outside' { | ||
// export const ClickOutside: ComponentType<{}> | ||
export const ClickOutside: any | ||
declare module 'part:@sanity/base/router' { | ||
export * from '@sanity/base/src/router' | ||
} | ||
|
||
declare module 'part:@sanity/components/menu-button' { | ||
export const MenuButton: ComponentType<{ | ||
// @todo: typings | ||
buttonProps?: any | ||
menu?: React.ReactNode | ||
placement?: string | ||
open?: boolean | ||
setOpen?: (val: boolean) => void | ||
}> | ||
declare module 'part:@sanity/base/check-icon' { | ||
export {default} from '@sanity/base/src/components/icons/Check' | ||
} | ||
|
||
declare module 'part:@sanity/components/popover' { | ||
// export const Popover: ComponentType<{}> | ||
export const Popover: any | ||
declare module 'part:@sanity/base/cog-icon' { | ||
export {default} from '@sanity/base/src/components/icons/Cog' | ||
} | ||
|
||
declare module 'part:@sanity/components/tooltip' { | ||
// export const Tooltip: ComponentType<{}> | ||
export const Tooltip: any | ||
declare module 'part:@sanity/base/error-outline-icon' { | ||
export {default} from '@sanity/base/src/components/icons/ErrorOutline' | ||
} | ||
|
||
declare module 'part:@sanity/components/selects/*' { | ||
class SanitySelectComponent extends React.Component<any> { | ||
focus() {} | ||
} | ||
export default SanitySelectComponent | ||
declare module 'part:@sanity/base/link-icon' { | ||
export {default} from '@sanity/base/src/components/icons/Link' | ||
} | ||
|
||
declare module 'part:@sanity/components/toggles/*' { | ||
class SanityToggleComponent extends React.Component<any> { | ||
focus() {} | ||
} | ||
export default SanityToggleComponent | ||
declare module 'part:@sanity/base/close-icon' { | ||
export {default} from '@sanity/base/src/components/icons/CloseIcon' | ||
} | ||
|
||
declare module 'part:@sanity/components/tags/*' { | ||
class SanityTagsComponent extends React.Component<any> { | ||
focus() {} | ||
} | ||
export default SanityTagsComponent | ||
declare module 'part:@sanity/base/users-icon' { | ||
export {default} from '@sanity/base/src/components/icons/UsersIcon' | ||
} | ||
|
||
declare module 'part:@sanity/components/textareas/*' { | ||
class SanityTextareaComponent extends React.Component<any> { | ||
focus() {} | ||
} | ||
export default SanityTextareaComponent | ||
} | ||
declare module 'part:@sanity/components/buttons/default' { | ||
const DefaultButton: React.ComponentClass<{ | ||
kind?: 'simple' | 'secondary' | ||
color?: 'primary' | 'success' | 'danger' | 'white' | 'warning' | ||
onBlur?: () => void | ||
onClick?: () => void | ||
children?: React.ReactNode | ||
inverted?: boolean | ||
icon?: React.ComponentType<{}> | ||
loading?: boolean | ||
className?: string | ||
disabled?: boolean | ||
tabIndex?: number | ||
padding?: 'large' | 'default' | 'small' | 'none' | ||
bleed?: boolean | ||
selected?: boolean | ||
size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large' | ||
}> | ||
|
||
declare module 'config:@sanity/form-builder' | ||
declare module 'all:part:@sanity/form-builder/input/image/asset-source' | ||
export default DefaultButton | ||
} | ||
|
||
declare module 'part:@sanity/components/utilities/portal' | ||
declare module 'part:@sanity/components/lists/*' | ||
declare module 'part:@sanity/*' | ||
/////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Because `@sanity/components` depends on `@sanity/base` we need these "ambient" definitions | ||
/////////////////////////////////////////////////////////////////////////////////////////////////// | ||
declare module 'part:@sanity/base/client' | ||
declare module 'part:@sanity/base/authentication-fetcher' | ||
declare module 'part:@sanity/base/user' |
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
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 was deleted.
Oops, something went wrong.
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,20 @@ | ||
export type Marker = { | ||
path: any[] | ||
type: string | ||
level: string | ||
item: any | ||
} | ||
|
||
export type Placement = | ||
| 'top' | ||
| 'top-start' | ||
| 'top-end' | ||
| 'right' | ||
| 'right-start' | ||
| 'right-end' | ||
| 'left' | ||
| 'left-start' | ||
| 'left-end' | ||
| 'bottom' | ||
| 'bottom-start' | ||
| 'bottom-end' |
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
2 changes: 1 addition & 1 deletion
2
packages/@sanity/components/src/validation/ValidationListItem.tsx
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
Oops, something went wrong.