@mezzanine-ui/react 0.14.8 → 0.14.9
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/Accordion/Accordion.d.ts +0 -1
- package/Accordion/AccordionControlContext.d.ts +0 -1
- package/Accordion/AccordionDetails.d.ts +0 -1
- package/AppBar/AppBarBrand.d.ts +0 -1
- package/AppBar/AppBarMain.d.ts +0 -1
- package/AppBar/AppBarSupport.d.ts +0 -1
- package/Badge/Badge.d.ts +0 -1
- package/Badge/BadgeContainer.d.ts +0 -1
- package/Button/Button.d.ts +0 -1
- package/Button/Button.js +1 -2
- package/Button/IconButton.d.ts +1 -1
- package/Button/IconButton.js +1 -2
- package/Button/index.js +2 -2
- package/Calendar/Calendar.d.ts +0 -1
- package/Calendar/CalendarCell.d.ts +1 -2
- package/Calendar/CalendarContext.d.ts +1 -1
- package/Calendar/CalendarControls.d.ts +1 -2
- package/Calendar/CalendarDayOfWeek.d.ts +1 -2
- package/Calendar/CalendarDays.d.ts +1 -2
- package/Calendar/CalendarMonths.d.ts +1 -2
- package/Calendar/CalendarWeeks.d.ts +1 -2
- package/Calendar/CalendarYears.d.ts +1 -2
- package/Calendar/useCalendarControls.d.ts +0 -1
- package/Checkbox/CheckboxGroupContext.d.ts +0 -1
- package/DatePicker/DatePicker.d.ts +0 -1
- package/DateRangePicker/DateRangePicker.d.ts +0 -1
- package/DateRangePicker/useDateRangePickerValue.d.ts +3 -3
- package/DateTimePicker/DateTimePicker.d.ts +0 -1
- package/DateTimePicker/DateTimePickerPanel.d.ts +0 -1
- package/Drawer/Drawer.d.ts +0 -1
- package/Form/FormControlContext.d.ts +0 -1
- package/Form/FormField.d.ts +0 -1
- package/Form/FormMessage.d.ts +0 -1
- package/Form/useCheckboxControlValue.d.ts +1 -1
- package/Form/useControlValueState.d.ts +0 -1
- package/Form/useCustomControlValue.d.ts +1 -1
- package/Form/useInputControlValue.d.ts +1 -1
- package/Form/useInputWithClearControlValue.d.ts +1 -1
- package/Form/useRadioControlValue.d.ts +1 -1
- package/Form/useSwitchControlValue.d.ts +1 -1
- package/Icon/Icon.d.ts +0 -1
- package/Loading/Loading.d.ts +0 -1
- package/Menu/Menu.d.ts +0 -1
- package/Menu/MenuDivider.d.ts +0 -1
- package/Menu/MenuItem.d.ts +0 -1
- package/Message/Message.js +2 -2
- package/Modal/Modal.d.ts +0 -1
- package/Modal/ModalActions.d.ts +0 -1
- package/Modal/ModalBody.d.ts +0 -1
- package/Modal/ModalControl.d.ts +0 -1
- package/Modal/ModalFooter.d.ts +0 -1
- package/Modal/ModalHeader.d.ts +0 -1
- package/Modal/useModalContainer.d.ts +1 -2
- package/Navigation/NavigationContext.d.ts +0 -1
- package/Notifier/NotifierManager.d.ts +1 -1
- package/Pagination/Pagination.d.ts +1 -1
- package/Pagination/PaginationJumper.d.ts +1 -1
- package/Pagination/PaginationPageSize.d.ts +1 -1
- package/Progress/Progress.d.ts +0 -1
- package/Provider/context.d.ts +0 -1
- package/Radio/RadioGroupContext.d.ts +0 -1
- package/Select/AutoComplete.d.ts +0 -1
- package/Select/Option.d.ts +0 -1
- package/Select/Select.d.ts +0 -1
- package/Select/SelectControlContext.d.ts +0 -1
- package/Select/TreeSelect.d.ts +0 -1
- package/Skeleton/Skeleton.d.ts +0 -1
- package/Slider/useSlider.js +1 -1
- package/Stepper/Step.d.ts +0 -1
- package/Table/Table.js +1 -1
- package/Table/TableBody.d.ts +0 -1
- package/Table/TableBody.js +1 -2
- package/Table/TableBodyRow.d.ts +0 -1
- package/Table/TableBodyRow.js +5 -5
- package/Table/TableCell.d.ts +0 -1
- package/Table/TableExpandedTable.d.ts +0 -1
- package/Table/TableExpandedTable.js +1 -2
- package/Table/TableHeader.d.ts +0 -1
- package/Table/TableHeader.js +1 -2
- package/Table/draggable/useTableDraggable.d.ts +1 -1
- package/Table/editable/TableEditRenderWrapper.d.ts +1 -2
- package/Table/expandable/TableExpandable.d.ts +0 -1
- package/Table/expandable/TableExpandable.js +1 -2
- package/Table/pagination/TablePagination.js +1 -2
- package/Table/pagination/useTablePagination.d.ts +1 -1
- package/Table/rowSelection/TableRowSelection.d.ts +0 -1
- package/Table/rowSelection/TableRowSelection.js +1 -2
- package/Table/rowSelection/useTableRowSelection.d.ts +1 -1
- package/Table/sorting/TableSortingIcon.d.ts +0 -1
- package/Table/sorting/TableSortingIcon.js +1 -2
- package/Table/sorting/useTableSorting.d.ts +1 -2
- package/Table/useTableFetchMore.d.ts +1 -1
- package/Table/useTableLoading.d.ts +1 -1
- package/Table/useTableScroll.d.ts +126 -114
- package/Tabs/Tab.d.ts +0 -1
- package/TimePicker/TimePicker.d.ts +0 -1
- package/TimePicker/TimePickerPanel.d.ts +0 -1
- package/Tooltip/useDelayMouseEnterLeave.d.ts +0 -1
- package/Transition/Collapse.d.ts +0 -1
- package/Transition/Fade.d.ts +0 -1
- package/Transition/Grow.d.ts +0 -1
- package/Transition/SlideFade.d.ts +0 -1
- package/Transition/Transition.d.ts +1 -1
- package/Transition/Zoom.d.ts +0 -1
- package/Transition/useAutoTransitionDuration.d.ts +0 -1
- package/Tree/TreeNode.d.ts +0 -1
- package/Tree/TreeNodeList.d.ts +0 -1
- package/Tree/useTreeExpandedValue.d.ts +0 -1
- package/Typography/Typography.js +1 -2
- package/Upload/UploadButton.d.ts +0 -1
- package/Upload/UploadInput.d.ts +0 -1
- package/Upload/UploadInput.js +1 -2
- package/Upload/UploadPictureWallItem.d.ts +1 -1
- package/Upload/UploadPictureWallItem.js +1 -2
- package/_internal/InputTriggerPopper/InputTriggerPopper.d.ts +0 -1
- package/_internal/SlideFadeOverlay/SlideFadeOverlay.d.ts +0 -1
- package/package.json +13 -14
package/Accordion/Accordion.d.ts
CHANGED
package/AppBar/AppBarBrand.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
3
2
|
export type AppBarBrandProps = NativeElementPropsWithoutKeyAndRef<'div'>;
|
|
4
3
|
declare const AppBarBrand: import("react").ForwardRefExoticComponent<AppBarBrandProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/AppBar/AppBarMain.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
3
2
|
export type AppBarMainProps = NativeElementPropsWithoutKeyAndRef<'div'>;
|
|
4
3
|
declare const AppBarMain: import("react").ForwardRefExoticComponent<AppBarMainProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
3
2
|
export type AppBarSupportProps = NativeElementPropsWithoutKeyAndRef<'div'>;
|
|
4
3
|
declare const AppBarSupport: import("react").ForwardRefExoticComponent<AppBarSupportProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/Badge/Badge.d.ts
CHANGED
package/Button/Button.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentOverridableForwardRefComponentPropsFactory } from '../utils/jsx-types';
|
|
3
2
|
import { ButtonComponent, ButtonPropsBase } from './typings';
|
|
4
3
|
export type ButtonProps<C extends ButtonComponent = 'button'> = ComponentOverridableForwardRefComponentPropsFactory<ButtonComponent, C, ButtonPropsBase>;
|
package/Button/Button.js
CHANGED
|
@@ -35,6 +35,5 @@ const Button = forwardRef(function Button(props, ref) {
|
|
|
35
35
|
}
|
|
36
36
|
}, children: [prefix, children && jsx("span", { className: buttonClasses.label, children: children }), suffix] }));
|
|
37
37
|
});
|
|
38
|
-
var Button$1 = Button;
|
|
39
38
|
|
|
40
|
-
export { Button
|
|
39
|
+
export { Button as default };
|
package/Button/IconButton.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type IconButtonProps<C extends ButtonComponent = 'button'> = ComponentOve
|
|
|
10
10
|
/**
|
|
11
11
|
* The react component for `mezzanine` button only has icon.
|
|
12
12
|
*/
|
|
13
|
-
declare const IconButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("../utils/jsx-types").ComponentPropsWithoutKeyAndRef<"button">, "
|
|
13
|
+
declare const IconButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("../utils/jsx-types").ComponentPropsWithoutKeyAndRef<"button">, "size" | "color" | "children" | "disabled" | "danger" | "loading" | "variant"> & Omit<ButtonPropsBase, "prefix" | "suffix"> & {
|
|
14
14
|
/**
|
|
15
15
|
* The icon element.
|
|
16
16
|
*/
|
package/Button/IconButton.js
CHANGED
|
@@ -9,6 +9,5 @@ const IconButton = forwardRef(function IconButton(props, ref) {
|
|
|
9
9
|
const { children, ...rest } = props;
|
|
10
10
|
return (jsx(Button, { ...rest, ref: ref, prefix: children }));
|
|
11
11
|
});
|
|
12
|
-
var _IconButton = IconButton;
|
|
13
12
|
|
|
14
|
-
export {
|
|
13
|
+
export { IconButton as default };
|
package/Button/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Button from './Button.js';
|
|
2
|
-
import
|
|
2
|
+
import IconButton$1 from './IconButton.js';
|
|
3
3
|
export { default as ButtonGroup } from './ButtonGroup.js';
|
|
4
4
|
|
|
5
|
-
const IconButton =
|
|
5
|
+
const IconButton = IconButton$1;
|
|
6
6
|
|
|
7
7
|
export { IconButton, Button as default };
|
package/Calendar/Calendar.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
3
2
|
export interface CalendarCellProps extends NativeElementPropsWithoutKeyAndRef<'div'> {
|
|
4
3
|
/**
|
|
@@ -18,5 +17,5 @@ export interface CalendarCellProps extends NativeElementPropsWithoutKeyAndRef<'d
|
|
|
18
17
|
* The react component for `mezzanine` calendar cell.
|
|
19
18
|
* You may use it to compose your own calendar.
|
|
20
19
|
*/
|
|
21
|
-
declare function CalendarCell(props: CalendarCellProps): JSX.Element;
|
|
20
|
+
declare function CalendarCell(props: CalendarCellProps): import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
export default CalendarCell;
|
|
@@ -18,5 +18,5 @@ export type CalendarConfigProviderProps = {
|
|
|
18
18
|
};
|
|
19
19
|
export declare const CalendarContext: import("react").Context<CalendarConfigs | undefined>;
|
|
20
20
|
export declare function useCalendarContext(): CalendarConfigs;
|
|
21
|
-
declare function CalendarConfigProvider(props: CalendarConfigProviderProps): JSX.Element;
|
|
21
|
+
declare function CalendarConfigProvider(props: CalendarConfigProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export default CalendarConfigProvider;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
3
2
|
export interface CalendarControlsProps extends Omit<NativeElementPropsWithoutKeyAndRef<'div'>, 'onClick'> {
|
|
4
3
|
/**
|
|
@@ -22,5 +21,5 @@ export interface CalendarControlsProps extends Omit<NativeElementPropsWithoutKey
|
|
|
22
21
|
* The react component for `mezzanine` calendar controls.
|
|
23
22
|
* You may use it to compose your own calendar.
|
|
24
23
|
*/
|
|
25
|
-
declare function CalendarControls(props: CalendarControlsProps): JSX.Element;
|
|
24
|
+
declare function CalendarControls(props: CalendarControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
26
25
|
export default CalendarControls;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
3
2
|
export interface CalendarDayOfWeekProps extends Omit<NativeElementPropsWithoutKeyAndRef<'div'>, 'onClick' | 'children'> {
|
|
4
3
|
/**
|
|
@@ -11,5 +10,5 @@ export interface CalendarDayOfWeekProps extends Omit<NativeElementPropsWithoutKe
|
|
|
11
10
|
* The react component for `mezzanine` calendar day of week.
|
|
12
11
|
* You may use it to compose your own calendar.
|
|
13
12
|
*/
|
|
14
|
-
declare function CalendarDayOfWeek(props: CalendarDayOfWeekProps): JSX.Element;
|
|
13
|
+
declare function CalendarDayOfWeek(props: CalendarDayOfWeekProps): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export default CalendarDayOfWeek;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DateType } from '@mezzanine-ui/core/calendar';
|
|
3
2
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
4
3
|
import { CalendarDayOfWeekProps } from './CalendarDayOfWeek';
|
|
@@ -36,5 +35,5 @@ export interface CalendarDaysProps extends Pick<CalendarDayOfWeekProps, 'display
|
|
|
36
35
|
* This component displays a monthly calendar whose month is the same as `referenceDate`.
|
|
37
36
|
* You may use it to compose your own calendar.
|
|
38
37
|
*/
|
|
39
|
-
declare function CalendarDays(props: CalendarDaysProps): JSX.Element;
|
|
38
|
+
declare function CalendarDays(props: CalendarDaysProps): import("react/jsx-runtime").JSX.Element;
|
|
40
39
|
export default CalendarDays;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DateType } from '@mezzanine-ui/core/calendar';
|
|
3
2
|
import type { CalendarYearsProps } from './CalendarYears';
|
|
4
3
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
@@ -39,5 +38,5 @@ export interface CalendarMonthsProps extends Omit<NativeElementPropsWithoutKeyAn
|
|
|
39
38
|
* This component displays a 12 months grid.
|
|
40
39
|
* You may use it to compose your own calendar.
|
|
41
40
|
*/
|
|
42
|
-
declare function CalendarMonths(props: CalendarMonthsProps): JSX.Element;
|
|
41
|
+
declare function CalendarMonths(props: CalendarMonthsProps): import("react/jsx-runtime").JSX.Element;
|
|
43
42
|
export default CalendarMonths;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DateType } from '@mezzanine-ui/core/calendar';
|
|
3
2
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
4
3
|
import { CalendarDayOfWeekProps } from './CalendarDayOfWeek';
|
|
@@ -39,5 +38,5 @@ export interface CalendarWeeksProps extends Pick<CalendarDayOfWeekProps, 'displa
|
|
|
39
38
|
* This component displays a monthly calendar whose month is the same as `referenceDate`.
|
|
40
39
|
* You may use it to compose your own calendar.
|
|
41
40
|
*/
|
|
42
|
-
declare function CalendarWeeks(props: CalendarWeeksProps): JSX.Element;
|
|
41
|
+
declare function CalendarWeeks(props: CalendarWeeksProps): import("react/jsx-runtime").JSX.Element;
|
|
43
42
|
export default CalendarWeeks;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DateType } from '@mezzanine-ui/core/calendar';
|
|
3
2
|
import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types';
|
|
4
3
|
export interface CalendarYearsProps extends Omit<NativeElementPropsWithoutKeyAndRef<'div'>, 'onClick' | 'children'> {
|
|
@@ -36,5 +35,5 @@ export interface CalendarYearsProps extends Omit<NativeElementPropsWithoutKeyAnd
|
|
|
36
35
|
* This component displays a 12 year grid.
|
|
37
36
|
* You may use it to compose your own calendar.
|
|
38
37
|
*/
|
|
39
|
-
declare function CalendarYears(props: CalendarYearsProps): JSX.Element;
|
|
38
|
+
declare function CalendarYears(props: CalendarYearsProps): import("react/jsx-runtime").JSX.Element;
|
|
40
39
|
export default CalendarYears;
|
|
@@ -13,9 +13,9 @@ export declare function useDateRangePickerValue({ format, formats, inputFromRef,
|
|
|
13
13
|
inputToValue: string;
|
|
14
14
|
onCalendarChange: (val?: DateType) => void;
|
|
15
15
|
onCalendarHover: import("react").Dispatch<import("react").SetStateAction<string | undefined>> | undefined;
|
|
16
|
-
onChange: (target?: RangePickerPickingValue
|
|
17
|
-
from: (date?: string
|
|
18
|
-
to: (date?: string
|
|
16
|
+
onChange: (target?: RangePickerPickingValue, callback?: {
|
|
17
|
+
from: (date?: string) => string | undefined;
|
|
18
|
+
to: (date?: string) => string | undefined;
|
|
19
19
|
}) => RangePickerPickingValue | undefined;
|
|
20
20
|
onClear: () => void;
|
|
21
21
|
onFromBlur: import("react").FocusEventHandler<HTMLInputElement>;
|
package/Drawer/Drawer.d.ts
CHANGED
package/Form/FormField.d.ts
CHANGED
package/Form/FormMessage.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export interface UseCheckboxControlValueProps extends UseSwitchControlValueProps
|
|
|
8
8
|
checkboxGroup?: CheckboxGroupControlContextValue;
|
|
9
9
|
value?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function useCheckboxControlValue(props: UseCheckboxControlValueProps): readonly [boolean, (event: import("react").ChangeEvent<HTMLInputElement>) =>
|
|
11
|
+
export declare function useCheckboxControlValue(props: UseCheckboxControlValueProps): readonly [boolean, (event: import("react").ChangeEvent<HTMLInputElement>) => ReturnType<ChangeEventHandler<HTMLInputElement>>];
|
|
@@ -2,4 +2,4 @@ import { UseControlValueStateProps } from './useControlValueState';
|
|
|
2
2
|
export interface UseCustomControlValueProps<V> extends UseControlValueStateProps<V> {
|
|
3
3
|
onChange?: (value: V) => void;
|
|
4
4
|
}
|
|
5
|
-
export declare function useCustomControlValue<V>(props: UseCustomControlValueProps<V>): readonly [V, (nextValue: V) => void
|
|
5
|
+
export declare function useCustomControlValue<V>(props: UseCustomControlValueProps<V>): readonly [V, (nextValue: V) => ReturnType<(nextValue: V) => void>, (a: V, b: V) => boolean];
|
|
@@ -4,4 +4,4 @@ export interface UseInputControlValueProps<E extends HTMLInputElement | HTMLText
|
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
onChange?: ChangeEventHandler<E>;
|
|
6
6
|
}
|
|
7
|
-
export declare function useInputControlValue<E extends HTMLInputElement | HTMLTextAreaElement>(props: UseInputControlValueProps<E>): readonly [string, (event: import("react").ChangeEvent<E>) =>
|
|
7
|
+
export declare function useInputControlValue<E extends HTMLInputElement | HTMLTextAreaElement>(props: UseInputControlValueProps<E>): readonly [string, (event: import("react").ChangeEvent<E>) => ReturnType<ChangeEventHandler<E>>];
|
|
@@ -3,4 +3,4 @@ import { UseInputControlValueProps } from './useInputControlValue';
|
|
|
3
3
|
export interface UseInputWithClearControlValueProps<E extends HTMLInputElement | HTMLTextAreaElement> extends UseInputControlValueProps<E> {
|
|
4
4
|
ref: RefObject<E>;
|
|
5
5
|
}
|
|
6
|
-
export declare function useInputWithClearControlValue<E extends HTMLInputElement | HTMLTextAreaElement>(props: UseInputWithClearControlValueProps<E>): readonly [string, (event: ChangeEvent<E>) =>
|
|
6
|
+
export declare function useInputWithClearControlValue<E extends HTMLInputElement | HTMLTextAreaElement>(props: UseInputWithClearControlValueProps<E>): readonly [string, (event: ChangeEvent<E>) => ReturnType<import("react").ChangeEventHandler<E>>, (event: MouseEvent) => void];
|
|
@@ -8,4 +8,4 @@ export interface UseRadioControlValueProps extends UseSwitchControlValueProps {
|
|
|
8
8
|
radioGroup?: RadioGroupControlContextValue;
|
|
9
9
|
value?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function useRadioControlValue(props: UseRadioControlValueProps): readonly [boolean, (event: import("react").ChangeEvent<HTMLInputElement>) =>
|
|
11
|
+
export declare function useRadioControlValue(props: UseRadioControlValueProps): readonly [boolean, (event: import("react").ChangeEvent<HTMLInputElement>) => ReturnType<ChangeEventHandler<HTMLInputElement>>];
|
|
@@ -4,4 +4,4 @@ export interface UseSwitchControlValueProps {
|
|
|
4
4
|
defaultChecked?: boolean;
|
|
5
5
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
6
6
|
}
|
|
7
|
-
export declare function useSwitchControlValue(props: UseSwitchControlValueProps): readonly [boolean, (event: import("react").ChangeEvent<HTMLInputElement>) =>
|
|
7
|
+
export declare function useSwitchControlValue(props: UseSwitchControlValueProps): readonly [boolean, (event: import("react").ChangeEvent<HTMLInputElement>) => ReturnType<ChangeEventHandler<HTMLInputElement>>];
|
package/Icon/Icon.d.ts
CHANGED
package/Loading/Loading.d.ts
CHANGED
package/Menu/Menu.d.ts
CHANGED
package/Menu/MenuDivider.d.ts
CHANGED
package/Menu/MenuItem.d.ts
CHANGED
package/Message/Message.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { useState, useEffect, createElement } from 'react';
|
|
1
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
3
|
import { messageClasses, messageIcons } from '@mezzanine-ui/core/message';
|
|
3
|
-
import { useState, useEffect } from 'react';
|
|
4
4
|
import SlideFade from '../Transition/SlideFade.js';
|
|
5
5
|
import Icon from '../Icon/Icon.js';
|
|
6
6
|
import { createNotifier } from '../Notifier/createNotifier.js';
|
|
@@ -36,7 +36,7 @@ const Message = ((props) => {
|
|
|
36
36
|
});
|
|
37
37
|
const { add, config, destroy, remove, } = createNotifier({
|
|
38
38
|
duration: 3000,
|
|
39
|
-
render: (message) =>
|
|
39
|
+
render: (message) => createElement(Message, { ...message, key: undefined }),
|
|
40
40
|
setRoot: (root) => {
|
|
41
41
|
root === null || root === void 0 ? void 0 : root.setAttribute('class', messageClasses.root);
|
|
42
42
|
},
|
package/Modal/Modal.d.ts
CHANGED
package/Modal/ModalActions.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ConfirmActionsProps } from '../ConfirmActions';
|
|
3
2
|
import { ModalFooterProps } from './ModalFooter';
|
|
4
3
|
export interface ModalActionsProps extends ModalFooterProps, Pick<ConfirmActionsProps, 'cancelButtonProps' | 'cancelText' | 'confirmButtonProps' | 'confirmText' | 'hideCancelButton' | 'hideConfirmButton' | 'onCancel' | 'onConfirm'> {
|
package/Modal/ModalBody.d.ts
CHANGED
package/Modal/ModalControl.d.ts
CHANGED
package/Modal/ModalFooter.d.ts
CHANGED
package/Modal/ModalHeader.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SlideFadeOverlayProps } from '../_internal/SlideFadeOverlay';
|
|
3
2
|
export default function useModalContainer(): {
|
|
4
3
|
Container: import("react").ForwardRefExoticComponent<SlideFadeOverlayProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
defaultOptions: Pick<SlideFadeOverlayProps, "className" | "
|
|
4
|
+
defaultOptions: Pick<SlideFadeOverlayProps, "className" | "open" | "direction" | "disablePortal" | "disableCloseOnBackdropClick" | "hideBackdrop" | "invisibleBackdrop" | "disableCloseOnEscapeKeyDown">;
|
|
6
5
|
};
|
|
@@ -13,5 +13,5 @@ export interface NotifierManagerProps<N extends NotifierData> extends Pick<Notif
|
|
|
13
13
|
})[];
|
|
14
14
|
render: RenderNotifier<N>;
|
|
15
15
|
}
|
|
16
|
-
declare function NotifierManager<N extends NotifierData>(props: NotifierManagerProps<N>): JSX.Element;
|
|
16
|
+
declare function NotifierManager<N extends NotifierData>(props: NotifierManagerProps<N>): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default NotifierManager;
|
|
@@ -101,5 +101,5 @@ export interface PaginationProps extends Omit<DetailedHTMLProps<HTMLAttributes<H
|
|
|
101
101
|
/**
|
|
102
102
|
* The react component for `mezzanine` pagination.
|
|
103
103
|
*/
|
|
104
|
-
declare const Pagination: import("react").ForwardRefExoticComponent<
|
|
104
|
+
declare const Pagination: import("react").ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
105
105
|
export default Pagination;
|
|
@@ -34,5 +34,5 @@ export interface PaginationJumperProps extends Omit<DetailedHTMLProps<HTMLAttrib
|
|
|
34
34
|
*/
|
|
35
35
|
total?: number;
|
|
36
36
|
}
|
|
37
|
-
declare const PaginationJumper: import("react").ForwardRefExoticComponent<
|
|
37
|
+
declare const PaginationJumper: import("react").ForwardRefExoticComponent<Omit<PaginationJumperProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
38
38
|
export default PaginationJumper;
|
|
@@ -34,5 +34,5 @@ export interface PaginationPageSizeProps extends Omit<DetailedHTMLProps<HTMLAttr
|
|
|
34
34
|
*/
|
|
35
35
|
value?: number;
|
|
36
36
|
}
|
|
37
|
-
declare const PaginationPageSize: import("react").ForwardRefExoticComponent<
|
|
37
|
+
declare const PaginationPageSize: import("react").ForwardRefExoticComponent<Omit<PaginationPageSizeProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
38
38
|
export default PaginationPageSize;
|
package/Progress/Progress.d.ts
CHANGED
package/Provider/context.d.ts
CHANGED
package/Select/AutoComplete.d.ts
CHANGED
package/Select/Option.d.ts
CHANGED
package/Select/Select.d.ts
CHANGED
package/Select/TreeSelect.d.ts
CHANGED
package/Skeleton/Skeleton.d.ts
CHANGED
package/Slider/useSlider.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRangeSlider, fixRangeSliderValue, fixSingleSliderValue, toSliderCssVars, getPercentage,
|
|
1
|
+
import { isRangeSlider, fixRangeSliderValue, fixSingleSliderValue, toSliderCssVars, getPercentage, sortSliderValue, findClosetValueIndex, getSliderRect, getValueFromClientX, roundToStep } from '@mezzanine-ui/core/slider';
|
|
2
2
|
import { useRef, useState } from 'react';
|
|
3
3
|
import { useDocumentEvents } from '../hooks/useDocumentEvents.js';
|
|
4
4
|
|
package/Stepper/Step.d.ts
CHANGED