@fewbox/den 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index-app.d.ts +15 -0
- package/index.css +12226 -0
- package/index.js +2 -0
- package/index.js.map +1 -0
- package/jest.setup.d.ts +1 -0
- package/package.json +30 -0
- package/scripts/copy-templates.js +29 -0
- package/src/action/index.d.ts +9 -0
- package/src/components/Analyze/GA4/index.d.ts +9 -0
- package/src/components/Analyze/GA4NextJS/index.d.ts +5 -0
- package/src/components/Analyze/util.d.ts +115 -0
- package/src/components/Auth/FigmaSignin/index.d.ts +9 -0
- package/src/components/Auth/GoogleGrant/index.d.ts +41 -0
- package/src/components/Auth/GoogleSignin/index.d.ts +18 -0
- package/src/components/Auth/WeComSignin/index.d.ts +8 -0
- package/src/components/Auth/util.d.ts +17 -0
- package/src/components/Debug/index.d.ts +6 -0
- package/src/components/Engine/Base/index.d.ts +228 -0
- package/src/components/Engine/BaseComponent/index.d.ts +9 -0
- package/src/components/Engine/index.d.ts +212 -0
- package/src/components/Layout/Display/index.d.ts +18 -0
- package/src/components/Layout/Dock/index.d.ts +23 -0
- package/src/components/Layout/DockBak/index.d.ts +24 -0
- package/src/components/Layout/Flex/index.d.ts +44 -0
- package/src/components/Layout/FlexItem/index.d.ts +18 -0
- package/src/components/Layout/Position/index.d.ts +33 -0
- package/src/components/Layout/PositionArea/index.d.ts +10 -0
- package/src/components/Layout/SBaseline/index.d.ts +5 -0
- package/src/components/Layout/SBottom/index.d.ts +6 -0
- package/src/components/Layout/SCenter/index.d.ts +5 -0
- package/src/components/Layout/SLeft/index.d.ts +5 -0
- package/src/components/Layout/SMiddle/index.d.ts +5 -0
- package/src/components/Layout/SRight/index.d.ts +5 -0
- package/src/components/Layout/SStretch/index.d.ts +5 -0
- package/src/components/Layout/STop/index.d.ts +5 -0
- package/src/components/Layout/X/index.d.ts +5 -0
- package/src/components/Layout/XAround/index.d.ts +5 -0
- package/src/components/Layout/XAutoBoth/index.d.ts +5 -0
- package/src/components/Layout/XAutoCenter/index.d.ts +5 -0
- package/src/components/Layout/XAutoLeft/index.d.ts +5 -0
- package/src/components/Layout/XAutoLefts/index.d.ts +5 -0
- package/src/components/Layout/XAutoRight/index.d.ts +5 -0
- package/src/components/Layout/XAutoRights/index.d.ts +5 -0
- package/src/components/Layout/XBase/index.d.ts +18 -0
- package/src/components/Layout/XBetween/index.d.ts +5 -0
- package/src/components/Layout/XCenter/index.d.ts +5 -0
- package/src/components/Layout/XCustom/index.d.ts +7 -0
- package/src/components/Layout/XCustomBoth/index.d.ts +7 -0
- package/src/components/Layout/XEvenly/index.d.ts +5 -0
- package/src/components/Layout/XLeft/index.d.ts +5 -0
- package/src/components/Layout/XRight/index.d.ts +5 -0
- package/src/components/Layout/XWrapAround/index.d.ts +5 -0
- package/src/components/Layout/XWrapBetween/index.d.ts +5 -0
- package/src/components/Layout/XWrapBottom/index.d.ts +5 -0
- package/src/components/Layout/XWrapEvenly/index.d.ts +5 -0
- package/src/components/Layout/XWrapMiddle/index.d.ts +5 -0
- package/src/components/Layout/XWrapTop/index.d.ts +5 -0
- package/src/components/Layout/Y/index.d.ts +5 -0
- package/src/components/Layout/YAround/index.d.ts +5 -0
- package/src/components/Layout/YAutoBoth/index.d.ts +5 -0
- package/src/components/Layout/YAutoBottom/index.d.ts +5 -0
- package/src/components/Layout/YAutoBottoms/index.d.ts +5 -0
- package/src/components/Layout/YAutoCenter/index.d.ts +5 -0
- package/src/components/Layout/YAutoTop/index.d.ts +5 -0
- package/src/components/Layout/YAutoTops/index.d.ts +5 -0
- package/src/components/Layout/YBase/index.d.ts +16 -0
- package/src/components/Layout/YBetween/index.d.ts +5 -0
- package/src/components/Layout/YBottom/index.d.ts +5 -0
- package/src/components/Layout/YCustom/index.d.ts +7 -0
- package/src/components/Layout/YCustomBoth/index.d.ts +7 -0
- package/src/components/Layout/YEvenly/index.d.ts +5 -0
- package/src/components/Layout/YMiddle/index.d.ts +5 -0
- package/src/components/Layout/YTop/index.d.ts +5 -0
- package/src/components/Layout/YWrapAround/index.d.ts +5 -0
- package/src/components/Layout/YWrapBetween/index.d.ts +5 -0
- package/src/components/Layout/YWrapCenter/index.d.ts +5 -0
- package/src/components/Layout/YWrapEvenly/index.d.ts +5 -0
- package/src/components/Layout/YWrapLeft/index.d.ts +5 -0
- package/src/components/Layout/YWrapRight/index.d.ts +5 -0
- package/src/components/Layout/index.d.ts +8 -0
- package/src/components/Layout/util.d.ts +6 -0
- package/src/components/View/VActionForm/index.d.ts +10 -0
- package/src/components/View/VAnimation/index.d.ts +127 -0
- package/src/components/View/VAudio/index.d.ts +10 -0
- package/src/components/View/VAvatar/index.d.ts +11 -0
- package/src/components/View/VBackground/index.d.ts +18 -0
- package/src/components/View/VBadge/index.d.ts +6 -0
- package/src/components/View/VBlock/index.d.ts +9 -0
- package/src/components/View/VBoundary/index.d.ts +6 -0
- package/src/components/View/VButton/index.d.ts +17 -0
- package/src/components/View/VCard/index.d.ts +8 -0
- package/src/components/View/VCardMedia/index.d.ts +9 -0
- package/src/components/View/VCardSocial/index.d.ts +13 -0
- package/src/components/View/VCardWindow/index.d.ts +15 -0
- package/src/components/View/VChromeExtensionValidator/index.d.ts +25 -0
- package/src/components/View/VDynamic/index.d.ts +7 -0
- package/src/components/View/VFooter/index.d.ts +5 -0
- package/src/components/View/VForm/index.d.ts +13 -0
- package/src/components/View/VFrame/index.d.ts +14 -0
- package/src/components/View/VGoogleFont/index.d.ts +18 -0
- package/src/components/View/VHR/index.d.ts +5 -0
- package/src/components/View/VHeader/index.d.ts +5 -0
- package/src/components/View/VHyperlink/index.d.ts +13 -0
- package/src/components/View/VImage/App/index.d.ts +16 -0
- package/src/components/View/VInput/VBase64File/App/index.d.ts +10 -0
- package/src/components/View/VInput/VCheckBox/index.d.ts +9 -0
- package/src/components/View/VInput/VColor/index.d.ts +7 -0
- package/src/components/View/VInput/VDate/index.d.ts +7 -0
- package/src/components/View/VInput/VDatetimeLocal/index.d.ts +7 -0
- package/src/components/View/VInput/VDropdown/index.d.ts +31 -0
- package/src/components/View/VInput/VEmail/index.d.ts +5 -0
- package/src/components/View/VInput/VFile/index.d.ts +22 -0
- package/src/components/View/VInput/VGroup/index.d.ts +11 -0
- package/src/components/View/VInput/VHidden/index.d.ts +8 -0
- package/src/components/View/VInput/VMonth/index.d.ts +5 -0
- package/src/components/View/VInput/VNumber/index.d.ts +5 -0
- package/src/components/View/VInput/VPassword/index.d.ts +5 -0
- package/src/components/View/VInput/VRadio/index.d.ts +6 -0
- package/src/components/View/VInput/VRange/index.d.ts +8 -0
- package/src/components/View/VInput/VSearch/index.d.ts +5 -0
- package/src/components/View/VInput/VSubmit/index.d.ts +7 -0
- package/src/components/View/VInput/VSubmitWrapper/index.d.ts +6 -0
- package/src/components/View/VInput/VTel/index.d.ts +5 -0
- package/src/components/View/VInput/VTextBox/index.d.ts +7 -0
- package/src/components/View/VInput/VTime/index.d.ts +5 -0
- package/src/components/View/VInput/VUrl/index.d.ts +5 -0
- package/src/components/View/VInput/VWeek/index.d.ts +5 -0
- package/src/components/View/VInput/index.d.ts +45 -0
- package/src/components/View/VLabel/index.d.ts +60 -0
- package/src/components/View/VLink/App/index.d.ts +6 -0
- package/src/components/View/VLoading/index.d.ts +8 -0
- package/src/components/View/VMain/index.d.ts +5 -0
- package/src/components/View/VMask/index.d.ts +5 -0
- package/src/components/View/VPaypal/index.d.ts +10 -0
- package/src/components/View/VPhoto/index.d.ts +20 -0
- package/src/components/View/VPureRoot/index.d.ts +7 -0
- package/src/components/View/VRoot/index.d.ts +7 -0
- package/src/components/View/VSection/index.d.ts +5 -0
- package/src/components/View/VSelect/index.d.ts +14 -0
- package/src/components/View/VShadow/index.d.ts +15 -0
- package/src/components/View/VShape/VEllipse/index.d.ts +10 -0
- package/src/components/View/VShape/VLine/index.d.ts +10 -0
- package/src/components/View/VShape/VRectangle/index.d.ts +10 -0
- package/src/components/View/VStack/index.d.ts +5 -0
- package/src/components/View/VSvg/index.d.ts +16 -0
- package/src/components/View/VSwitch/index.d.ts +13 -0
- package/src/components/View/VTemplate/index.d.ts +5 -0
- package/src/components/View/VText/index.d.ts +22 -0
- package/src/components/View/VTextArea/index.d.ts +17 -0
- package/src/components/View/VTheme/index.d.ts +43 -0
- package/src/components/View/VTooltip/index.d.ts +20 -0
- package/src/components/View/VTree/Block/index.d.ts +14 -0
- package/src/components/View/VTree/index.d.ts +15 -0
- package/src/components/View/VVideo/index.d.ts +10 -0
- package/src/components/View/VZone/index.d.ts +14 -0
- package/src/components/app.d.ts +134 -0
- package/src/components/util.d.ts +1 -0
- package/src/fewbox/index.d.ts +27 -0
- package/src/language/index.d.ts +5 -0
- package/src/network/FormHeaders.d.ts +2 -0
- package/src/network/IGraphQL.d.ts +6 -0
- package/src/network/JsonHeaders.d.ts +5 -0
- package/src/network/Network.d.ts +45 -0
- package/src/network/NetworkObservableBase.d.ts +13 -0
- package/src/network/StreamObservableBase.d.ts +11 -0
- package/src/network/UploadHeaders.d.ts +2 -0
- package/src/network/WS.d.ts +11 -0
- package/src/network/ajax/default/Delete.d.ts +5 -0
- package/src/network/ajax/default/DeleteText.d.ts +5 -0
- package/src/network/ajax/default/Get.d.ts +5 -0
- package/src/network/ajax/default/GetLocal.d.ts +5 -0
- package/src/network/ajax/default/GetText.d.ts +5 -0
- package/src/network/ajax/default/NetworkObservableAjax.d.ts +7 -0
- package/src/network/ajax/default/Patch.d.ts +5 -0
- package/src/network/ajax/default/PatchText.d.ts +5 -0
- package/src/network/ajax/default/Post.d.ts +5 -0
- package/src/network/ajax/default/PostText.d.ts +5 -0
- package/src/network/ajax/default/Put.d.ts +5 -0
- package/src/network/ajax/default/PutText.d.ts +5 -0
- package/src/network/ajax/external/DeleteExternal.d.ts +5 -0
- package/src/network/ajax/external/DeleteTextExternal.d.ts +5 -0
- package/src/network/ajax/external/GetExternal.d.ts +5 -0
- package/src/network/ajax/external/GetTextExternal.d.ts +5 -0
- package/src/network/ajax/external/NetworkObservableAjaxExternal.d.ts +8 -0
- package/src/network/ajax/external/PatchExternal.d.ts +5 -0
- package/src/network/ajax/external/PatchTextExternal.d.ts +5 -0
- package/src/network/ajax/external/PostExternal.d.ts +5 -0
- package/src/network/ajax/external/PostTextExternal.d.ts +5 -0
- package/src/network/ajax/external/PutExternal.d.ts +5 -0
- package/src/network/ajax/external/PutTextExternal.d.ts +5 -0
- package/src/network/fetch/default/DeleteFetch.d.ts +5 -0
- package/src/network/fetch/default/GetFetch.d.ts +5 -0
- package/src/network/fetch/default/NetworkObservableFetch.d.ts +7 -0
- package/src/network/fetch/default/PatchFetch.d.ts +5 -0
- package/src/network/fetch/default/PostFetch.d.ts +5 -0
- package/src/network/fetch/default/PutFetch.d.ts +5 -0
- package/src/network/fetch/external/GetFetchExternal.d.ts +5 -0
- package/src/network/fetch/external/NetworkObservableFetchExternal.d.ts +8 -0
- package/src/network/fetch/external/PatchFetchExternal.d.ts +5 -0
- package/src/network/fetch/external/PostFetchExternal.d.ts +5 -0
- package/src/network/fetch/external/PutFetchExternal.d.ts +5 -0
- package/src/network/graphql/default/GQL.d.ts +6 -0
- package/src/network/graphql/default/GQLUpload.d.ts +6 -0
- package/src/network/graphql/default/NetworkObservableGQL.d.ts +7 -0
- package/src/network/graphql/external/GQLExternal.d.ts +6 -0
- package/src/network/graphql/external/GQLExternalUpload.d.ts +6 -0
- package/src/network/graphql/external/NetworkObservableGQLExternal.d.ts +7 -0
- package/src/network/index.d.ts +46 -0
- package/src/network/sse/default/GetSSE.d.ts +5 -0
- package/src/network/sse/default/PostSSE.d.ts +5 -0
- package/src/network/sse/default/StreamObservableSSE.d.ts +5 -0
- package/src/network/sse/external/GetSSEExternal.d.ts +5 -0
- package/src/network/sse/external/PostSSEExternal.d.ts +5 -0
- package/src/network/sse/external/StreamObservableSSEExternal.d.ts +6 -0
- package/src/network/util.d.ts +4 -0
- package/src/store/EnumDictionary.d.ts +3 -0
- package/src/store/IContinuePaging.d.ts +4 -0
- package/src/store/IList.d.ts +3 -0
- package/src/store/IMetaResponse.d.ts +5 -0
- package/src/store/IPaging.d.ts +6 -0
- package/src/store/IPayloadResponse.d.ts +4 -0
- package/src/store/Json.d.ts +9 -0
- package/src/store/index.d.ts +6 -0
- package/templates/FEWBOX.md +73 -0
- package/templates/style/_core.scss +297 -0
- package/templates/style/_root-properties.scss +57 -0
- package/templates/style/_root.scss +6 -0
- package/templates/style/_variables.scss +194 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
type TLength = (string & {}) | 0;
|
|
4
|
+
export declare enum BackgroundPositionType {
|
|
5
|
+
Top = "top",
|
|
6
|
+
Right = "right",
|
|
7
|
+
Bottom = "bottom",
|
|
8
|
+
Left = "left",
|
|
9
|
+
Center = "center"
|
|
10
|
+
}
|
|
11
|
+
export interface IVBackgroundProps extends IBaseProps {
|
|
12
|
+
image: string;
|
|
13
|
+
imageWidth?: Property.Width<TLength>;
|
|
14
|
+
imageHeight?: Property.Height<TLength>;
|
|
15
|
+
position?: BackgroundPositionType;
|
|
16
|
+
}
|
|
17
|
+
declare const VBackground: (props: IVBackgroundProps) => JSX.Element;
|
|
18
|
+
export default VBackground;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export interface IVBlockProps extends IBaseProps {
|
|
3
|
+
icon: JSX.Element;
|
|
4
|
+
action: JSX.Element;
|
|
5
|
+
title: JSX.Element;
|
|
6
|
+
subTitle: JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
declare const VBlock: (props: IVBlockProps) => JSX.Element;
|
|
9
|
+
export default VBlock;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
3
|
+
export declare enum ButtonCategory {
|
|
4
|
+
Round = "round",
|
|
5
|
+
Circle = "circle"
|
|
6
|
+
}
|
|
7
|
+
export interface IVButtonProps extends IBaseProps {
|
|
8
|
+
category?: ButtonCategory;
|
|
9
|
+
icon?: JSX.Element;
|
|
10
|
+
caption?: string | JSX.Element;
|
|
11
|
+
onClick?: React.MouseEventHandler;
|
|
12
|
+
}
|
|
13
|
+
export interface IVButtonStates extends IBaseStates {
|
|
14
|
+
isClick: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const VButton: (props: IVButtonProps) => JSX.Element;
|
|
17
|
+
export default VButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export interface IVCardMediaProps extends IBaseProps {
|
|
3
|
+
media: JSX.Element;
|
|
4
|
+
head?: JSX.Element;
|
|
5
|
+
body?: JSX.Element;
|
|
6
|
+
foot?: JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
declare const VCardMedia: (props: IVCardMediaProps) => JSX.Element;
|
|
9
|
+
export default VCardMedia;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export interface IVCardSocialProps extends IBaseProps {
|
|
3
|
+
title: JSX.Element;
|
|
4
|
+
icon: JSX.Element;
|
|
5
|
+
avatar: JSX.Element;
|
|
6
|
+
name: JSX.Element;
|
|
7
|
+
post: JSX.Element;
|
|
8
|
+
hashTags: JSX.Element[];
|
|
9
|
+
leftAction: JSX.Element;
|
|
10
|
+
rightAction: JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
declare const VCardSocial: (props: IVCardSocialProps) => JSX.Element;
|
|
13
|
+
export default VCardSocial;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
2
|
+
export declare enum CardWindowSizeType {
|
|
3
|
+
Auto = "auto",
|
|
4
|
+
Contain = "contain",
|
|
5
|
+
Cover = "cover"
|
|
6
|
+
}
|
|
7
|
+
export interface IVCardWindowProps extends IBaseProps {
|
|
8
|
+
backgroundUrl: string;
|
|
9
|
+
backgroundSize?: CardWindowSizeType;
|
|
10
|
+
}
|
|
11
|
+
export interface IVCardWindowStatus extends IBaseStates {
|
|
12
|
+
isDetailShow: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const VCardWindow: (props: IVCardWindowProps) => JSX.Element;
|
|
15
|
+
export default VCardWindow;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface IChromeExtensionValidatorProps {
|
|
2
|
+
extensionId: string;
|
|
3
|
+
version?: string;
|
|
4
|
+
uninstalledCaption?: string | JSX.Element;
|
|
5
|
+
outdatedCaption?: string | JSX.Element;
|
|
6
|
+
downloadUrl?: string;
|
|
7
|
+
waitingTime?: number;
|
|
8
|
+
overWrite?: (status: ExtensionStatus) => JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export declare enum ExtensionStatus {
|
|
11
|
+
Uninstalled = "uninstalled",
|
|
12
|
+
Outdated = "outdated",
|
|
13
|
+
Ready = "ready"
|
|
14
|
+
}
|
|
15
|
+
export interface IChromeExtensionValidatorStates {
|
|
16
|
+
status?: ExtensionStatus;
|
|
17
|
+
}
|
|
18
|
+
export interface MetaEvent {
|
|
19
|
+
version: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ValidationEvent {
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
declare const ChromeExtensionValidator: (props: IChromeExtensionValidatorProps) => JSX.Element;
|
|
25
|
+
export default ChromeExtensionValidator;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IChildrenProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum HandleSubmitCategory {
|
|
3
|
+
Json = "json",
|
|
4
|
+
FormData = "formdata"
|
|
5
|
+
}
|
|
6
|
+
export interface IVFormProps extends IChildrenProps {
|
|
7
|
+
handleSubmitCategory?: HandleSubmitCategory;
|
|
8
|
+
handleSubmit: (json: any) => void;
|
|
9
|
+
handleValidateError?: (input: HTMLInputElement) => void;
|
|
10
|
+
errorColor?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const VForm: (props: IVFormProps) => JSX.Element;
|
|
13
|
+
export default VForm;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
export interface BackingBoard {
|
|
4
|
+
degree: string;
|
|
5
|
+
startColor: string;
|
|
6
|
+
endColor: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IVFrameProps extends IBaseProps {
|
|
9
|
+
image: string;
|
|
10
|
+
padding?: Property.Padding;
|
|
11
|
+
backingBoard?: BackingBoard;
|
|
12
|
+
}
|
|
13
|
+
declare const VFrame: (props: IVFrameProps) => JSX.Element;
|
|
14
|
+
export default VFrame;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FontWeightType } from '../../Engine';
|
|
2
|
+
export declare enum GoogleFontType {
|
|
3
|
+
Normal = "normal",
|
|
4
|
+
Italic = "italic"
|
|
5
|
+
}
|
|
6
|
+
export interface IGoogleFont {
|
|
7
|
+
type: GoogleFontType;
|
|
8
|
+
weight: FontWeightType;
|
|
9
|
+
}
|
|
10
|
+
export interface IGoogleTypeface {
|
|
11
|
+
family: string;
|
|
12
|
+
fonts?: IGoogleFont[];
|
|
13
|
+
}
|
|
14
|
+
export interface IVGoogleFontProps {
|
|
15
|
+
typefaces: IGoogleTypeface[];
|
|
16
|
+
}
|
|
17
|
+
declare const VGoogleFont: (props: IVGoogleFontProps) => JSX.Element;
|
|
18
|
+
export default VGoogleFont;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum HyperlinkCategory {
|
|
3
|
+
NewWindow = "_blank",
|
|
4
|
+
Self = "_self",
|
|
5
|
+
Parent = "_parent",
|
|
6
|
+
Top = "_top"
|
|
7
|
+
}
|
|
8
|
+
export interface IVHyperlinkProps extends IBaseProps {
|
|
9
|
+
category: HyperlinkCategory;
|
|
10
|
+
to: string;
|
|
11
|
+
}
|
|
12
|
+
declare const VHyperlink: (props: IVHyperlinkProps) => JSX.Element;
|
|
13
|
+
export default VHyperlink;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IBaseProps } from '../../../Engine/Base';
|
|
2
|
+
export declare enum ImageCategory {
|
|
3
|
+
Default = "default",
|
|
4
|
+
Circle = "circle",
|
|
5
|
+
Squared = "squared",
|
|
6
|
+
FullSize = "full-size",
|
|
7
|
+
Scale = "scale"
|
|
8
|
+
}
|
|
9
|
+
export interface IVImageProps extends IBaseProps {
|
|
10
|
+
category?: ImageCategory;
|
|
11
|
+
src: string;
|
|
12
|
+
srcSet?: string;
|
|
13
|
+
alt: string;
|
|
14
|
+
}
|
|
15
|
+
declare const VImage: (props: IVImageProps) => JSX.Element;
|
|
16
|
+
export default VImage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBaseInputProps } from "../..";
|
|
2
|
+
export interface IVBase64FileProps extends IBaseInputProps {
|
|
3
|
+
fileIcon?: JSX.Element;
|
|
4
|
+
base64Image: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IVBase64FileStates {
|
|
7
|
+
base64Image: string;
|
|
8
|
+
}
|
|
9
|
+
declare const VBase64File: (props: IVBase64FileProps) => JSX.Element;
|
|
10
|
+
export default VBase64File;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBaseInputProps } from "..";
|
|
2
|
+
export interface IVCheckBoxProps extends IBaseInputProps {
|
|
3
|
+
isChecked?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface IVCheckBoxStates {
|
|
6
|
+
isChecked?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const VCheckBox: (props: IVCheckBoxProps) => JSX.Element;
|
|
9
|
+
export default VCheckBox;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IViewProps } from "../../../Engine/Base";
|
|
2
|
+
import { InputExtensionItem } from "..";
|
|
3
|
+
export interface IDropdownItemData {
|
|
4
|
+
icon?: JSX.Element;
|
|
5
|
+
caption: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IVDropdownProps extends IViewProps {
|
|
9
|
+
id?: string;
|
|
10
|
+
value?: string | ReadonlyArray<string> | number | undefined;
|
|
11
|
+
name?: string;
|
|
12
|
+
icon?: JSX.Element;
|
|
13
|
+
emptyIcon: JSX.Element;
|
|
14
|
+
downIcon: JSX.Element;
|
|
15
|
+
upIcon: JSX.Element;
|
|
16
|
+
enableClear?: boolean;
|
|
17
|
+
isReadonly?: boolean;
|
|
18
|
+
items: IDropdownItemData[];
|
|
19
|
+
extensions?: InputExtensionItem[];
|
|
20
|
+
overWriteDropdownItem?: (item: IDropdownItemData) => JSX.Element;
|
|
21
|
+
onChange?: (value: string) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface IVDropdownStates {
|
|
24
|
+
isSelectionShow: boolean;
|
|
25
|
+
selectIcon?: JSX.Element;
|
|
26
|
+
selectValue: string | ReadonlyArray<string> | number | undefined;
|
|
27
|
+
selectCaption: string | ReadonlyArray<string> | number | undefined;
|
|
28
|
+
items: IDropdownItemData[];
|
|
29
|
+
}
|
|
30
|
+
declare const VDropdown: (props: IVDropdownProps) => JSX.Element;
|
|
31
|
+
export default VDropdown;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IBaseInputProps } from "..";
|
|
2
|
+
import { ColorType, SizeType } from "../../../Engine";
|
|
3
|
+
export declare enum FileCategory {
|
|
4
|
+
Vertical = "Vertical",
|
|
5
|
+
Horizontal = "Horizontal"
|
|
6
|
+
}
|
|
7
|
+
export interface IVFileProps extends IBaseInputProps {
|
|
8
|
+
category?: FileCategory;
|
|
9
|
+
fileIcon: JSX.Element;
|
|
10
|
+
caption?: JSX.Element | string;
|
|
11
|
+
emptyMessage: string;
|
|
12
|
+
autoUpload?: (file: any, complete: () => void) => void;
|
|
13
|
+
renderLoading?: () => JSX.Element;
|
|
14
|
+
loadingSize?: SizeType;
|
|
15
|
+
loadingColor?: ColorType;
|
|
16
|
+
}
|
|
17
|
+
export interface IVFileStates {
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
fileName: string;
|
|
20
|
+
}
|
|
21
|
+
declare const VFile: (props: IVFileProps) => JSX.Element;
|
|
22
|
+
export default VFile;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { IBaseProps } from "../../../Engine/Base";
|
|
3
|
+
export interface IVGroupProps extends IBaseProps {
|
|
4
|
+
selectedValue: string;
|
|
5
|
+
renderGroup: (selectedValue: string, hanldeSelect: React.ChangeEventHandler<any>) => JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
export interface IVGroupStates {
|
|
8
|
+
selectedValue: string;
|
|
9
|
+
}
|
|
10
|
+
declare const VGroup: (props: IVGroupProps) => JSX.Element;
|
|
11
|
+
export default VGroup;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IBaseInputProps } from "..";
|
|
2
|
+
export interface IVHiddenProps extends IBaseInputProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string | undefined;
|
|
5
|
+
value?: string | ReadonlyArray<string> | number | undefined;
|
|
6
|
+
}
|
|
7
|
+
declare const VHidden: (props: IVHiddenProps) => JSX.Element;
|
|
8
|
+
export default VHidden;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IBaseInputProps } from "..";
|
|
2
|
+
import { ColorType } from "../../../Engine";
|
|
3
|
+
export interface IVRangeProps extends IBaseInputProps {
|
|
4
|
+
controlBackgroundColor: ColorType;
|
|
5
|
+
controlBorderColor: ColorType;
|
|
6
|
+
}
|
|
7
|
+
declare const VRange: (props: IVRangeProps) => JSX.Element;
|
|
8
|
+
export default VRange;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { IBaseProps, TLength } from "../../Engine/Base";
|
|
3
|
+
import { ColorType, SizeType } from "../../Engine";
|
|
4
|
+
import { LabelCategory } from "../VLabel";
|
|
5
|
+
import { Property } from 'csstype';
|
|
6
|
+
export interface InputExtensionItem {
|
|
7
|
+
option: JSX.Element;
|
|
8
|
+
handleOption: (input: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface IBaseInputProps extends IBaseProps {
|
|
11
|
+
type?: React.HTMLInputTypeAttribute | undefined;
|
|
12
|
+
icon?: JSX.Element;
|
|
13
|
+
extensions?: InputExtensionItem[];
|
|
14
|
+
id?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
label?: string | JSX.Element;
|
|
17
|
+
value?: string | ReadonlyArray<string> | number | undefined;
|
|
18
|
+
valueHook?: string;
|
|
19
|
+
setStateHook?: (value: string) => void;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
onChange?: React.ChangeEventHandler<any> | undefined;
|
|
22
|
+
isValueShow?: boolean;
|
|
23
|
+
isReadonly?: boolean;
|
|
24
|
+
min?: number;
|
|
25
|
+
max?: number;
|
|
26
|
+
step?: number;
|
|
27
|
+
valueSize?: SizeType;
|
|
28
|
+
valueColor?: ColorType;
|
|
29
|
+
valueCategory?: LabelCategory;
|
|
30
|
+
valuePadding?: Property.Padding<TLength>;
|
|
31
|
+
inputStyle?: React.CSSProperties;
|
|
32
|
+
inputClassName?: string;
|
|
33
|
+
isRequired?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
overWrite?: (inputRef: React.RefObject<HTMLInputElement>) => JSX.Element;
|
|
36
|
+
}
|
|
37
|
+
export interface IVInputProps extends IBaseInputProps {
|
|
38
|
+
inheritClassName?: string;
|
|
39
|
+
isFocus?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface IVInputStates {
|
|
42
|
+
value?: string | ReadonlyArray<string> | number | undefined;
|
|
43
|
+
}
|
|
44
|
+
declare const VInput: (props: IVInputProps) => JSX.Element;
|
|
45
|
+
export default VInput;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
export declare enum LabelCategory {
|
|
4
|
+
Div = "div",
|
|
5
|
+
Abbr = "abbr",
|
|
6
|
+
Span = "span",
|
|
7
|
+
H1 = "h1",
|
|
8
|
+
H2 = "h2",
|
|
9
|
+
H3 = "h3",
|
|
10
|
+
H4 = "h4",
|
|
11
|
+
H5 = "h5",
|
|
12
|
+
H6 = "h6",
|
|
13
|
+
I = "i",
|
|
14
|
+
B = "b",
|
|
15
|
+
U = "u",
|
|
16
|
+
Em = "em",
|
|
17
|
+
Strong = "strong",
|
|
18
|
+
Blockquote = "blockquote",
|
|
19
|
+
Cite = "cite",
|
|
20
|
+
Code = "code",
|
|
21
|
+
Del = "del",
|
|
22
|
+
Dfn = "dfn",
|
|
23
|
+
Ins = "ins",
|
|
24
|
+
Kbd = "kbd",
|
|
25
|
+
Mark = "mark",
|
|
26
|
+
Pre = "pre",
|
|
27
|
+
Q = "q",
|
|
28
|
+
S = "s",
|
|
29
|
+
Samp = "samp",
|
|
30
|
+
Small = "small",
|
|
31
|
+
Summary = "summary",
|
|
32
|
+
Sup = "sup",
|
|
33
|
+
Sub = "sub",
|
|
34
|
+
Time = "time",
|
|
35
|
+
Var = "var",
|
|
36
|
+
Wbr = "wbr"
|
|
37
|
+
}
|
|
38
|
+
export declare enum LabelType {
|
|
39
|
+
Default = "default",
|
|
40
|
+
Circle = "circle"
|
|
41
|
+
}
|
|
42
|
+
export declare enum LabelAlignType {
|
|
43
|
+
Justify = 0,
|
|
44
|
+
Left = 1,
|
|
45
|
+
Right = 2,
|
|
46
|
+
Center = 3
|
|
47
|
+
}
|
|
48
|
+
export interface IVLabelProps extends IBaseProps {
|
|
49
|
+
category?: LabelCategory;
|
|
50
|
+
type?: LabelType;
|
|
51
|
+
alignType?: LabelAlignType;
|
|
52
|
+
title?: string;
|
|
53
|
+
cite?: string;
|
|
54
|
+
isTextOverflow?: boolean;
|
|
55
|
+
caption: string | JSX.Element;
|
|
56
|
+
onMouseEnter?: React.MouseEventHandler<any>;
|
|
57
|
+
onMouseLeave?: React.MouseEventHandler<any>;
|
|
58
|
+
}
|
|
59
|
+
declare const VLabel: (props: IVLabelProps) => JSX.Element;
|
|
60
|
+
export default VLabel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IChildrenProps } from '../../Engine/Base';
|
|
2
|
+
import { AnimationCategory, AnimationSpeed } from '../VAnimation';
|
|
3
|
+
export interface ILoadingProps extends IChildrenProps {
|
|
4
|
+
animationCategory?: AnimationCategory;
|
|
5
|
+
animationSpeed?: AnimationSpeed;
|
|
6
|
+
}
|
|
7
|
+
declare const VLoading: (props: ILoadingProps) => JSX.Element;
|
|
8
|
+
export default VLoading;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactPayPalScriptOptions } from '@paypal/react-paypal-js';
|
|
2
|
+
import type { PayPalButtonsComponentOptions } from "@paypal/paypal-js/types/components/buttons";
|
|
3
|
+
export interface IVPaypalProps {
|
|
4
|
+
options: ReactPayPalScriptOptions;
|
|
5
|
+
buttonOptions?: PayPalButtonsComponentOptions;
|
|
6
|
+
}
|
|
7
|
+
export interface IVPaypalStates {
|
|
8
|
+
}
|
|
9
|
+
declare const VPaypal: (props: IVPaypalProps) => JSX.Element;
|
|
10
|
+
export default VPaypal;
|