@fewbox/den-web 0.1.12 → 0.1.18

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 (139) hide show
  1. package/index.css +1 -1
  2. package/index.js +1 -1
  3. package/index.js.map +1 -1
  4. package/package.json +4 -5
  5. package/src/components/Auth/FigmaSignin/index.d.ts +1 -1
  6. package/src/components/Auth/GoogleGrant/index.d.ts +1 -1
  7. package/src/components/Auth/GoogleSignin/index.d.ts +1 -1
  8. package/src/components/Auth/WeComSignin/index.d.ts +1 -1
  9. package/src/components/Debug/index.d.ts +1 -1
  10. package/src/components/Engine/Base/index.d.ts +2 -2
  11. package/src/components/Layout/Display/index.d.ts +1 -1
  12. package/src/components/Layout/Dock/index.d.ts +3 -3
  13. package/src/components/Layout/Flex/index.d.ts +1 -1
  14. package/src/components/Layout/FlexItem/index.d.ts +1 -1
  15. package/src/components/Layout/Position/index.d.ts +1 -1
  16. package/src/components/Layout/PositionArea/index.d.ts +1 -1
  17. package/src/components/Layout/Responsive/index.d.ts +3 -3
  18. package/src/components/Layout/SBaseline/index.d.ts +1 -1
  19. package/src/components/Layout/SBottom/index.d.ts +1 -1
  20. package/src/components/Layout/SCenter/index.d.ts +1 -1
  21. package/src/components/Layout/SLeft/index.d.ts +1 -1
  22. package/src/components/Layout/SMiddle/index.d.ts +1 -1
  23. package/src/components/Layout/SRight/index.d.ts +1 -1
  24. package/src/components/Layout/SStretch/index.d.ts +1 -1
  25. package/src/components/Layout/STop/index.d.ts +1 -1
  26. package/src/components/Layout/X/index.d.ts +1 -1
  27. package/src/components/Layout/XAround/index.d.ts +1 -1
  28. package/src/components/Layout/XAutoBoth/index.d.ts +1 -1
  29. package/src/components/Layout/XAutoCenter/index.d.ts +1 -1
  30. package/src/components/Layout/XAutoLeft/index.d.ts +1 -1
  31. package/src/components/Layout/XAutoLefts/index.d.ts +1 -1
  32. package/src/components/Layout/XAutoRight/index.d.ts +1 -1
  33. package/src/components/Layout/XAutoRights/index.d.ts +1 -1
  34. package/src/components/Layout/XBase/index.d.ts +1 -1
  35. package/src/components/Layout/XBetween/index.d.ts +1 -1
  36. package/src/components/Layout/XCenter/index.d.ts +1 -1
  37. package/src/components/Layout/XCustom/index.d.ts +1 -1
  38. package/src/components/Layout/XCustomBoth/index.d.ts +1 -1
  39. package/src/components/Layout/XEvenly/index.d.ts +1 -1
  40. package/src/components/Layout/XLeft/index.d.ts +1 -1
  41. package/src/components/Layout/XRight/index.d.ts +1 -1
  42. package/src/components/Layout/XWrapAround/index.d.ts +1 -1
  43. package/src/components/Layout/XWrapBetween/index.d.ts +1 -1
  44. package/src/components/Layout/XWrapBottom/index.d.ts +1 -1
  45. package/src/components/Layout/XWrapEvenly/index.d.ts +1 -1
  46. package/src/components/Layout/XWrapMiddle/index.d.ts +1 -1
  47. package/src/components/Layout/XWrapTop/index.d.ts +1 -1
  48. package/src/components/Layout/Y/index.d.ts +1 -1
  49. package/src/components/Layout/YAround/index.d.ts +1 -1
  50. package/src/components/Layout/YAutoBoth/index.d.ts +1 -1
  51. package/src/components/Layout/YAutoBottom/index.d.ts +1 -1
  52. package/src/components/Layout/YAutoBottoms/index.d.ts +1 -1
  53. package/src/components/Layout/YAutoCenter/index.d.ts +1 -1
  54. package/src/components/Layout/YAutoTop/index.d.ts +1 -1
  55. package/src/components/Layout/YAutoTops/index.d.ts +1 -1
  56. package/src/components/Layout/YBase/index.d.ts +1 -1
  57. package/src/components/Layout/YBetween/index.d.ts +1 -1
  58. package/src/components/Layout/YBottom/index.d.ts +1 -1
  59. package/src/components/Layout/YCustom/index.d.ts +1 -1
  60. package/src/components/Layout/YCustomBoth/index.d.ts +1 -1
  61. package/src/components/Layout/YEvenly/index.d.ts +1 -1
  62. package/src/components/Layout/YMiddle/index.d.ts +1 -1
  63. package/src/components/Layout/YTop/index.d.ts +1 -1
  64. package/src/components/Layout/YWrapAround/index.d.ts +1 -1
  65. package/src/components/Layout/YWrapBetween/index.d.ts +1 -1
  66. package/src/components/Layout/YWrapCenter/index.d.ts +1 -1
  67. package/src/components/Layout/YWrapEvenly/index.d.ts +1 -1
  68. package/src/components/Layout/YWrapLeft/index.d.ts +1 -1
  69. package/src/components/Layout/YWrapRight/index.d.ts +1 -1
  70. package/src/components/View/VActionForm/index.d.ts +1 -1
  71. package/src/components/View/VAnimation/index.d.ts +1 -1
  72. package/src/components/View/VAudio/index.d.ts +1 -1
  73. package/src/components/View/VAvatar/index.d.ts +3 -3
  74. package/src/components/View/VBackground/index.d.ts +1 -1
  75. package/src/components/View/VBadge/index.d.ts +2 -2
  76. package/src/components/View/VBlock/index.d.ts +5 -5
  77. package/src/components/View/VCard/index.d.ts +3 -3
  78. package/src/components/View/VCardMedia/index.d.ts +5 -5
  79. package/src/components/View/VCardSocial/index.d.ts +9 -9
  80. package/src/components/View/VCardWindow/index.d.ts +1 -1
  81. package/src/components/View/VChromeExtensionValidator/index.d.ts +4 -4
  82. package/src/components/View/VFooter/index.d.ts +1 -1
  83. package/src/components/View/VForm/index.d.ts +1 -1
  84. package/src/components/View/VFrame/index.d.ts +1 -1
  85. package/src/components/View/VGoogleFont/index.d.ts +1 -1
  86. package/src/components/View/VHR/index.d.ts +1 -1
  87. package/src/components/View/VHeader/index.d.ts +1 -1
  88. package/src/components/View/VHyperlink/index.d.ts +1 -1
  89. package/src/components/View/VImage/index.d.ts +1 -1
  90. package/src/components/View/VInput/VBase64File/index.d.ts +2 -2
  91. package/src/components/View/VInput/VCheckBox/index.d.ts +1 -1
  92. package/src/components/View/VInput/VColor/index.d.ts +1 -1
  93. package/src/components/View/VInput/VDate/index.d.ts +1 -1
  94. package/src/components/View/VInput/VDatetimeLocal/index.d.ts +1 -1
  95. package/src/components/View/VInput/VDropdown/index.d.ts +8 -8
  96. package/src/components/View/VInput/VEmail/index.d.ts +1 -1
  97. package/src/components/View/VInput/VFile/index.d.ts +4 -4
  98. package/src/components/View/VInput/VGroup/index.d.ts +2 -2
  99. package/src/components/View/VInput/VMonth/index.d.ts +1 -1
  100. package/src/components/View/VInput/VNumber/index.d.ts +1 -1
  101. package/src/components/View/VInput/VPassword/index.d.ts +1 -1
  102. package/src/components/View/VInput/VRadio/index.d.ts +1 -1
  103. package/src/components/View/VInput/VRange/index.d.ts +1 -1
  104. package/src/components/View/VInput/VSearch/index.d.ts +1 -1
  105. package/src/components/View/VInput/VSubmit/index.d.ts +2 -2
  106. package/src/components/View/VInput/VSubmitWrapper/index.d.ts +2 -2
  107. package/src/components/View/VInput/VTel/index.d.ts +1 -1
  108. package/src/components/View/VInput/VTime/index.d.ts +1 -1
  109. package/src/components/View/VInput/VUrl/index.d.ts +1 -1
  110. package/src/components/View/VInput/VWeek/index.d.ts +1 -1
  111. package/src/components/View/VInput/index.d.ts +3 -3
  112. package/src/components/View/VLabel/index.d.ts +2 -2
  113. package/src/components/View/VLoading/index.d.ts +1 -1
  114. package/src/components/View/VMain/index.d.ts +1 -1
  115. package/src/components/View/VMask/index.d.ts +1 -1
  116. package/src/components/View/VPhoto/index.d.ts +1 -1
  117. package/src/components/View/VSection/index.d.ts +1 -1
  118. package/src/components/View/VSelect/index.d.ts +1 -1
  119. package/src/components/View/VShadow/index.d.ts +1 -1
  120. package/src/components/View/VShape/VEllipse/index.d.ts +1 -1
  121. package/src/components/View/VShape/VLine/index.d.ts +1 -1
  122. package/src/components/View/VShape/VRectangle/index.d.ts +1 -1
  123. package/src/components/View/VStack/index.d.ts +1 -1
  124. package/src/components/View/VSvg/index.d.ts +1 -1
  125. package/src/components/View/VSwitch/index.d.ts +2 -2
  126. package/src/components/View/VTemplate/index.d.ts +1 -1
  127. package/src/components/View/VText/index.d.ts +2 -2
  128. package/src/components/View/VTextArea/index.d.ts +1 -1
  129. package/src/components/View/VTooltip/index.d.ts +2 -2
  130. package/src/components/View/VTree/Block/index.d.ts +4 -4
  131. package/src/components/View/VTree/index.d.ts +4 -4
  132. package/src/components/View/VVideo/index.d.ts +1 -1
  133. package/src/components/View/VZone/index.d.ts +1 -1
  134. package/src/components/core.d.ts +117 -0
  135. package/src/components/web.d.ts +1 -114
  136. package/templates/FEWBOX.md +6 -7
  137. package/src/components/Engine/BaseComponent/index.d.ts +0 -9
  138. package/src/components/View/VButton/index.d.ts +0 -15
  139. package/src/components/View/VLink/App/index.d.ts +0 -6
@@ -7,10 +7,10 @@ export declare enum TooltipCategory {
7
7
  export interface IVTooltipProps extends IBaseProps {
8
8
  category?: TooltipCategory;
9
9
  dockCategory: DockCategory;
10
- renderOverlay: () => JSX.Element;
10
+ renderOverlay: () => React.JSX.Element;
11
11
  }
12
12
  export interface IVTooltipStates extends IBaseStates {
13
13
  isShow: boolean;
14
14
  }
15
- declare const VTooltip: (props: IVTooltipProps) => JSX.Element;
15
+ declare const VTooltip: (props: IVTooltipProps) => React.JSX.Element;
16
16
  export default VTooltip;
@@ -2,13 +2,13 @@ import { IBaseProps, IBaseStates } from '../../../Engine/Base';
2
2
  import { IVTreeNode } from '..';
3
3
  export interface IVTreeBlockProps extends IBaseProps {
4
4
  node: IVTreeNode;
5
- expandIcon?: JSX.Element;
6
- collapseIcon?: JSX.Element;
5
+ expandIcon?: React.JSX.Element;
6
+ collapseIcon?: React.JSX.Element;
7
7
  isExpand?: boolean;
8
- renderItem?: (node: IVTreeNode) => JSX.Element;
8
+ renderItem?: (node: IVTreeNode) => React.JSX.Element;
9
9
  }
10
10
  export interface IVTreeBlockStates extends IBaseStates {
11
11
  isExpand?: boolean;
12
12
  }
13
- declare const VTreeBlock: (props: IVTreeBlockProps) => JSX.Element;
13
+ declare const VTreeBlock: (props: IVTreeBlockProps) => React.JSX.Element;
14
14
  export default VTreeBlock;
@@ -2,14 +2,14 @@ import { IBaseProps } from '../../Engine/Base';
2
2
  export interface IVTreeNode {
3
3
  key: string;
4
4
  name: string;
5
- icon?: JSX.Element;
5
+ icon?: React.JSX.Element;
6
6
  children?: IVTreeNode[];
7
7
  }
8
8
  export interface IVTreeProps extends IBaseProps {
9
9
  rootNode: IVTreeNode;
10
10
  isExpand?: boolean;
11
- expandIcon?: JSX.Element;
12
- collapseIcon?: JSX.Element;
11
+ expandIcon?: React.JSX.Element;
12
+ collapseIcon?: React.JSX.Element;
13
13
  }
14
- declare const VTree: (props: IVTreeProps) => JSX.Element;
14
+ declare const VTree: (props: IVTreeProps) => React.JSX.Element;
15
15
  export default VTree;
@@ -6,5 +6,5 @@ export interface SourceItem {
6
6
  export interface IVVideoProps extends IBaseProps<'video'> {
7
7
  sources: SourceItem[];
8
8
  }
9
- declare const VVideo: (props: IVVideoProps) => JSX.Element;
9
+ declare const VVideo: (props: IVVideoProps) => React.JSX.Element;
10
10
  export default VVideo;
@@ -10,5 +10,5 @@ export declare enum ZoneCategory {
10
10
  export interface IVZoneProps extends IBaseProps {
11
11
  category: ZoneCategory;
12
12
  }
13
- declare const VZone: (props: IVZoneProps) => JSX.Element;
13
+ declare const VZone: (props: IVZoneProps) => React.JSX.Element;
14
14
  export default VZone;
@@ -0,0 +1,117 @@
1
+ export { default as Base, IBaseProps, IBaseStates, IBaseReturn } from './Engine/Base';
2
+ export { BreakpointType } from './Layout';
3
+ export { default as VZone, ZoneCategory } from './View/VZone';
4
+ export { default as Display, DisplayCategory, DisplayType } from './Layout/Display';
5
+ export { default as Responsive } from './Layout/Responsive';
6
+ export { FontSizeType, FontWeightType, FontFamilyType, BorderRadiusType, LineHeightType, LetterSpacingType, PaddingType, ViewSizeType, FullColorType, ColorType, ComponentType, getGeneratedClassName } from './Engine';
7
+ export { default as Dock, DockCategory } from './Layout/Dock';
8
+ export { default as Position, PositionCategory, PositionType } from './Layout/Position';
9
+ export { default as PositionArea, PositionAreaCategory } from './Layout/PositionArea';
10
+ export { default as Flex, FlexDirectionType, FlexWrapType, FlexJustifyContentType, FlexAlignItemsType, FlexAlignContentType } from './Layout/Flex';
11
+ export { default as FlexItem, FlexItemAlignSelfType } from './Layout/FlexItem';
12
+ export { default as SBaseline } from './Layout/SBaseline';
13
+ export { default as SBottom } from './Layout/SBottom';
14
+ export { default as SLeft } from './Layout/SLeft';
15
+ export { default as SMiddle } from './Layout/SMiddle';
16
+ export { default as SRight } from './Layout/SRight';
17
+ export { default as SCenter } from './Layout/SCenter';
18
+ export { default as SStretch } from './Layout/SStretch';
19
+ export { default as STop } from './Layout/STop';
20
+ export { default as X } from './Layout/X';
21
+ export { default as XAround } from './Layout/XAround';
22
+ export { default as XAutoBoth } from './Layout/XAutoBoth';
23
+ export { default as XAutoCenter } from './Layout/XAutoCenter';
24
+ export { default as XAutoLeft } from './Layout/XAutoLeft';
25
+ export { default as XAutoLefts } from './Layout/XAutoLefts';
26
+ export { default as XAutoRight } from './Layout/XAutoRight';
27
+ export { default as XAutoRights } from './Layout/XAutoRights';
28
+ export { default as XBetween } from './Layout/XBetween';
29
+ export { default as XCenter } from './Layout/XCenter';
30
+ export { default as XCustom } from './Layout/XCustom';
31
+ export { default as XCustomBoth } from './Layout/XCustomBoth';
32
+ export { default as XEvenly } from './Layout/XEvenly';
33
+ export { default as XLeft } from './Layout/XLeft';
34
+ export { default as XRight } from './Layout/XRight';
35
+ export { default as XWrapAround } from './Layout/XWrapAround';
36
+ export { default as XWrapBetween } from './Layout/XWrapBetween';
37
+ export { default as XWrapBottom } from './Layout/XWrapBottom';
38
+ export { default as XWrapEvenly } from './Layout/XWrapEvenly';
39
+ export { default as XWrapMiddle } from './Layout/XWrapMiddle';
40
+ export { default as XWrapTop } from './Layout/XWrapTop';
41
+ export { XCrossType } from './Layout/XBase';
42
+ export { default as Y } from './Layout/Y';
43
+ export { default as YBetween } from './Layout/YBetween';
44
+ export { default as YMiddle } from './Layout/YMiddle';
45
+ export { default as YTop } from './Layout/YTop';
46
+ export { default as YBottom } from './Layout/YBottom';
47
+ export { default as YAround } from './Layout/YAround';
48
+ export { default as YEvenly } from './Layout/YEvenly';
49
+ export { default as YAutoTop } from './Layout/YAutoTop';
50
+ export { default as YAutoCenter } from './Layout/YAutoCenter';
51
+ export { default as YAutoBottom } from './Layout/YAutoBottom';
52
+ export { default as YAutoTops } from './Layout/YAutoTops';
53
+ export { default as YAutoBottoms } from './Layout/YAutoBottoms';
54
+ export { default as YAutoBoth } from './Layout/YAutoBoth';
55
+ export { default as YCustom } from './Layout/YCustom';
56
+ export { default as YCustomBoth } from './Layout/YCustomBoth';
57
+ export { default as YWrapLeft } from './Layout/YWrapLeft';
58
+ export { default as YWrapCenter } from './Layout/YWrapCenter';
59
+ export { default as YWrapRight } from './Layout/YWrapRight';
60
+ export { default as YWrapAround } from './Layout/YWrapAround';
61
+ export { default as YWrapBetween } from './Layout/YWrapBetween';
62
+ export { default as YWrapEvenly } from './Layout/YWrapEvenly';
63
+ export { YCrossType } from './Layout/YBase';
64
+ export { default as VBoundary } from './View/VBoundary';
65
+ export { default as VBackground, BackgroundPositionType } from './View/VBackground';
66
+ export { default as VForm, HandleSubmitCategory } from './View/VForm';
67
+ export { default as VActionForm } from './View/VActionForm';
68
+ export { InputExtensionItem } from './View/VInput';
69
+ export { default as VCheckBox } from './View/VInput/VCheckBox';
70
+ export { default as VColor } from './View/VInput/VColor';
71
+ export { default as VDate } from './View/VInput/VDate';
72
+ export { default as VDatetimeLocal } from './View/VInput/VDatetimeLocal';
73
+ export { default as VEmail } from './View/VInput/VEmail';
74
+ export { default as VFile, FileCategory } from './View/VInput/VFile';
75
+ export { default as VBase64File } from './View/VInput/VBase64File';
76
+ export { default as VMonth } from './View/VInput/VMonth';
77
+ export { default as VNumber } from './View/VInput/VNumber';
78
+ export { default as VPassword } from './View/VInput/VPassword';
79
+ export { default as VRadio } from './View/VInput/VRadio';
80
+ export { default as VRange } from './View/VInput/VRange';
81
+ export { default as VSearch } from './View/VInput/VSearch';
82
+ export { default as VSubmit } from './View/VInput/VSubmit';
83
+ export { default as VSubmitWrapper } from './View/VInput/VSubmitWrapper';
84
+ export { default as VTel } from './View/VInput/VTel';
85
+ export { default as VTextBox } from './View/VInput/VTextBox';
86
+ export { default as VTime } from './View/VInput/VTime';
87
+ export { default as VUrl } from './View/VInput/VUrl';
88
+ export { default as VWeek } from './View/VInput/VWeek';
89
+ export { default as VHidden } from './View/VInput/VHidden';
90
+ export { default as VGroup } from './View/VInput/VGroup';
91
+ export { default as VSwitch } from './View/VSwitch';
92
+ export { default as VSelect, ISelectItemData } from './View/VSelect';
93
+ export { default as VDropdown, IDropdownItemData } from './View/VInput/VDropdown';
94
+ export { default as VSvg, SvgCategory } from './View/VSvg';
95
+ export { default as VHyperlink, HyperlinkCategory } from './View/VHyperlink';
96
+ export { default as VImage, ImageCategory } from './View/VImage';
97
+ export { default as VLabel, LabelCategory, LabelType, LabelAlignType } from './View/VLabel';
98
+ export { default as VText, TextCategory, TextAlignType } from './View/VText';
99
+ export { default as VTextArea } from './View/VTextArea';
100
+ export { default as VEllipse, EllipseCategory } from './View/VShape/VEllipse';
101
+ export { default as VLine, LineCategory } from './View/VShape/VLine';
102
+ export { default as VRectangle } from './View/VShape/VRectangle';
103
+ export { default as VShadow, ShadowCategory } from './View/VShadow';
104
+ export { default as VAnimation, AnimationCategory, AnimationDelay, AnimationRepeat, AnimationSpeed } from './View/VAnimation';
105
+ export { default as VAudio } from './View/VAudio';
106
+ export { default as VVideo } from './View/VVideo';
107
+ export { default as VHeader } from './View/VHeader';
108
+ export { default as VMain } from './View/VMain';
109
+ export { default as VFooter } from './View/VFooter';
110
+ export { default as VHR } from './View/VHR';
111
+ export { default as VSection } from './View/VSection';
112
+ export { default as VMask } from './View/VMask';
113
+ export { default as VFrame } from './View/VFrame';
114
+ export { default as VTheme, ThemeCategory } from './View/VTheme';
115
+ export { default as VTooltip, TooltipCategory } from './View/VTooltip';
116
+ export { default as VLoading } from './View/VLoading';
117
+ export { convertFormDataToJson } from './util';
@@ -1,122 +1,9 @@
1
+ export * from './core';
1
2
  export { default as Debug } from './Debug';
2
- export { BreakpointType } from './Layout';
3
- export { default as VZone, ZoneCategory } from './View/VZone';
4
- export { default as Display, DisplayCategory, DisplayType } from './Layout/Display';
5
- export { default as Responsive } from './Layout/Responsive';
6
- export { FontSizeType, FontWeightType, FontFamilyType, BorderRadiusType, LineHeightType, LetterSpacingType, PaddingType, ViewSizeType, FullColorType, ColorType, ComponentType, getGeneratedClassName } from './Engine';
7
- export { default as Dock, DockCategory } from './Layout/Dock';
8
- export { default as Position, PositionCategory, PositionType } from './Layout/Position';
9
- export { default as PositionArea, PositionAreaCategory } from './Layout/PositionArea';
10
- export { default as Flex, FlexDirectionType, FlexWrapType, FlexJustifyContentType, FlexAlignItemsType, FlexAlignContentType } from './Layout/Flex';
11
- export { default as FlexItem, FlexItemAlignSelfType } from './Layout/FlexItem';
12
- export { default as SBaseline } from './Layout/SBaseline';
13
- export { default as SBottom } from './Layout/SBottom';
14
- export { default as SLeft } from './Layout/SLeft';
15
- export { default as SMiddle } from './Layout/SMiddle';
16
- export { default as SRight } from './Layout/SRight';
17
- export { default as SCenter } from './Layout/SCenter';
18
- export { default as SStretch } from './Layout/SStretch';
19
- export { default as STop } from './Layout/STop';
20
- export { default as X } from './Layout/X';
21
- export { default as XAround } from './Layout/XAround';
22
- export { default as XAutoBoth } from './Layout/XAutoBoth';
23
- export { default as XAutoCenter } from './Layout/XAutoCenter';
24
- export { default as XAutoLeft } from './Layout/XAutoLeft';
25
- export { default as XAutoLefts } from './Layout/XAutoLefts';
26
- export { default as XAutoRight } from './Layout/XAutoRight';
27
- export { default as XAutoRights } from './Layout/XAutoRights';
28
- export { default as XBetween } from './Layout/XBetween';
29
- export { default as XCenter } from './Layout/XCenter';
30
- export { default as XCustom } from './Layout/XCustom';
31
- export { default as XCustomBoth } from './Layout/XCustomBoth';
32
- export { default as XEvenly } from './Layout/XEvenly';
33
- export { default as XLeft } from './Layout/XLeft';
34
- export { default as XRight } from './Layout/XRight';
35
- export { default as XWrapAround } from './Layout/XWrapAround';
36
- export { default as XWrapBetween } from './Layout/XWrapBetween';
37
- export { default as XWrapBottom } from './Layout/XWrapBottom';
38
- export { default as XWrapEvenly } from './Layout/XWrapEvenly';
39
- export { default as XWrapMiddle } from './Layout/XWrapMiddle';
40
- export { default as XWrapTop } from './Layout/XWrapTop';
41
- export { XCrossType } from './Layout/XBase';
42
- export { default as Y } from './Layout/Y';
43
- export { default as YBetween } from './Layout/YBetween';
44
- export { default as YMiddle } from './Layout/YMiddle';
45
- export { default as YTop } from './Layout/YTop';
46
- export { default as YBottom } from './Layout/YBottom';
47
- export { default as YAround } from './Layout/YAround';
48
- export { default as YEvenly } from './Layout/YEvenly';
49
- export { default as YAutoTop } from './Layout/YAutoTop';
50
- export { default as YAutoCenter } from './Layout/YAutoCenter';
51
- export { default as YAutoBottom } from './Layout/YAutoBottom';
52
- export { default as YAutoTops } from './Layout/YAutoTops';
53
- export { default as YAutoBottoms } from './Layout/YAutoBottoms';
54
- export { default as YAutoBoth } from './Layout/YAutoBoth';
55
- export { default as YCustom } from './Layout/YCustom';
56
- export { default as YCustomBoth } from './Layout/YCustomBoth';
57
- export { default as YWrapLeft } from './Layout/YWrapLeft';
58
- export { default as YWrapCenter } from './Layout/YWrapCenter';
59
- export { default as YWrapRight } from './Layout/YWrapRight';
60
- export { default as YWrapAround } from './Layout/YWrapAround';
61
- export { default as YWrapBetween } from './Layout/YWrapBetween';
62
- export { default as YWrapEvenly } from './Layout/YWrapEvenly';
63
- export { YCrossType } from './Layout/YBase';
64
- export { default as Base, IBaseProps, IBaseStates, IBaseReturn } from './Engine/Base';
65
- export { default as VBackground, BackgroundPositionType } from './View/VBackground';
66
- export { default as VForm, HandleSubmitCategory } from './View/VForm';
67
- export { default as VActionForm } from './View/VActionForm';
68
- export { InputExtensionItem } from './View/VInput';
69
- export { default as VCheckBox } from './View/VInput/VCheckBox';
70
- export { default as VColor } from './View/VInput/VColor';
71
- export { default as VDate } from './View/VInput/VDate';
72
- export { default as VDatetimeLocal } from './View/VInput/VDatetimeLocal';
73
- export { default as VEmail } from './View/VInput/VEmail';
74
- export { default as VFile, FileCategory } from './View/VInput/VFile';
75
- export { default as VBase64File } from './View/VInput/VBase64File';
76
- export { default as VMonth } from './View/VInput/VMonth';
77
- export { default as VNumber } from './View/VInput/VNumber';
78
- export { default as VPassword } from './View/VInput/VPassword';
79
- export { default as VRadio } from './View/VInput/VRadio';
80
- export { default as VRange } from './View/VInput/VRange';
81
- export { default as VSearch } from './View/VInput/VSearch';
82
- export { default as VSubmit } from './View/VInput/VSubmit';
83
- export { default as VSubmitWrapper } from './View/VInput/VSubmitWrapper';
84
- export { default as VTel } from './View/VInput/VTel';
85
- export { default as VTextBox } from './View/VInput/VTextBox';
86
- export { default as VTime } from './View/VInput/VTime';
87
- export { default as VUrl } from './View/VInput/VUrl';
88
- export { default as VWeek } from './View/VInput/VWeek';
89
- export { default as VHidden } from './View/VInput/VHidden';
90
- export { default as VGroup } from './View/VInput/VGroup';
91
- export { default as VSelect, ISelectItemData } from './View/VSelect';
92
- export { default as VDropdown, IDropdownItemData } from './View/VInput/VDropdown';
93
- export { default as VSvg, SvgCategory } from './View/VSvg';
94
3
  export { default as VChromeExtensionValidator, ExtensionStatus } from './View/VChromeExtensionValidator';
95
- export { default as VBoundary } from './View/VBoundary';
96
- export { default as VHyperlink, HyperlinkCategory } from './View/VHyperlink';
97
- export { default as VImage, ImageCategory } from './View/VImage';
98
- export { default as VLabel, LabelCategory, LabelType, LabelAlignType } from './View/VLabel';
99
- export { default as VText, TextCategory, TextAlignType } from './View/VText';
100
- export { default as VTextArea } from './View/VTextArea';
101
- export { default as VEllipse, EllipseCategory } from './View/VShape/VEllipse';
102
- export { default as VLine, LineCategory } from './View/VShape/VLine';
103
- export { default as VRectangle } from './View/VShape/VRectangle';
104
- export { default as VShadow, ShadowCategory } from './View/VShadow';
105
4
  export { default as VGoogleFont, IGoogleTypeface, IGoogleFont, GoogleFontType } from './View/VGoogleFont';
106
- export { default as VAnimation, AnimationCategory, AnimationDelay, AnimationRepeat, AnimationSpeed } from './View/VAnimation';
107
- export { default as VAudio } from './View/VAudio';
108
- export { default as VVideo } from './View/VVideo';
109
- export { default as VFooter } from './View/VFooter';
110
- export { default as VHeader } from './View/VHeader';
111
- export { default as VHR } from './View/VHR';
112
- export { default as VMain } from './View/VMain';
113
- export { default as VSection } from './View/VSection';
114
- export { default as VMask } from './View/VMask';
115
- export { default as VFrame } from './View/VFrame';
116
- export { default as VTooltip, TooltipCategory } from './View/VTooltip';
117
5
  export { default as GoogleGrant, GoogleGrantCategory, GoogleGrantUXMode, GoogleGrantCode, GoogleGrantToken } from './Auth/GoogleGrant';
118
6
  export { default as FigmaSignin } from './Auth/FigmaSignin';
119
7
  export { default as GoogleSignin, GoogleSigninUXMode } from './Auth/GoogleSignin';
120
8
  export { default as WeComSignin } from './Auth/WeComSignin';
121
9
  export { IUserProfile, parseJWT } from './Auth/util';
122
- export { convertFormDataToJson } from './util';
@@ -19,7 +19,7 @@ $body-color: #e1e1e1;
19
19
 
20
20
  ## 3. Use
21
21
  ```tsx
22
- import { Den } from '@fewbox/den'; // @fewbox/den-web
22
+ import { Den } from '@fewbox/den-web'; // @fewbox/den-app
23
23
  <Den.Components.VLabel frontColor={Den.Components.ColorType.Primary} caption='Hello, FewBox!' />
24
24
  ```
25
25
 
@@ -27,7 +27,7 @@ import { Den } from '@fewbox/den'; // @fewbox/den-web
27
27
  ```tsx
28
28
  // Class Component
29
29
 
30
- import { Den } from '@fewbox/den';
30
+ import { Den } from '@fewbox/den-web'; // @fewbox/den-app
31
31
  import './index.scss';
32
32
 
33
33
  export interface IClassComponentProps extends Den.Interface.IBaseProps {
@@ -46,7 +46,7 @@ export default class ClassComponent extends Den.Components.BaseComponent<IClassC
46
46
  }
47
47
  // Function Component
48
48
 
49
- import { Den } from '@fewbox/den';
49
+ import { Den } from '@fewbox/den-web'; // @fewbox/den-app
50
50
  import './index.scss';
51
51
 
52
52
  export interface IFunctionComponentProps extends Den.Interface.IBaseProps {
@@ -58,12 +58,11 @@ export interface IFunctionComponentStates extends Den.Interface.IBaseStates {
58
58
  }
59
59
 
60
60
  const FunctionComponent = (props: IFunctionComponentProps) => {
61
- const _base = Den.Components.Base(props);
62
- _base.getNativeProps(); // Native: div, span, input...
63
- _base.getViewProps(); // View: VRoot, VLabel...
61
+ const { ...rest } = props;
62
+ const _base = Den.Components.Base(rest);
64
63
  const [state, setState] = React.useState<IFunctionComponentStates>({ isSelected: props.isSelected });
65
64
  return (
66
- <div className={_base.getClassName(`function-component${state.isSelected ? ' selected' : ''}`)} style={_base.getStyle()} onClick={() => { setState({ ...state, isSelected: !state.isSelected }); }}>
65
+ <div className={_base.getClassName(`function-component${state.isSelected ? ' selected' : ''}`)} style={_base.getStyle()} {..._base.getProps()}>
67
66
  Click Me
68
67
  </div>
69
68
  );
@@ -1,9 +0,0 @@
1
- import { Component } from 'react';
2
- import { IBaseProps, IBaseStates } from '../Base';
3
- export default abstract class BaseComponent<P extends IBaseProps<any>, S extends IBaseStates = {}> extends Component<P, S> {
4
- private _base;
5
- constructor(props: any);
6
- protected getClassName(vClassName: string): string;
7
- protected getStyle(): object;
8
- protected getChildren(): React.ReactNode;
9
- }
@@ -1,15 +0,0 @@
1
- import { IBaseProps, IBaseStates } from '../../Engine/Base';
2
- export declare enum ButtonCategory {
3
- Round = "round",
4
- Circle = "circle"
5
- }
6
- export interface IVButtonProps extends IBaseProps {
7
- category?: ButtonCategory;
8
- icon?: JSX.Element;
9
- caption?: string | JSX.Element;
10
- }
11
- export interface IVButtonStates extends IBaseStates {
12
- isClick: boolean;
13
- }
14
- declare const VButton: (props: IVButtonProps) => JSX.Element;
15
- export default VButton;
@@ -1,6 +0,0 @@
1
- import { IBaseProps } from '../../../Engine/Base';
2
- export interface IVLinkProps extends IBaseProps {
3
- to: string;
4
- }
5
- declare const VLink: (props: IVLinkProps) => JSX.Element;
6
- export default VLink;