@fewbox/den-web 0.1.9 → 0.1.10
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.css +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Layout/Dock/index.d.ts +7 -3
- package/src/components/View/VText/index.d.ts +1 -1
- package/src/components/View/VTooltip/index.d.ts +1 -5
- package/src/components/web.d.ts +2 -1
- package/templates/FEWBOX.md +1 -1
- package/src/components/Layout/DockBak/index.d.ts +0 -23
|
@@ -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",
|
|
@@ -15,8 +15,12 @@ export declare enum DockCategory {
|
|
|
15
15
|
}
|
|
16
16
|
export interface IDockProps extends IBaseProps {
|
|
17
17
|
category?: DockCategory;
|
|
18
|
-
|
|
18
|
+
offset?: number;
|
|
19
|
+
overlayZIndex?: number;
|
|
19
20
|
renderOverlay: () => JSX.Element;
|
|
20
21
|
}
|
|
21
|
-
|
|
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
|
-
|
|
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",
|
|
@@ -8,10 +7,7 @@ export declare enum TooltipCategory {
|
|
|
8
7
|
export interface IVTooltipProps extends IBaseProps {
|
|
9
8
|
category?: TooltipCategory;
|
|
10
9
|
dockCategory?: DockCategory;
|
|
11
|
-
|
|
12
|
-
textFrontColor: ColorType;
|
|
13
|
-
textBackgroundColor: ColorType;
|
|
14
|
-
overlay?: JSX.Element;
|
|
10
|
+
renderOverlay: () => JSX.Element;
|
|
15
11
|
}
|
|
16
12
|
export interface IVTooltipStates extends IBaseStates {
|
|
17
13
|
isShow: boolean;
|
package/src/components/web.d.ts
CHANGED
|
@@ -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
|
|
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';
|
package/templates/FEWBOX.md
CHANGED
|
@@ -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'; // @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;
|