@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.
Files changed (59) hide show
  1. package/engine.js +2 -0
  2. package/engine.js.map +1 -0
  3. package/index-core.d.ts +1 -4
  4. package/index-engine.d.ts +27 -0
  5. package/index.css +1 -1
  6. package/index.js +2 -1
  7. package/index.js.map +1 -1
  8. package/package.json +10 -1
  9. package/scripts/generate-packages.js +12 -0
  10. package/server.js +71 -0
  11. package/src/components/Auth/GoogleGrant/index.d.ts +10 -8
  12. package/src/components/Auth/GoogleSignin/index.d.ts +6 -5
  13. package/src/components/Engine/Base/index.d.ts +10 -11
  14. package/src/components/Engine/index.d.ts +303 -274
  15. package/src/components/Layout/Breakpoint/index.d.ts +20 -17
  16. package/src/components/Layout/Dock/index.d.ts +25 -23
  17. package/src/components/Layout/Flex/index.d.ts +38 -33
  18. package/src/components/Layout/FlexItem/index.d.ts +8 -7
  19. package/src/components/Layout/Position/index.d.ts +19 -17
  20. package/src/components/Layout/PositionArea/index.d.ts +5 -4
  21. package/src/components/Layout/XBase/index.d.ts +8 -7
  22. package/src/components/Layout/YBase/index.d.ts +8 -7
  23. package/src/components/View/VAnimation/index.d.ts +122 -118
  24. package/src/components/View/VAside/index.d.ts +5 -0
  25. package/src/components/View/VBackground/index.d.ts +10 -10
  26. package/src/components/View/VCardWindow/index.d.ts +6 -5
  27. package/src/components/View/VChromeExtensionValidator/index.d.ts +8 -7
  28. package/src/components/View/VForm/index.d.ts +5 -4
  29. package/src/components/View/VGoogleFont/index.d.ts +5 -4
  30. package/src/components/View/VHyperlink/index.d.ts +7 -6
  31. package/src/components/View/VImage/index.d.ts +12 -8
  32. package/src/components/View/VInput/VColor/index.d.ts +0 -2
  33. package/src/components/View/VInput/VDate/index.d.ts +0 -2
  34. package/src/components/View/VInput/VDatetimeLocal/index.d.ts +0 -2
  35. package/src/components/View/VInput/VDropdown/index.d.ts +2 -0
  36. package/src/components/View/VInput/VFile/index.d.ts +5 -4
  37. package/src/components/View/VInput/VGroup/index.d.ts +1 -1
  38. package/src/components/View/VInput/VRange/index.d.ts +1 -2
  39. package/src/components/View/VLabel/index.d.ts +53 -47
  40. package/src/components/View/VNav/index.d.ts +5 -0
  41. package/src/components/View/VPhoto/index.d.ts +12 -10
  42. package/src/components/View/VRoot/index.d.ts +5 -4
  43. package/src/components/View/VShadow/index.d.ts +5 -4
  44. package/src/components/View/VShape/VEllipse/index.d.ts +5 -4
  45. package/src/components/View/VShape/VLine/index.d.ts +5 -4
  46. package/src/components/View/VShape/VRectangle/index.d.ts +5 -4
  47. package/src/components/View/VSvg/index.d.ts +11 -7
  48. package/src/components/View/VText/index.d.ts +18 -16
  49. package/src/components/View/VTheme/index.d.ts +13 -11
  50. package/src/components/View/VTooltip/index.d.ts +5 -4
  51. package/src/components/View/VVideo/index.d.ts +1 -4
  52. package/src/components/View/VZone/index.d.ts +9 -8
  53. package/src/components/core.d.ts +12 -1
  54. package/src/components/web.d.ts +4 -0
  55. package/templates/.claude/skills/fewbox-den/SKILL.md +434 -96
  56. package/templates/style/_core.scss +12 -0
  57. package/templates/style/_root-properties.scss +3 -0
  58. package/templates/style/_variables.scss +12 -0
  59. package/tsconfig.app.tsbuildinfo +1 -1
package/package.json CHANGED
@@ -1,12 +1,21 @@
1
1
  {
2
2
  "name": "@fewbox/den",
3
- "version": "0.1.44",
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 enum GoogleGrantUXMode {
23
- Popup = "popup",
24
- Redirect = "redirect"
25
- }
26
- export declare enum GoogleGrantCategory {
27
- Implicit = "implicit",
28
- AuthorizationCode = "authorization-code"
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 enum GoogleSigninUXMode {
2
- Prompt = "prompt",
3
- Popup = "popup",
4
- Redirect = "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, OpacityType, FullDisplayType, FullVisibilityType, FullCursorType, FullOverflowType, FullOverflowXType, FullOverflowYType } from '..';
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?: OpacityType;
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<TLength>;
32
- width?: Property.Width<TLength>;
33
- minHeight?: Property.Width<TLength>;
34
- minWidth?: Property.Width<TLength>;
35
- maxHeight?: Property.Width<TLength>;
36
- maxWidth?: Property.Width<TLength>;
37
- letterSpacing?: Property.LetterSpacing<TLength>;
38
- lineHeight?: Property.LineHeight<TLength>;
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;