@sheinx/hooks 3.1.7 → 3.1.9-beta.1
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/cjs/components/use-button/use-button.d.ts +1 -1
- package/cjs/components/use-datepicker/use-datepicker-format.d.ts +1 -1
- package/cjs/components/use-image/use-image.d.ts +1 -1
- package/cjs/components/use-input/use-input-number.d.ts +1 -1
- package/cjs/components/use-table/use-table-layout.d.ts.map +1 -1
- package/cjs/components/use-table/use-table-layout.js +2 -1
- package/cjs/components/use-treeselect/use-treeselect.js +3 -3
- package/cjs/utils/immer.d.ts +8 -1
- package/cjs/utils/immer.d.ts.map +1 -1
- package/cjs/utils/immer.js +6 -10
- package/cjs/utils/position.d.ts +1 -1
- package/cjs/utils/rule/type.d.ts +1 -1
- package/esm/components/use-button/use-button.d.ts +1 -1
- package/esm/components/use-datepicker/use-datepicker-format.d.ts +1 -1
- package/esm/components/use-image/use-image.d.ts +1 -1
- package/esm/components/use-input/use-input-number.d.ts +1 -1
- package/esm/components/use-table/use-table-layout.d.ts.map +1 -1
- package/esm/components/use-table/use-table-layout.js +2 -1
- package/esm/components/use-treeselect/use-treeselect.js +3 -3
- package/esm/utils/immer.d.ts +8 -1
- package/esm/utils/immer.d.ts.map +1 -1
- package/esm/utils/immer.js +7 -11
- package/esm/utils/position.d.ts +1 -1
- package/esm/utils/rule/type.d.ts +1 -1
- package/package.json +1 -1
@@ -28,7 +28,7 @@ declare const useButton: (props?: BaseButtonProps) => {
|
|
28
28
|
buttonRef?: React.Ref<HTMLButtonElement> | undefined;
|
29
29
|
} & TOther_1 & {
|
30
30
|
disabled: boolean | undefined;
|
31
|
-
htmlType: "
|
31
|
+
htmlType: "submit" | "reset" | "button" | undefined;
|
32
32
|
onClick: (event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement>) => void;
|
33
33
|
};
|
34
34
|
getSpaceChildren: (children: React.ReactNode, space?: boolean, className?: string) => React.ReactNode;
|
@@ -4,7 +4,7 @@ declare const useDatePickerFormat: <Value extends DatePickerValueType>(props: Us
|
|
4
4
|
resultArr: (string | undefined)[];
|
5
5
|
targetResultArr: (string | undefined)[];
|
6
6
|
dateArr: (Date | undefined)[];
|
7
|
-
disabledStatus: "
|
7
|
+
disabledStatus: "left" | "right" | "all" | undefined;
|
8
8
|
currentArr: Date[];
|
9
9
|
mode: DatePickerModeType[];
|
10
10
|
isEmpty: boolean;
|
@@ -10,7 +10,7 @@ declare const useImage: (props?: BaseImageProps) => {
|
|
10
10
|
getRootProps: <TOther extends ObjectType = ObjectType>(externalProps?: TOther) => {
|
11
11
|
[x: string]: (event: any) => void;
|
12
12
|
} & TOther & {
|
13
|
-
ref: React.RefObject<
|
13
|
+
ref: React.RefObject<HTMLAnchorElement | HTMLDivElement>;
|
14
14
|
onClick: (event: React.MouseEvent<HTMLImageElement | HTMLDivElement>) => void;
|
15
15
|
};
|
16
16
|
getImageProps: <TOther_1 extends ObjectType = ObjectType>(externalProps?: TOther_1) => {
|
@@ -7,7 +7,7 @@ declare const useNumberFormat: (props: InputNumberProps) => {
|
|
7
7
|
onBlur: (e: React.FocusEvent<Element, Element>) => void;
|
8
8
|
onFocus: (e: React.FocusEvent<Element, Element>) => void;
|
9
9
|
value: string | undefined;
|
10
|
-
type: "search" | "
|
10
|
+
type: "search" | "button" | "time" | "image" | "text" | (string & {}) | "checkbox" | "file" | "range" | "month" | "week" | "date" | "email" | "url" | "color" | "datetime-local" | "hidden" | "password" | "radio" | "reset" | "submit" | "tel" | undefined;
|
11
11
|
};
|
12
12
|
export default useNumberFormat;
|
13
13
|
//# sourceMappingURL=use-input-number.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-table-layout.d.ts","sourceRoot":"","sources":["use-table-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAKlE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAcrE,MAAM,WAAW,mBACf,SAAQ,IAAI,CACV,cAAc,CAAC,GAAG,CAAC,EACnB,MAAM,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,OAAO,CAC7E;IACD,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,QAAA,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;yBA8CX,MAAM,UAAU,MAAM;;;;;;;;
|
1
|
+
{"version":3,"file":"use-table-layout.d.ts","sourceRoot":"","sources":["use-table-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAKlE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAcrE,MAAM,WAAW,mBACf,SAAQ,IAAI,CACV,cAAc,CAAC,GAAG,CAAC,EACnB,MAAM,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,OAAO,CAC7E;IACD,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,QAAA,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;yBA8CX,MAAM,UAAU,MAAM;;;;;;;;CA+N5D,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -263,7 +263,8 @@ var useTableLayout = function useTableLayout(props) {
|
|
263
263
|
changeColGroup(newCols, false);
|
264
264
|
});
|
265
265
|
var checkFloat = (0, _usePersistFn.default)(function () {
|
266
|
-
var scrollEl = scrollRef.current;
|
266
|
+
var scrollEl = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current;
|
267
|
+
if (!scrollEl) return;
|
267
268
|
var max = scrollEl.scrollWidth - scrollEl.clientWidth;
|
268
269
|
var min = 0;
|
269
270
|
var left = scrollEl.scrollLeft;
|
@@ -37,13 +37,13 @@ var useTreeSelect = function useTreeSelect(props) {
|
|
37
37
|
}
|
38
38
|
if (!multiple && (0, _is.isArray)(v)) {
|
39
39
|
onChange === null || onChange === void 0 || onChange.apply(void 0, [v[0]].concat(reset));
|
40
|
-
}
|
41
|
-
if (multiple && !(0, _is.isArray)(v)) {
|
40
|
+
} else if (multiple && !(0, _is.isArray)(v)) {
|
42
41
|
if (v === undefined || v === null) {
|
43
42
|
onChange === null || onChange === void 0 || onChange.apply(void 0, [[]].concat(reset));
|
44
43
|
} else onChange === null || onChange === void 0 || onChange.apply(void 0, [[v]].concat(reset));
|
44
|
+
} else {
|
45
|
+
onChange === null || onChange === void 0 || onChange.apply(void 0, [v].concat(reset));
|
45
46
|
}
|
46
|
-
onChange === null || onChange === void 0 || onChange.apply(void 0, [v].concat(reset));
|
47
47
|
});
|
48
48
|
return {
|
49
49
|
value: valueArr,
|
package/cjs/utils/immer.d.ts
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
import { Draft, PatchListener } from 'immer';
|
1
2
|
export { current } from 'immer';
|
2
|
-
|
3
|
+
declare const NOTHING: unique symbol;
|
4
|
+
type ValidRecipeReturnType<State> = State | void | undefined | (State extends undefined ? typeof NOTHING : never);
|
5
|
+
interface IProduce {
|
6
|
+
<Base, D = Draft<Base>>(// By using a default inferred D, rather than Draft<Base> in the recipe, we can override it.
|
7
|
+
base: Base, recipe: (draft: D) => ValidRecipeReturnType<D>, listener?: PatchListener): Base;
|
8
|
+
}
|
9
|
+
export declare const produce: IProduce;
|
3
10
|
//# sourceMappingURL=immer.d.ts.map
|
package/cjs/utils/immer.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"immer.d.ts","sourceRoot":"","sources":["immer.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"immer.d.ts","sourceRoot":"","sources":["immer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,KAAK,qBAAqB,CAAC,KAAK,IAC5B,KAAK,GACL,IAAI,GACJ,SAAS,GACT,CAAC,KAAK,SAAS,SAAS,GAAG,OAAO,OAAO,GAAG,KAAK,CAAC,CAAC;AACvD,UAAU,QAAQ;IAChB,CAAC,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,EAAG,4FAA4F;IACnH,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,qBAAqB,CAAC,CAAC,CAAC,EAC9C,QAAQ,CAAC,EAAE,aAAa,GACvB,IAAI,CAAC;CACT;AAED,eAAO,MAAM,OAAO,UAGN,CAAC"}
|
package/cjs/utils/immer.js
CHANGED
@@ -11,14 +11,10 @@ Object.defineProperty(exports, "current", {
|
|
11
11
|
});
|
12
12
|
exports.produce = void 0;
|
13
13
|
var _immer = require("immer");
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
// export const current = getSnapshot;
|
21
|
-
|
22
|
-
var produce = exports.produce = function produce(value, cb) {
|
23
|
-
return (0, _immer.produce)(value, cb);
|
14
|
+
var produce = exports.produce = function produce() {
|
15
|
+
(0, _immer.setAutoFreeze)(false);
|
16
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
17
|
+
args[_key] = arguments[_key];
|
18
|
+
}
|
19
|
+
return _immer.produce.apply(null, args);
|
24
20
|
};
|
package/cjs/utils/position.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const getPosition: (target: HTMLElement | null, priorityDirection: "
|
1
|
+
export declare const getPosition: (target: HTMLElement | null, priorityDirection: "auto" | "vertical" | "horizontal" | undefined, mode: 'popover' | 'menu' | 'list') => "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top" | "bottom";
|
2
2
|
//# sourceMappingURL=position.d.ts.map
|
package/cjs/utils/rule/type.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ObjectType } from '../../common/type';
|
2
2
|
import { MessageType } from './rule.type';
|
3
|
-
export declare const typeMessage: (props: ObjectType) => "$rules.
|
3
|
+
export declare const typeMessage: (props: ObjectType) => "$rules.reg" | "$rules.type";
|
4
4
|
declare const _default: (type: string, { message, tip }?: {
|
5
5
|
message?: MessageType | undefined;
|
6
6
|
tip?: string | undefined;
|
@@ -28,7 +28,7 @@ declare const useButton: (props?: BaseButtonProps) => {
|
|
28
28
|
buttonRef?: React.Ref<HTMLButtonElement> | undefined;
|
29
29
|
} & TOther_1 & {
|
30
30
|
disabled: boolean | undefined;
|
31
|
-
htmlType: "
|
31
|
+
htmlType: "submit" | "reset" | "button" | undefined;
|
32
32
|
onClick: (event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement>) => void;
|
33
33
|
};
|
34
34
|
getSpaceChildren: (children: React.ReactNode, space?: boolean, className?: string) => React.ReactNode;
|
@@ -4,7 +4,7 @@ declare const useDatePickerFormat: <Value extends DatePickerValueType>(props: Us
|
|
4
4
|
resultArr: (string | undefined)[];
|
5
5
|
targetResultArr: (string | undefined)[];
|
6
6
|
dateArr: (Date | undefined)[];
|
7
|
-
disabledStatus: "
|
7
|
+
disabledStatus: "left" | "right" | "all" | undefined;
|
8
8
|
currentArr: Date[];
|
9
9
|
mode: DatePickerModeType[];
|
10
10
|
isEmpty: boolean;
|
@@ -10,7 +10,7 @@ declare const useImage: (props?: BaseImageProps) => {
|
|
10
10
|
getRootProps: <TOther extends ObjectType = ObjectType>(externalProps?: TOther) => {
|
11
11
|
[x: string]: (event: any) => void;
|
12
12
|
} & TOther & {
|
13
|
-
ref: React.RefObject<
|
13
|
+
ref: React.RefObject<HTMLAnchorElement | HTMLDivElement>;
|
14
14
|
onClick: (event: React.MouseEvent<HTMLImageElement | HTMLDivElement>) => void;
|
15
15
|
};
|
16
16
|
getImageProps: <TOther_1 extends ObjectType = ObjectType>(externalProps?: TOther_1) => {
|
@@ -7,7 +7,7 @@ declare const useNumberFormat: (props: InputNumberProps) => {
|
|
7
7
|
onBlur: (e: React.FocusEvent<Element, Element>) => void;
|
8
8
|
onFocus: (e: React.FocusEvent<Element, Element>) => void;
|
9
9
|
value: string | undefined;
|
10
|
-
type: "search" | "
|
10
|
+
type: "search" | "button" | "time" | "image" | "text" | (string & {}) | "checkbox" | "file" | "range" | "month" | "week" | "date" | "email" | "url" | "color" | "datetime-local" | "hidden" | "password" | "radio" | "reset" | "submit" | "tel" | undefined;
|
11
11
|
};
|
12
12
|
export default useNumberFormat;
|
13
13
|
//# sourceMappingURL=use-input-number.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-table-layout.d.ts","sourceRoot":"","sources":["use-table-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAKlE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAcrE,MAAM,WAAW,mBACf,SAAQ,IAAI,CACV,cAAc,CAAC,GAAG,CAAC,EACnB,MAAM,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,OAAO,CAC7E;IACD,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,QAAA,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;yBA8CX,MAAM,UAAU,MAAM;;;;;;;;
|
1
|
+
{"version":3,"file":"use-table-layout.d.ts","sourceRoot":"","sources":["use-table-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAKlE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAcrE,MAAM,WAAW,mBACf,SAAQ,IAAI,CACV,cAAc,CAAC,GAAG,CAAC,EACnB,MAAM,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,OAAO,CAC7E;IACD,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,QAAA,MAAM,cAAc,UAAW,mBAAmB;;;;;;;;;;;yBA8CX,MAAM,UAAU,MAAM;;;;;;;;CA+N5D,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -254,7 +254,8 @@ var useTableLayout = function useTableLayout(props) {
|
|
254
254
|
changeColGroup(newCols, false);
|
255
255
|
});
|
256
256
|
var checkFloat = usePersistFn(function () {
|
257
|
-
var scrollEl = scrollRef.current;
|
257
|
+
var scrollEl = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current;
|
258
|
+
if (!scrollEl) return;
|
258
259
|
var max = scrollEl.scrollWidth - scrollEl.clientWidth;
|
259
260
|
var min = 0;
|
260
261
|
var left = scrollEl.scrollLeft;
|
@@ -30,13 +30,13 @@ var useTreeSelect = function useTreeSelect(props) {
|
|
30
30
|
}
|
31
31
|
if (!multiple && isArray(v)) {
|
32
32
|
onChange === null || onChange === void 0 || onChange.apply(void 0, [v[0]].concat(reset));
|
33
|
-
}
|
34
|
-
if (multiple && !isArray(v)) {
|
33
|
+
} else if (multiple && !isArray(v)) {
|
35
34
|
if (v === undefined || v === null) {
|
36
35
|
onChange === null || onChange === void 0 || onChange.apply(void 0, [[]].concat(reset));
|
37
36
|
} else onChange === null || onChange === void 0 || onChange.apply(void 0, [[v]].concat(reset));
|
37
|
+
} else {
|
38
|
+
onChange === null || onChange === void 0 || onChange.apply(void 0, [v].concat(reset));
|
38
39
|
}
|
39
|
-
onChange === null || onChange === void 0 || onChange.apply(void 0, [v].concat(reset));
|
40
40
|
});
|
41
41
|
return {
|
42
42
|
value: valueArr,
|
package/esm/utils/immer.d.ts
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
import { Draft, PatchListener } from 'immer';
|
1
2
|
export { current } from 'immer';
|
2
|
-
|
3
|
+
declare const NOTHING: unique symbol;
|
4
|
+
type ValidRecipeReturnType<State> = State | void | undefined | (State extends undefined ? typeof NOTHING : never);
|
5
|
+
interface IProduce {
|
6
|
+
<Base, D = Draft<Base>>(// By using a default inferred D, rather than Draft<Base> in the recipe, we can override it.
|
7
|
+
base: Base, recipe: (draft: D) => ValidRecipeReturnType<D>, listener?: PatchListener): Base;
|
8
|
+
}
|
9
|
+
export declare const produce: IProduce;
|
3
10
|
//# sourceMappingURL=immer.d.ts.map
|
package/esm/utils/immer.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"immer.d.ts","sourceRoot":"","sources":["immer.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"immer.d.ts","sourceRoot":"","sources":["immer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,KAAK,qBAAqB,CAAC,KAAK,IAC5B,KAAK,GACL,IAAI,GACJ,SAAS,GACT,CAAC,KAAK,SAAS,SAAS,GAAG,OAAO,OAAO,GAAG,KAAK,CAAC,CAAC;AACvD,UAAU,QAAQ;IAChB,CAAC,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,EAAG,4FAA4F;IACnH,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,qBAAqB,CAAC,CAAC,CAAC,EAC9C,QAAQ,CAAC,EAAE,aAAa,GACvB,IAAI,CAAC;CACT;AAED,eAAO,MAAM,OAAO,UAGN,CAAC"}
|
package/esm/utils/immer.js
CHANGED
@@ -1,13 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
// export const produce = ((...args: any) => {
|
4
|
-
// return produce2.apply(null, args);
|
5
|
-
// }) as typeof produce2;
|
6
|
-
|
7
|
-
// export const current = getSnapshot;
|
8
|
-
|
9
|
-
import { produce as produce2 } from 'immer';
|
1
|
+
import { produce as produce2, setAutoFreeze } from 'immer';
|
10
2
|
export { current } from 'immer';
|
11
|
-
export var produce = function produce(
|
12
|
-
|
3
|
+
export var produce = function produce() {
|
4
|
+
setAutoFreeze(false);
|
5
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
6
|
+
args[_key] = arguments[_key];
|
7
|
+
}
|
8
|
+
return produce2.apply(null, args);
|
13
9
|
};
|
package/esm/utils/position.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const getPosition: (target: HTMLElement | null, priorityDirection: "
|
1
|
+
export declare const getPosition: (target: HTMLElement | null, priorityDirection: "auto" | "vertical" | "horizontal" | undefined, mode: 'popover' | 'menu' | 'list') => "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top" | "bottom";
|
2
2
|
//# sourceMappingURL=position.d.ts.map
|
package/esm/utils/rule/type.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ObjectType } from '../../common/type';
|
2
2
|
import { MessageType } from './rule.type';
|
3
|
-
export declare const typeMessage: (props: ObjectType) => "$rules.
|
3
|
+
export declare const typeMessage: (props: ObjectType) => "$rules.reg" | "$rules.type";
|
4
4
|
declare const _default: (type: string, { message, tip }?: {
|
5
5
|
message?: MessageType | undefined;
|
6
6
|
tip?: string | undefined;
|