@moneyforward/mfui-components 4.8.0 → 4.9.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.
@@ -324,7 +324,7 @@ placeholder, emptyMessage, disabled, invalid, required, caution, targetDOMNode,
324
324
  return (_jsxs(Tag, { className: cx(classes.infiniteScrollError, 'mfui-MultipleSelectBox__infiniteScrollError'), role: "alert", children: [_jsxs("div", { className: cx(classes.infiniteScrollErrorMessage, 'mfui-MultipleSelectBox__infiniteScrollErrorMessage'), "aria-live": "polite", children: [_jsx(Error, { "aria-hidden": true, className: cx(classes.infiniteScrollErrorIcon, 'mfui-MultipleSelectBox__infiniteScrollErrorIcon') }), _jsx(Typography, { variant: "body", children: infiniteScrollErrorMessage })] }), _jsx("div", { className: cx(classes.infiniteScrollErrorButton, 'mfui-MultipleSelectBox__infiniteScrollErrorButton'), children: _jsx(Button, { size: "small", onClick: (event) => {
325
325
  event.stopPropagation();
326
326
  retryInfiniteScroll();
327
- }, children: infiniteScrollRetryButtonText }) })] }));
327
+ }, children: infiniteScrollRetryButtonText }) })] }, "infinite-scroll-error"));
328
328
  }, [
329
329
  infiniteScrollError,
330
330
  classes.infiniteScrollError,
@@ -336,7 +336,7 @@ placeholder, emptyMessage, disabled, invalid, required, caution, targetDOMNode,
336
336
  infiniteScrollRetryButtonText,
337
337
  ]);
338
338
  // Render infinite scroll loading indicator
339
- const renderInfiniteScrollLoading = useCallback(() => isInfiniteScrollLoading && enableInfiniteScroll ? (_jsx("div", { className: cx(classes.infiniteScrollLoading, 'mfui-MultipleSelectBox__infiniteScrollLoading'), children: _jsx(ProgressIndicator, {}) })) : null, [isInfiniteScrollLoading, enableInfiniteScroll, classes.infiniteScrollLoading]);
339
+ const renderInfiniteScrollLoading = useCallback(() => isInfiniteScrollLoading && enableInfiniteScroll ? (_jsx("div", { className: cx(classes.infiniteScrollLoading, 'mfui-MultipleSelectBox__infiniteScrollLoading'), children: _jsx(ProgressIndicator, {}) }, "infinite-scroll-loading")) : null, [isInfiniteScrollLoading, enableInfiniteScroll, classes.infiniteScrollLoading]);
340
340
  const searchNode = enableSearchOptions ? (_jsx(SearchBox, { ref: searchInputRef, enableClearButton: true, value: searchText, textBoxSize: "small", autoComplete: "off", "aria-label": "\u691C\u7D22\u3059\u308B", onChange: onSearchTextChange, ...searchBoxProps })) : null;
341
341
  const allOptionsControlsNode = enableAllOptionsControls ? (_jsxs(HStack, { justifyContent: "space-between", children: [_jsx(Button, { ref: selectAllButtonRef, size: "small", onClick: handleSelectAll, children: selectAllButtonProps?.label ?? 'すべて選択' }), _jsx(Button, { ref: clearAllButtonRef, size: "small", onClick: handleClearAll, children: clearAllButtonProps?.label ?? 'すべて解除' })] })) : null;
342
342
  const selectedCountNode = enableApplyControls || showSelectedCount ? (_jsx(Typography, { variant: "body", color: "neutral.600", children: enableApplyControls
@@ -5,5 +5,12 @@ import { type PopoverProps } from './Popover.types';
5
5
  *
6
6
  * You can control the open state of the Popover by passing the `open` and `onOpenStateChanged` props
7
7
  * Or just leave it as an uncontrolled popover, it will automatically handle by itself.
8
+ *
9
+ * ## Layering
10
+ *
11
+ * The popover content is drawn on the `--mfui-z-index-popover` layer (`6000`), above `Dialog` and `SidePane`
12
+ * and below `Toast` and `Tooltip`.
13
+ * To place it above an application overlay with a higher `z-index`, set `z-index` through `contentProps.className`.
14
+ * See the "Layering" page in Storybook for the full layer order.
8
15
  */
9
16
  export declare function Popover({ renderTrigger, renderContent, open, onOpenStateChanged, onOpen, onClose, enableAutoFocusOnTrigger, enableAutoFocusOnPopover, minWidth, maxHeight, enableConstrainedContentWidth, contentProps, targetDOMNode, enableAutoUnmount, onBlur, allowedPlacements, enableViewportConstraint, enableAutomaticPortalTargetResolution, enableCenteredLayoutOnNarrowViewport, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
@@ -18,6 +18,13 @@ import { cx } from '../../styled-system/css';
18
18
  *
19
19
  * You can control the open state of the Popover by passing the `open` and `onOpenStateChanged` props
20
20
  * Or just leave it as an uncontrolled popover, it will automatically handle by itself.
21
+ *
22
+ * ## Layering
23
+ *
24
+ * The popover content is drawn on the `--mfui-z-index-popover` layer (`6000`), above `Dialog` and `SidePane`
25
+ * and below `Toast` and `Tooltip`.
26
+ * To place it above an application overlay with a higher `z-index`, set `z-index` through `contentProps.className`.
27
+ * See the "Layering" page in Storybook for the full layer order.
21
28
  */
22
29
  export function Popover({ renderTrigger, renderContent, open, onOpenStateChanged, onOpen, onClose, enableAutoFocusOnTrigger = true, enableAutoFocusOnPopover = true, minWidth, maxHeight, enableConstrainedContentWidth = false, contentProps = {}, targetDOMNode, enableAutoUnmount = true, onBlur, allowedPlacements, enableViewportConstraint = true, enableAutomaticPortalTargetResolution = false, enableCenteredLayoutOnNarrowViewport = false, }) {
23
30
  // Toggle event is the event triggered by open / close the Popover
@@ -5659,6 +5659,10 @@ const tokens = {
5659
5659
  "value": 5000,
5660
5660
  "variable": "var(--mfui-z-index-dialog)"
5661
5661
  },
5662
+ "zIndex.popover": {
5663
+ "value": 6000,
5664
+ "variable": "var(--mfui-z-index-popover)"
5665
+ },
5662
5666
  "zIndex.toast.container": {
5663
5667
  "value": 9999,
5664
5668
  "variable": "var(--mfui-z-index-toast-container)"
@@ -15,7 +15,7 @@ export type DurationToken = "mfui.core.transition.duration.none" | "mfui.core.tr
15
15
 
16
16
  export type EasingToken = "mfui.core.transition.easing.linear" | "mfui.core.transition.easing.ease-in-out" | "mfui.transition.easing.side-pane.in" | "mfui.transition.easing.side-pane.out" | "mfui.transition.easing.split-view.in" | "mfui.transition.easing.split-view.out"
17
17
 
18
- export type ZIndexToken = "dialog" | "toast.container" | "toast.item" | "tooltip"
18
+ export type ZIndexToken = "dialog" | "popover" | "toast.container" | "toast.item" | "tooltip"
19
19
 
20
20
  export type BreakpointToken = "sm" | "lg"
21
21
 
package/dist/styles.css CHANGED
@@ -151,6 +151,7 @@
151
151
 
152
152
  :host,:root {
153
153
  --mfui-z-index-dialog: 5000;
154
+ --mfui-z-index-popover: 6000;
154
155
  --mfui-z-index-toast-container: 9999;
155
156
  --mfui-z-index-toast-item: 1000;
156
157
  --mfui-z-index-tooltip: 10000;
@@ -4377,6 +4378,7 @@
4377
4378
  border-radius: var(--mfui-radii-mfui\.size\.radius\.control-component\.comfort);
4378
4379
  outline: 2px solid transparent;
4379
4380
  outline-offset: 2px;
4381
+ z-index: var(--mfui-z-index-popover);
4380
4382
  background-color: var(--mfui-colors-mfui\.color\.base\.background\.none);
4381
4383
  box-shadow: var(--mfui-shadows-mfui\.elevation\.plus-1\.shadow-1), var(--mfui-shadows-mfui\.elevation\.plus-1\.shadow-2);
4382
4384
  pointer-events: auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneyforward/mfui-components",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "description": "React UI Component Library for all Money Forward products",
5
5
  "repository": {
6
6
  "type": "git",