@moneyforward/mfui-components 3.29.1 → 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.
- package/dist/src/Button/Button.d.ts +4 -4
- package/dist/src/CheckboxCard/CheckboxCard.d.ts +2 -2
- package/dist/src/CheckboxCard/CheckboxCard.js +1 -1
- package/dist/src/DataTable/DataTableCell/DataTableCell.js +1 -1
- package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerProvider/DateRangePickerProvider.d.ts +2 -2
- package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerTrigger/constants.d.ts +4 -4
- package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerTrigger/hooks/useDateRangeTriggerInputClick.d.ts +1 -1
- package/dist/src/DateTimeSelection/DateRangePicker/utilities/createDateRangePickerTestUtility.d.ts +1 -1
- package/dist/src/DateTimeSelection/MonthRangePicker/MonthRangePickerMonthCell/constants.d.ts +5 -5
- package/dist/src/DateTimeSelection/TimePicker/TimePicker.d.ts +9 -9
- package/dist/src/DateTimeSelection/shared/BasePicker/basePickerUtilities/useBasePickerValueController.d.ts +1 -1
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerCalendar/constants.d.ts +6 -6
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerProvider/BaseRangePickerProvider.d.ts +2 -2
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerTrigger/BaseRangePickerTrigger.js +1 -1
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerTrigger/hooks/useDateRangeTriggerInputClick.d.ts +1 -1
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/utilities/createBaseRangePickerTestUtility.d.ts +1 -1
- package/dist/src/DateTimeSelection/shared/accessibility/constants.d.ts +6 -6
- package/dist/src/Dialog/Dialog.d.ts +4 -4
- package/dist/src/Disclosure/Disclosure.d.ts +21 -10
- package/dist/src/DropdownMenu/DropdownMenu.d.ts +3 -3
- package/dist/src/DropdownMenu/DropdownMenuItem/DropdownMenuItem.js +11 -3
- package/dist/src/EmbeddedSidePane/EmbeddedSidePane.d.ts +1 -1
- package/dist/src/FileBox/FileBox.d.ts +4 -4
- package/dist/src/FileBox/FileBox.js +1 -1
- package/dist/src/FileDropZone/FileDropZone.d.ts +4 -4
- package/dist/src/FileDropZone/utils/fileHelpers.d.ts +3 -3
- package/dist/src/FilterTrigger/FilterTrigger.d.ts +2 -2
- package/dist/src/Heading/Heading.d.ts +2 -2
- package/dist/src/HelpMessage/HelpMessage.d.ts +3 -3
- package/dist/src/IconButton/IconButton.d.ts +6 -6
- package/dist/src/KeyValue/KeyValue.d.ts +2 -2
- package/dist/src/MainNavigation/MainNavigation.js +1 -1
- package/dist/src/MultipleSelectBox/MultipleSelectBox.js +1 -1
- package/dist/src/MultipleSelectBox/hooks/useApplyControls.d.ts +1 -1
- package/dist/src/MultipleSelectBox/hooks/useSelectedValues.d.ts +1 -1
- package/dist/src/NumberBox/NumberBox.d.ts +1 -1
- package/dist/src/Pagination/ItemsCount/ItemsCount.js +1 -1
- package/dist/src/Popover/Popover.js +1 -1
- package/dist/src/RadioButton/RadioButton.d.ts +1 -1
- package/dist/src/RadioButtonCard/RadioButtonCard.d.ts +2 -2
- package/dist/src/RadioButtonCard/RadioButtonCard.js +1 -1
- package/dist/src/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/src/SectionMessage/SectionMessage.d.ts +5 -5
- package/dist/src/SectionMessage/SectionMessage.js +11 -4
- package/dist/src/SectionMessage/SectionMessage.types.d.ts +4 -4
- package/dist/src/SelectBox/SelectBox.js +1 -1
- package/dist/src/SelectBox/SelectBoxOption.js +1 -1
- package/dist/src/SelectBox/SelectBoxOptionGroup.js +1 -1
- package/dist/src/SidePane/SidePane.d.ts +6 -6
- package/dist/src/Sidebar/Sidebar.d.ts +10 -1
- package/dist/src/Sidebar/Sidebar.js +40 -10
- package/dist/src/Sidebar/Sidebar.types.d.ts +39 -2
- package/dist/src/Sidebar/SidebarContext.d.ts +3 -0
- package/dist/src/Sidebar/SidebarContext.js +2 -0
- package/dist/src/Sidebar/SidebarMenuHeading/SidebarMenuHeading.d.ts +49 -0
- package/dist/src/Sidebar/SidebarMenuHeading/SidebarMenuHeading.js +113 -0
- package/dist/src/Sidebar/SidebarMenuHeading/SidebarMenuHeading.types.d.ts +36 -0
- package/dist/src/Sidebar/SidebarMenuHeading/SidebarMenuHeading.types.js +1 -0
- package/dist/src/Sidebar/SidebarMenuHeading/index.d.ts +2 -0
- package/dist/src/Sidebar/SidebarMenuHeading/index.js +1 -0
- package/dist/src/Sidebar/SidebarNavigationItem.js +6 -3
- package/dist/src/Sidebar/hooks/useSidebarResize.d.ts +2 -1
- package/dist/src/Sidebar/hooks/useSidebarResize.js +31 -3
- package/dist/src/Sidebar/index.d.ts +2 -1
- package/dist/src/Stack/Stack.d.ts +5 -5
- package/dist/src/StatusLabel/StatusLabel.d.ts +2 -2
- package/dist/src/Stepper/Step/Step.js +1 -1
- package/dist/src/SubNavigation/SubNavigation.js +1 -1
- package/dist/src/TextBox/TextBox.d.ts +6 -6
- package/dist/src/TextLink/TextLink.d.ts +2 -2
- package/dist/src/Textarea/Textarea.d.ts +4 -4
- package/dist/src/Toast/Toast.d.ts +3 -3
- package/dist/src/Toast/Toast.js +9 -5
- package/dist/src/Toast/Toast.types.d.ts +3 -5
- package/dist/src/Toast/api/toast.d.ts +18 -2
- package/dist/src/Tooltip/Tooltip.d.ts +3 -3
- package/dist/src/Tooltip/Tooltip.js +1 -1
- package/dist/src/Tooltip/Tooltip.types.d.ts +2 -0
- package/dist/src/Tooltip/hooks/useTooltipDisplayController.js +14 -2
- package/dist/src/utilities/dom/dispatchNativeInputValueWithEvent.d.ts +1 -1
- package/dist/src/utilities/dom/useFocusTrap.d.ts +1 -1
- package/dist/src/utilities/react/useIsomorphicLayoutEffect.d.ts +2 -2
- package/dist/styled-system/css/conditions.d.ts +3 -3
- package/dist/styled-system/helpers.d.ts +36 -35
- package/dist/styled-system/jsx/factory-helper.d.ts +4 -4
- package/dist/styled-system/recipes/create-recipe.d.ts +2 -2
- package/dist/styled-system/recipes/index.d.ts +2 -1
- package/dist/styled-system/recipes/index.js +1 -0
- package/dist/styled-system/recipes/section-message-slot-recipe.d.ts +1 -1
- package/dist/styled-system/recipes/section-message-slot-recipe.js +3 -1
- package/dist/styled-system/recipes/sidebar-menu-heading-slot-recipe.d.ts +33 -0
- package/dist/styled-system/recipes/sidebar-menu-heading-slot-recipe.js +44 -0
- package/dist/styled-system/recipes/sidebar-slot-recipe.d.ts +1 -1
- package/dist/styled-system/recipes/sidebar-slot-recipe.js +4 -0
- package/dist/styles.css +82 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- 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[
|
|
15
|
-
priority?: import("../../styled-system/recipes").ButtonSlotRecipeVariant[
|
|
16
|
-
destructive?: import("../../styled-system/recipes").ButtonSlotRecipeVariant[
|
|
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">, "
|
|
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[
|
|
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[
|
|
14
|
+
disableResponsive?: import("../../styled-system/recipes").CheckboxCardSlotRecipeVariant['disableResponsive'];
|
|
15
15
|
} & Omit<import("..").CheckboxProps, "label"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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: "
|
|
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<"
|
|
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:
|
|
14
|
+
handleInputClick: (inputType: 'start' | 'end', userOnClick?: React.MouseEventHandler<HTMLInputElement>) => (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
15
15
|
};
|
package/dist/src/DateTimeSelection/DateRangePicker/utilities/createDateRangePickerTestUtility.d.ts
CHANGED
|
@@ -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
|
};
|
package/dist/src/DateTimeSelection/MonthRangePicker/MonthRangePickerMonthCell/constants.d.ts
CHANGED
|
@@ -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">, "
|
|
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?:
|
|
30
|
-
size?:
|
|
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,
|
|
35
|
-
pickerIndicatorIconButtonProps?: Pick<import("../..").IconButtonProps,
|
|
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?:
|
|
39
|
-
size?:
|
|
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,
|
|
44
|
-
pickerIndicatorIconButtonProps?: Pick<import("../..").IconButtonProps,
|
|
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:
|
|
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: "
|
|
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<"
|
|
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 {
|
|
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:
|
|
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[
|
|
15
|
+
size?: import("../../styled-system/recipes").DialogSlotRecipeVariant['size'];
|
|
16
16
|
hideCloseButton?: boolean;
|
|
17
|
-
closeButtonProps?: Pick<import("react").ComponentPropsWithoutRef<
|
|
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">, "
|
|
23
|
-
ref?: (import("react").
|
|
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
|
-
|
|
17
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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, "
|
|
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[
|
|
9
|
+
invalid?: import("../../styled-system/recipes").TextBoxSlotRecipeVariant['invalid'];
|
|
10
10
|
disabled?: boolean;
|
|
11
|
-
multiple?: import("react").ComponentPropsWithoutRef<
|
|
12
|
-
accept?: import("react").ComponentPropsWithoutRef<
|
|
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,
|
|
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 {
|
|
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[
|
|
31
|
+
invalid?: import("../../styled-system/recipes").TextBoxSlotRecipeVariant['invalid'];
|
|
32
32
|
disabled?: boolean;
|
|
33
|
-
multiple?: import("react").ComponentPropsWithoutRef<
|
|
34
|
-
accept?: import("react").ComponentPropsWithoutRef<
|
|
35
|
-
clearButtonProps?: Pick<import("..").IconButtonProps,
|
|
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 [
|
|
85
|
-
readonly DOCUMENTS: readonly [
|
|
86
|
-
readonly ARCHIVES: readonly [
|
|
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<
|
|
8
|
+
inputProps?: Omit<import("react").ComponentPropsWithoutRef<'input'>, 'type'>;
|
|
9
9
|
className?: string;
|
|
10
10
|
enableClearButton?: boolean;
|
|
11
11
|
clearButtonProps?: {
|
|
12
|
-
|
|
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:
|
|
15
|
-
tag:
|
|
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[
|
|
14
|
+
messageType?: import("../../styled-system/recipes").HelpMessageRecipeVariant['messageType'];
|
|
15
15
|
showIcon?: boolean;
|
|
16
|
-
messageAlign?:
|
|
17
|
-
children?: import("..").TypographyProps[
|
|
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[
|
|
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">, "
|
|
8
|
-
size?: import("../../styled-system/recipes").IconButtonSlotRecipeVariant[
|
|
9
|
-
} & import("react").RefAttributes<
|
|
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[
|
|
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">, "
|
|
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[
|
|
6
|
+
size?: import("../../styled-system/recipes").KeyValueSlotRecipeVariant['size'];
|
|
7
7
|
keyItem: React.ReactNode;
|
|
8
8
|
valueItem: React.ReactNode;
|
|
9
|
-
gridTemplateColumns?: import("react").CSSProperties[
|
|
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 {
|
|
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 {
|
|
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>[
|
|
25
|
+
updateTemporaryValues: (values: MultipleSelectBoxOption<T, AdditionalProps>['value'][]) => void;
|
|
26
26
|
openWithSelectedOptions: (selectedOptions: MultipleSelectBoxOption<T, AdditionalProps>[]) => void;
|
|
27
27
|
initializeTemporaryValues: () => void;
|
|
28
28
|
handleCancelButtonClick: () => void;
|
|
@@ -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>[
|
|
31
|
+
updateSelectedValues: (newValues: MultipleSelectBoxOption<T, AdditionalProps>['value'][]) => void;
|
|
32
32
|
updateSelectedOptions: (newOptions: MultipleSelectBoxOption<T, AdditionalProps>[]) => void;
|
|
33
33
|
};
|
|
34
34
|
export {};
|
|
@@ -8,5 +8,5 @@ import React from 'react';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const NumberBox: React.ForwardRefExoticComponent<Omit<import("..").TextBoxProps, "onChange" | "prefixSlot" | "suffixSlot"> & {
|
|
10
10
|
onChange?: (value: string) => void;
|
|
11
|
-
textAlign?:
|
|
11
|
+
textAlign?: 'left' | 'right';
|
|
12
12
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { itemsCountSlotRecipe } from '../../../styled-system/recipes';
|
|
3
3
|
import { Typography } from '../../Typography';
|
|
4
4
|
import { cx } from '../../../styled-system/css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState, useRef, } from 'react';
|
|
4
4
|
import { getOverflowAncestors } from '@floating-ui/react-dom';
|
|
5
5
|
import { PopoverContextProvider, usePopoverContext } from './PopoverContext';
|
|
@@ -10,4 +10,4 @@ export declare const RadioButton: import("react").ForwardRefExoticComponent<{
|
|
|
10
10
|
label?: string;
|
|
11
11
|
checked?: boolean | undefined;
|
|
12
12
|
disabled?: boolean | undefined;
|
|
13
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
13
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "checked" | "disabled"> & import("react").RefAttributes<HTMLInputElement>>;
|