@mw-kit/mw-ui 1.9.0 → 1.9.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.
|
@@ -13,5 +13,6 @@ export type PopupProps<T extends React.ElementType = 'div'> = {
|
|
|
13
13
|
open?: boolean;
|
|
14
14
|
setOpen?: (open: boolean) => void;
|
|
15
15
|
fallbackPlacements?: PopupPlacement[];
|
|
16
|
+
zIndex?: number;
|
|
16
17
|
};
|
|
17
18
|
export type PopupPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
package/dist/index.js
CHANGED
|
@@ -18160,7 +18160,7 @@ var TooltipArrow = import_styled_components72.default.div`
|
|
|
18160
18160
|
}}
|
|
18161
18161
|
`;
|
|
18162
18162
|
var TooltipSurface = import_styled_components72.default.div`
|
|
18163
|
-
|
|
18163
|
+
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
18164
18164
|
|
|
18165
18165
|
${({ theme: theme4, $background: background, $placement: placement }) => {
|
|
18166
18166
|
const [side] = placement.split("-");
|
|
@@ -18192,11 +18192,7 @@ var TooltipSurface = import_styled_components72.default.div`
|
|
|
18192
18192
|
`;
|
|
18193
18193
|
}}
|
|
18194
18194
|
|
|
18195
|
-
|
|
18196
|
-
padding: 8px 10px;
|
|
18197
|
-
font-size: 12px;
|
|
18198
|
-
max-width: 240px;
|
|
18199
|
-
z-index: 1000;
|
|
18195
|
+
padding: ${({ theme: theme4 }) => theme4.spacings.s1};
|
|
18200
18196
|
`;
|
|
18201
18197
|
|
|
18202
18198
|
// src/components/Popup/index.tsx
|
|
@@ -18220,7 +18216,8 @@ var PopupComponent = (props) => {
|
|
|
18220
18216
|
offset: offsetValue = 8,
|
|
18221
18217
|
shift: shiftValue = 8,
|
|
18222
18218
|
background = "dark",
|
|
18223
|
-
closeOnClip = false
|
|
18219
|
+
closeOnClip = false,
|
|
18220
|
+
zIndex = 1e3
|
|
18224
18221
|
} = props;
|
|
18225
18222
|
const arrowStyle = props.arrow || (background === "dark" ? "pointed" : "flattened");
|
|
18226
18223
|
const withArrow = arrowStyle !== "none";
|
|
@@ -18277,7 +18274,7 @@ var PopupComponent = (props) => {
|
|
|
18277
18274
|
TooltipSurface,
|
|
18278
18275
|
{
|
|
18279
18276
|
ref: floating.refs.setFloating,
|
|
18280
|
-
style: floating.floatingStyles,
|
|
18277
|
+
style: { ...floating.floatingStyles, zIndex },
|
|
18281
18278
|
$placement: floating.placement,
|
|
18282
18279
|
$background: background,
|
|
18283
18280
|
...interactions.getFloatingProps(),
|
|
@@ -19197,8 +19194,8 @@ var useSingleSelect = ({
|
|
|
19197
19194
|
var single_default = useSingleSelect;
|
|
19198
19195
|
|
|
19199
19196
|
// src/components/Select/instances/index.tsx
|
|
19200
|
-
var useSelect2 = (props) => {
|
|
19201
|
-
return
|
|
19197
|
+
var useSelect2 = ({ type, ...props }) => {
|
|
19198
|
+
return type === "multi-select" ? multi_default(props) : single_default(props);
|
|
19202
19199
|
};
|
|
19203
19200
|
var instances_default = useSelect2;
|
|
19204
19201
|
|
package/dist/index.mjs
CHANGED
|
@@ -18122,7 +18122,7 @@ var TooltipArrow = styled69.div`
|
|
|
18122
18122
|
}}
|
|
18123
18123
|
`;
|
|
18124
18124
|
var TooltipSurface = styled69.div`
|
|
18125
|
-
|
|
18125
|
+
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
18126
18126
|
|
|
18127
18127
|
${({ theme: theme4, $background: background, $placement: placement }) => {
|
|
18128
18128
|
const [side] = placement.split("-");
|
|
@@ -18154,11 +18154,7 @@ var TooltipSurface = styled69.div`
|
|
|
18154
18154
|
`;
|
|
18155
18155
|
}}
|
|
18156
18156
|
|
|
18157
|
-
|
|
18158
|
-
padding: 8px 10px;
|
|
18159
|
-
font-size: 12px;
|
|
18160
|
-
max-width: 240px;
|
|
18161
|
-
z-index: 1000;
|
|
18157
|
+
padding: ${({ theme: theme4 }) => theme4.spacings.s1};
|
|
18162
18158
|
`;
|
|
18163
18159
|
|
|
18164
18160
|
// src/components/Popup/index.tsx
|
|
@@ -18182,7 +18178,8 @@ var PopupComponent = (props) => {
|
|
|
18182
18178
|
offset: offsetValue = 8,
|
|
18183
18179
|
shift: shiftValue = 8,
|
|
18184
18180
|
background = "dark",
|
|
18185
|
-
closeOnClip = false
|
|
18181
|
+
closeOnClip = false,
|
|
18182
|
+
zIndex = 1e3
|
|
18186
18183
|
} = props;
|
|
18187
18184
|
const arrowStyle = props.arrow || (background === "dark" ? "pointed" : "flattened");
|
|
18188
18185
|
const withArrow = arrowStyle !== "none";
|
|
@@ -18239,7 +18236,7 @@ var PopupComponent = (props) => {
|
|
|
18239
18236
|
TooltipSurface,
|
|
18240
18237
|
{
|
|
18241
18238
|
ref: floating.refs.setFloating,
|
|
18242
|
-
style: floating.floatingStyles,
|
|
18239
|
+
style: { ...floating.floatingStyles, zIndex },
|
|
18243
18240
|
$placement: floating.placement,
|
|
18244
18241
|
$background: background,
|
|
18245
18242
|
...interactions.getFloatingProps(),
|
|
@@ -19159,8 +19156,8 @@ var useSingleSelect = ({
|
|
|
19159
19156
|
var single_default = useSingleSelect;
|
|
19160
19157
|
|
|
19161
19158
|
// src/components/Select/instances/index.tsx
|
|
19162
|
-
var useSelect2 = (props) => {
|
|
19163
|
-
return
|
|
19159
|
+
var useSelect2 = ({ type, ...props }) => {
|
|
19160
|
+
return type === "multi-select" ? multi_default(props) : single_default(props);
|
|
19164
19161
|
};
|
|
19165
19162
|
var instances_default = useSelect2;
|
|
19166
19163
|
|