@wizleap-inc/wiz-ui-react 0.20.0 → 0.22.0
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/dist/components/base/anchor/components/anchor.d.ts +14 -5
- package/dist/components/base/navigation/components/navigation-item.d.ts +15 -5
- package/dist/components/base/popup/utils/index.d.ts +2 -2
- package/dist/components/base/popup/utils/popup-position.d.ts +26 -0
- package/dist/components/base/popup/utils/rect.d.ts +11 -0
- package/dist/style.css +1 -1
- package/dist/wiz-ui.es.js +2572 -2590
- package/dist/wiz-ui.umd.js +24 -24
- package/package.json +2 -2
- package/dist/components/base/popup/types/placement.d.ts +0 -14
- package/dist/components/base/popup/utils/direction-value.d.ts +0 -8
- package/dist/components/base/popup/utils/placement/index.d.ts +0 -2
- package/dist/components/base/popup/utils/placement/on-child.d.ts +0 -3
- package/dist/components/base/popup/utils/placement/on-portal.d.ts +0 -3
- package/dist/components/base/popup/utils/wrap.d.ts +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wizleap-inc/wiz-ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "A React UI Framework for Wizleap Inc.",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@storybook/react": "^7.0.2",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react": "^18.2.0",
|
|
27
27
|
"react-dom": "^18.2.0",
|
|
28
28
|
"@wizleap-inc/wiz-ui-constants": "0.8.1",
|
|
29
|
-
"@wizleap-inc/wiz-ui-styles": "0.12.
|
|
29
|
+
"@wizleap-inc/wiz-ui-styles": "0.12.2",
|
|
30
30
|
"@wizleap-inc/wiz-ui-utils": "0.3.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DirectionValue } from "../types/direction";
|
|
2
|
-
export declare const createDirectionValue: ({ first, second, }: {
|
|
3
|
-
first: "bottom" | "top";
|
|
4
|
-
second: "Left" | "Center" | "Right";
|
|
5
|
-
} | {
|
|
6
|
-
first: "left" | "right";
|
|
7
|
-
second: "Top" | "Center" | "Bottom";
|
|
8
|
-
}) => DirectionValue;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { DirectionValue } from "../types/direction";
|
|
2
|
-
export type Args = {
|
|
3
|
-
bound: {
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
};
|
|
7
|
-
content: DOMRect;
|
|
8
|
-
anchor: DOMRect;
|
|
9
|
-
gap: number;
|
|
10
|
-
window: {
|
|
11
|
-
scrollX: number;
|
|
12
|
-
scrollY: number;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const popupContentIsOutOfBoundary: {
|
|
16
|
-
top: ({ anchor, content, window, gap }: Args) => boolean;
|
|
17
|
-
bottom: ({ bound, anchor, content, window, gap }: Args) => boolean;
|
|
18
|
-
left: ({ anchor, content, window, gap }: Args) => boolean;
|
|
19
|
-
right: ({ bound, anchor, content, window, gap }: Args) => boolean;
|
|
20
|
-
rightOnVertical: ({ bound, anchor, content, window }: Args) => boolean;
|
|
21
|
-
leftOnVertical: ({ anchor, content, window }: Args) => boolean;
|
|
22
|
-
topOnHorizontal: ({ anchor, content, window }: Args) => boolean;
|
|
23
|
-
bottomOnHorizontal: ({ bound, anchor, content, window }: Args) => boolean;
|
|
24
|
-
leftOnHorizontalCenter: ({ anchor, content, window }: Args) => boolean;
|
|
25
|
-
rightOnHorizontalCenter: ({ bound, anchor, content, window }: Args) => boolean;
|
|
26
|
-
topOnVerticalCenter: ({ anchor, content, window }: Args) => boolean;
|
|
27
|
-
bottomOnVerticalCenter: ({ bound, anchor, content, window }: Args) => boolean;
|
|
28
|
-
};
|
|
29
|
-
export declare const reflection: {
|
|
30
|
-
top_: (args: Args) => (h: "Left" | "Center" | "Right") => DirectionValue;
|
|
31
|
-
bottom_: (args: Args) => (h: "Left" | "Center" | "Right") => DirectionValue;
|
|
32
|
-
right_: (args: Args) => (v: "Top" | "Center" | "Bottom") => DirectionValue;
|
|
33
|
-
left_: (args: Args) => (v: "Top" | "Center" | "Bottom") => DirectionValue;
|
|
34
|
-
_Left: (args: Args) => "Left" | "Right";
|
|
35
|
-
_Right: (args: Args) => "Left" | "Right";
|
|
36
|
-
_Top: (args: Args) => "Top" | "Bottom";
|
|
37
|
-
_Bottom: (args: Args) => "Top" | "Bottom";
|
|
38
|
-
horizontalCenter: (args: Args) => "Left" | "Center" | "Right";
|
|
39
|
-
verticalCenter: (args: Args) => "Center" | "Top" | "Bottom";
|
|
40
|
-
};
|
|
41
|
-
export declare const wrapDirection: Record<DirectionValue, (args: Args) => DirectionValue>;
|
|
42
|
-
/**
|
|
43
|
-
* 境界外にPopupContentが出てしまう場合、回り込みにより方向を変更します。ただし、変更後も境界外に出てしまう場合は変更しません。
|
|
44
|
-
*/
|
|
45
|
-
export declare const wrapOutOfBound: (dir: DirectionValue, placementArgs: {
|
|
46
|
-
bound: {
|
|
47
|
-
width: number;
|
|
48
|
-
height: number;
|
|
49
|
-
};
|
|
50
|
-
content: DOMRect;
|
|
51
|
-
anchor: DOMRect;
|
|
52
|
-
gap: number;
|
|
53
|
-
window: {
|
|
54
|
-
scrollX: number;
|
|
55
|
-
scrollY: number;
|
|
56
|
-
};
|
|
57
|
-
}) => DirectionValue;
|