@gojijs/core
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -33,3 +33,3 @@ import * as React from 'react'; | ||
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; | ||
forceUpdate(callBack?: (() => void) | undefined): void; | ||
forceUpdate(callback?: (() => void) | undefined): void; | ||
readonly props: Readonly<{}> & Readonly<{ | ||
@@ -36,0 +36,0 @@ children?: React.ReactNode; |
@@ -48,2 +48,17 @@ import { Props, CSSProperties } from 'react'; | ||
} | ||
interface ScrollViewProps extends BaseProps { | ||
scrollX?: boolean; | ||
scrollY?: boolean; | ||
upperThreshold?: number | string; | ||
lowerThreshold?: number | string; | ||
scrollTop?: number | string; | ||
scrollLeft?: number | string; | ||
scrollIntoView?: string; | ||
scrollWithAnimation?: boolean; | ||
enableBackToTop?: boolean; | ||
enableFlex?: boolean; | ||
onScrolltoupper?: (e: any) => void; | ||
onScrolltolower?: (e: any) => void; | ||
onScroll?: (e: any) => void; | ||
} | ||
export declare const View: <T>(props: Props<T> & ViewProps) => import("react").ReactElement<Props<T> & ViewProps, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>; | ||
@@ -54,2 +69,3 @@ export declare const Button: <T>(props: Props<T> & ButtonProps) => import("react").ReactElement<Props<T> & ButtonProps, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>; | ||
export declare const Label: <T>(props: Props<T> & LabelProps) => import("react").ReactElement<Props<T> & LabelProps, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>; | ||
export declare const ScrollView: <T>(props: Props<T> & ScrollViewProps) => import("react").ReactElement<Props<T> & ScrollViewProps, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>; | ||
export {}; |
@@ -12,2 +12,3 @@ import { createElement } from 'react'; | ||
export const Label = factoryComponent('label'); | ||
export const ScrollView = factoryComponent('scroll-view'); | ||
//# sourceMappingURL=factoryComponents.js.map |
{ | ||
"name": "@gojijs/core", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Goji Core", | ||
@@ -45,3 +45,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "ce0edf9d5edc07373eda43fd6a36084e0d3739d7" | ||
"gitHead": "342d4e8585ae4885898ab6ab81dc5dce10c4f686" | ||
} |
@@ -103,2 +103,18 @@ import { Props, createElement, CSSProperties } from 'react'; | ||
interface ScrollViewProps extends BaseProps { | ||
scrollX?: boolean; | ||
scrollY?: boolean; | ||
upperThreshold?: number | string; | ||
lowerThreshold?: number | string; | ||
scrollTop?: number | string; | ||
scrollLeft?: number | string; | ||
scrollIntoView?: string; | ||
scrollWithAnimation?: boolean; | ||
enableBackToTop?: boolean; | ||
enableFlex?: boolean; | ||
onScrolltoupper?: (e: any) => void; | ||
onScrolltolower?: (e: any) => void; | ||
onScroll?: (e: any) => void; | ||
} | ||
export const View = factoryComponent<ViewProps>('view'); | ||
@@ -109,1 +125,2 @@ export const Button = factoryComponent<ButtonProps>('button'); | ||
export const Label = factoryComponent<LabelProps>('label'); | ||
export const ScrollView = factoryComponent<ScrollViewProps>('scroll-view'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55872
1207