@mw-kit/mw-ui 1.7.66 → 1.7.68
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/components/Calendar/components/Basic/components/MonthPicker/index.d.ts +1 -1
- package/dist/components/Input/components/Select/hooks/interfaces.d.ts +1 -1
- package/dist/components/Menu/interfaces.d.ts +2 -3
- package/dist/components/ScrollContainer/index.d.ts +0 -1
- package/dist/components/ScrollContainer/interfaces.d.ts +26 -9
- package/dist/components/ScrollContainer/styles/BeforeAfterContainer/index.d.ts +3 -0
- package/dist/components/ScrollContainer/styles/Container/index.d.ts +2 -0
- package/dist/components/ScrollContainer/styles/OverflowContainer/index.d.ts +3 -0
- package/dist/components/ScrollContainer/styles/RelativeContainer/index.d.ts +2 -0
- package/dist/components/ScrollContainer/styles/index.d.ts +4 -0
- package/dist/index.js +447 -401
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +447 -401
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MenuProps } from '../../../../../Menu/interfaces';
|
|
3
|
-
declare const MonthPicker: (props: Pick<MenuProps, "hidden" | "children" | "dir" | "slot" | "style" | "title" | "id" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "width" | "open" | "position" | "axis" | "center" | "transition" | "height" | "maxWidth" | "maxHeight" | "references" | "zIndex" | "pointer" | "bgColor" | "loading" | "bordered" | "close" | "onScrollEnd" | "
|
|
3
|
+
declare const MonthPicker: (props: Pick<MenuProps, "hidden" | "children" | "dir" | "slot" | "style" | "title" | "id" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "width" | "open" | "position" | "axis" | "center" | "transition" | "height" | "maxWidth" | "maxHeight" | "references" | "zIndex" | "pointer" | "bgColor" | "loading" | "bordered" | "close" | "onScrollEnd" | "after" | "scrollSpacing" | "emptyContent" | "containerSpacing" | "itemSpacing"> & {
|
|
4
4
|
year: number;
|
|
5
5
|
setValue: (year: number, month: number) => void;
|
|
6
6
|
min?: Date | undefined;
|
|
@@ -48,7 +48,7 @@ export interface useSelectReturn {
|
|
|
48
48
|
options: [Option[], React.Dispatch<React.SetStateAction<Option[]>>];
|
|
49
49
|
inputContent: React.ReactNode;
|
|
50
50
|
onReset: () => void;
|
|
51
|
-
menu: Pick<MenuProps, 'itemSpacing' | 'before' | '
|
|
51
|
+
menu: Pick<MenuProps, 'itemSpacing' | 'before' | 'after'> & {
|
|
52
52
|
maxHeight: string;
|
|
53
53
|
};
|
|
54
54
|
getContext: (base: BaseContext, children: JSX.Element) => JSX.Element;
|
|
@@ -25,13 +25,12 @@ export interface CommonProps extends Omit<AbsoluteContainerProps, 'children'> {
|
|
|
25
25
|
itemSpacing?: SpacingOrZero | Spacings;
|
|
26
26
|
children?: JSX.Element | (string & (string | JSX.Element | undefined)) | null;
|
|
27
27
|
}
|
|
28
|
-
export interface MenuProps extends CommonProps, Pick<ScrollContainerProps, 'onScrollEnd' | 'loading' | 'before' | '
|
|
28
|
+
export interface MenuProps extends CommonProps, Pick<ScrollContainerProps, 'onScrollEnd' | 'loading' | 'before' | 'after'> {
|
|
29
29
|
open: boolean;
|
|
30
30
|
close: () => void;
|
|
31
31
|
options: Option[];
|
|
32
|
-
emptyContent?: ReactNode;
|
|
33
|
-
innerContent?: ScrollContainerProps['inner'];
|
|
34
32
|
scrollSpacing?: ScrollContainerProps['spacing'];
|
|
33
|
+
emptyContent?: ReactNode;
|
|
35
34
|
}
|
|
36
35
|
export declare type ContainerProps = CommonProps;
|
|
37
36
|
export declare type MenuInterface = (props: MenuProps, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ScrollContainerProps } from './interfaces';
|
|
3
|
-
export declare const BeforeAfterContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
3
|
declare const ScrollContainer: React.ForwardRefExoticComponent<ScrollContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
export default ScrollContainer;
|
|
@@ -1,17 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactNode, SpacingOrZero, Spacings } from '../../interfaces';
|
|
3
|
-
|
|
2
|
+
import { ReactNode, SpacingOrZero, Spacings, ThemeInterface } from '../../interfaces';
|
|
3
|
+
declare type Common = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
height?: string;
|
|
5
|
+
maxHeight?: string;
|
|
5
6
|
spacing?: SpacingOrZero | Omit<Spacings, 'right'>;
|
|
6
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export declare type OverflowContainerProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
$height?: Common['height'];
|
|
10
|
+
$maxHeight?: Common['maxHeight'];
|
|
11
|
+
$spacing?: Common['spacing'];
|
|
12
|
+
};
|
|
13
|
+
export declare type AfterBefore = React.HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
fluid?: true;
|
|
15
|
+
background?: Parameters<ThemeInterface['getColor']> | Parameters<ThemeInterface['getColor']>[0];
|
|
16
|
+
spacing?: SpacingOrZero | Omit<Spacings, 'right'>;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
};
|
|
19
|
+
export declare type StyledAfterBefore = {
|
|
20
|
+
$fluid?: AfterBefore['fluid'];
|
|
21
|
+
$background?: AfterBefore['background'];
|
|
22
|
+
$spacing?: AfterBefore['spacing'];
|
|
23
|
+
};
|
|
7
24
|
export interface ScrollContainerProps extends Common {
|
|
8
25
|
onScrollEnd?: (event: React.UIEvent<HTMLDivElement, UIEvent>) => void | Promise<void>;
|
|
9
|
-
before?: ReactNode;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
26
|
+
before?: ReactNode | AfterBefore;
|
|
27
|
+
after?: ReactNode | AfterBefore;
|
|
28
|
+
empty?: {
|
|
29
|
+
empty: boolean;
|
|
30
|
+
content: ReactNode;
|
|
31
|
+
};
|
|
14
32
|
loading?: boolean;
|
|
15
33
|
}
|
|
16
|
-
export declare type OverflowContainerProps = Common;
|
|
17
34
|
export {};
|