@mw-kit/mw-ui 1.7.23 → 1.7.28

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.
Files changed (39) hide show
  1. package/dist/components/AbsoluteContainer/index.d.ts +1 -1
  2. package/dist/components/Calendar/components/Basic/components/MonthPicker/index.d.ts +1 -1
  3. package/dist/components/Calendar/components/Basic/index.d.ts +1 -1
  4. package/dist/components/Calendar/components/Basic/interfaces.d.ts +2 -2
  5. package/dist/components/Calendar/components/Basic/styles.d.ts +1 -1
  6. package/dist/components/Calendar/components/Interval/components/Main/index.d.ts +1 -1
  7. package/dist/components/Calendar/components/Interval/index.d.ts +2 -2
  8. package/dist/components/Calendar/components/Single/components/Main/index.d.ts +1 -1
  9. package/dist/components/Calendar/components/Single/index.d.ts +1 -1
  10. package/dist/components/Calendar/index.d.ts +4 -4
  11. package/dist/components/Filters/AppliedFilters/components/Menu/styles.d.ts +1 -1
  12. package/dist/components/Filters/Filters/components/Submenu/components/Header/interfaces.d.ts +2 -2
  13. package/dist/components/Filters/Filters/interfaces.d.ts +2 -2
  14. package/dist/components/Filters/interfaces.d.ts +3 -3
  15. package/dist/components/Grid/components/Col/styles.d.ts +1 -1
  16. package/dist/components/Grid/components/Grid/styles.d.ts +1 -1
  17. package/dist/components/Grid/components/Row/styles.d.ts +1 -1
  18. package/dist/components/Input/components/Checkbox/interfaces.d.ts +4 -2
  19. package/dist/components/Input/components/DatePicker/interfaces.d.ts +1 -1
  20. package/dist/components/Input/components/Input/interfaces.d.ts +6 -2
  21. package/dist/components/Input/components/Input/styles.d.ts +5 -0
  22. package/dist/components/Input/components/RadioButton/interfaces.d.ts +2 -2
  23. package/dist/components/Input/components/Range/interfaces.d.ts +5 -5
  24. package/dist/components/Input/components/Select/hooks/Select/interfaces.d.ts +3 -2
  25. package/dist/components/Input/components/Select/hooks/SelectMultiple/components/Label/index.d.ts +7 -0
  26. package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +4 -4
  27. package/dist/components/Input/components/Select/hooks/interfaces.d.ts +17 -26
  28. package/dist/components/Input/components/Switch/interfaces.d.ts +5 -5
  29. package/dist/components/Input/components/Tags/interfaces.d.ts +2 -2
  30. package/dist/components/Menu/interfaces.d.ts +15 -13
  31. package/dist/components/Menu/styles.d.ts +1 -1
  32. package/dist/components/ScrollContainer/interfaces.d.ts +4 -4
  33. package/dist/functions/formatters.d.ts +2 -1
  34. package/dist/index.js +367 -315
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.modern.js +367 -315
  37. package/dist/index.modern.js.map +1 -1
  38. package/dist/interfaces.d.ts +11 -1
  39. package/package.json +1 -1
@@ -1,27 +1,25 @@
1
1
  /// <reference types="react" />
2
- import { ElementOrString, SpacingOrZero, Spacings } from '../../../../../interfaces';
2
+ import { ReactNode, GenericObject, SpacingOrZero, Spacings } from '../../../../../interfaces';
3
3
  import { Position } from '../../../../AbsoluteContainer/interfaces';
4
4
  import { Option as MenuOption } from '../../../../Menu/interfaces';
5
5
  import { InputProps } from '../../Input/interfaces';
6
- export interface Option {
7
- label: string | {
8
- text: string;
9
- element: ElementOrString;
10
- };
6
+ export declare type SelectOptionLabelProps<T extends GenericObject = GenericObject> = {
11
7
  value: string;
12
- data?: any;
8
+ data: T;
13
9
  disabled?: boolean;
14
- rules?: MenuOption['rules'];
15
- onClick?: (index: number, option: Pick<Option, 'value' | 'data'> & {
16
- label: Exclude<Option['label'], string>;
17
- }, event: React.MouseEvent) => void;
18
- }
19
- interface LoaderReturn {
20
- options: Option[];
10
+ mode?: 'placeholder';
11
+ };
12
+ export declare type SelectOptionLabelComponent<T extends GenericObject = GenericObject> = React.FunctionComponent<SelectOptionLabelProps<T>>;
13
+ export declare type Option<T extends GenericObject = GenericObject> = Pick<MenuOption, 'onClick' | 'rules' | 'data' | 'disabled'> & {
14
+ label: ReactNode | SelectOptionLabelComponent<T>;
15
+ value: string;
16
+ };
17
+ interface LoaderReturn<T extends GenericObject = GenericObject> {
18
+ options: Option<T>[];
21
19
  lastPage: boolean;
22
20
  }
23
- export declare type Loader = (search: string, page: number) => Promise<LoaderReturn | Option[]>;
24
- export interface CommonProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'setValue' | 'name' | 'value' | 'onChange'> {
21
+ export declare type Loader<T extends GenericObject = GenericObject> = (search: string, page: number) => Promise<LoaderReturn<T> | Option<T>[]>;
22
+ export interface CommonProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'setValue' | 'name' | 'value' | 'onChange' | 'children' | 'clearable'> {
25
23
  onScrollEnd?: () => Promise<void>;
26
24
  position?: Position;
27
25
  search?: boolean;
@@ -43,18 +41,10 @@ export interface CommonContext<SelectProps extends CommonProps> extends BaseCont
43
41
  props: SelectProps;
44
42
  options: Option[];
45
43
  }
46
- export interface ParsedOption extends MenuOption {
47
- label: {
48
- text: string;
49
- element: ElementOrString;
50
- };
51
- }
52
44
  export interface useSelectReturn {
53
- parsedOptions: ParsedOption[];
45
+ parsedOptions: MenuOption[];
54
46
  options: [Option[], React.Dispatch<React.SetStateAction<Option[]>>];
55
- input: {
56
- value: string;
57
- };
47
+ inputContent: React.ReactNode;
58
48
  onReset: () => void;
59
49
  menu: {
60
50
  itemSpacing?: SpacingOrZero | Spacings;
@@ -63,5 +53,6 @@ export interface useSelectReturn {
63
53
  maxHeight: string;
64
54
  };
65
55
  getContext: (base: BaseContext, children: JSX.Element) => JSX.Element;
56
+ onClear: () => void;
66
57
  }
67
58
  export {};
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { ElementOrString } from '../../../../interfaces';
2
+ import { ReactNode } from '../../../../interfaces';
3
3
  export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
- label?: ElementOrString | {
5
- label?: ElementOrString;
6
- before?: ElementOrString;
7
- after?: ElementOrString;
4
+ label?: ReactNode | {
5
+ label?: ReactNode;
6
+ before?: ReactNode;
7
+ after?: ReactNode;
8
8
  };
9
9
  labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
10
10
  required?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ElementOrString } from '../../../../interfaces';
2
+ import { ReactNode } from '../../../../interfaces';
3
3
  import { InputProps } from './components/Input/interfaces';
4
4
  export interface LabelProps extends React.HTMLAttributes<HTMLLabelElement> {
5
5
  disabled?: boolean;
@@ -10,7 +10,7 @@ export interface TagContainerProps extends React.HTMLAttributes<HTMLDivElement>
10
10
  }
11
11
  export interface TagsProps {
12
12
  type: 'tags';
13
- label?: ElementOrString;
13
+ label?: ReactNode;
14
14
  width?: string;
15
15
  disabled?: boolean;
16
16
  loading?: boolean;
@@ -1,22 +1,23 @@
1
1
  import React from 'react';
2
2
  import { PopupProps } from 'semantic-ui-react';
3
- import { ElementOrString, SpacingOrZero, Spacings } from '../../interfaces';
3
+ import { Borders, ReactNode, GenericObject, SpacingOrZero, Spacings } from '../../interfaces';
4
4
  import { AbsoluteContainerProps } from '../AbsoluteContainer/interfaces';
5
5
  /** funcao que fara a validacao da regra, deve retornar true caso passe na validacao, e false ou o conteudo do popup caso contrario */
6
- declare type Rule = (index: number, data: Option['data'], label: Exclude<Option['label'], string>) => boolean | Omit<PopupProps, 'trigger'>;
7
- export interface Option {
8
- label: string | {
9
- text: string;
10
- element: ElementOrString;
11
- };
6
+ declare type Rule = (index: number, data: GenericObject) => boolean | Omit<PopupProps, 'trigger'>;
7
+ export declare type MenuOptionLabelProps<T extends GenericObject = GenericObject> = {
12
8
  delimiter?: boolean;
13
9
  keepOpen?: boolean;
14
10
  caret?: boolean;
11
+ disabled?: boolean;
12
+ border?: Borders;
13
+ data: T;
14
+ };
15
+ export declare type OptionLabelComponent<T extends GenericObject = GenericObject> = React.FunctionComponent<MenuOptionLabelProps<T>>;
16
+ export declare type Option<T extends GenericObject = GenericObject> = MenuOptionLabelProps<T> & {
17
+ label: ReactNode | OptionLabelComponent<T>;
15
18
  onClick?: (index: number, option: Option, event: React.MouseEvent) => void;
16
19
  rules?: Rule[];
17
- data?: any;
18
- disabled?: boolean;
19
- }
20
+ };
20
21
  export interface CommonProps extends Omit<AbsoluteContainerProps, 'children'> {
21
22
  bordered?: boolean;
22
23
  containerSpacing?: SpacingOrZero | Omit<Spacings, 'right'>;
@@ -28,15 +29,16 @@ export interface MenuProps extends CommonProps {
28
29
  close: () => void;
29
30
  options: Option[];
30
31
  loading?: boolean;
31
- innerContent?: ElementOrString;
32
+ innerContent?: ReactNode;
32
33
  scrollSpacing?: SpacingOrZero | Spacings;
33
34
  onScrollEnd?: () => void;
34
- before?: ElementOrString;
35
- after?: ElementOrString;
35
+ before?: ReactNode;
36
+ after?: ReactNode;
36
37
  }
37
38
  export declare type ContainerProps = CommonProps;
38
39
  export declare type MenuInterface = (props: MenuProps, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
39
40
  export interface StyledOptionProps extends React.HTMLAttributes<HTMLDivElement> {
40
41
  disabled?: boolean;
42
+ border?: Borders;
41
43
  }
42
44
  export {};
@@ -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<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, import("./interfaces").CommonProps, never>;
4
+ export declare const Container: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("../AbsoluteContainer/interfaces").AbsoluteContainerProps, "hidden" | "children" | "dir" | "slot" | "style" | "title" | "id" | "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"> & 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>;
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
- import { ElementOrString, SpacingOrZero, Spacings } from '../../interfaces';
2
+ import { ReactNode, SpacingOrZero, Spacings } from '../../interfaces';
3
3
  interface Common extends React.HTMLAttributes<HTMLDivElement> {
4
4
  height?: string;
5
5
  spacing?: SpacingOrZero | Omit<Spacings, 'right'>;
6
6
  }
7
7
  export interface ScrollContainerProps extends Common {
8
8
  onScrollEnd?: (event: React.UIEvent<HTMLDivElement, UIEvent>) => void | Promise<void>;
9
- before?: ElementOrString;
10
- after?: ElementOrString;
11
- inner?: ElementOrString;
9
+ before?: ReactNode;
10
+ after?: ReactNode;
11
+ inner?: ReactNode;
12
12
  loading?: boolean;
13
13
  }
14
14
  export declare type OverflowContainerProps = Common;
@@ -1,4 +1,4 @@
1
- import { SpacingOrZero, Spacings } from '../interfaces';
1
+ import { Border, Borders, SpacingOrZero, Spacings } from '../interfaces';
2
2
  export declare const filterObject: <T extends Record<string | number | symbol, any>, R extends Record<string | number | symbol, any>>(object: T, remove: (keyof T)[], inital?: Partial<R>) => R;
3
3
  export declare const phone: (value: string) => string;
4
4
  export declare const cnpj: (value: string) => string;
@@ -25,5 +25,6 @@ export declare const getFirstWeek: (year?: number | undefined) => Date;
25
25
  export declare const getLastWeek: (year?: number | undefined) => Date;
26
26
  export { stripAccents, dateToIsoString, keys } from './common';
27
27
  export declare const getSpacings: (value: SpacingOrZero | Spacings, defaults?: "s1" | "s2" | "s3" | "s4" | "s5" | "s6" | "0" | Spacings | undefined) => string;
28
+ export declare const getBorder: (config: Borders) => Exclude<Borders, Border>;
28
29
  export declare const clone: <T>(value: T) => T;
29
30
  export declare const unique: <T>(value: T[], callback?: (item: T, arr: T[]) => boolean) => T[];