@moneyforward/mfui-components 3.29.0 → 3.30.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.
Files changed (100) hide show
  1. package/dist/src/Button/Button.d.ts +4 -4
  2. package/dist/src/CheckboxCard/CheckboxCard.d.ts +2 -2
  3. package/dist/src/CheckboxCard/CheckboxCard.js +1 -1
  4. package/dist/src/DataTable/DataTableCell/DataTableCell.js +1 -1
  5. package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerProvider/DateRangePickerProvider.d.ts +2 -2
  6. package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerTrigger/constants.d.ts +4 -4
  7. package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerTrigger/hooks/useDateRangeTriggerInputClick.d.ts +1 -1
  8. package/dist/src/DateTimeSelection/DateRangePicker/utilities/createDateRangePickerTestUtility.d.ts +1 -1
  9. package/dist/src/DateTimeSelection/MonthRangePicker/MonthRangePickerMonthCell/constants.d.ts +5 -5
  10. package/dist/src/DateTimeSelection/TimePicker/TimePicker.d.ts +9 -9
  11. package/dist/src/DateTimeSelection/shared/BasePicker/basePickerUtilities/useBasePickerValueController.d.ts +1 -1
  12. package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerCalendar/constants.d.ts +6 -6
  13. package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerProvider/BaseRangePickerProvider.d.ts +2 -2
  14. package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerTrigger/BaseRangePickerTrigger.js +1 -1
  15. package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerTrigger/hooks/useDateRangeTriggerInputClick.d.ts +1 -1
  16. package/dist/src/DateTimeSelection/shared/BaseRangePicker/utilities/createBaseRangePickerTestUtility.d.ts +1 -1
  17. package/dist/src/DateTimeSelection/shared/accessibility/constants.d.ts +6 -6
  18. package/dist/src/Dialog/Dialog.d.ts +4 -4
  19. package/dist/src/Disclosure/Disclosure.d.ts +21 -10
  20. package/dist/src/DropdownMenu/DropdownMenu.d.ts +3 -3
  21. package/dist/src/DropdownMenu/DropdownMenuItem/DropdownMenuItem.js +11 -3
  22. package/dist/src/EmbeddedSidePane/EmbeddedSidePane.d.ts +1 -1
  23. package/dist/src/FileBox/FileBox.d.ts +4 -4
  24. package/dist/src/FileBox/FileBox.js +1 -1
  25. package/dist/src/FileDropZone/FileDropZone.d.ts +4 -4
  26. package/dist/src/FileDropZone/utils/fileHelpers.d.ts +3 -3
  27. package/dist/src/FilterTrigger/FilterTrigger.d.ts +2 -2
  28. package/dist/src/Heading/Heading.d.ts +2 -2
  29. package/dist/src/HelpMessage/HelpMessage.d.ts +3 -3
  30. package/dist/src/IconButton/IconButton.d.ts +6 -6
  31. package/dist/src/KeyValue/KeyValue.d.ts +2 -2
  32. package/dist/src/MainNavigation/MainNavigation.js +1 -1
  33. package/dist/src/MultipleSelectBox/MultipleSelectBox.js +1 -1
  34. package/dist/src/MultipleSelectBox/hooks/useApplyControls.d.ts +1 -1
  35. package/dist/src/MultipleSelectBox/hooks/useInitialFocusOnOptionPanelOpen.js +3 -6
  36. package/dist/src/MultipleSelectBox/hooks/useSelectedValues.d.ts +1 -1
  37. package/dist/src/MultipleSelectBox/utils/getDeepActiveElement.d.ts +11 -0
  38. package/dist/src/MultipleSelectBox/utils/getDeepActiveElement.js +17 -0
  39. package/dist/src/NumberBox/NumberBox.d.ts +1 -1
  40. package/dist/src/Pagination/ItemsCount/ItemsCount.js +1 -1
  41. package/dist/src/Popover/Popover.js +1 -1
  42. package/dist/src/RadioButton/RadioButton.d.ts +1 -1
  43. package/dist/src/RadioButtonCard/RadioButtonCard.d.ts +2 -2
  44. package/dist/src/RadioButtonCard/RadioButtonCard.js +1 -1
  45. package/dist/src/RadioGroup/RadioGroup.d.ts +1 -1
  46. package/dist/src/SectionMessage/SectionMessage.d.ts +5 -5
  47. package/dist/src/SectionMessage/SectionMessage.js +11 -4
  48. package/dist/src/SectionMessage/SectionMessage.types.d.ts +4 -4
  49. package/dist/src/SelectBox/SelectBox.js +1 -1
  50. package/dist/src/SelectBox/SelectBoxOption.js +1 -1
  51. package/dist/src/SelectBox/SelectBoxOptionGroup.js +1 -1
  52. package/dist/src/SidePane/SidePane.d.ts +6 -6
  53. package/dist/src/Sidebar/Sidebar.d.ts +10 -1
  54. package/dist/src/Sidebar/Sidebar.js +40 -10
  55. package/dist/src/Sidebar/Sidebar.types.d.ts +39 -2
  56. package/dist/src/Sidebar/SidebarContext.d.ts +3 -0
  57. package/dist/src/Sidebar/SidebarContext.js +2 -0
  58. package/dist/src/Sidebar/SidebarMenuHeading/SidebarMenuHeading.d.ts +49 -0
  59. package/dist/src/Sidebar/SidebarMenuHeading/SidebarMenuHeading.js +113 -0
  60. package/dist/src/Sidebar/SidebarMenuHeading/SidebarMenuHeading.types.d.ts +36 -0
  61. package/dist/src/Sidebar/SidebarMenuHeading/SidebarMenuHeading.types.js +1 -0
  62. package/dist/src/Sidebar/SidebarMenuHeading/index.d.ts +2 -0
  63. package/dist/src/Sidebar/SidebarMenuHeading/index.js +1 -0
  64. package/dist/src/Sidebar/SidebarNavigationItem.js +6 -3
  65. package/dist/src/Sidebar/hooks/useSidebarResize.d.ts +2 -1
  66. package/dist/src/Sidebar/hooks/useSidebarResize.js +31 -3
  67. package/dist/src/Sidebar/index.d.ts +2 -1
  68. package/dist/src/Stack/Stack.d.ts +5 -5
  69. package/dist/src/StatusLabel/StatusLabel.d.ts +2 -2
  70. package/dist/src/Stepper/Step/Step.js +1 -1
  71. package/dist/src/SubNavigation/SubNavigation.js +1 -1
  72. package/dist/src/TextBox/TextBox.d.ts +6 -6
  73. package/dist/src/TextLink/TextLink.d.ts +2 -2
  74. package/dist/src/Textarea/Textarea.d.ts +4 -4
  75. package/dist/src/Toast/Toast.d.ts +3 -3
  76. package/dist/src/Toast/Toast.js +9 -5
  77. package/dist/src/Toast/Toast.types.d.ts +3 -5
  78. package/dist/src/Toast/api/toast.d.ts +18 -2
  79. package/dist/src/Tooltip/Tooltip.d.ts +3 -3
  80. package/dist/src/Tooltip/Tooltip.js +1 -1
  81. package/dist/src/Tooltip/Tooltip.types.d.ts +2 -0
  82. package/dist/src/Tooltip/hooks/useTooltipDisplayController.js +14 -2
  83. package/dist/src/utilities/dom/dispatchNativeInputValueWithEvent.d.ts +1 -1
  84. package/dist/src/utilities/dom/useFocusTrap.d.ts +1 -1
  85. package/dist/src/utilities/react/useIsomorphicLayoutEffect.d.ts +2 -2
  86. package/dist/styled-system/css/conditions.d.ts +3 -3
  87. package/dist/styled-system/helpers.d.ts +36 -35
  88. package/dist/styled-system/jsx/factory-helper.d.ts +4 -4
  89. package/dist/styled-system/recipes/create-recipe.d.ts +2 -2
  90. package/dist/styled-system/recipes/index.d.ts +2 -1
  91. package/dist/styled-system/recipes/index.js +1 -0
  92. package/dist/styled-system/recipes/section-message-slot-recipe.d.ts +1 -1
  93. package/dist/styled-system/recipes/section-message-slot-recipe.js +3 -1
  94. package/dist/styled-system/recipes/sidebar-menu-heading-slot-recipe.d.ts +33 -0
  95. package/dist/styled-system/recipes/sidebar-menu-heading-slot-recipe.js +44 -0
  96. package/dist/styled-system/recipes/sidebar-slot-recipe.d.ts +1 -1
  97. package/dist/styled-system/recipes/sidebar-slot-recipe.js +4 -0
  98. package/dist/styles.css +82 -2
  99. package/dist/tsconfig.build.tsbuildinfo +1 -1
  100. package/package.json +11 -11
@@ -11,13 +11,13 @@
11
11
  export declare const Button: import("react").ForwardRefExoticComponent<{
12
12
  children: React.ReactNode;
13
13
  disabled?: boolean;
14
- size?: import("../../styled-system/recipes").ButtonSlotRecipeVariant["size"];
15
- priority?: import("../../styled-system/recipes").ButtonSlotRecipeVariant["priority"];
16
- destructive?: import("../../styled-system/recipes").ButtonSlotRecipeVariant["destructive"];
14
+ size?: import("../../styled-system/recipes").ButtonSlotRecipeVariant['size'];
15
+ priority?: import("../../styled-system/recipes").ButtonSlotRecipeVariant['priority'];
16
+ destructive?: import("../../styled-system/recipes").ButtonSlotRecipeVariant['destructive'];
17
17
  leftIcon?: React.ReactElement;
18
18
  isDropdownTrigger?: boolean;
19
19
  loading?: boolean;
20
20
  rightIcon?: React.ReactElement;
21
21
  href?: string;
22
22
  customLinkComponent?: import("react").ElementType;
23
- } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "type" | "rel" | "download" | "hrefLang" | "ping" | "target" | "referrerPolicy"> & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
23
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "download" | "hrefLang" | "ping" | "referrerPolicy" | "rel" | "target" | "type"> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
@@ -8,8 +8,8 @@ import { type CheckboxCardResponsiveSlot } from './CheckboxCard.types';
8
8
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
9
9
  */
10
10
  export declare const CheckboxCard: import("react").ForwardRefExoticComponent<{
11
- layout?: import("../../styled-system/recipes").CheckboxCardSlotRecipeVariant["layout"];
11
+ layout?: import("../../styled-system/recipes").CheckboxCardSlotRecipeVariant['layout'];
12
12
  label: string;
13
13
  renderDetailsSlot?: CheckboxCardResponsiveSlot | import("./CheckboxCard.types").CheckboxCardRenderDetailsSlot;
14
- disableResponsive?: import("../../styled-system/recipes").CheckboxCardSlotRecipeVariant["disableResponsive"];
14
+ disableResponsive?: import("../../styled-system/recipes").CheckboxCardSlotRecipeVariant['disableResponsive'];
15
15
  } & Omit<import("..").CheckboxProps, "label"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useMemo } from 'react';
3
3
  import { cx } from '../../styled-system/css';
4
4
  import { FocusIndicator } from '../FocusIndicator';
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
3
  import { DisclosureBasicCollapsed, DisclosureBasicExpanded, DisclosureNestedCollapsed, DisclosureNestedExpanded, } from '@moneyforward/mfui-icons-react';
4
4
  import { dataTableCellSlotRecipe } from '../../../styled-system/recipes';
@@ -31,7 +31,7 @@ export declare function useDateRangePickerContext(): {
31
31
  handleClear: () => void;
32
32
  handleApply: () => void;
33
33
  handleCancel: () => void;
34
- selecting: "start" | "end";
34
+ selecting: "end" | "start";
35
35
  temporaryStart: Date | undefined;
36
36
  temporaryEnd: Date | undefined;
37
37
  previewDate: Date | undefined;
@@ -43,7 +43,7 @@ export declare function useDateRangePickerContext(): {
43
43
  isRangeEnd: (date: Date) => boolean;
44
44
  setTemporaryStart: import("react").Dispatch<import("react").SetStateAction<Date | undefined>>;
45
45
  setTemporaryEnd: import("react").Dispatch<import("react").SetStateAction<Date | undefined>>;
46
- setSelecting: import("react").Dispatch<import("react").SetStateAction<"start" | "end">>;
46
+ setSelecting: import("react").Dispatch<import("react").SetStateAction<"end" | "start">>;
47
47
  disableAutoOpen: boolean | undefined;
48
48
  pendingFocusDate: string | null;
49
49
  setPendingFocusDate: import("react").Dispatch<import("react").SetStateAction<string | null>>;
@@ -1,7 +1,7 @@
1
1
  export declare const SEPARATOR_CONTENT = "\u301C";
2
2
  export declare const LOCALE: {
3
- readonly CLEAR_BUTTON_LABEL: "値をクリアする";
4
- readonly CALENDAR_BUTTON_LABEL: "カレンダーを開く";
5
- readonly START_DATE_PLACEHOLDER: "開始日";
6
- readonly END_DATE_PLACEHOLDER: "終了日";
3
+ readonly CLEAR_BUTTON_LABEL: '値をクリアする';
4
+ readonly CALENDAR_BUTTON_LABEL: 'カレンダーを開く';
5
+ readonly START_DATE_PLACEHOLDER: '開始日';
6
+ readonly END_DATE_PLACEHOLDER: '終了日';
7
7
  };
@@ -11,5 +11,5 @@ import { type SyntheticEvent } from 'react';
11
11
  * handleInputClick: (inputType: 'start' | 'end', userOnClick?: React.MouseEventHandler<HTMLInputElement>) => (event: React.MouseEvent<HTMLInputElement>) => void
12
12
  */
13
13
  export declare function useDateRangeTriggerInputClick(disableAutoOpen: boolean, popoverOpenFunction?: (event?: SyntheticEvent) => void): {
14
- handleInputClick: (inputType: "start" | "end", userOnClick?: React.MouseEventHandler<HTMLInputElement>) => (event: React.MouseEvent<HTMLInputElement>) => void;
14
+ handleInputClick: (inputType: 'start' | 'end', userOnClick?: React.MouseEventHandler<HTMLInputElement>) => (event: React.MouseEvent<HTMLInputElement>) => void;
15
15
  };
@@ -3,7 +3,6 @@ export type DateRangePickerTestUtilityConfig = {
3
3
  user: UserEvent;
4
4
  };
5
5
  export declare function createDateRangePickerTestUtility({ user }: DateRangePickerTestUtilityConfig): {
6
- getPopover: () => Element | null;
7
6
  getPreviousMonthButton: () => HTMLElement | undefined;
8
7
  getNextMonthButton: () => HTMLElement | undefined;
9
8
  getTodayButton: () => HTMLElement;
@@ -29,4 +28,5 @@ export declare function createDateRangePickerTestUtility({ user }: DateRangePick
29
28
  setEndDate: (date: string) => Promise<void>;
30
29
  clearValues: () => Promise<void>;
31
30
  openCalendar: () => Promise<void>;
31
+ getPopover: () => Element | null;
32
32
  };
@@ -5,13 +5,13 @@
5
5
  */
6
6
  export declare const MONTH_RANGE_PICKER_A11Y_LABELS: {
7
7
  /** Label for selected months */
8
- readonly SELECTED: "選択済み";
8
+ readonly SELECTED: '選択済み';
9
9
  /** Label for months in the selected range */
10
- readonly IN_RANGE: "選択範囲内";
10
+ readonly IN_RANGE: '選択範囲内';
11
11
  /** Label for unavailable/disabled months */
12
- readonly UNAVAILABLE: "無効";
12
+ readonly UNAVAILABLE: '無効';
13
13
  /** Label for range start months */
14
- readonly RANGE_START: "範囲開始";
14
+ readonly RANGE_START: '範囲開始';
15
15
  /** Label for range end months */
16
- readonly RANGE_END: "範囲終了";
16
+ readonly RANGE_END: '範囲終了';
17
17
  };
@@ -24,22 +24,22 @@
24
24
  * // With seconds
25
25
  * <TimePicker format="HH:mm:ss" />
26
26
  */
27
- export declare const TimePicker: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "aria-invalid" | keyof {
27
+ export declare const TimePicker: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "aria-invalid" | "type" | keyof {
28
28
  onChange?: (value: string, event: import("react").SyntheticEvent) => void;
29
- format?: "HH:mm" | "HH:mm:ss";
30
- size?: "small" | "medium" | "large";
29
+ format?: 'HH:mm' | 'HH:mm:ss';
30
+ size?: 'small' | 'medium' | 'large';
31
31
  invalid?: boolean;
32
32
  onClear?: (event: import("react").MouseEvent<HTMLButtonElement>) => void;
33
33
  enableClearButton?: boolean;
34
- clearButtonProps?: Pick<import("../..").IconButtonProps, "aria-label">;
35
- pickerIndicatorIconButtonProps?: Pick<import("../..").IconButtonProps, "aria-label">;
34
+ clearButtonProps?: Pick<import("../..").IconButtonProps, 'aria-label'>;
35
+ pickerIndicatorIconButtonProps?: Pick<import("../..").IconButtonProps, 'aria-label'>;
36
36
  }> & {
37
37
  onChange?: (value: string, event: import("react").SyntheticEvent) => void;
38
- format?: "HH:mm" | "HH:mm:ss";
39
- size?: "small" | "medium" | "large";
38
+ format?: 'HH:mm' | 'HH:mm:ss';
39
+ size?: 'small' | 'medium' | 'large';
40
40
  invalid?: boolean;
41
41
  onClear?: (event: import("react").MouseEvent<HTMLButtonElement>) => void;
42
42
  enableClearButton?: boolean;
43
- clearButtonProps?: Pick<import("../..").IconButtonProps, "aria-label">;
44
- pickerIndicatorIconButtonProps?: Pick<import("../..").IconButtonProps, "aria-label">;
43
+ clearButtonProps?: Pick<import("../..").IconButtonProps, 'aria-label'>;
44
+ pickerIndicatorIconButtonProps?: Pick<import("../..").IconButtonProps, 'aria-label'>;
45
45
  } & import("react").RefAttributes<HTMLInputElement>>;
@@ -68,7 +68,7 @@ type UseBasePickerValueControllerOptions = {
68
68
  export declare function useBasePickerValueController({ value, defaultValue, format, customFormatValue, onChange, onPickerPopoverChange, }: UseBasePickerValueControllerOptions): {
69
69
  inputProps: {
70
70
  value: string;
71
- onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
71
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
72
72
  onBlur: (event: React.FocusEvent<HTMLInputElement, Element>) => void;
73
73
  onClear: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
74
74
  };
@@ -4,15 +4,15 @@
4
4
  */
5
5
  export declare const DATE_RANGE_PICKER_A11Y_LABELS: {
6
6
  /** Label for today's date */
7
- readonly TODAY: "今日";
7
+ readonly TODAY: '今日';
8
8
  /** Label for selected dates */
9
- readonly SELECTED: "選択済み";
9
+ readonly SELECTED: '選択済み';
10
10
  /** Label for dates in the selected range */
11
- readonly IN_RANGE: "選択範囲内";
11
+ readonly IN_RANGE: '選択範囲内';
12
12
  /** Label for unavailable/disabled dates */
13
- readonly UNAVAILABLE: "選択不可";
13
+ readonly UNAVAILABLE: '選択不可';
14
14
  /** Label for range start dates */
15
- readonly RANGE_START: "開始日";
15
+ readonly RANGE_START: '開始日';
16
16
  /** Label for range end dates */
17
- readonly RANGE_END: "終了日";
17
+ readonly RANGE_END: '終了日';
18
18
  };
@@ -31,7 +31,7 @@ export declare function useBaseRangePickerContext(): {
31
31
  handleClear: () => void;
32
32
  handleApply: () => void;
33
33
  handleCancel: () => void;
34
- selecting: "start" | "end";
34
+ selecting: "end" | "start";
35
35
  temporaryStart: Date | undefined;
36
36
  temporaryEnd: Date | undefined;
37
37
  previewDate: Date | undefined;
@@ -43,7 +43,7 @@ export declare function useBaseRangePickerContext(): {
43
43
  isRangeEnd: (date: Date) => boolean;
44
44
  setTemporaryStart: import("react").Dispatch<import("react").SetStateAction<Date | undefined>>;
45
45
  setTemporaryEnd: import("react").Dispatch<import("react").SetStateAction<Date | undefined>>;
46
- setSelecting: import("react").Dispatch<import("react").SetStateAction<"start" | "end">>;
46
+ setSelecting: import("react").Dispatch<import("react").SetStateAction<"end" | "start">>;
47
47
  disableAutoOpen: boolean | undefined;
48
48
  pendingFocusDate: string | null;
49
49
  setPendingFocusDate: import("react").Dispatch<import("react").SetStateAction<string | null>>;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Calendar } from '@moneyforward/mfui-icons-react';
4
4
  import { forwardRef, useCallback } from 'react';
5
5
  import { cx } from '../../../../../styled-system/css';
@@ -11,5 +11,5 @@ import { type SyntheticEvent } from 'react';
11
11
  * handleInputClick: (inputType: 'start' | 'end', userOnClick?: React.MouseEventHandler<HTMLInputElement>) => (event: React.MouseEvent<HTMLInputElement>) => void
12
12
  */
13
13
  export declare function useDateRangeTriggerInputClick(disableAutoOpen: boolean, popoverOpenFunction?: (event?: SyntheticEvent) => void): {
14
- handleInputClick: (inputType: "start" | "end", userOnClick?: React.MouseEventHandler<HTMLInputElement>) => (event: React.MouseEvent<HTMLInputElement>) => void;
14
+ handleInputClick: (inputType: 'start' | 'end', userOnClick?: React.MouseEventHandler<HTMLInputElement>) => (event: React.MouseEvent<HTMLInputElement>) => void;
15
15
  };
@@ -5,7 +5,6 @@ export type BaseRangePickerTestUtilityConfig = {
5
5
  calendarLocale: BaseRangePickerProps['calendarLocale'];
6
6
  };
7
7
  export declare function createBaseRangePickerTestUtility({ user, calendarLocale }: BaseRangePickerTestUtilityConfig): {
8
- getPopover: () => Element | null;
9
8
  getPreviousMonthButton: () => HTMLElement;
10
9
  getNextMonthButton: () => HTMLElement;
11
10
  getApplyButton: () => HTMLElement;
@@ -29,4 +28,5 @@ export declare function createBaseRangePickerTestUtility({ user, calendarLocale
29
28
  setEndDate: (date: string) => Promise<void>;
30
29
  clearValues: () => Promise<void>;
31
30
  openCalendar: () => Promise<void>;
31
+ getPopover: () => Element | null;
32
32
  };
@@ -4,15 +4,15 @@
4
4
  */
5
5
  export declare const DATE_PICKER_A11Y_LABELS: {
6
6
  /** Label for today's date */
7
- readonly TODAY: "今日";
7
+ readonly TODAY: '今日';
8
8
  /** Label for selected dates */
9
- readonly SELECTED: "選択済み";
9
+ readonly SELECTED: '選択済み';
10
10
  /** Label for dates in the selected range */
11
- readonly IN_RANGE: "選択範囲内";
11
+ readonly IN_RANGE: '選択範囲内';
12
12
  /** Label for unavailable/disabled dates */
13
- readonly UNAVAILABLE: "選択不可";
13
+ readonly UNAVAILABLE: '選択不可';
14
14
  /** Label for range start dates */
15
- readonly RANGE_START: "開始日";
15
+ readonly RANGE_START: '開始日';
16
16
  /** Label for range end dates */
17
- readonly RANGE_END: "終了日";
17
+ readonly RANGE_END: '終了日';
18
18
  };
@@ -12,13 +12,13 @@ export declare const Dialog: import("react").ForwardRefExoticComponent<{
12
12
  open?: boolean;
13
13
  onClose?: () => void;
14
14
  actionSlot?: import("react").ReactNode;
15
- size?: import("../../styled-system/recipes").DialogSlotRecipeVariant["size"];
15
+ size?: import("../../styled-system/recipes").DialogSlotRecipeVariant['size'];
16
16
  hideCloseButton?: boolean;
17
- closeButtonProps?: Pick<import("react").ComponentPropsWithoutRef<"button">, "aria-label">;
17
+ closeButtonProps?: Pick<import("react").ComponentPropsWithoutRef<'button'>, 'aria-label'>;
18
18
  targetDOMNode?: HTMLElement | null;
19
19
  enableAutoUnmount?: boolean;
20
20
  disableBackdropClose?: boolean;
21
21
  customFocusElement?: import("react").RefObject<HTMLElement | null> | HTMLElement | null;
22
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "open" | "onClose"> & {
23
- ref?: (import("react").RefObject<HTMLDivElement | null> | import("react").RefCallback<HTMLDivElement> | null) | undefined;
22
+ } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onClose" | "open"> & {
23
+ ref?: (import("react").RefCallback<HTMLDivElement> | import("react").RefObject<HTMLDivElement | null> | null) | undefined;
24
24
  } & import("react").Attributes>;
@@ -13,14 +13,25 @@ import { type DisclosureProps } from './Disclosure.types';
13
13
  */
14
14
  export declare function Disclosure({ children, isOpenByDefault, enableAutoUnmount }: DisclosureProps): import("react/jsx-runtime").JSX.Element;
15
15
  export declare namespace Disclosure {
16
- var Trigger: import("react").ForwardRefExoticComponent<{
17
- targetId: string;
18
- className?: string;
19
- children: string;
20
- } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
21
- var Target: import("react").ForwardRefExoticComponent<{
22
- id: string;
23
- className?: string;
24
- children: import("react").ReactNode;
25
- } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
16
+ export { Trigger };
17
+ export { Target };
26
18
  }
19
+ /**
20
+ * The trigger button component for the Disclosure.
21
+ * Must be used within a Disclosure component.
22
+ */
23
+ declare const Trigger: import("react").ForwardRefExoticComponent<{
24
+ targetId: string;
25
+ className?: string;
26
+ children: string;
27
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
28
+ /**
29
+ * The target component for the Disclosure.
30
+ * Must be used within a Disclosure component.
31
+ */
32
+ declare const Target: import("react").ForwardRefExoticComponent<{
33
+ id: string;
34
+ className?: string;
35
+ children: import("react").ReactNode;
36
+ } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
37
+ export {};
@@ -21,7 +21,7 @@ import { DropdownMenuHeading } from './DropdownMenuHeading';
21
21
  */
22
22
  export declare function DropdownMenu({ icon, label, children, triggerProps, tooltipLabel, tooltipPlacement, triggerMiddleTruncate, triggerTypographyVariant, menuPopoverProps, disabled, targetDOMNode, enableAutoUnmount, onOpenStateChanged, onBlur, }: DropdownMenuProps<ReactElement | undefined>): import("react/jsx-runtime").JSX.Element;
23
23
  export declare namespace DropdownMenu {
24
- var Divider: typeof DropdownMenuDivider;
25
- var Item: typeof DropdownMenuItem;
26
- var Heading: typeof DropdownMenuHeading;
24
+ export { DropdownMenuDivider as Divider };
25
+ export { DropdownMenuItem as Item };
26
+ export { DropdownMenuHeading as Heading };
27
27
  }
@@ -2,7 +2,6 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useCallback, useId, useMemo, useRef } from 'react';
4
4
  import { cx } from '../../../styled-system/css';
5
- import { findSiblingElements } from '../../utilities/dom/findSiblingElements';
6
5
  import { FocusIndicator } from '../../FocusIndicator';
7
6
  import { dropdownMenuItemSlotRecipe } from '../../../styled-system/recipes';
8
7
  import { Typography } from '../../Typography';
@@ -26,7 +25,12 @@ export function DropdownMenuItem({ children, className, href, target, customLink
26
25
  const id = useId();
27
26
  const itemRef = useRef(null);
28
27
  const handleKeyDown = useCallback((event) => {
29
- const siblingElements = findSiblingElements(event.currentTarget, '[data-mfui-menu-item]:is([data-mfui-focusable=true])');
28
+ // Search from the menu container (not the immediate parent) so arrow navigation still works
29
+ // when items are wrapped in another element such as a Tooltip.
30
+ const container = event.currentTarget.closest('[data-mfui-menu-container]');
31
+ const siblingElements = container
32
+ ? [...container.querySelectorAll('[data-mfui-menu-item]:is([data-mfui-focusable=true])')]
33
+ : [];
30
34
  const currentIndex = siblingElements.indexOf(event.currentTarget);
31
35
  // If the current element is the last element, move to the first element.
32
36
  const nextIndex = siblingElements.length - 1 === currentIndex ? 0 : currentIndex + 1;
@@ -52,7 +56,11 @@ export function DropdownMenuItem({ children, className, href, target, customLink
52
56
  return;
53
57
  if (onClick) {
54
58
  onClick(event);
55
- closeMenuPopover?.();
59
+ // Consumers can keep the menu open after a click by calling `event.preventDefault()`
60
+ // in their `onClick` handler (e.g. for in-menu actions like copy-to-clipboard).
61
+ if (!event.defaultPrevented) {
62
+ closeMenuPopover?.();
63
+ }
56
64
  }
57
65
  }, [disabled, onClick, closeMenuPopover]);
58
66
  const isButton = useMemo(() => onClick && !href, [onClick, href]);
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export declare const EmbeddedSidePane: import("react").ForwardRefExoticComponent<{
9
9
  container?: HTMLElement | null;
10
- } & Omit<import("..").SidePaneProps, "targetDOMNode" | "enableNonModal"> & import("react").RefAttributes<HTMLDivElement>> & {
10
+ } & Omit<import("..").SidePaneProps, "enableNonModal" | "targetDOMNode"> & import("react").RefAttributes<HTMLDivElement>> & {
11
11
  /**
12
12
  * The `EmbeddedSidePane.Container` component is used to define the container for the `EmbeddedSidePane`.
13
13
  * It should be a parent element that has `position: relative` for proper positioning and `overflow: hidden/clip` for clipping.
@@ -6,12 +6,12 @@
6
6
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
7
7
  */
8
8
  export declare const FileBox: import("react").ForwardRefExoticComponent<{
9
- invalid?: import("../../styled-system/recipes").TextBoxSlotRecipeVariant["invalid"];
9
+ invalid?: import("../../styled-system/recipes").TextBoxSlotRecipeVariant['invalid'];
10
10
  disabled?: boolean;
11
- multiple?: import("react").ComponentPropsWithoutRef<"input">["multiple"];
12
- accept?: import("react").ComponentPropsWithoutRef<"input">["accept"];
11
+ multiple?: import("react").ComponentPropsWithoutRef<'input'>['multiple'];
12
+ accept?: import("react").ComponentPropsWithoutRef<'input'>['accept'];
13
13
  buttonLabel?: string;
14
14
  placeholder?: string;
15
15
  multipleFilesSuffixLabel?: string;
16
- clearButtonProps?: Pick<import("..").IconButtonProps, "aria-label">;
16
+ clearButtonProps?: Pick<import("..").IconButtonProps, 'aria-label'>;
17
17
  } & Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useRef, useState } from 'react';
4
4
  import { cx } from '../../styled-system/css';
5
5
  import { fileBoxSlotRecipe } from '../../styled-system/recipes';
@@ -28,11 +28,11 @@
28
28
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
29
29
  */
30
30
  export declare const FileDropZone: import("react").ForwardRefExoticComponent<{
31
- invalid?: import("../../styled-system/recipes").TextBoxSlotRecipeVariant["invalid"];
31
+ invalid?: import("../../styled-system/recipes").TextBoxSlotRecipeVariant['invalid'];
32
32
  disabled?: boolean;
33
- multiple?: import("react").ComponentPropsWithoutRef<"input">["multiple"];
34
- accept?: import("react").ComponentPropsWithoutRef<"input">["accept"];
35
- clearButtonProps?: Pick<import("..").IconButtonProps, "aria-label">;
33
+ multiple?: import("react").ComponentPropsWithoutRef<'input'>['multiple'];
34
+ accept?: import("react").ComponentPropsWithoutRef<'input'>['accept'];
35
+ clearButtonProps?: Pick<import("..").IconButtonProps, 'aria-label'>;
36
36
  errorMessage?: string;
37
37
  helperMessage?: string;
38
38
  illustrationUrl?: string;
@@ -81,7 +81,7 @@ export declare function createValidationResult(isValid: boolean, error?: string)
81
81
  * @property ARCHIVES - The archive file types
82
82
  */
83
83
  export declare const FILE_TYPES: {
84
- readonly IMAGES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/svg+xml"];
85
- readonly DOCUMENTS: readonly ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/plain"];
86
- readonly ARCHIVES: readonly ["application/zip", "application/x-rar-compressed", "application/x-tar"];
84
+ readonly IMAGES: readonly ['image/jpeg', 'image/png', 'image/gif', 'image/webp', 'image/svg+xml'];
85
+ readonly DOCUMENTS: readonly ['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'text/plain'];
86
+ readonly ARCHIVES: readonly ['application/zip', 'application/x-rar-compressed', 'application/x-tar'];
87
87
  };
@@ -5,11 +5,11 @@
5
5
  export declare const FilterTrigger: import("react").ForwardRefExoticComponent<{
6
6
  label: string;
7
7
  value?: string;
8
- inputProps?: Omit<import("react").ComponentPropsWithoutRef<"input">, "type">;
8
+ inputProps?: Omit<import("react").ComponentPropsWithoutRef<'input'>, 'type'>;
9
9
  className?: string;
10
10
  enableClearButton?: boolean;
11
11
  clearButtonProps?: {
12
- "aria-label"?: string;
12
+ 'aria-label'?: string;
13
13
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
14
14
  };
15
15
  } & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -11,6 +11,6 @@
11
11
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements
12
12
  */
13
13
  export declare const Heading: import("react").ForwardRefExoticComponent<{
14
- variant: "pageHeading1" | "pageHeading2" | "sectionHeading1" | "sectionHeading2" | "contentHeading";
15
- tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
14
+ variant: 'pageHeading1' | 'pageHeading2' | 'sectionHeading1' | 'sectionHeading2' | 'contentHeading';
15
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
16
16
  } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -11,8 +11,8 @@
11
11
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div
12
12
  */
13
13
  export declare const HelpMessage: import("react").ForwardRefExoticComponent<{
14
- messageType?: import("../../styled-system/recipes").HelpMessageRecipeVariant["messageType"];
14
+ messageType?: import("../../styled-system/recipes").HelpMessageRecipeVariant['messageType'];
15
15
  showIcon?: boolean;
16
- messageAlign?: "left" | "center";
17
- children?: import("..").TypographyProps["children"];
16
+ messageAlign?: 'left' | 'center';
17
+ children?: import("..").TypographyProps['children'];
18
18
  } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,16 +1,16 @@
1
1
  export declare const InternalIconButton: import("react").ForwardRefExoticComponent<{
2
- outlined?: import("../../styled-system/recipes").IconButtonSlotRecipeVariant["outlined"];
2
+ outlined?: import("../../styled-system/recipes").IconButtonSlotRecipeVariant['outlined'];
3
3
  children: React.ReactNode;
4
4
  disabled?: boolean;
5
5
  href?: string;
6
6
  customLinkComponent?: import("react").ElementType;
7
- } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "type" | "rel" | "download" | "hrefLang" | "ping" | "target" | "referrerPolicy"> & {
8
- size?: import("../../styled-system/recipes").IconButtonSlotRecipeVariant["size"];
9
- } & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
7
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "download" | "hrefLang" | "ping" | "referrerPolicy" | "rel" | "target" | "type"> & {
8
+ size?: import("../../styled-system/recipes").IconButtonSlotRecipeVariant['size'];
9
+ } & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
10
10
  export declare const IconButton: import("react").ForwardRefExoticComponent<{
11
- outlined?: import("../../styled-system/recipes").IconButtonSlotRecipeVariant["outlined"];
11
+ outlined?: import("../../styled-system/recipes").IconButtonSlotRecipeVariant['outlined'];
12
12
  children: React.ReactNode;
13
13
  disabled?: boolean;
14
14
  href?: string;
15
15
  customLinkComponent?: import("react").ElementType;
16
- } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "type" | "rel" | "download" | "hrefLang" | "ping" | "target" | "referrerPolicy"> & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
16
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "download" | "hrefLang" | "ping" | "referrerPolicy" | "rel" | "target" | "type"> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
@@ -3,8 +3,8 @@
3
3
  * Both the key and value areas accept any elements and are rendered with predefined layout styles.
4
4
  */
5
5
  export declare const KeyValue: import("react").ForwardRefExoticComponent<{
6
- size?: import("../../styled-system/recipes").KeyValueSlotRecipeVariant["size"];
6
+ size?: import("../../styled-system/recipes").KeyValueSlotRecipeVariant['size'];
7
7
  keyItem: React.ReactNode;
8
8
  valueItem: React.ReactNode;
9
- gridTemplateColumns?: import("react").CSSProperties["gridTemplateColumns"];
9
+ gridTemplateColumns?: import("react").CSSProperties['gridTemplateColumns'];
10
10
  } & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
3
  import { BaseMainNavigation } from './BaseMainNavigation';
4
4
  import { NarrowViewportMainNavigation } from './NarrowViewportMainNavigation';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useCallback, useId, useMemo, useRef } from 'react';
4
4
  import { Add, CheckboxChecked, CheckboxUnchecked, Error } from '@moneyforward/mfui-icons-react';
5
5
  import { FocusIndicator } from '../FocusIndicator';
@@ -22,7 +22,7 @@ type UseApplyControlsProps<T extends AllowedValueTypes = string, AdditionalProps
22
22
  */
23
23
  export declare function useApplyControls<T extends AllowedValueTypes = string, AdditionalProps extends Record<string, unknown> = Record<string, never>>({ options, onValuesChange, closeOptionPanel }: UseApplyControlsProps<T, AdditionalProps>): {
24
24
  temporaryValues: Set<MultipleSelectBoxOption<T, AdditionalProps>["value"]>;
25
- updateTemporaryValues: (values: MultipleSelectBoxOption<T, AdditionalProps>["value"][]) => void;
25
+ updateTemporaryValues: (values: MultipleSelectBoxOption<T, AdditionalProps>['value'][]) => void;
26
26
  openWithSelectedOptions: (selectedOptions: MultipleSelectBoxOption<T, AdditionalProps>[]) => void;
27
27
  initializeTemporaryValues: () => void;
28
28
  handleCancelButtonClick: () => void;
@@ -1,4 +1,5 @@
1
1
  import { useEffect } from 'react';
2
+ import { getDeepActiveElement } from '../utils/getDeepActiveElement';
2
3
  import { isSelectableOption } from '../utils/isSelectableOption';
3
4
  /**
4
5
  * Control the focus when the option panel is opened.
@@ -9,7 +10,7 @@ export const useInitialFocusOnOptionPanelOpen = ({ isOptionPanelOpen, selectAllB
9
10
  if (!isOptionPanelOpen)
10
11
  return;
11
12
  // Check if the active element is one of the all options control buttons
12
- const { activeElement } = document;
13
+ const activeElement = getDeepActiveElement();
13
14
  // If an all options control button is focused, don't change focus
14
15
  if (activeElement === selectAllButtonRef.current || activeElement === clearAllButtonRef.current) {
15
16
  return;
@@ -17,7 +18,7 @@ export const useInitialFocusOnOptionPanelOpen = ({ isOptionPanelOpen, selectAllB
17
18
  // Focus the search input when the select is searchable and the value is empty.
18
19
  if (enableSearchOptions) {
19
20
  // If it is already focused, return.
20
- if (searchInputRef.current === document.activeElement)
21
+ if (searchInputRef.current === activeElement)
21
22
  return;
22
23
  // Otherwise, focus the search input
23
24
  if (localSelectedValuesSet.size === 0) {
@@ -57,10 +58,6 @@ export const useInitialFocusOnOptionPanelOpen = ({ isOptionPanelOpen, selectAllB
57
58
  if (focusIndexInOptions === -1)
58
59
  focusIndexInOptions = 0;
59
60
  }
60
- else {
61
- // Default to the first focusable option
62
- focusIndexInOptions = 0;
63
- }
64
61
  const optionNode = optionPanelRef.current?.querySelectorAll('[role="option"][data-focusable="true"]');
65
62
  if (optionNode && optionNode.length > 0) {
66
63
  optionNode[focusIndexInOptions]?.focus({ preventScroll: true });
@@ -28,7 +28,7 @@ type UseSelectedValuesProps<T extends AllowedValueTypes = string, AdditionalProp
28
28
  export declare function useSelectedValues<T extends AllowedValueTypes = string, AdditionalProps extends Record<string, unknown> = Record<string, never>>({ options, defaultValue, value, onChange }: UseSelectedValuesProps<T, AdditionalProps>): {
29
29
  localSelectedValuesSet: Set<MultipleSelectBoxOption<T, AdditionalProps>["value"]>;
30
30
  localSelectedOptions: MultipleSelectBoxOption<T, AdditionalProps>[];
31
- updateSelectedValues: (newValues: MultipleSelectBoxOption<T, AdditionalProps>["value"][]) => void;
31
+ updateSelectedValues: (newValues: MultipleSelectBoxOption<T, AdditionalProps>['value'][]) => void;
32
32
  updateSelectedOptions: (newOptions: MultipleSelectBoxOption<T, AdditionalProps>[]) => void;
33
33
  };
34
34
  export {};