@mw-kit/mw-ui 1.7.64 → 1.7.66

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" | "beforeFluid" | "after" | "afterFluid" | "emptyContent" | "innerContent" | "scrollSpacing" | "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' | 'beforeFluid' | 'after' | 'afterFluid'> & {
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,13 @@ 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' | 'beforeFluid' | 'after' | 'afterFluid'> {
28
29
  open: boolean;
29
30
  close: () => void;
30
31
  options: Option[];
31
32
  emptyContent?: ReactNode;
32
- loading?: boolean;
33
- innerContent?: ReactNode;
34
- scrollSpacing?: SpacingOrZero | Spacings;
35
- onScrollEnd?: () => void;
36
- before?: ReactNode;
37
- after?: ReactNode;
33
+ innerContent?: ScrollContainerProps['inner'];
34
+ scrollSpacing?: ScrollContainerProps['spacing'];
38
35
  }
39
36
  export declare type ContainerProps = CommonProps;
40
37
  export declare type MenuInterface = (props: MenuProps, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ScrollContainerProps } from './interfaces';
3
- declare const ScrollContainer: (props: ScrollContainerProps) => JSX.Element;
3
+ export declare const BeforeAfterContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ declare const ScrollContainer: React.ForwardRefExoticComponent<ScrollContainerProps & React.RefAttributes<HTMLDivElement>>;
4
5
  export default ScrollContainer;
@@ -7,7 +7,9 @@ interface Common extends React.HTMLAttributes<HTMLDivElement> {
7
7
  export interface ScrollContainerProps extends Common {
8
8
  onScrollEnd?: (event: React.UIEvent<HTMLDivElement, UIEvent>) => void | Promise<void>;
9
9
  before?: ReactNode;
10
+ beforeFluid?: true;
10
11
  after?: ReactNode;
12
+ afterFluid?: true;
11
13
  inner?: ReactNode;
12
14
  loading?: boolean;
13
15
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { SpacingOrZero, Spacings } from '../../interfaces';
2
3
  export declare type TabProps = {
3
4
  /**
4
5
  * Define the tab label.
@@ -9,7 +10,7 @@ export declare type TabProps = {
9
10
  */
10
11
  component?: JSX.Element;
11
12
  };
12
- export interface TabsProps {
13
+ export interface TabsProps extends React.HTMLAttributes<HTMLDivElement> {
13
14
  /**
14
15
  * Array with available tabs.
15
16
  */
@@ -38,6 +39,10 @@ export interface TabsProps {
38
39
  * border bottom style
39
40
  */
40
41
  delimiter?: 'blue' | 'grey' | 'none';
42
+ /**
43
+ * container spacing
44
+ */
45
+ spacing?: SpacingOrZero | Spacings;
41
46
  }
42
47
  export interface StyledTabsProps {
43
48
  /**
@@ -3,6 +3,7 @@ export declare const Container: import("styled-components").StyledComponent<"div
3
3
  declare type TabsContainerProps = {
4
4
  $internal?: TabsProps['internal'];
5
5
  $delimiter?: TabsProps['delimiter'];
6
+ $spacing?: TabsProps['spacing'];
6
7
  };
7
8
  export declare const Tabs: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, TabsContainerProps, never>;
8
9
  export declare const Tab: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, StyledTabsProps, never>;