@mw-kit/mw-ui 1.7.65 → 1.7.67

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" | "emptyContent" | "innerContent" | "scrollSpacing" | "onScrollEnd" | "after" | "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;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { ReactNode, GenericObject, SpacingOrZero, Spacings } from '../../../../../interfaces';
2
+ import { ReactNode, GenericObject } from '../../../../../interfaces';
3
3
  import { Position } from '../../../../AbsoluteContainer/interfaces';
4
- import { Option as MenuOption } from '../../../../Menu/interfaces';
4
+ import { MenuProps, Option as MenuOption } from '../../../../Menu/interfaces';
5
5
  import { InputProps } from '../../Input/interfaces';
6
6
  export declare type SelectOptionLabelProps<T extends GenericObject = GenericObject> = {
7
7
  value: string;
@@ -48,10 +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: {
52
- itemSpacing?: SpacingOrZero | Spacings;
53
- before?: JSX.Element;
54
- after?: JSX.Element;
51
+ menu: Pick<MenuProps, 'itemSpacing' | 'before' | 'after'> & {
55
52
  maxHeight: string;
56
53
  };
57
54
  getContext: (base: BaseContext, children: JSX.Element) => JSX.Element;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { PopupProps } from 'semantic-ui-react';
3
3
  import { Borders, ReactNode, GenericObject, SpacingOrZero, Spacings } from '../../interfaces';
4
4
  import { AbsoluteContainerProps } from '../AbsoluteContainer/interfaces';
5
+ import { ScrollContainerProps } from '../ScrollContainer/interfaces';
5
6
  /** funcao que fara a validacao da regra, deve retornar true caso passe na validacao, e false ou o conteudo do popup caso contrario */
6
7
  declare type Rule<T extends GenericObject = GenericObject> = (index: number, data: T) => boolean | Omit<PopupProps, 'trigger'>;
7
8
  export declare type MenuOptionLabelProps<T extends GenericObject = GenericObject> = {
@@ -24,17 +25,12 @@ export interface CommonProps extends Omit<AbsoluteContainerProps, 'children'> {
24
25
  itemSpacing?: SpacingOrZero | Spacings;
25
26
  children?: JSX.Element | (string & (string | JSX.Element | undefined)) | null;
26
27
  }
27
- export interface MenuProps extends CommonProps {
28
+ export interface MenuProps extends CommonProps, Pick<ScrollContainerProps, 'onScrollEnd' | 'loading' | 'before' | 'after'> {
28
29
  open: boolean;
29
30
  close: () => void;
30
31
  options: Option[];
32
+ scrollSpacing?: ScrollContainerProps['spacing'];
31
33
  emptyContent?: ReactNode;
32
- loading?: boolean;
33
- innerContent?: ReactNode;
34
- scrollSpacing?: SpacingOrZero | Spacings;
35
- onScrollEnd?: () => void;
36
- before?: ReactNode;
37
- after?: ReactNode;
38
34
  }
39
35
  export declare type ContainerProps = CommonProps;
40
36
  export declare type MenuInterface = (props: MenuProps, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ScrollContainerProps } from './interfaces';
3
- declare const ScrollContainer: (props: ScrollContainerProps) => JSX.Element;
3
+ declare const ScrollContainer: React.ForwardRefExoticComponent<ScrollContainerProps & React.RefAttributes<HTMLDivElement>>;
4
4
  export default ScrollContainer;
@@ -1,15 +1,32 @@
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
5
  spacing?: SpacingOrZero | Omit<Spacings, 'right'>;
6
- }
6
+ };
7
+ export declare type OverflowContainerProps = React.HTMLAttributes<HTMLDivElement> & {
8
+ $height?: Common['height'];
9
+ $spacing?: Common['spacing'];
10
+ };
11
+ export declare type AfterBefore = React.HTMLAttributes<HTMLDivElement> & {
12
+ fluid?: true;
13
+ background?: Parameters<ThemeInterface['getColor']> | Parameters<ThemeInterface['getColor']>[0];
14
+ spacing?: SpacingOrZero | Omit<Spacings, 'right'>;
15
+ children: ReactNode;
16
+ };
17
+ export declare type StyledAfterBefore = {
18
+ $fluid?: AfterBefore['fluid'];
19
+ $background?: AfterBefore['background'];
20
+ $spacing?: AfterBefore['spacing'];
21
+ };
7
22
  export interface ScrollContainerProps extends Common {
8
23
  onScrollEnd?: (event: React.UIEvent<HTMLDivElement, UIEvent>) => void | Promise<void>;
9
- before?: ReactNode;
10
- after?: ReactNode;
11
- inner?: ReactNode;
24
+ before?: ReactNode | AfterBefore;
25
+ after?: ReactNode | AfterBefore;
26
+ empty?: {
27
+ empty: boolean;
28
+ content: ReactNode;
29
+ };
12
30
  loading?: boolean;
13
31
  }
14
- export declare type OverflowContainerProps = Common;
15
32
  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';