@mw-kit/mw-ui 1.10.3 → 1.10.4
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/Select/types.d.ts +2 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import type { FloatingPortalProps } from '@floating-ui/react';
|
|
2
3
|
import type { ReactVirtualizerOptions } from '@tanstack/react-virtual';
|
|
3
4
|
import type { Property } from 'csstype';
|
|
4
5
|
export type SelectOptionsLoader<Option> = (search: string, page: number, cursor: Option | null) => Promise<{
|
|
@@ -48,6 +49,7 @@ export type CommonSelectProps<Option> = SelectButtonProps & {
|
|
|
48
49
|
borderless?: boolean;
|
|
49
50
|
paddingless?: boolean;
|
|
50
51
|
zIndex?: Property.ZIndex;
|
|
52
|
+
portalRoot?: FloatingPortalProps['root'];
|
|
51
53
|
placement?: SelectPlacement;
|
|
52
54
|
/**
|
|
53
55
|
* Defines the element used as the visual boundary when resolving the automatic placement.
|
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import react__default, { TextareaHTMLAttributes } from 'react';
|
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
7
7
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
|
+
import { FloatingPortalProps } from '@floating-ui/react';
|
|
8
9
|
import { ReactVirtualizerOptions } from '@tanstack/react-virtual';
|
|
9
10
|
import { Property } from 'csstype';
|
|
10
11
|
import SignatureCanvas, { SignatureCanvasProps } from 'react-signature-canvas';
|
|
@@ -3198,6 +3199,7 @@ type CommonSelectProps<Option> = SelectButtonProps & {
|
|
|
3198
3199
|
borderless?: boolean;
|
|
3199
3200
|
paddingless?: boolean;
|
|
3200
3201
|
zIndex?: Property.ZIndex;
|
|
3202
|
+
portalRoot?: FloatingPortalProps['root'];
|
|
3201
3203
|
placement?: SelectPlacement;
|
|
3202
3204
|
/**
|
|
3203
3205
|
* Defines the element used as the visual boundary when resolving the automatic placement.
|
package/dist/index.js
CHANGED
|
@@ -20041,6 +20041,7 @@ var useMultiSelect = ({
|
|
|
20041
20041
|
borderless,
|
|
20042
20042
|
paddingless,
|
|
20043
20043
|
zIndex,
|
|
20044
|
+
portalRoot,
|
|
20044
20045
|
placement,
|
|
20045
20046
|
boundRef,
|
|
20046
20047
|
overscan,
|
|
@@ -20183,6 +20184,7 @@ var useSingleSelect = ({
|
|
|
20183
20184
|
borderless,
|
|
20184
20185
|
paddingless,
|
|
20185
20186
|
zIndex,
|
|
20187
|
+
portalRoot,
|
|
20186
20188
|
placement,
|
|
20187
20189
|
boundRef,
|
|
20188
20190
|
overscan,
|
|
@@ -20495,7 +20497,7 @@ var Select2 = import_react81.default.forwardRef(
|
|
|
20495
20497
|
]
|
|
20496
20498
|
}
|
|
20497
20499
|
),
|
|
20498
|
-
transition.isMounted ? /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(import_react82.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
|
|
20500
|
+
transition.isMounted ? /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(import_react82.FloatingPortal, { root: props.portalRoot, children: /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
|
|
20499
20501
|
FloatingWrapper,
|
|
20500
20502
|
{
|
|
20501
20503
|
ref: floating.refs.setFloating,
|
package/dist/index.mjs
CHANGED
|
@@ -20002,6 +20002,7 @@ var useMultiSelect = ({
|
|
|
20002
20002
|
borderless,
|
|
20003
20003
|
paddingless,
|
|
20004
20004
|
zIndex,
|
|
20005
|
+
portalRoot,
|
|
20005
20006
|
placement,
|
|
20006
20007
|
boundRef,
|
|
20007
20008
|
overscan,
|
|
@@ -20144,6 +20145,7 @@ var useSingleSelect = ({
|
|
|
20144
20145
|
borderless,
|
|
20145
20146
|
paddingless,
|
|
20146
20147
|
zIndex,
|
|
20148
|
+
portalRoot,
|
|
20147
20149
|
placement,
|
|
20148
20150
|
boundRef,
|
|
20149
20151
|
overscan,
|
|
@@ -20456,7 +20458,7 @@ var Select2 = React348.forwardRef(
|
|
|
20456
20458
|
]
|
|
20457
20459
|
}
|
|
20458
20460
|
),
|
|
20459
|
-
transition.isMounted ? /* @__PURE__ */ jsx366(FloatingPortal2, { children: /* @__PURE__ */ jsx366(
|
|
20461
|
+
transition.isMounted ? /* @__PURE__ */ jsx366(FloatingPortal2, { root: props.portalRoot, children: /* @__PURE__ */ jsx366(
|
|
20460
20462
|
FloatingWrapper,
|
|
20461
20463
|
{
|
|
20462
20464
|
ref: floating.refs.setFloating,
|