@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.
@@ -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" | "beforeFluid" | "after" | "afterFluid" | "emptyContent" | "innerContent" | "scrollSpacing" | "containerSpacing" | "itemSpacing"> & {
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' | 'beforeFluid' | 'after' | 'afterFluid'> & {
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' | 'beforeFluid' | 'after' | 'afterFluid'> {
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
- interface Common extends React.HTMLAttributes<HTMLDivElement> {
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
- beforeFluid?: true;
11
- after?: ReactNode;
12
- afterFluid?: true;
13
- inner?: ReactNode;
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 {};
@@ -0,0 +1,3 @@
1
+ import { StyledAfterBefore } from '../../interfaces';
2
+ declare const BeforeAfterContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledAfterBefore, never>;
3
+ export default BeforeAfterContainer;
@@ -0,0 +1,2 @@
1
+ declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export default Container;
@@ -0,0 +1,3 @@
1
+ import { OverflowContainerProps } from '../../interfaces';
2
+ declare const OverflowContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, OverflowContainerProps, never>;
3
+ export default OverflowContainer;
@@ -0,0 +1,2 @@
1
+ declare const RelativeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export default RelativeContainer;
@@ -0,0 +1,4 @@
1
+ export { default as BeforeAfterContainer } from './BeforeAfterContainer';
2
+ export { default as Container } from './Container';
3
+ export { default as OverflowContainer } from './OverflowContainer';
4
+ export { default as RelativeContainer } from './RelativeContainer';