@mw-kit/mw-ui 1.6.15 → 1.7.2
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/Filters/AppliedFilters/components/Menu/index.d.ts +4 -0
- package/dist/components/Filters/AppliedFilters/components/Menu/interfaces.d.ts +5 -0
- package/dist/components/Filters/AppliedFilters/components/Menu/styles.d.ts +5 -0
- package/dist/components/Filters/AppliedFilters/index.d.ts +3 -1
- package/dist/components/Filters/AppliedFilters/interfaces.d.ts +3 -3
- package/dist/components/Filters/Button/index.d.ts +4 -0
- package/dist/components/Filters/Button/interfaces.d.ts +5 -0
- package/dist/components/Filters/Button/styles.d.ts +1 -0
- package/dist/components/Filters/Filters/components/Menu/index.d.ts +4 -0
- package/dist/components/Filters/Filters/components/Menu/interfaces.d.ts +5 -0
- package/dist/components/Filters/Filters/index.d.ts +3 -1
- package/dist/components/Filters/Filters/interfaces.d.ts +3 -3
- package/dist/components/Filters/styles.d.ts +1 -0
- package/dist/components/Input/components/DateIntervalPicker/functions.d.ts +3 -3
- package/dist/components/Input/components/DateIntervalPicker/interfaces.d.ts +2 -1
- package/dist/components/Input/components/DateTime/index.d.ts +4 -0
- package/dist/components/Input/components/DateTime/interfaces.d.ts +10 -0
- package/dist/components/Input/components/DateTime/styles.d.ts +1 -0
- package/dist/components/Input/components/Input/interfaces.d.ts +1 -4
- package/dist/components/Input/components/Tags/components/Input/index.d.ts +4 -0
- package/dist/components/Input/components/Tags/components/Input/interfaces.d.ts +12 -0
- package/dist/components/Input/components/Tags/components/Input/styles.d.ts +2 -0
- package/dist/components/Input/components/Tags/components/Label/index.d.ts +4 -0
- package/dist/components/Input/components/Tags/components/Label/interfaces.d.ts +4 -0
- package/dist/components/Input/components/Tags/components/Label/styles.d.ts +2 -0
- package/dist/components/Input/components/Tags/components/Tag/index.d.ts +4 -0
- package/dist/components/Input/components/Tags/components/Tag/interfaces.d.ts +5 -0
- package/dist/components/Input/components/Tags/components/Tag/styles.d.ts +2 -0
- package/dist/components/Input/components/Tags/components/index.d.ts +3 -0
- package/dist/components/Input/components/Tags/index.d.ts +4 -0
- package/dist/components/Input/components/Tags/interfaces.d.ts +25 -0
- package/dist/components/Input/components/Tags/styles.d.ts +3 -0
- package/dist/components/Input/{components/Input/functions.d.ts → functions.d.ts} +0 -0
- package/dist/components/Input/index.d.ts +4 -2
- package/dist/components/Input/interfaces.d.ts +4 -0
- package/dist/index.js +821 -192
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +821 -192
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/Filters/AppliedFilters/styles.d.ts +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("../../../../AbsoluteContainer/interfaces").AbsoluteContainerProps, "children" | "dir" | "slot" | "style" | "title" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "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"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const Title: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const Item: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AppliedFiltersProps } from './interfaces';
|
|
3
|
-
declare const AppliedFilters: (props: AppliedFiltersProps) => JSX.Element
|
|
3
|
+
declare const AppliedFilters: ((props: AppliedFiltersProps) => JSX.Element) & {
|
|
4
|
+
Menu: (props: import("./components/Menu/interfaces").AppliedFiltersMenuProps) => JSX.Element;
|
|
5
|
+
};
|
|
4
6
|
export default AppliedFilters;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button/interfaces';
|
|
2
3
|
import { AppliedFilter } from '../interfaces';
|
|
3
|
-
export interface
|
|
4
|
-
open: boolean;
|
|
5
|
-
close: () => void;
|
|
4
|
+
export interface Common {
|
|
6
5
|
appliedFilters: [AppliedFilter[], React.Dispatch<React.SetStateAction<AppliedFilter[]>>];
|
|
7
6
|
}
|
|
7
|
+
export declare type AppliedFiltersProps = Common & Omit<ButtonProps, 'getContent'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FiltersProps } from './interfaces';
|
|
3
|
-
declare const Filters: (props: FiltersProps) => JSX.Element
|
|
3
|
+
declare const Filters: ((props: FiltersProps) => JSX.Element) & {
|
|
4
|
+
Menu: (props: import("./components/Menu/interfaces").FiltersMenuProps) => JSX.Element;
|
|
5
|
+
};
|
|
4
6
|
export default Filters;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ElementOrString, SpacingOrZero } from '../../../interfaces';
|
|
3
|
+
import { ButtonProps } from '../Button/interfaces';
|
|
3
4
|
import { AppliedFilter } from '../interfaces';
|
|
4
5
|
export interface Label {
|
|
5
6
|
text: string;
|
|
@@ -37,10 +38,9 @@ export interface Filter {
|
|
|
37
38
|
/** espacamento das opcoes deste filtro, default s1 */
|
|
38
39
|
optionSpacing?: SpacingOrZero;
|
|
39
40
|
}
|
|
40
|
-
export interface
|
|
41
|
-
open: boolean;
|
|
41
|
+
export interface Common {
|
|
42
42
|
items: Filter[];
|
|
43
|
-
close: () => void;
|
|
44
43
|
setAppliedFilters: React.Dispatch<React.SetStateAction<AppliedFilter[]>>;
|
|
45
44
|
}
|
|
45
|
+
export declare type FiltersProps = Common & Omit<ButtonProps, 'getContent'>;
|
|
46
46
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IntervalType, IntervalTypes } from './interfaces';
|
|
2
|
-
export declare const validate: (value: [Date, Date], min?: Date, max?: Date) => boolean;
|
|
2
|
+
export declare const validate: (value: [Date | null, Date | null], min?: Date, max?: Date) => boolean;
|
|
3
3
|
export declare const intervalTypes: IntervalTypes;
|
|
4
|
-
export declare const identify: (value: [Date, Date]) => IntervalType;
|
|
5
|
-
export declare const parse: (value: [string, string]) => [Date, Date];
|
|
4
|
+
export declare const identify: (value: [Date | null, Date | null]) => IntervalType;
|
|
5
|
+
export declare const parse: (value: [string, string]) => [Date | null, Date | null];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InputProps } from '../Input/interfaces';
|
|
2
|
+
export declare type IntervalType = 'day' | 'week' | 'month' | 'custom';
|
|
2
3
|
export interface DateIntervalPickerProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'htmlDisabled' | 'clearable' | 'onPressEnter' | 'min' | 'max' | 'setValue'> {
|
|
3
4
|
type: 'date-interval-picker';
|
|
4
5
|
value: [string, string];
|
|
@@ -6,6 +7,7 @@ export interface DateIntervalPickerProps extends Omit<InputProps, 'type' | 'mask
|
|
|
6
7
|
getLabel?: (value: [string, string]) => string;
|
|
7
8
|
max?: Date;
|
|
8
9
|
min?: Date;
|
|
10
|
+
only?: IntervalType;
|
|
9
11
|
}
|
|
10
12
|
export interface Variation {
|
|
11
13
|
label: (prev: [Date, Date]) => string;
|
|
@@ -17,7 +19,6 @@ export interface Variation {
|
|
|
17
19
|
max?: Date;
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
|
-
export declare type IntervalType = 'day' | 'week' | 'month' | 'custom';
|
|
21
22
|
export declare type IntervalTypes = {
|
|
22
23
|
[key in IntervalType]: Variation;
|
|
23
24
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputProps } from '../Input/interfaces';
|
|
2
|
+
export interface DateTimeProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'min' | 'max'> {
|
|
3
|
+
type: 'datetime';
|
|
4
|
+
picker?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
max?: Date;
|
|
7
|
+
min?: Date;
|
|
8
|
+
seconds?: boolean;
|
|
9
|
+
step?: 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second';
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RelativeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ElementOrString } from '../../../../interfaces';
|
|
3
3
|
import { IconProps } from '../../../Icon/interfaces';
|
|
4
|
-
|
|
5
|
-
export declare type MaskReplace = [RegExp, string];
|
|
6
|
-
export declare type MaskReplaceArray = MaskReplace[];
|
|
7
|
-
export declare type Mask = MaskFunction | MaskReplace | MaskReplaceArray;
|
|
4
|
+
import { Mask } from '../../interfaces';
|
|
8
5
|
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
9
6
|
label?: ElementOrString;
|
|
10
7
|
invalid?: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Mask } from '../../../../interfaces';
|
|
3
|
+
export interface StyledInputProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
minWidth?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface InputProps extends StyledInputProps {
|
|
9
|
+
mask?: Mask;
|
|
10
|
+
value: [string, (value: string) => void];
|
|
11
|
+
onPressEnter: React.KeyboardEventHandler<HTMLInputElement>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ElementOrString } from '../../../../interfaces';
|
|
3
|
+
import { InputProps } from './components/Input/interfaces';
|
|
4
|
+
export interface LabelProps extends React.HTMLAttributes<HTMLLabelElement> {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
width?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TagContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
invalid?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface TagsProps {
|
|
12
|
+
type: 'tags';
|
|
13
|
+
label?: ElementOrString;
|
|
14
|
+
width?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
invalid?: boolean;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
input?: Omit<InputProps, 'onPressEnter' | 'invalid'>;
|
|
20
|
+
value: string[];
|
|
21
|
+
setValue: (value: string[]) => void;
|
|
22
|
+
validate?: (value: string) => boolean;
|
|
23
|
+
onBeforeAdd?: (value: string) => string;
|
|
24
|
+
unique?: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { LabelProps, TagContainerProps } from './interfaces';
|
|
2
|
+
export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, LabelProps, never>;
|
|
3
|
+
export declare const TagContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TagContainerProps, never>;
|
|
File without changes
|
|
@@ -11,8 +11,10 @@ import { SwitchProps } from './components/Switch/interfaces';
|
|
|
11
11
|
import { RangeProps } from './components/Range/interfaces';
|
|
12
12
|
import { RadioButtonProps } from './components/RadioButton/interfaces';
|
|
13
13
|
import { DateIntervalPickerProps } from './components/DateIntervalPicker/interfaces';
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
import { TagsProps } from './components/Tags/interfaces';
|
|
15
|
+
import { DateTimeProps } from './components/DateTime/interfaces';
|
|
16
|
+
export declare type Props = DateProps | TimeProps | CheckboxProps | SelectProps | PasswordProps | PhoneProps | DatePickerProps | RangeProps | DefaultInputProps | SwitchProps | RadioButtonProps | DateIntervalPickerProps | TagsProps | DateTimeProps;
|
|
17
|
+
declare const Input: React.ForwardRefExoticComponent<(TimeProps & React.RefAttributes<HTMLInputElement>) | (DefaultInputProps & React.RefAttributes<HTMLInputElement>) | (DateProps & React.RefAttributes<HTMLInputElement>) | (CheckboxProps & React.RefAttributes<HTMLInputElement>) | (import("./components/Select/hooks/Select/interfaces").SelectProps & React.RefAttributes<HTMLInputElement>) | (import("./components/Select/hooks/SelectMultiple/interfaces").SelectProps & React.RefAttributes<HTMLInputElement>) | (PasswordProps & React.RefAttributes<HTMLInputElement>) | (PhoneProps & React.RefAttributes<HTMLInputElement>) | (DatePickerProps & React.RefAttributes<HTMLInputElement>) | (RangeProps & React.RefAttributes<HTMLInputElement>) | (SwitchProps & React.RefAttributes<HTMLInputElement>) | (RadioButtonProps & React.RefAttributes<HTMLInputElement>) | (DateIntervalPickerProps & React.RefAttributes<HTMLInputElement>) | (TagsProps & React.RefAttributes<HTMLInputElement>) | (DateTimeProps & React.RefAttributes<HTMLInputElement>)> & {
|
|
16
18
|
useDefaultDateIntervalState: () => [string, string];
|
|
17
19
|
getPhoneDetails: (phone: string) => import("./components/Phone/interfaces").Details | null;
|
|
18
20
|
};
|