@fewbox/den 0.1.44 → 0.2.0-preview.21
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/engine.js +2 -0
- package/engine.js.map +1 -0
- package/index-core.d.ts +1 -4
- package/index-engine.d.ts +27 -0
- package/index.css +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +10 -1
- package/scripts/generate-packages.js +12 -0
- package/server.js +71 -0
- package/src/components/Auth/GoogleGrant/index.d.ts +10 -8
- package/src/components/Auth/GoogleSignin/index.d.ts +6 -5
- package/src/components/Engine/Base/index.d.ts +10 -11
- package/src/components/Engine/index.d.ts +303 -274
- package/src/components/Layout/Breakpoint/index.d.ts +20 -17
- package/src/components/Layout/Dock/index.d.ts +25 -23
- package/src/components/Layout/Flex/index.d.ts +38 -33
- package/src/components/Layout/FlexItem/index.d.ts +8 -7
- package/src/components/Layout/Position/index.d.ts +19 -17
- package/src/components/Layout/PositionArea/index.d.ts +5 -4
- package/src/components/Layout/XBase/index.d.ts +8 -7
- package/src/components/Layout/YBase/index.d.ts +8 -7
- package/src/components/View/VAnimation/index.d.ts +122 -118
- package/src/components/View/VAside/index.d.ts +5 -0
- package/src/components/View/VBackground/index.d.ts +10 -10
- package/src/components/View/VCardWindow/index.d.ts +6 -5
- package/src/components/View/VChromeExtensionValidator/index.d.ts +8 -7
- package/src/components/View/VForm/index.d.ts +5 -4
- package/src/components/View/VGoogleFont/index.d.ts +5 -4
- package/src/components/View/VHyperlink/index.d.ts +7 -6
- package/src/components/View/VImage/index.d.ts +12 -8
- package/src/components/View/VInput/VColor/index.d.ts +0 -2
- package/src/components/View/VInput/VDate/index.d.ts +0 -2
- package/src/components/View/VInput/VDatetimeLocal/index.d.ts +0 -2
- package/src/components/View/VInput/VDropdown/index.d.ts +2 -0
- package/src/components/View/VInput/VFile/index.d.ts +5 -4
- package/src/components/View/VInput/VGroup/index.d.ts +1 -1
- package/src/components/View/VInput/VRange/index.d.ts +1 -2
- package/src/components/View/VLabel/index.d.ts +53 -47
- package/src/components/View/VNav/index.d.ts +5 -0
- package/src/components/View/VPhoto/index.d.ts +12 -10
- package/src/components/View/VRoot/index.d.ts +5 -4
- package/src/components/View/VShadow/index.d.ts +5 -4
- package/src/components/View/VShape/VEllipse/index.d.ts +5 -4
- package/src/components/View/VShape/VLine/index.d.ts +5 -4
- package/src/components/View/VShape/VRectangle/index.d.ts +5 -4
- package/src/components/View/VSvg/index.d.ts +11 -7
- package/src/components/View/VText/index.d.ts +18 -16
- package/src/components/View/VTheme/index.d.ts +13 -11
- package/src/components/View/VTooltip/index.d.ts +5 -4
- package/src/components/View/VVideo/index.d.ts +1 -4
- package/src/components/View/VZone/index.d.ts +9 -8
- package/src/components/core.d.ts +12 -1
- package/src/components/web.d.ts +4 -0
- package/templates/.claude/skills/fewbox-den/SKILL.md +434 -96
- package/templates/style/_core.scss +12 -0
- package/templates/style/_root-properties.scss +3 -0
- package/templates/style/_variables.scss +12 -0
- package/tsconfig.app.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fewbox/den",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-preview.21",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index-core.d.ts",
|
|
6
6
|
"repository": "https://github.com/FewBox/fewbox-den.git",
|
|
7
7
|
"author": "FewBox Support <support@fewbox.com>",
|
|
8
8
|
"license": "Apache-2.0",
|
|
9
9
|
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./index-core.d.ts",
|
|
13
|
+
"react-server": "./server.js",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
},
|
|
16
|
+
"./index.css": "./index.css",
|
|
17
|
+
"./*": "./*"
|
|
18
|
+
},
|
|
10
19
|
"scripts": {
|
|
11
20
|
"postinstall": "node scripts/copy-templates.js"
|
|
12
21
|
},
|
|
@@ -21,6 +21,18 @@ for (const registry of registries) {
|
|
|
21
21
|
type: common.type,
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
if (variantConfig.hasServerEntry) {
|
|
25
|
+
pkg.exports = {
|
|
26
|
+
'.': {
|
|
27
|
+
types: `./${variantConfig.types}`,
|
|
28
|
+
'react-server': './server.js',
|
|
29
|
+
default: './index.js',
|
|
30
|
+
},
|
|
31
|
+
'./index.css': './index.css',
|
|
32
|
+
'./*': './*',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
24
36
|
if (variantConfig.hasPostinstall) {
|
|
25
37
|
pkg.scripts = { postinstall: 'node scripts/copy-templates.js' };
|
|
26
38
|
}
|
package/server.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Engine constants
|
|
2
|
+
export {
|
|
3
|
+
ColorType,
|
|
4
|
+
FontSizeType,
|
|
5
|
+
FontWeightType,
|
|
6
|
+
FontFamilyType,
|
|
7
|
+
LineHeightType,
|
|
8
|
+
PaddingType,
|
|
9
|
+
MarginType,
|
|
10
|
+
GapType,
|
|
11
|
+
LetterSpacingType,
|
|
12
|
+
BorderRadiusType,
|
|
13
|
+
BorderStyleType,
|
|
14
|
+
BorderWidthType,
|
|
15
|
+
VisibilityType,
|
|
16
|
+
DisplayType,
|
|
17
|
+
CursorType,
|
|
18
|
+
OverflowType,
|
|
19
|
+
OverflowXType,
|
|
20
|
+
OverflowYType,
|
|
21
|
+
OpacityType,
|
|
22
|
+
ViewSizeType,
|
|
23
|
+
PseudoType,
|
|
24
|
+
DirectionType,
|
|
25
|
+
getGeneratedClassName,
|
|
26
|
+
getWeightValue,
|
|
27
|
+
// Layout constants
|
|
28
|
+
ZoneCategory,
|
|
29
|
+
ScreenSizeType,
|
|
30
|
+
BreakpointCategory,
|
|
31
|
+
BreakpointType,
|
|
32
|
+
DockCategory,
|
|
33
|
+
DockAlignment,
|
|
34
|
+
PositionCategory,
|
|
35
|
+
PositionType,
|
|
36
|
+
PositionAreaCategory,
|
|
37
|
+
FlexDirectionType,
|
|
38
|
+
FlexWrapType,
|
|
39
|
+
FlexJustifyContentType,
|
|
40
|
+
FlexAlignItemsType,
|
|
41
|
+
FlexAlignContentType,
|
|
42
|
+
FlexItemAlignSelfType,
|
|
43
|
+
XCrossType,
|
|
44
|
+
YCrossType,
|
|
45
|
+
// View constants
|
|
46
|
+
BackgroundPositionType,
|
|
47
|
+
HandleSubmitCategory,
|
|
48
|
+
FileCategory,
|
|
49
|
+
SvgCategory,
|
|
50
|
+
HyperlinkCategory,
|
|
51
|
+
ImageCategory,
|
|
52
|
+
LabelCategory,
|
|
53
|
+
LabelType,
|
|
54
|
+
LabelAlignType,
|
|
55
|
+
TextCategory,
|
|
56
|
+
TextAlignType,
|
|
57
|
+
EllipseCategory,
|
|
58
|
+
LineCategory,
|
|
59
|
+
ShadowCategory,
|
|
60
|
+
AnimationCategory,
|
|
61
|
+
AnimationDelay,
|
|
62
|
+
AnimationRepeat,
|
|
63
|
+
AnimationSpeed,
|
|
64
|
+
RootCategory,
|
|
65
|
+
ThemeCategory,
|
|
66
|
+
TooltipCategory,
|
|
67
|
+
// Util
|
|
68
|
+
convertFormDataToJson
|
|
69
|
+
} from './engine.js';
|
|
70
|
+
|
|
71
|
+
export * from './index.js';
|
|
@@ -19,14 +19,16 @@ export interface GoogleGrantCode {
|
|
|
19
19
|
errorDescription: string;
|
|
20
20
|
errorUri: string;
|
|
21
21
|
}
|
|
22
|
-
export declare
|
|
23
|
-
Popup
|
|
24
|
-
Redirect
|
|
25
|
-
}
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
export declare const GoogleGrantUXMode: {
|
|
23
|
+
readonly Popup: "popup";
|
|
24
|
+
readonly Redirect: "redirect";
|
|
25
|
+
};
|
|
26
|
+
export type GoogleGrantUXMode = typeof GoogleGrantUXMode[keyof typeof GoogleGrantUXMode];
|
|
27
|
+
export declare const GoogleGrantCategory: {
|
|
28
|
+
readonly Implicit: "implicit";
|
|
29
|
+
readonly AuthorizationCode: "authorization-code";
|
|
30
|
+
};
|
|
31
|
+
export type GoogleGrantCategory = typeof GoogleGrantCategory[keyof typeof GoogleGrantCategory];
|
|
30
32
|
export interface IGoogleGrantProps extends IBaseProps {
|
|
31
33
|
category?: GoogleGrantCategory;
|
|
32
34
|
uxMode?: GoogleGrantUXMode;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
Prompt
|
|
3
|
-
Popup
|
|
4
|
-
Redirect
|
|
5
|
-
}
|
|
1
|
+
export declare const GoogleSigninUXMode: {
|
|
2
|
+
readonly Prompt: "prompt";
|
|
3
|
+
readonly Popup: "popup";
|
|
4
|
+
readonly Redirect: "redirect";
|
|
5
|
+
};
|
|
6
|
+
export type GoogleSigninUXMode = typeof GoogleSigninUXMode[keyof typeof GoogleSigninUXMode];
|
|
6
7
|
export interface IGoogleSigninProps {
|
|
7
8
|
googleAuthButtonId?: string;
|
|
8
9
|
clientId: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DirectionType, FullColorType, PseudoType, FullFontSizeType, FontWeightType, FullBorderRadiusType, FullBorderStyleType, FullBorderWidthType, FullPaddingType, FullMarginType,
|
|
1
|
+
import { DirectionType, FullColorType, PseudoType, FullFontSizeType, FontWeightType, FullBorderRadiusType, FullBorderStyleType, FullBorderWidthType, FullPaddingType, FullMarginType, FullOpacityType, FullLetterSpacingType, FullDisplayType, FullVisibilityType, FullCursorType, FullOverflowType, FullOverflowXType, FullOverflowYType } from '..';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
|
-
export type TLength = (string & {}) | 0;
|
|
4
3
|
export interface IViewProps {
|
|
5
4
|
className?: string;
|
|
6
5
|
style?: React.CSSProperties;
|
|
@@ -21,21 +20,21 @@ export interface IViewProps {
|
|
|
21
20
|
borderWidth?: FullBorderWidthType;
|
|
22
21
|
padding?: FullPaddingType;
|
|
23
22
|
margin?: FullMarginType;
|
|
24
|
-
opacity?:
|
|
23
|
+
opacity?: FullOpacityType;
|
|
25
24
|
display?: FullDisplayType;
|
|
26
25
|
visibility?: FullVisibilityType;
|
|
27
26
|
cursor?: FullCursorType;
|
|
28
27
|
overflow?: FullOverflowType;
|
|
29
28
|
zIndex?: Property.ZIndex;
|
|
30
29
|
fontFamily?: Property.FontFamily;
|
|
31
|
-
height?: Property.Height
|
|
32
|
-
width?: Property.Width
|
|
33
|
-
minHeight?: Property.Width
|
|
34
|
-
minWidth?: Property.Width
|
|
35
|
-
maxHeight?: Property.Width
|
|
36
|
-
maxWidth?: Property.Width
|
|
37
|
-
letterSpacing?:
|
|
38
|
-
lineHeight?: Property.LineHeight
|
|
30
|
+
height?: Property.Height;
|
|
31
|
+
width?: Property.Width;
|
|
32
|
+
minHeight?: Property.Width;
|
|
33
|
+
minWidth?: Property.Width;
|
|
34
|
+
maxHeight?: Property.Width;
|
|
35
|
+
maxWidth?: Property.Width;
|
|
36
|
+
letterSpacing?: FullLetterSpacingType;
|
|
37
|
+
lineHeight?: Property.LineHeight;
|
|
39
38
|
overflowX?: FullOverflowXType;
|
|
40
39
|
overflowY?: FullOverflowYType;
|
|
41
40
|
selfShrink?: Property.FlexShrink;
|