@mw-kit/mw-ui 1.3.1 → 1.4.0
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/AbsoluteContainer/index.d.ts +2 -2
- package/dist/components/AbsoluteContainer/interfaces.d.ts +1 -0
- package/dist/components/Calendar/styles.d.ts +1 -1
- package/dist/components/Filters/AppliedFilters/index.d.ts +4 -0
- package/dist/components/Filters/AppliedFilters/interfaces.d.ts +7 -0
- package/dist/components/Filters/AppliedFilters/styles.d.ts +5 -0
- package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/index.d.ts +0 -0
- package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/interfaces.d.ts +1 -1
- package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/styles.d.ts +0 -0
- package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/index.d.ts +0 -0
- package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/interfaces.d.ts +2 -1
- package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/styles.d.ts +0 -0
- package/dist/components/Filters/Filters/index.d.ts +4 -0
- package/dist/components/{FilterMenu → Filters/Filters}/interfaces.d.ts +3 -21
- package/dist/components/Filters/interfaces.d.ts +20 -0
- package/dist/components/Menu/interfaces.d.ts +2 -2
- package/dist/components/Menu/styles.d.ts +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/index.js +169 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +169 -17
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces.d.ts +1 -1
- package/dist/theme/constants.d.ts +2 -15
- package/dist/theme/interfaces.d.ts +15 -2
- package/package.json +1 -1
- package/dist/components/FilterMenu/index.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AbsoluteContainerProps } from './interfaces';
|
|
3
|
-
export declare const AbsoluteContainer:
|
|
3
|
+
export declare const AbsoluteContainer: React.ForwardRefExoticComponent<Pick<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" | "position" | "axis" | "center" | "height" | "maxWidth" | "maxHeight" | "references" | "zIndex"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default AbsoluteContainer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const AbsoluteContainer: import("styled-components").StyledComponent<(
|
|
3
|
+
export declare const AbsoluteContainer: 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" | "position" | "axis" | "center" | "height" | "maxWidth" | "maxHeight" | "references" | "zIndex"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const Footer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const MonthContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const NavBtn: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -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" | "position" | "axis" | "center" | "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>;
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ElementOrString } from '
|
|
2
|
+
import { ElementOrString } from '../../../../../../../interfaces';
|
|
3
3
|
export interface HeaderProps {
|
|
4
4
|
search: [string, React.Dispatch<React.SetStateAction<string>>];
|
|
5
5
|
title: string | {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ElementOrString, SpacingOrZero } from '
|
|
3
|
-
|
|
4
|
-
/** nome da chave do filtro */
|
|
5
|
-
name: string;
|
|
6
|
-
/** labels do filtro */
|
|
7
|
-
labels: {
|
|
8
|
-
/** label do filtro */
|
|
9
|
-
filter: {
|
|
10
|
-
text: string;
|
|
11
|
-
element: ElementOrString;
|
|
12
|
-
};
|
|
13
|
-
/** label da opcao escolhida */
|
|
14
|
-
option: {
|
|
15
|
-
text: string;
|
|
16
|
-
element: ElementOrString;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
/** valor da opcao escolhida */
|
|
20
|
-
value: string | number | boolean;
|
|
21
|
-
}
|
|
2
|
+
import { ElementOrString, SpacingOrZero } from '../../../interfaces';
|
|
3
|
+
import { AppliedFilter } from '../interfaces';
|
|
22
4
|
export interface Option {
|
|
23
5
|
/** label da opcao */
|
|
24
6
|
label: string | {
|
|
@@ -56,7 +38,7 @@ export interface Filter {
|
|
|
56
38
|
/** espacamento das opcoes deste filtro, default s1 */
|
|
57
39
|
optionSpacing?: SpacingOrZero;
|
|
58
40
|
}
|
|
59
|
-
export interface
|
|
41
|
+
export interface FiltersProps {
|
|
60
42
|
open: boolean;
|
|
61
43
|
items: Filter[];
|
|
62
44
|
close: () => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementOrString } from '../../interfaces';
|
|
2
|
+
export interface AppliedFilter {
|
|
3
|
+
/** nome da chave do filtro */
|
|
4
|
+
name: string;
|
|
5
|
+
/** labels do filtro */
|
|
6
|
+
labels: {
|
|
7
|
+
/** label do filtro */
|
|
8
|
+
filter: {
|
|
9
|
+
text: string;
|
|
10
|
+
element: ElementOrString;
|
|
11
|
+
};
|
|
12
|
+
/** label da opcao escolhida */
|
|
13
|
+
option: {
|
|
14
|
+
text: string;
|
|
15
|
+
element: ElementOrString;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/** valor da opcao escolhida */
|
|
19
|
+
value: string | number | boolean;
|
|
20
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ElementOrString, SpacingOrZero, Spacings } from '../../interfaces';
|
|
3
3
|
import { AbsoluteContainerProps } from '../AbsoluteContainer/interfaces';
|
|
4
4
|
interface CommonOption {
|
|
@@ -52,7 +52,7 @@ export interface MenuProps<T = undefined> extends CommonProps {
|
|
|
52
52
|
scrollHeight?: string;
|
|
53
53
|
}
|
|
54
54
|
export declare type ContainerProps = CommonProps;
|
|
55
|
-
export declare type MenuInterface = <T = undefined>(props: MenuProps<T>) => JSX.Element;
|
|
55
|
+
export declare type MenuInterface = <T = undefined>(props: MenuProps<T>, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
|
|
56
56
|
export interface StyledOptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
57
57
|
disabled?: boolean;
|
|
58
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { StyledOptionProps } from './interfaces';
|
|
3
3
|
export declare const Option: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledOptionProps, never>;
|
|
4
|
-
export declare const Container: import("styled-components").StyledComponent<(
|
|
4
|
+
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" | "position" | "axis" | "center" | "height" | "maxWidth" | "maxHeight" | "references" | "zIndex"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, import("./interfaces").CommonProps, never>;
|
|
5
5
|
export declare const Delimiter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -17,4 +17,5 @@ export { default as MwCalendarInterval } from './CalendarInterval';
|
|
|
17
17
|
export { default as MwPlaceholder } from './Placeholder';
|
|
18
18
|
export { default as MwZoom } from './Zoom';
|
|
19
19
|
export { default as MwEllipsisContainer } from './EllipsisContainer';
|
|
20
|
-
export { default as
|
|
20
|
+
export { default as MwFilters } from './Filters/Filters';
|
|
21
|
+
export { default as MwAppliedFilters } from './Filters/AppliedFilters';
|
package/dist/index.js
CHANGED
|
@@ -11842,7 +11842,7 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
|
11842
11842
|
};
|
|
11843
11843
|
|
|
11844
11844
|
var _templateObject$5, _templateObject2$3, _templateObject3$3, _templateObject4$3;
|
|
11845
|
-
var Container$1 = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n ", ";\n\n padding-right: calc(", " / 2);\n display: flex;\n width: 100%;\n display: flex;\n flex-direction: column;\n"])), function (_ref) {
|
|
11845
|
+
var Container$1 = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n ", ";\n\n padding-right: calc(", " / 2);\n display: flex;\n width: 100%;\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: hidden;\n"])), function (_ref) {
|
|
11846
11846
|
var theme = _ref.theme;
|
|
11847
11847
|
return theme.useTypography('p');
|
|
11848
11848
|
}, function (_ref2) {
|
|
@@ -11907,7 +11907,9 @@ var ScrollContainer = function ScrollContainer(props) {
|
|
|
11907
11907
|
_onScroll2(event);
|
|
11908
11908
|
}
|
|
11909
11909
|
})), loading && React__default.createElement(Loader, {
|
|
11910
|
-
filled: true
|
|
11910
|
+
filled: true,
|
|
11911
|
+
size: '43px',
|
|
11912
|
+
borderSize: '2px'
|
|
11911
11913
|
})), after);
|
|
11912
11914
|
};
|
|
11913
11915
|
|
|
@@ -11988,7 +11990,7 @@ var Container$2 = styled__default.div(_templateObject9$1 || (_templateObject9$1
|
|
|
11988
11990
|
return styled.css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n visibility: hidden;\n "])));
|
|
11989
11991
|
});
|
|
11990
11992
|
|
|
11991
|
-
var AbsoluteContainer = function
|
|
11993
|
+
var AbsoluteContainer = React__default.forwardRef(function (props, fowardedRef) {
|
|
11992
11994
|
var center = props.center || {
|
|
11993
11995
|
x: 50,
|
|
11994
11996
|
y: 75
|
|
@@ -12008,6 +12010,9 @@ var AbsoluteContainer = function AbsoluteContainer(props) {
|
|
|
12008
12010
|
firstRender = _useState3[0],
|
|
12009
12011
|
setFirstRender = _useState3[1];
|
|
12010
12012
|
|
|
12013
|
+
React.useImperativeHandle(fowardedRef, function () {
|
|
12014
|
+
return ref;
|
|
12015
|
+
});
|
|
12011
12016
|
React.useEffect(function () {
|
|
12012
12017
|
setFirstRender(false);
|
|
12013
12018
|
if (props.position || !ref) return;
|
|
@@ -12042,7 +12047,8 @@ var AbsoluteContainer = function AbsoluteContainer(props) {
|
|
|
12042
12047
|
ref: setRef,
|
|
12043
12048
|
firstRender: firstRender
|
|
12044
12049
|
}), React__default.createElement("div", null, props.children));
|
|
12045
|
-
};
|
|
12050
|
+
});
|
|
12051
|
+
AbsoluteContainer.displayName = 'AbsoluteContainer';
|
|
12046
12052
|
|
|
12047
12053
|
var _templateObject$7, _templateObject2$5, _templateObject3$5, _templateObject4$5, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2;
|
|
12048
12054
|
var Option = styled__default.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n display: flex;\n\n > :nth-child(1) {\n flex: 1;\n }\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
|
|
@@ -12100,7 +12106,7 @@ var Delimiter = styled__default.div(_templateObject9$2 || (_templateObject9$2 =
|
|
|
12100
12106
|
return theme.colors.greyishBlue;
|
|
12101
12107
|
});
|
|
12102
12108
|
|
|
12103
|
-
var
|
|
12109
|
+
var MenuComponent = function MenuComponent(props, ref) {
|
|
12104
12110
|
var _props = _extends({}, props),
|
|
12105
12111
|
open = _props.open,
|
|
12106
12112
|
close = _props.close,
|
|
@@ -12147,7 +12153,9 @@ var Menu = function Menu(props) {
|
|
|
12147
12153
|
itemSpacing: 's1'
|
|
12148
12154
|
});
|
|
12149
12155
|
if (!open) return React__default.createElement(React__default.Fragment, null);
|
|
12150
|
-
return React__default.createElement(Container$3, Object.assign({}, absoluteContainerProps
|
|
12156
|
+
return React__default.createElement(Container$3, Object.assign({}, absoluteContainerProps, {
|
|
12157
|
+
ref: ref
|
|
12158
|
+
}), React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollContainer, {
|
|
12151
12159
|
onScrollEnd: onScrollEnd,
|
|
12152
12160
|
before: before,
|
|
12153
12161
|
after: after,
|
|
@@ -12228,6 +12236,8 @@ var Menu = function Menu(props) {
|
|
|
12228
12236
|
})), children, getSubmenu(activeOption)));
|
|
12229
12237
|
};
|
|
12230
12238
|
|
|
12239
|
+
var Menu = React__default.forwardRef(MenuComponent);
|
|
12240
|
+
|
|
12231
12241
|
var _templateObject$8, _templateObject2$6, _templateObject3$6, _templateObject4$6, _templateObject5$5, _templateObject6$3;
|
|
12232
12242
|
var Container$4 = styled__default.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n div {\n border-radius: 50%;\n width: ", ";\n height: ", ";\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n\n span {\n display: inline-block;\n margin-left: 8px;\n color: ", ";\n }\n"])), function (_ref) {
|
|
12233
12243
|
var props = _ref.props;
|
|
@@ -16034,7 +16044,10 @@ var Submenu = function Submenu(props) {
|
|
|
16034
16044
|
});
|
|
16035
16045
|
};
|
|
16036
16046
|
|
|
16037
|
-
var
|
|
16047
|
+
var Filters = function Filters(props) {
|
|
16048
|
+
var open = props.open,
|
|
16049
|
+
close = props.close;
|
|
16050
|
+
|
|
16038
16051
|
var _useState = React.useState(-1),
|
|
16039
16052
|
active = _useState[0],
|
|
16040
16053
|
setActive = _useState[1];
|
|
@@ -16053,10 +16066,14 @@ var FilterMenu = function FilterMenu(props) {
|
|
|
16053
16066
|
};
|
|
16054
16067
|
});
|
|
16055
16068
|
var selected = active >= 0 && active < props.items.length ? props.items[active] : null;
|
|
16056
|
-
|
|
16057
|
-
open
|
|
16069
|
+
React.useEffect(function () {
|
|
16070
|
+
if (open) return;
|
|
16071
|
+
setActive(-1);
|
|
16072
|
+
}, [open]);
|
|
16073
|
+
return React__default.createElement(Menu, {
|
|
16074
|
+
open: open,
|
|
16058
16075
|
options: items,
|
|
16059
|
-
close:
|
|
16076
|
+
close: close,
|
|
16060
16077
|
width: '160px',
|
|
16061
16078
|
height: '261px',
|
|
16062
16079
|
containerSpacing: {
|
|
@@ -16075,6 +16092,137 @@ var FilterMenu = function FilterMenu(props) {
|
|
|
16075
16092
|
return setActive(-1);
|
|
16076
16093
|
},
|
|
16077
16094
|
setAppliedFilters: props.setAppliedFilters
|
|
16095
|
+
}));
|
|
16096
|
+
};
|
|
16097
|
+
|
|
16098
|
+
var _templateObject$H, _templateObject2$y, _templateObject3$x, _templateObject4$v;
|
|
16099
|
+
var Container$p = styled__default(AbsoluteContainer)(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n > div {\n padding: ", ";\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n"])), function (_ref) {
|
|
16100
|
+
var s3 = _ref.theme.spacings.s3;
|
|
16101
|
+
return s3 + " 0 " + s3 + " " + s3;
|
|
16102
|
+
});
|
|
16103
|
+
var Header$b = styled__default.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n padding: ", ";\n > div {\n display: flex;\n justify-content: space-between;\n }\n"])), function (_ref2) {
|
|
16104
|
+
var s3 = _ref2.theme.spacings.s3;
|
|
16105
|
+
return s3;
|
|
16106
|
+
}, function (_ref3) {
|
|
16107
|
+
var s3 = _ref3.theme.spacings.s3;
|
|
16108
|
+
return "0 " + s3 + " " + s3 + " 0";
|
|
16109
|
+
});
|
|
16110
|
+
var Title = styled__default.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n ", "\n color: ", ";\n"])), function (_ref4) {
|
|
16111
|
+
var useTypography = _ref4.theme.useTypography;
|
|
16112
|
+
return useTypography('p', {
|
|
16113
|
+
fontWeight: 'bold'
|
|
16114
|
+
});
|
|
16115
|
+
}, function (_ref5) {
|
|
16116
|
+
var getColor = _ref5.theme.getColor;
|
|
16117
|
+
return getColor('greyishBlue', 50);
|
|
16118
|
+
});
|
|
16119
|
+
var Item = styled__default.div(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n padding: ", ";\n display: flex;\n align-items: center;\n\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n\n > div:nth-child(1) {\n flex: 1;\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n > div:nth-child(2) {\n ", "\n }\n }\n > div:nth-child(2) {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n"])), function (_ref6) {
|
|
16120
|
+
var s1 = _ref6.theme.spacings.s1;
|
|
16121
|
+
return s1 + " " + s1 + " " + s1 + " 0";
|
|
16122
|
+
}, function (_ref7) {
|
|
16123
|
+
var getColor = _ref7.theme.getColor;
|
|
16124
|
+
return getColor('greyishBlue', 25);
|
|
16125
|
+
}, function (_ref8) {
|
|
16126
|
+
var useTypography = _ref8.theme.useTypography;
|
|
16127
|
+
return useTypography('p');
|
|
16128
|
+
}, function (_ref9) {
|
|
16129
|
+
var getColor = _ref9.theme.getColor;
|
|
16130
|
+
return getColor('greyishBlue', 50);
|
|
16131
|
+
}, function (_ref10) {
|
|
16132
|
+
var useTypography = _ref10.theme.useTypography;
|
|
16133
|
+
return useTypography('p');
|
|
16134
|
+
});
|
|
16135
|
+
|
|
16136
|
+
var AppliedFilters = function AppliedFilters(props) {
|
|
16137
|
+
var open = props.open,
|
|
16138
|
+
close = props.close,
|
|
16139
|
+
_props$appliedFilters = props.appliedFilters,
|
|
16140
|
+
appliedFilters = _props$appliedFilters[0],
|
|
16141
|
+
setAppliedFilters = _props$appliedFilters[1];
|
|
16142
|
+
|
|
16143
|
+
var _useState = React.useState(''),
|
|
16144
|
+
search = _useState[0],
|
|
16145
|
+
setSearch = _useState[1];
|
|
16146
|
+
|
|
16147
|
+
var _useState2 = React.useState(''),
|
|
16148
|
+
searched = _useState2[0],
|
|
16149
|
+
setSearched = _useState2[1];
|
|
16150
|
+
|
|
16151
|
+
React.useEffect(function () {
|
|
16152
|
+
setSearch('');
|
|
16153
|
+
setSearched('');
|
|
16154
|
+
}, [open]);
|
|
16155
|
+
if (!open) return React__default.createElement(React__default.Fragment, null);
|
|
16156
|
+
|
|
16157
|
+
var onClear = function onClear() {
|
|
16158
|
+
setAppliedFilters([]);
|
|
16159
|
+
close();
|
|
16160
|
+
};
|
|
16161
|
+
|
|
16162
|
+
var onSubmitSearch = function onSubmitSearch() {
|
|
16163
|
+
setSearched(search);
|
|
16164
|
+
};
|
|
16165
|
+
|
|
16166
|
+
var onClearSearch = function onClearSearch() {
|
|
16167
|
+
setSearch('');
|
|
16168
|
+
setSearched('');
|
|
16169
|
+
};
|
|
16170
|
+
|
|
16171
|
+
var onRemove = function onRemove(name) {
|
|
16172
|
+
setAppliedFilters(function (prev) {
|
|
16173
|
+
return prev.filter(function (e) {
|
|
16174
|
+
return e.name !== name;
|
|
16175
|
+
});
|
|
16176
|
+
});
|
|
16177
|
+
};
|
|
16178
|
+
|
|
16179
|
+
return React__default.createElement(Container$p, {
|
|
16180
|
+
width: '275px',
|
|
16181
|
+
height: '261px'
|
|
16182
|
+
}, React__default.createElement(Header$b, null, React__default.createElement("div", null, React__default.createElement(Title, null, "Filtros Aplicados"), React__default.createElement(Button$1, {
|
|
16183
|
+
type: 'button',
|
|
16184
|
+
onClick: onClear,
|
|
16185
|
+
appearance: 'link'
|
|
16186
|
+
}, "Limpar Todos")), React__default.createElement(Input$3, {
|
|
16187
|
+
type: 'search',
|
|
16188
|
+
placeholder: 'Pesquisar',
|
|
16189
|
+
setValue: setSearch,
|
|
16190
|
+
value: search,
|
|
16191
|
+
onPressEnter: onSubmitSearch,
|
|
16192
|
+
icon: {
|
|
16193
|
+
icon: {
|
|
16194
|
+
type: 'feather',
|
|
16195
|
+
icon: 'search'
|
|
16196
|
+
},
|
|
16197
|
+
onClick: onSubmitSearch
|
|
16198
|
+
},
|
|
16199
|
+
clearable: search !== '' && search === searched ? onClearSearch : undefined
|
|
16200
|
+
})), React__default.createElement(ScrollContainer, null, appliedFilters.filter(function (_ref) {
|
|
16201
|
+
var _ref$labels = _ref.labels,
|
|
16202
|
+
filter = _ref$labels.filter.text,
|
|
16203
|
+
option = _ref$labels.option.text;
|
|
16204
|
+
return strCmp(filter, searched, {
|
|
16205
|
+
contain: true
|
|
16206
|
+
}) || strCmp(option, searched, {
|
|
16207
|
+
contain: true
|
|
16208
|
+
});
|
|
16209
|
+
}).map(function (_ref2, index) {
|
|
16210
|
+
var _ref2$labels = _ref2.labels,
|
|
16211
|
+
filter = _ref2$labels.filter.element,
|
|
16212
|
+
option = _ref2$labels.option.element,
|
|
16213
|
+
name = _ref2.name;
|
|
16214
|
+
return React__default.createElement(Item, {
|
|
16215
|
+
key: index
|
|
16216
|
+
}, React__default.createElement("div", null, React__default.createElement("div", null, filter), React__default.createElement("div", null, option)), React__default.createElement("div", null, React__default.createElement(Icon, {
|
|
16217
|
+
type: 'feather',
|
|
16218
|
+
icon: 'minus_circle',
|
|
16219
|
+
width: '12px',
|
|
16220
|
+
height: '12px',
|
|
16221
|
+
color: 'darkSilver',
|
|
16222
|
+
onClick: function onClick() {
|
|
16223
|
+
return onRemove(name);
|
|
16224
|
+
}
|
|
16225
|
+
})));
|
|
16078
16226
|
})));
|
|
16079
16227
|
};
|
|
16080
16228
|
|
|
@@ -16087,14 +16235,14 @@ var theme$1 = {
|
|
|
16087
16235
|
button: theme
|
|
16088
16236
|
};
|
|
16089
16237
|
|
|
16090
|
-
var _templateObject$
|
|
16091
|
-
var FontStyles = styled.createGlobalStyle(_templateObject$
|
|
16238
|
+
var _templateObject$I;
|
|
16239
|
+
var FontStyles = styled.createGlobalStyle(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n"])));
|
|
16092
16240
|
|
|
16093
16241
|
var Globals = function Globals() {
|
|
16094
16242
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(FontStyles, null));
|
|
16095
16243
|
};
|
|
16096
16244
|
|
|
16097
|
-
var _templateObject$
|
|
16245
|
+
var _templateObject$J;
|
|
16098
16246
|
|
|
16099
16247
|
var getColor$1 = function getColor(color, opacity) {
|
|
16100
16248
|
if (opacity === void 0) {
|
|
@@ -16104,12 +16252,16 @@ var getColor$1 = function getColor(color, opacity) {
|
|
|
16104
16252
|
return "" + colors[color] + opacities[opacity];
|
|
16105
16253
|
};
|
|
16106
16254
|
|
|
16107
|
-
var useTypography = function useTypography(typography) {
|
|
16255
|
+
var useTypography = function useTypography(typography, options) {
|
|
16256
|
+
if (options === void 0) {
|
|
16257
|
+
options = {};
|
|
16258
|
+
}
|
|
16259
|
+
|
|
16108
16260
|
var _typographies$typogra = typographies[typography],
|
|
16109
16261
|
fontFamily = _typographies$typogra.fontFamily,
|
|
16110
16262
|
fontWeight = _typographies$typogra.fontWeight,
|
|
16111
16263
|
fontSize = _typographies$typogra.fontSize;
|
|
16112
|
-
return styled.css(_templateObject$
|
|
16264
|
+
return styled.css(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), fontFamily, options.fontWeight || fontWeight, fontSize);
|
|
16113
16265
|
};
|
|
16114
16266
|
|
|
16115
16267
|
var isDarkColor = function isDarkColor(color, ifDark, ifLight) {
|
|
@@ -16164,12 +16316,13 @@ Object.keys(reactCalendar).forEach(function (k) {
|
|
|
16164
16316
|
});
|
|
16165
16317
|
exports.MwCalendar = reactCalendar;
|
|
16166
16318
|
exports.MwAbsoluteContainer = AbsoluteContainer;
|
|
16319
|
+
exports.MwAppliedFilters = AppliedFilters;
|
|
16167
16320
|
exports.MwButton = Button$1;
|
|
16168
16321
|
exports.MwCalendarInterval = CalendarInterval;
|
|
16169
16322
|
exports.MwCard = Card;
|
|
16170
16323
|
exports.MwDatePicker = Calendar;
|
|
16171
16324
|
exports.MwEllipsisContainer = EllipsisContainer$1;
|
|
16172
|
-
exports.
|
|
16325
|
+
exports.MwFilters = Filters;
|
|
16173
16326
|
exports.MwIcon = Icon;
|
|
16174
16327
|
exports.MwIndicator = Indicator;
|
|
16175
16328
|
exports.MwInput = Input$3;
|