@fewbox/den-app 0.1.43
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 +13 -0
- package/index.css +1 -0
- package/index.js +2 -0
- package/index.js.map +1 -0
- package/jest.setup.d.ts +1 -0
- package/package.json +26 -0
- package/scripts/copy-templates.js +29 -0
- package/scripts/generate-packages.js +41 -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/NativeAttributeMap.d.ts +2 -0
- package/src/components/Engine/Base/ViewAttributes.d.ts +2 -0
- package/src/components/Engine/Base/index.d.ts +61 -0
- package/src/components/Engine/index.d.ts +125 -0
- package/src/components/Layout/Display/index.d.ts +18 -0
- package/src/components/Layout/Dock/index.d.ts +42 -0
- package/src/components/Layout/Flex/index.d.ts +45 -0
- package/src/components/Layout/FlexItem/index.d.ts +18 -0
- package/src/components/Layout/Position/index.d.ts +32 -0
- package/src/components/Layout/PositionArea/index.d.ts +10 -0
- package/src/components/Layout/Responsive/index.d.ts +8 -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 +18 -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 +7 -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 +12 -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/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 +23 -0
- package/src/components/View/VDynamic/index.d.ts +7 -0
- package/src/components/View/VErrorBoundary/index.d.ts +18 -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 +12 -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/index.d.ts +13 -0
- package/src/components/View/VInput/VBase64File/index.d.ts +10 -0
- package/src/components/View/VInput/VCheckBox/index.d.ts +6 -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 +38 -0
- package/src/components/View/VInput/VEmail/index.d.ts +5 -0
- package/src/components/View/VInput/VFile/index.d.ts +29 -0
- package/src/components/View/VInput/VGroup/index.d.ts +10 -0
- package/src/components/View/VInput/VHidden/index.d.ts +5 -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 +10 -0
- package/src/components/View/VInput/VSearch/index.d.ts +5 -0
- package/src/components/View/VInput/VSubmit/index.d.ts +8 -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 +6 -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 +29 -0
- package/src/components/View/VLabel/index.d.ts +57 -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/VMount/index.d.ts +5 -0
- package/src/components/View/VPhoto/index.d.ts +20 -0
- package/src/components/View/VRoot/index.d.ts +15 -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 +15 -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 +23 -0
- package/src/components/View/VTextArea/index.d.ts +12 -0
- package/src/components/View/VTheme/index.d.ts +42 -0
- package/src/components/View/VTooltip/index.d.ts +17 -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 +11 -0
- package/src/components/consts.d.ts +2 -0
- package/src/components/core.d.ts +117 -0
- package/src/components/util.d.ts +1 -0
- package/src/components/web.d.ts +9 -0
- package/src/fewbox/index.d.ts +42 -0
- package/src/language/index.d.ts +13 -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 +14 -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/DeleteFetchExternal.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 +5 -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 +47 -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 +5 -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 +7 -0
- package/templates/.claude/skills/fewbox-den/SKILL.md +1111 -0
- package/templates/FEWBOX.md +72 -0
- package/templates/style/_core.scss +288 -0
- package/templates/style/_root-properties.scss +55 -0
- package/templates/style/_root.scss +6 -0
- package/templates/style/_variables.scss +193 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IUserProfile {
|
|
2
|
+
tenant?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
role?: string;
|
|
6
|
+
mobile?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
issuer?: string;
|
|
9
|
+
audience?: string;
|
|
10
|
+
expire?: Date;
|
|
11
|
+
avatar?: string;
|
|
12
|
+
exp?: number;
|
|
13
|
+
iss?: string;
|
|
14
|
+
aud?: string;
|
|
15
|
+
api?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const parseJWT: (token: string) => IUserProfile;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DirectionType, FullColorType, PseudoType, FullFontSizeType, FontWeightType } from '..';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
export type TLength = (string & {}) | 0;
|
|
4
|
+
export interface IViewProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
fontSize?: FullFontSizeType;
|
|
8
|
+
isAutoSize?: boolean;
|
|
9
|
+
fontWeight?: FontWeightType;
|
|
10
|
+
frontColor?: FullColorType;
|
|
11
|
+
backgroundColor?: FullColorType;
|
|
12
|
+
borderColor?: FullColorType;
|
|
13
|
+
borderDirection?: DirectionType;
|
|
14
|
+
pseudoType?: PseudoType;
|
|
15
|
+
pseudoFrontColor?: FullColorType;
|
|
16
|
+
pseudoBackgroundColor?: FullColorType;
|
|
17
|
+
pseudoBorderColor?: FullColorType;
|
|
18
|
+
pseudoBorderDirection?: DirectionType;
|
|
19
|
+
display?: Property.Display;
|
|
20
|
+
visibility?: Property.Visibility;
|
|
21
|
+
zIndex?: Property.ZIndex;
|
|
22
|
+
fontFamily?: Property.FontFamily;
|
|
23
|
+
borderWidth?: Property.BorderWidth<TLength>;
|
|
24
|
+
borderRadius?: Property.BorderRadius<TLength>;
|
|
25
|
+
borderStyle?: Property.BorderStyle;
|
|
26
|
+
padding?: Property.Padding<TLength>;
|
|
27
|
+
margin?: Property.Margin<TLength>;
|
|
28
|
+
height?: Property.Height<TLength>;
|
|
29
|
+
width?: Property.Width<TLength>;
|
|
30
|
+
minHeight?: Property.Width<TLength>;
|
|
31
|
+
minWidth?: Property.Width<TLength>;
|
|
32
|
+
maxHeight?: Property.Width<TLength>;
|
|
33
|
+
maxWidth?: Property.Width<TLength>;
|
|
34
|
+
opacity?: Property.Opacity;
|
|
35
|
+
letterSpacing?: Property.LetterSpacing<TLength>;
|
|
36
|
+
lineHeight?: Property.LineHeight<TLength>;
|
|
37
|
+
cursor?: Property.Cursor;
|
|
38
|
+
overflow?: Property.Overflow;
|
|
39
|
+
overflowX?: Property.OverflowX;
|
|
40
|
+
overflowY?: Property.OverflowY;
|
|
41
|
+
selfShrink?: Property.FlexShrink;
|
|
42
|
+
selfGrow?: Property.FlexGrow;
|
|
43
|
+
selfBasis?: Property.FlexBasis;
|
|
44
|
+
isDefaultValue?: boolean;
|
|
45
|
+
customAttributes?: Object;
|
|
46
|
+
}
|
|
47
|
+
export type IBaseProps<T extends keyof React.JSX.IntrinsicElements = 'div'> = IViewProps & React.ComponentPropsWithoutRef<T>;
|
|
48
|
+
export interface IBaseStates {
|
|
49
|
+
}
|
|
50
|
+
export interface IProps {
|
|
51
|
+
view: object;
|
|
52
|
+
html: object;
|
|
53
|
+
}
|
|
54
|
+
export interface IBaseReturn {
|
|
55
|
+
getClassName: (vClassName: string) => string;
|
|
56
|
+
getStyle: (style?: React.CSSProperties) => object;
|
|
57
|
+
getChildren: () => React.ReactNode;
|
|
58
|
+
getProps: <T extends keyof React.JSX.IntrinsicElements = 'div'>(tag: T) => IProps;
|
|
59
|
+
}
|
|
60
|
+
declare const Base: (restProps: IBaseProps<any>) => IBaseReturn;
|
|
61
|
+
export default Base;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
export declare enum ColorType {
|
|
2
|
+
Font = "font",
|
|
3
|
+
Body = "body",
|
|
4
|
+
White = "white",
|
|
5
|
+
Black = "black",
|
|
6
|
+
Light = "light",
|
|
7
|
+
Light75 = "light75",
|
|
8
|
+
Light50 = "light50",
|
|
9
|
+
Light25 = "light25",
|
|
10
|
+
Dark = "dark",
|
|
11
|
+
Dark75 = "dark75",
|
|
12
|
+
Dark50 = "dark50",
|
|
13
|
+
Dark25 = "dark25",
|
|
14
|
+
Primary = "primary",
|
|
15
|
+
Primary75 = "primary75",
|
|
16
|
+
Primary50 = "primary50",
|
|
17
|
+
Primary25 = "primary25",
|
|
18
|
+
Secondary = "secondary",
|
|
19
|
+
Secondary75 = "secondary75",
|
|
20
|
+
Secondary50 = "secondary50",
|
|
21
|
+
Secondary25 = "secondary25",
|
|
22
|
+
Tertiary = "tertiary",
|
|
23
|
+
Tertiary75 = "tertiary75",
|
|
24
|
+
Tertiary50 = "tertiary50",
|
|
25
|
+
Tertiary25 = "tertiary25",
|
|
26
|
+
Info = "info",
|
|
27
|
+
Info75 = "info75",
|
|
28
|
+
Info50 = "info50",
|
|
29
|
+
Info25 = "info25",
|
|
30
|
+
Success = "success",
|
|
31
|
+
Success75 = "success75",
|
|
32
|
+
Success50 = "success50",
|
|
33
|
+
Success25 = "success25",
|
|
34
|
+
Warning = "warning",
|
|
35
|
+
Warning75 = "warning75",
|
|
36
|
+
Warning50 = "warning50",
|
|
37
|
+
Warning25 = "warning25",
|
|
38
|
+
Error = "error",
|
|
39
|
+
Error75 = "error75",
|
|
40
|
+
Error50 = "error50",
|
|
41
|
+
Error25 = "error25",
|
|
42
|
+
Border = "border",
|
|
43
|
+
Border75 = "border75",
|
|
44
|
+
Border50 = "border50",
|
|
45
|
+
Border25 = "border25",
|
|
46
|
+
Placeholder = "placeholder",
|
|
47
|
+
Placeholder75 = "placeholder75",
|
|
48
|
+
Placeholder50 = "placeholder50",
|
|
49
|
+
Placeholder25 = "placeholder25",
|
|
50
|
+
Transparent = "transparent"
|
|
51
|
+
}
|
|
52
|
+
export declare enum FontWeightType {
|
|
53
|
+
Thin = "font-weight-thin",
|
|
54
|
+
ExtraLight = "font-weight-extra-light",
|
|
55
|
+
Light = "font-weight-light",
|
|
56
|
+
Regular = "font-weight-regular",
|
|
57
|
+
Medium = "font-weight-medium",
|
|
58
|
+
SemiBold = "font-weight-semi-bold",
|
|
59
|
+
Bold = "font-weight-bold",
|
|
60
|
+
ExtraBold = "font-weight-extra-bold",
|
|
61
|
+
Black = "font-weight-black"
|
|
62
|
+
}
|
|
63
|
+
export declare enum FontFamilyType {
|
|
64
|
+
Default = "font-family"
|
|
65
|
+
}
|
|
66
|
+
export declare enum LineHeightType {
|
|
67
|
+
Default = "line-height"
|
|
68
|
+
}
|
|
69
|
+
export declare enum PaddingType {
|
|
70
|
+
Default = "padding"
|
|
71
|
+
}
|
|
72
|
+
export declare enum LetterSpacingType {
|
|
73
|
+
Default = "letter-spacing"
|
|
74
|
+
}
|
|
75
|
+
export declare enum BorderRadiusType {
|
|
76
|
+
Default = "border-radius",
|
|
77
|
+
Fixed = "border-radius-fixed",
|
|
78
|
+
Max = "border-radius-max"
|
|
79
|
+
}
|
|
80
|
+
export declare enum ViewSizeType {
|
|
81
|
+
Ellipse = "v-ellipse-size",
|
|
82
|
+
Rectangle = "v-rectangle-size",
|
|
83
|
+
Image = "v-image-size",
|
|
84
|
+
Svg = "v-svg-size",
|
|
85
|
+
Window = "v-window-size"
|
|
86
|
+
}
|
|
87
|
+
export declare const getWeightValue: (weightType: FontWeightType) => number;
|
|
88
|
+
export type FullFontSizeType = FontSizeType | string;
|
|
89
|
+
export declare enum FontSizeType {
|
|
90
|
+
Default = "font-size",
|
|
91
|
+
Normal = "font-size-normal",
|
|
92
|
+
Small = "font-size-small",
|
|
93
|
+
ExtraSmall = "font-size-extra-small",
|
|
94
|
+
Large = "font-size-large",
|
|
95
|
+
ExtraLarge = "font-size-extra-large",
|
|
96
|
+
AutoNormal = "auto-font-size-normal",
|
|
97
|
+
AutoSmall = "auto-font-size-small",
|
|
98
|
+
AutoExtraSmall = "auto-font-size-extra-small",
|
|
99
|
+
AutoLarge = "auto-font-size-large",
|
|
100
|
+
AutoExtraLarge = "auto-font-size-extra-large"
|
|
101
|
+
}
|
|
102
|
+
export type FullColorType = ColorType | string;
|
|
103
|
+
export declare enum PseudoType {
|
|
104
|
+
All = "all",
|
|
105
|
+
Before = "before",
|
|
106
|
+
After = "after"
|
|
107
|
+
}
|
|
108
|
+
export declare enum DirectionType {
|
|
109
|
+
All = "all",
|
|
110
|
+
Top = "top",
|
|
111
|
+
Right = "right",
|
|
112
|
+
Bottom = "bottom",
|
|
113
|
+
Left = "left",
|
|
114
|
+
ExceptTop = "except-top",
|
|
115
|
+
ExceptRight = "except-right",
|
|
116
|
+
ExceptBottom = "except-bottom",
|
|
117
|
+
ExceptLeft = "except-left",
|
|
118
|
+
RightTop = "right-top",
|
|
119
|
+
RightBottom = "right-bottom",
|
|
120
|
+
LeftTop = "left-top",
|
|
121
|
+
LeftBottom = "left-bottom",
|
|
122
|
+
TopBottom = "top-bottom",
|
|
123
|
+
LeftRight = "left-right"
|
|
124
|
+
}
|
|
125
|
+
export declare const getGeneratedClassName: (className: string, isDefaultValue: boolean | undefined, sizeType?: FullFontSizeType, isAutoSize?: boolean, weightType?: FontWeightType, frontColorType?: FullColorType, backgroundColorType?: FullColorType, borderColorType?: FullColorType, borderDirection?: DirectionType, pseudoType?: PseudoType, pseudoFrontColor?: FullColorType, pseudoBackgroundColor?: FullColorType, pseudoBorderColor?: FullColorType, pseudoBorderDirection?: DirectionType) => string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BreakpointType } from '..';
|
|
2
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
export declare enum DisplayCategory {
|
|
4
|
+
Visiable = "visiable",
|
|
5
|
+
Hidden = "hidden"
|
|
6
|
+
}
|
|
7
|
+
export declare enum DisplayType {
|
|
8
|
+
Only = "only",
|
|
9
|
+
Up = "up",
|
|
10
|
+
Down = "down"
|
|
11
|
+
}
|
|
12
|
+
export interface IDisplayProps extends IBaseProps {
|
|
13
|
+
category: DisplayCategory;
|
|
14
|
+
type?: DisplayType;
|
|
15
|
+
breakpoint?: BreakpointType | BreakpointType[];
|
|
16
|
+
}
|
|
17
|
+
declare const Display: (props: IDisplayProps) => React.JSX.Element;
|
|
18
|
+
export default Display;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
export declare enum DockCategory {
|
|
4
|
+
Top = "top",
|
|
5
|
+
Right = "right",
|
|
6
|
+
Bottom = "bottom",
|
|
7
|
+
Left = "left",
|
|
8
|
+
LeftTop = "left-top",
|
|
9
|
+
RightTop = "right-top",
|
|
10
|
+
LeftBottom = "left-bottom",
|
|
11
|
+
RightBottom = "right-bottom",
|
|
12
|
+
InnerTop = "inner-top",
|
|
13
|
+
InnerRight = "inner-right",
|
|
14
|
+
InnerBottom = "inner-bottom",
|
|
15
|
+
InnerLeft = "inner-left",
|
|
16
|
+
InnerLeftTop = "inner-left-top",
|
|
17
|
+
InnerRightTop = "inner-right-top",
|
|
18
|
+
InnerLeftBottom = "inner-left-bottom",
|
|
19
|
+
InnerRightBottom = "inner-right-bottom"
|
|
20
|
+
}
|
|
21
|
+
export declare enum DockAlignment {
|
|
22
|
+
Horizontal = "horizontal",
|
|
23
|
+
Vertical = "vertical"
|
|
24
|
+
}
|
|
25
|
+
type AlignmentCategory = DockCategory.LeftTop | DockCategory.RightTop | DockCategory.RightBottom | DockCategory.LeftBottom;
|
|
26
|
+
type NonAlignmentCategory = Exclude<DockCategory, AlignmentCategory>;
|
|
27
|
+
interface IDockBaseProps extends IBaseProps {
|
|
28
|
+
offset?: number;
|
|
29
|
+
overlayZIndex?: Property.ZIndex;
|
|
30
|
+
renderOverlay: () => React.JSX.Element;
|
|
31
|
+
}
|
|
32
|
+
export type IDockProps = ({
|
|
33
|
+
category: AlignmentCategory;
|
|
34
|
+
alignment?: DockAlignment;
|
|
35
|
+
} | {
|
|
36
|
+
category: NonAlignmentCategory;
|
|
37
|
+
}) & IDockBaseProps;
|
|
38
|
+
export interface IDockStates extends IBaseStates {
|
|
39
|
+
isMounted: boolean;
|
|
40
|
+
}
|
|
41
|
+
declare const Dock: (props: IDockProps) => React.JSX.Element;
|
|
42
|
+
export default Dock;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum FlexDirectionType {
|
|
3
|
+
Row = "row",
|
|
4
|
+
RowReverse = "row-reverse",
|
|
5
|
+
Column = "column",
|
|
6
|
+
ColumnReverse = "column-reverse"
|
|
7
|
+
}
|
|
8
|
+
export declare enum FlexWrapType {
|
|
9
|
+
NoWrap = "nowrap",
|
|
10
|
+
Wrap = "wrap"
|
|
11
|
+
}
|
|
12
|
+
export declare enum FlexJustifyContentType {
|
|
13
|
+
Start = "flex-start",
|
|
14
|
+
Center = "center",
|
|
15
|
+
End = "flex-end",
|
|
16
|
+
SpaceBetween = "space-between",
|
|
17
|
+
SpaceAround = "space-around",
|
|
18
|
+
SpaceEvenly = "space-evenly"
|
|
19
|
+
}
|
|
20
|
+
export declare enum FlexAlignItemsType {
|
|
21
|
+
Start = "flex-start",
|
|
22
|
+
Center = "center",
|
|
23
|
+
End = "flex-end",
|
|
24
|
+
Stretch = "stretch",
|
|
25
|
+
Baseline = "baseline"
|
|
26
|
+
}
|
|
27
|
+
export declare enum FlexAlignContentType {
|
|
28
|
+
Start = "flex-start",
|
|
29
|
+
Center = "center",
|
|
30
|
+
End = "flex-end",
|
|
31
|
+
SpaceBetween = "space-between",
|
|
32
|
+
SpaceAround = "space-around",
|
|
33
|
+
SpaceEvenly = "space-evenly"
|
|
34
|
+
}
|
|
35
|
+
export interface IFlexProps extends IBaseProps<'div'> {
|
|
36
|
+
vClassName: string;
|
|
37
|
+
direction?: FlexDirectionType;
|
|
38
|
+
wrap?: FlexWrapType;
|
|
39
|
+
justifyContent?: FlexJustifyContentType;
|
|
40
|
+
alignItems?: FlexAlignItemsType;
|
|
41
|
+
alignContent?: FlexAlignContentType;
|
|
42
|
+
gap?: string;
|
|
43
|
+
}
|
|
44
|
+
declare const Flex: (props: IFlexProps) => React.JSX.Element;
|
|
45
|
+
export default Flex;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
export declare enum FlexItemAlignSelfType {
|
|
4
|
+
Start = "start",
|
|
5
|
+
Center = "center",
|
|
6
|
+
End = "end",
|
|
7
|
+
Stretch = "stretch",
|
|
8
|
+
Baseline = "baseline"
|
|
9
|
+
}
|
|
10
|
+
export interface IFlexItemProps extends IBaseProps<any> {
|
|
11
|
+
alignSelf?: FlexItemAlignSelfType;
|
|
12
|
+
order?: Property.Order;
|
|
13
|
+
basis?: Property.FlexBasis;
|
|
14
|
+
grow?: Property.FlexGrow;
|
|
15
|
+
shrink?: Property.FlexShrink;
|
|
16
|
+
}
|
|
17
|
+
declare const FlexItem: (props: IFlexItemProps) => React.JSX.Element;
|
|
18
|
+
export default FlexItem;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
export declare enum PositionCategory {
|
|
4
|
+
Edge = "edge",
|
|
5
|
+
Window = "window",
|
|
6
|
+
Area = "area",
|
|
7
|
+
Self = "self"
|
|
8
|
+
}
|
|
9
|
+
export declare enum PositionType {
|
|
10
|
+
Top = "top",
|
|
11
|
+
Right = "right",
|
|
12
|
+
Bottom = "bottom",
|
|
13
|
+
Left = "left",
|
|
14
|
+
LeftTop = "left-top",
|
|
15
|
+
RightTop = "right-top",
|
|
16
|
+
LeftBottom = "left-bottom",
|
|
17
|
+
RightBottom = "right-bottom",
|
|
18
|
+
Center = "center"
|
|
19
|
+
}
|
|
20
|
+
export interface IPositionProps extends IBaseProps {
|
|
21
|
+
category: PositionCategory;
|
|
22
|
+
type?: PositionType;
|
|
23
|
+
top?: string;
|
|
24
|
+
right?: string;
|
|
25
|
+
bottom?: string;
|
|
26
|
+
left?: string;
|
|
27
|
+
zIndex?: Property.ZIndex;
|
|
28
|
+
isFullWidth?: boolean;
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
}
|
|
31
|
+
declare const Position: (props: IPositionProps) => React.JSX.Element;
|
|
32
|
+
export default Position;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum PositionAreaCategory {
|
|
3
|
+
Default = "default",
|
|
4
|
+
FullSize = "full-size"
|
|
5
|
+
}
|
|
6
|
+
export interface IPositionAreaProps extends IBaseProps {
|
|
7
|
+
category?: PositionAreaCategory;
|
|
8
|
+
}
|
|
9
|
+
declare const PositionArea: (props: IPositionAreaProps) => React.JSX.Element;
|
|
10
|
+
export default PositionArea;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BreakpointType } from '..';
|
|
2
|
+
export interface IResponsiveProps {
|
|
3
|
+
breakpointType?: BreakpointType;
|
|
4
|
+
desktop: React.JSX.Element;
|
|
5
|
+
mobile: React.JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
declare const Responsive: (props: IResponsiveProps) => React.JSX.Element;
|
|
8
|
+
export default Responsive;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
import { FlexAlignContentType, FlexJustifyContentType, FlexWrapType } from '../Flex';
|
|
4
|
+
import { FlexItemAlignSelfType } from '../FlexItem';
|
|
5
|
+
export declare enum XCrossType {
|
|
6
|
+
Top = "top",
|
|
7
|
+
Middle = "middle",
|
|
8
|
+
Bottom = "bottom",
|
|
9
|
+
Stretch = "stretch",
|
|
10
|
+
Baseline = "baseline"
|
|
11
|
+
}
|
|
12
|
+
export interface IXBaseProps extends IBaseProps {
|
|
13
|
+
gap?: string;
|
|
14
|
+
cross?: XCrossType;
|
|
15
|
+
itemsShrink?: Property.FlexShrink;
|
|
16
|
+
}
|
|
17
|
+
declare const XBase: (props: IXBaseProps, overwriteRenderChildren?: (child: any, childIndex: number, alignSelf?: FlexItemAlignSelfType, itemsShrink?: Property.FlexShrink) => React.JSX.Element, overwriteGetWrap?: () => FlexWrapType, overwriteGetJustifyContent?: () => FlexJustifyContentType, overwriteGetAlignContent?: () => FlexAlignContentType) => React.JSX.Element;
|
|
18
|
+
export default XBase;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { IXBaseProps } from '../XBase';
|
|
3
|
+
export interface IXCustomBothProps extends IXBaseProps {
|
|
4
|
+
basis?: Property.FlexBasis;
|
|
5
|
+
}
|
|
6
|
+
declare const XCustomBoth: (props: IXCustomBothProps) => React.JSX.Element;
|
|
7
|
+
export default XCustomBoth;
|