@fewbox/den 0.2.0-preview.29 → 0.2.0-preview.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewbox/den",
3
- "version": "0.2.0-preview.29",
3
+ "version": "0.2.0-preview.31",
4
4
  "main": "index.js",
5
5
  "types": "index-core.d.ts",
6
6
  "repository": "https://github.com/FewBox/fewbox-den.git",
@@ -0,0 +1,13 @@
1
+ import { Property } from 'csstype';
2
+ import { DockCategory, DockAlignment, DockPopoverMode } from '../types';
3
+ interface IDockPopoverOverlayProps {
4
+ category: DockCategory;
5
+ offset: number;
6
+ zIndex: Property.ZIndex;
7
+ alignment?: DockAlignment;
8
+ popoverMode?: DockPopoverMode;
9
+ onOverlayClose?: () => void;
10
+ renderOverlay: () => React.JSX.Element;
11
+ }
12
+ declare const DockPopoverOverlay: ({ category, offset, zIndex, alignment, popoverMode, onOverlayClose, renderOverlay }: IDockPopoverOverlayProps) => React.JSX.Element;
13
+ export default DockPopoverOverlay;
@@ -1,5 +1,5 @@
1
1
  import { Property } from 'csstype';
2
- import { DockCategory, DockAlignment } from '../';
2
+ import { DockCategory, DockAlignment } from '../types';
3
3
  interface IDockPortalOverlayProps {
4
4
  category: DockCategory;
5
5
  offset: number;
@@ -1,35 +1,16 @@
1
1
  import { IBaseProps } from '../../Engine/Base';
2
2
  import { Property } from 'csstype';
3
- export declare const DockCategory: {
4
- readonly Top: "top";
5
- readonly Right: "right";
6
- readonly Bottom: "bottom";
7
- readonly Left: "left";
8
- readonly LeftTop: "left-top";
9
- readonly RightTop: "right-top";
10
- readonly LeftBottom: "left-bottom";
11
- readonly RightBottom: "right-bottom";
12
- readonly InnerTop: "inner-top";
13
- readonly InnerRight: "inner-right";
14
- readonly InnerBottom: "inner-bottom";
15
- readonly InnerLeft: "inner-left";
16
- readonly InnerLeftTop: "inner-left-top";
17
- readonly InnerRightTop: "inner-right-top";
18
- readonly InnerLeftBottom: "inner-left-bottom";
19
- readonly InnerRightBottom: "inner-right-bottom";
20
- };
21
- export type DockCategory = typeof DockCategory[keyof typeof DockCategory];
22
- export declare const DockAlignment: {
23
- readonly Horizontal: "horizontal";
24
- readonly Vertical: "vertical";
25
- };
26
- export type DockAlignment = typeof DockAlignment[keyof typeof DockAlignment];
27
- type AlignmentCategory = typeof DockCategory.LeftTop | typeof DockCategory.RightTop | typeof DockCategory.RightBottom | typeof DockCategory.LeftBottom;
28
- type NonAlignmentCategory = Exclude<DockCategory, AlignmentCategory>;
3
+ import type { DockAlignment, AlignmentCategory, NonAlignmentCategory } from './types';
4
+ import { DockPopoverMode } from './types';
5
+ export { DockCategory, DockAlignment, DockPopoverMode } from './types';
6
+ export type { AlignmentCategory, NonAlignmentCategory, IDockOverlayProps } from './types';
29
7
  interface IDockBaseProps extends IBaseProps {
30
8
  offset?: number;
31
9
  overlayZIndex?: Property.ZIndex;
32
10
  isPortal?: boolean;
11
+ isOverlayVisible?: boolean;
12
+ popoverMode?: DockPopoverMode;
13
+ onOverlayClose?: () => void;
33
14
  renderOverlay: () => React.JSX.Element;
34
15
  }
35
16
  export type IDockProps = ({
@@ -38,6 +19,5 @@ export type IDockProps = ({
38
19
  } | {
39
20
  category: NonAlignmentCategory;
40
21
  }) & IDockBaseProps;
41
- export declare const getOverlayStyle: (category: DockCategory, offset: number, zIndex: Property.ZIndex, alignment?: DockAlignment) => React.CSSProperties;
42
22
  declare const Dock: (props: IDockProps) => React.JSX.Element;
43
23
  export default Dock;
@@ -0,0 +1,39 @@
1
+ import { Property } from 'csstype';
2
+ export declare const DockCategory: {
3
+ readonly Top: "top";
4
+ readonly Right: "right";
5
+ readonly Bottom: "bottom";
6
+ readonly Left: "left";
7
+ readonly LeftTop: "left-top";
8
+ readonly RightTop: "right-top";
9
+ readonly LeftBottom: "left-bottom";
10
+ readonly RightBottom: "right-bottom";
11
+ readonly InnerTop: "inner-top";
12
+ readonly InnerRight: "inner-right";
13
+ readonly InnerBottom: "inner-bottom";
14
+ readonly InnerLeft: "inner-left";
15
+ readonly InnerLeftTop: "inner-left-top";
16
+ readonly InnerRightTop: "inner-right-top";
17
+ readonly InnerLeftBottom: "inner-left-bottom";
18
+ readonly InnerRightBottom: "inner-right-bottom";
19
+ };
20
+ export type DockCategory = typeof DockCategory[keyof typeof DockCategory];
21
+ export declare const DockAlignment: {
22
+ readonly Horizontal: "horizontal";
23
+ readonly Vertical: "vertical";
24
+ };
25
+ export type DockAlignment = typeof DockAlignment[keyof typeof DockAlignment];
26
+ export declare const DockPopoverMode: {
27
+ readonly Manual: "manual";
28
+ readonly Auto: "auto";
29
+ };
30
+ export type DockPopoverMode = typeof DockPopoverMode[keyof typeof DockPopoverMode];
31
+ export type AlignmentCategory = typeof DockCategory.LeftTop | typeof DockCategory.RightTop | typeof DockCategory.RightBottom | typeof DockCategory.LeftBottom;
32
+ export type NonAlignmentCategory = Exclude<DockCategory, AlignmentCategory>;
33
+ export interface IDockOverlayProps {
34
+ category: DockCategory;
35
+ offset: number;
36
+ zIndex: Property.ZIndex;
37
+ alignment?: DockAlignment;
38
+ renderOverlay: () => React.JSX.Element;
39
+ }
@@ -1,4 +1,4 @@
1
- import { IBaseProps, IBaseStates } from '../../Engine/Base';
1
+ import { IBaseProps } from '../../Engine/Base';
2
2
  import { DockAlignment, DockCategory } from '../../Layout/Dock';
3
3
  export declare const TooltipCategory: {
4
4
  readonly Hover: "hover";
@@ -11,8 +11,5 @@ export interface IVTooltipProps extends IBaseProps {
11
11
  dockAlignment?: DockAlignment;
12
12
  renderOverlay: () => React.JSX.Element;
13
13
  }
14
- export interface IVTooltipStates extends IBaseStates {
15
- isShow: boolean;
16
- }
17
14
  declare const VTooltip: (props: IVTooltipProps) => React.JSX.Element;
18
15
  export default VTooltip;
@@ -1,5 +1,5 @@
1
1
  import { IBaseProps, IBaseStates } from '../../../Engine/Base';
2
- import { IVTreeNode } from '..';
2
+ import { IVTreeNode } from '../types';
3
3
  export interface IVTreeBlockProps extends IBaseProps {
4
4
  node: IVTreeNode;
5
5
  expandIcon?: React.JSX.Element;
@@ -1,10 +1,6 @@
1
1
  import { IBaseProps } from '../../Engine/Base';
2
- export interface IVTreeNode {
3
- key: string;
4
- name: string;
5
- icon?: React.JSX.Element;
6
- children?: IVTreeNode[];
7
- }
2
+ export type { IVTreeNode } from './types';
3
+ import type { IVTreeNode } from './types';
8
4
  export interface IVTreeProps extends IBaseProps {
9
5
  rootNode: IVTreeNode;
10
6
  isExpand?: boolean;
@@ -0,0 +1,6 @@
1
+ export interface IVTreeNode {
2
+ key: string;
3
+ name: string;
4
+ icon?: React.JSX.Element;
5
+ children?: IVTreeNode[];
6
+ }
@@ -5,7 +5,7 @@ export { default as BreakpointDisplay, ScreenSizeType, BreakpointCategory, Break
5
5
  export { default as Responsive } from './Layout/Responsive';
6
6
  export { FontSizeType, FontWeightType, FontFamilyType, BorderRadiusType, BorderStyleType, BorderWidthType, LineHeightType, LetterSpacingType, PaddingType, MarginType, GapType, OpacityType, DisplayType, VisibilityType, CursorType, OverflowType, OverflowXType, OverflowYType, ViewSizeType, ColorType, getGeneratedClassName } from './Engine';
7
7
  export type { FullBorderRadiusType, FullBorderStyleType, FullBorderWidthType, FullPaddingType, FullMarginType, FullGapType, FullDisplayType, FullVisibilityType, FullCursorType, FullOverflowType, FullOverflowXType, FullOverflowYType, FullColorType } from './Engine';
8
- export { default as Dock, DockCategory, DockAlignment } from './Layout/Dock';
8
+ export { default as Dock, DockCategory, DockAlignment, DockPopoverMode } from './Layout/Dock';
9
9
  export { default as Position, PositionCategory, PositionType } from './Layout/Position';
10
10
  export { default as PositionArea, PositionAreaCategory } from './Layout/PositionArea';
11
11
  export { default as Flex, FlexDirectionType, FlexWrapType, FlexJustifyContentType, FlexAlignItemsType, FlexAlignContentType } from './Layout/Flex';