@fewbox/den-web 0.1.9 → 0.1.11

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.
@@ -1,4 +1,4 @@
1
- import { IBaseProps } from '../../Engine/Base';
1
+ import { IBaseProps, IBaseStates } from '../../Engine/Base';
2
2
  export declare enum DockCategory {
3
3
  Top = "top",
4
4
  Right = "right",
@@ -14,9 +14,13 @@ export declare enum DockCategory {
14
14
  RightInnerBottom = "right-inner-bottom"
15
15
  }
16
16
  export interface IDockProps extends IBaseProps {
17
- category?: DockCategory;
18
- overlayWidth?: string;
17
+ category: DockCategory;
18
+ offset?: number;
19
+ overlayZIndex?: number;
19
20
  renderOverlay: () => JSX.Element;
20
21
  }
21
- declare const Dock: React.FC<IDockProps>;
22
+ export interface IDockStates extends IBaseStates {
23
+ style: React.CSSProperties;
24
+ }
25
+ declare const Dock: (props: IDockProps) => JSX.Element;
22
26
  export default Dock;
@@ -17,7 +17,7 @@ export declare enum TextAlignType {
17
17
  export type IVTextProps<C extends TextCategory = TextCategory.P> = IBaseProps<ElementOf<C>> & {
18
18
  category?: C;
19
19
  alignType?: TextAlignType;
20
- body: string | number | undefined | JSX.Element;
20
+ renderContent: () => JSX.Element;
21
21
  };
22
22
  declare const VText: <C extends TextCategory = TextCategory.P>(props: IVTextProps<C>) => JSX.Element;
23
23
  export default VText;
@@ -1,5 +1,4 @@
1
1
  import { IBaseProps, IBaseStates } from '../../Engine/Base';
2
- import { ColorType } from '../../Engine';
3
2
  import { DockCategory } from '../../Layout/Dock';
4
3
  export declare enum TooltipCategory {
5
4
  Hover = "hover",
@@ -7,11 +6,8 @@ export declare enum TooltipCategory {
7
6
  }
8
7
  export interface IVTooltipProps extends IBaseProps {
9
8
  category?: TooltipCategory;
10
- dockCategory?: DockCategory;
11
- caption: string | JSX.Element;
12
- textFrontColor: ColorType;
13
- textBackgroundColor: ColorType;
14
- overlay?: JSX.Element;
9
+ dockCategory: DockCategory;
10
+ renderOverlay: () => JSX.Element;
15
11
  }
16
12
  export interface IVTooltipStates extends IBaseStates {
17
13
  isShow: boolean;
@@ -3,7 +3,7 @@ export { BreakpointType } from './Layout';
3
3
  export { default as VZone, ZoneCategory } from './View/VZone';
4
4
  export { default as Display, DisplayCategory, DisplayType } from './Layout/Display';
5
5
  export { default as Responsive } from './Layout/Responsive';
6
- export { FontSizeType as SizeType, FontWeightType, FontFamilyType, BorderRadiusType, LineHeightType, LetterSpacingType, PaddingType, ViewSizeType, FullColorType, ColorType, ComponentType, getGeneratedClassName } from './Engine';
6
+ export { FontSizeType, FontWeightType, FontFamilyType, BorderRadiusType, LineHeightType, LetterSpacingType, PaddingType, ViewSizeType, FullColorType, ColorType, ComponentType, getGeneratedClassName } from './Engine';
7
7
  export { default as Dock, DockCategory } from './Layout/Dock';
8
8
  export { default as Position, PositionCategory, PositionType } from './Layout/Position';
9
9
  export { default as PositionArea, PositionAreaCategory } from './Layout/PositionArea';
@@ -113,6 +113,7 @@ export { default as VMain } from './View/VMain';
113
113
  export { default as VSection } from './View/VSection';
114
114
  export { default as VMask } from './View/VMask';
115
115
  export { default as VFrame } from './View/VFrame';
116
+ export { default as VTooltip, TooltipCategory } from './View/VTooltip';
116
117
  export { default as GoogleGrant, GoogleGrantCategory, GoogleGrantUXMode, GoogleGrantCode, GoogleGrantToken } from './Auth/GoogleGrant';
117
118
  export { default as FigmaSignin } from './Auth/FigmaSignin';
118
119
  export { default as GoogleSignin, GoogleSigninUXMode } from './Auth/GoogleSignin';
@@ -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 @fewbox/den-lite
22
+ import { Den } from '@fewbox/den'; // @fewbox/den-web
23
23
  <Den.Components.VLabel frontColor={Den.Components.ColorType.Primary} caption='Hello, FewBox!' />
24
24
  ```
25
25
 
@@ -1,23 +0,0 @@
1
- import { IBaseProps } from '../../Engine/Base';
2
- export declare enum DockCategory {
3
- Auto = "auto",
4
- Fix = "fix"
5
- }
6
- export declare enum DockType {
7
- Top = "top",
8
- Right = "right",
9
- Bottom = "bottom",
10
- Left = "left",
11
- LeftTop = "left-top",
12
- RightTop = "right-top",
13
- LeftBottom = "left-bottom",
14
- RightBottom = "right-bottom"
15
- }
16
- export interface IDockProps extends IBaseProps<'div'> {
17
- category?: DockCategory;
18
- type?: DockType;
19
- gap?: number;
20
- renderOverlay: () => JSX.Element;
21
- }
22
- declare const Dock: React.FC<IDockProps>;
23
- export default Dock;