@mw-kit/mw-ui 1.3.1 → 1.6.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.
Files changed (74) hide show
  1. package/dist/components/AbsoluteContainer/index.d.ts +2 -2
  2. package/dist/components/AbsoluteContainer/interfaces.d.ts +7 -2
  3. package/dist/components/Calendar/interfaces.d.ts +2 -2
  4. package/dist/components/Calendar/styles.d.ts +1 -1
  5. package/dist/components/CalendarInterval/interfaces.d.ts +7 -7
  6. package/dist/components/Filters/AppliedFilters/index.d.ts +4 -0
  7. package/dist/components/Filters/AppliedFilters/interfaces.d.ts +7 -0
  8. package/dist/components/Filters/AppliedFilters/styles.d.ts +5 -0
  9. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/index.d.ts +0 -0
  10. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/interfaces.d.ts +2 -4
  11. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/styles.d.ts +0 -0
  12. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/index.d.ts +0 -0
  13. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/interfaces.d.ts +3 -2
  14. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/styles.d.ts +0 -0
  15. package/dist/components/Filters/Filters/index.d.ts +4 -0
  16. package/dist/components/{FilterMenu → Filters/Filters}/interfaces.d.ts +10 -28
  17. package/dist/components/Filters/interfaces.d.ts +20 -0
  18. package/dist/components/Grid/components/Col/index.d.ts +4 -0
  19. package/dist/components/Grid/components/Col/interfaces.d.ts +31 -0
  20. package/dist/components/Grid/components/Col/styles.d.ts +1 -0
  21. package/dist/components/{Input/components/Select → Grid/components/Grid}/context.d.ts +0 -0
  22. package/dist/components/Grid/components/Grid/index.d.ts +4 -0
  23. package/dist/components/Grid/components/Grid/interfaces.d.ts +17 -0
  24. package/dist/components/Grid/components/Grid/styles.d.ts +1 -0
  25. package/dist/components/Grid/components/Row/context.d.ts +5 -0
  26. package/dist/components/Grid/components/Row/index.d.ts +4 -0
  27. package/dist/components/Grid/components/Row/interfaces.d.ts +26 -0
  28. package/dist/components/Grid/components/Row/styles.d.ts +1 -0
  29. package/dist/components/Grid/index.d.ts +6 -0
  30. package/dist/components/Grid/interfaces.d.ts +2 -0
  31. package/dist/components/Input/components/DateIntervalPicker/functions.d.ts +5 -0
  32. package/dist/components/Input/components/DateIntervalPicker/index.d.ts +4 -0
  33. package/dist/components/Input/components/DateIntervalPicker/interfaces.d.ts +23 -0
  34. package/dist/components/Input/components/DateIntervalPicker/styles.d.ts +10 -0
  35. package/dist/components/Input/components/Range/interfaces.d.ts +1 -1
  36. package/dist/components/Input/components/Select/{header.d.ts → hooks/Select/components/Header/index.d.ts} +0 -0
  37. package/dist/components/Input/components/Select/hooks/Select/components/Header/styles.d.ts +1 -0
  38. package/dist/components/Input/components/Select/hooks/Select/context.d.ts +5 -0
  39. package/dist/components/Input/components/Select/hooks/Select/index.d.ts +4 -0
  40. package/dist/components/Input/components/Select/hooks/Select/interfaces.d.ts +25 -0
  41. package/dist/components/Input/components/Select/{footer.d.ts → hooks/SelectMultiple/components/Footer/index.d.ts} +0 -0
  42. package/dist/components/Input/components/Select/hooks/SelectMultiple/components/Header/index.d.ts +3 -0
  43. package/dist/components/Input/components/Select/hooks/SelectMultiple/components/Header/styles.d.ts +2 -0
  44. package/dist/components/Input/components/Select/hooks/SelectMultiple/context.d.ts +5 -0
  45. package/dist/components/Input/components/Select/hooks/SelectMultiple/index.d.ts +4 -0
  46. package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +19 -0
  47. package/dist/components/Input/components/Select/hooks/interfaces.d.ts +55 -0
  48. package/dist/components/Input/components/Select/index.d.ts +4 -1
  49. package/dist/components/Input/components/Select/interfaces.d.ts +2 -51
  50. package/dist/components/Input/components/Select/styles.d.ts +0 -2
  51. package/dist/components/Input/components/Time/interfaces.d.ts +1 -0
  52. package/dist/components/Input/index.d.ts +4 -3
  53. package/dist/components/Loader/interfaces.d.ts +2 -1
  54. package/dist/components/Menu/interfaces.d.ts +13 -29
  55. package/dist/components/Menu/styles.d.ts +1 -1
  56. package/dist/components/Modal/index.d.ts +5 -9
  57. package/dist/components/Transition/components/Transition/index.d.ts +4 -0
  58. package/dist/components/Transition/components/Transition/interfaces.d.ts +8 -0
  59. package/dist/components/Transition/hooks/useTransition/index.d.ts +3 -0
  60. package/dist/components/Transition/index.d.ts +3 -0
  61. package/dist/components/Transition/interfaces.d.ts +1 -0
  62. package/dist/components/index.d.ts +5 -1
  63. package/dist/functions/common.d.ts +2 -0
  64. package/dist/functions/formatters.d.ts +9 -3
  65. package/dist/functions/validators.d.ts +2 -2
  66. package/dist/index.js +1962 -811
  67. package/dist/index.js.map +1 -1
  68. package/dist/index.modern.js +1959 -812
  69. package/dist/index.modern.js.map +1 -1
  70. package/dist/interfaces.d.ts +3 -2
  71. package/dist/theme/constants.d.ts +2 -15
  72. package/dist/theme/interfaces.d.ts +15 -2
  73. package/package.json +1 -1
  74. package/dist/components/FilterMenu/index.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { AbsoluteContainerProps } from './interfaces';
3
- export declare const AbsoluteContainer: (props: AbsoluteContainerProps) => JSX.Element;
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" | "open" | "position" | "axis" | "center" | "transition" | "height" | "maxWidth" | "maxHeight" | "references" | "zIndex"> & React.RefAttributes<HTMLDivElement>>;
4
4
  export default AbsoluteContainer;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { Transition } from '../Transition/interfaces';
2
3
  export declare type Position = 'top right' | 'top left' | 'bottom right' | 'bottom left' | 'right top' | 'right bottom' | 'left top' | 'left bottom';
3
4
  export interface References {
4
5
  top?: string;
@@ -6,6 +7,7 @@ export interface References {
6
7
  bottom?: string;
7
8
  right?: string;
8
9
  }
10
+ declare type TransitionArguments = Transition<'width' | 'max-width' | 'height' | 'max-height'>;
9
11
  interface CommonProps extends React.HTMLAttributes<HTMLDivElement> {
10
12
  width?: string | number;
11
13
  height?: string | number;
@@ -15,15 +17,18 @@ interface CommonProps extends React.HTMLAttributes<HTMLDivElement> {
15
17
  zIndex?: number;
16
18
  }
17
19
  export interface AbsoluteContainerProps extends CommonProps {
20
+ open: boolean;
18
21
  position?: Position;
19
22
  axis?: 'x' | 'y';
20
23
  center?: {
21
24
  x: number;
22
25
  y: number;
23
26
  };
27
+ ref?: React.Ref<HTMLDivElement>;
28
+ transition?: Partial<Omit<TransitionArguments, 'active'>>;
24
29
  }
25
30
  export interface ContainerProps extends CommonProps {
26
- position: Position;
27
- firstRender: boolean;
31
+ position: Position | null;
32
+ transition?: TransitionArguments;
28
33
  }
29
34
  export {};
@@ -1,6 +1,6 @@
1
- import { References } from '../AbsoluteContainer/interfaces';
1
+ import { AbsoluteContainerProps, References } from '../AbsoluteContainer/interfaces';
2
2
  import { TimeProps } from '../Input/components/Time/interfaces';
3
- export interface CalendarProps {
3
+ export interface CalendarProps extends Omit<AbsoluteContainerProps, 'onSubmit'> {
4
4
  value?: [Date | null, (value: Date | null) => void];
5
5
  initalValue?: Date | null;
6
6
  max?: Date;
@@ -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<(props: import("../AbsoluteContainer/interfaces").AbsoluteContainerProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
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" | "open" | "position" | "axis" | "center" | "transition" | "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>;
@@ -1,16 +1,16 @@
1
- import { References } from '../AbsoluteContainer/interfaces';
1
+ /// <reference types="react" />
2
+ import { AbsoluteContainerProps } from '../AbsoluteContainer/interfaces';
2
3
  import { TimeProps } from '../Input/components/Time/interfaces';
3
- export interface CalendarIntervalProps {
4
+ export interface CalendarIntervalProps extends Omit<AbsoluteContainerProps, 'onSubmit'> {
4
5
  max?: Date;
5
6
  min?: Date;
6
- value?: {
7
- start: [Date | null, (state: Date | null) => void];
8
- end: [Date | null, (state: Date | null) => void];
9
- };
10
7
  time?: Omit<TimeProps, 'type' | 'value' | 'setValue' | 'minWidth'>;
11
8
  onSubmit?: {
12
9
  onClick?: (start: Date | null, end: Date | null) => void;
13
10
  disabled?: boolean;
14
11
  };
15
- references?: References;
12
+ value?: {
13
+ start: [Date | null, React.Dispatch<React.SetStateAction<Date | null>>] | Date | null;
14
+ end: [Date | null, React.Dispatch<React.SetStateAction<Date | null>>] | Date | null;
15
+ };
16
16
  }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AppliedFiltersProps } from './interfaces';
3
+ declare const AppliedFilters: (props: AppliedFiltersProps) => JSX.Element;
4
+ export default AppliedFilters;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { AppliedFilter } from '../interfaces';
3
+ export interface AppliedFiltersProps {
4
+ open: boolean;
5
+ close: () => void;
6
+ appliedFilters: [AppliedFilter[], React.Dispatch<React.SetStateAction<AppliedFilter[]>>];
7
+ }
@@ -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,7 +1,6 @@
1
- /// <reference types="react" />
2
- import { ElementOrString } from '../../../../../../interfaces';
1
+ import { ElementOrString } from '../../../../../../../interfaces';
3
2
  export interface HeaderProps {
4
- search: [string, React.Dispatch<React.SetStateAction<string>>];
3
+ search: [string, (value: string) => void];
5
4
  title: string | {
6
5
  text: string;
7
6
  element: ElementOrString;
@@ -9,5 +8,4 @@ export interface HeaderProps {
9
8
  /** se o filtro for do tipo callback, podera ser enviado este parametro para indicar se o filtro permite busca com string vazia */
10
9
  allowEmptySearch?: boolean;
11
10
  withSearch: boolean;
12
- touched: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
13
11
  }
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { AppliedFilter, Filter } from '../../interfaces';
2
+ import { AppliedFilter } from '../../../interfaces';
3
+ import { Filter } from '../../interfaces';
3
4
  export interface SubmenuProps {
4
- item: Filter;
5
+ item?: Filter;
5
6
  close: () => void;
6
7
  setAppliedFilters: React.Dispatch<React.SetStateAction<AppliedFilter[]>>;
7
8
  }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FiltersProps } from './interfaces';
3
+ declare const Filters: (props: FiltersProps) => JSX.Element;
4
+ export default Filters;
@@ -1,30 +1,14 @@
1
1
  import React from 'react';
2
- import { ElementOrString, SpacingOrZero } from '../../interfaces';
3
- export interface AppliedFilter {
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;
2
+ import { ElementOrString, SpacingOrZero } from '../../../interfaces';
3
+ import { AppliedFilter } from '../interfaces';
4
+ export interface Label {
5
+ text: string;
6
+ element: ElementOrString;
21
7
  }
8
+ declare type LabelOrString = string | Label;
22
9
  export interface Option {
23
10
  /** label da opcao */
24
- label: string | {
25
- text: string;
26
- element: ElementOrString;
27
- };
11
+ label: LabelOrString;
28
12
  /** valor da opcao */
29
13
  value: string | number | boolean;
30
14
  }
@@ -39,10 +23,7 @@ export interface OptionsReturn {
39
23
  export declare type OptionsCallback = (value: string, page?: number) => Promise<OptionsReturn | Option[]>;
40
24
  export interface Filter {
41
25
  /** label do filtro */
42
- label: string | {
43
- text: string;
44
- element: ElementOrString;
45
- };
26
+ label: LabelOrString;
46
27
  /** nome da chave do filtro */
47
28
  name: string;
48
29
  /** lista de opcoes ou funcao que retorna a lista de opcoes */
@@ -56,9 +37,10 @@ export interface Filter {
56
37
  /** espacamento das opcoes deste filtro, default s1 */
57
38
  optionSpacing?: SpacingOrZero;
58
39
  }
59
- export interface FilterMenuProps {
40
+ export interface FiltersProps {
60
41
  open: boolean;
61
42
  items: Filter[];
62
43
  close: () => void;
63
44
  setAppliedFilters: React.Dispatch<React.SetStateAction<AppliedFilter[]>>;
64
45
  }
46
+ export {};
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ColProps } from './interfaces';
3
+ declare const Col: (props: ColProps) => JSX.Element;
4
+ export default Col;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { SpacingOrZero, Spacings } from '../../../../interfaces';
3
+ import { ColorOptions, OpacitiyOptions } from '../../../../theme/interfaces';
4
+ import { HorizontalAligns, VerticalAligns } from '../../interfaces';
5
+ declare type Widths = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'auto';
6
+ export interface BaseColProps {
7
+ width?: Widths;
8
+ spacing?: SpacingOrZero | Spacings;
9
+ align?: {
10
+ self?: {
11
+ horizontal?: Exclude<HorizontalAligns, 'around' | 'between'>;
12
+ vertical?: VerticalAligns;
13
+ };
14
+ content?: {
15
+ horizontal?: HorizontalAligns;
16
+ vertical?: VerticalAligns;
17
+ };
18
+ text?: 'center' | 'left' | 'right' | 'justify';
19
+ };
20
+ spacingAround?: boolean;
21
+ bordered?: true;
22
+ hover?: true | ColorOptions | [ColorOptions, OpacitiyOptions];
23
+ pointer?: true;
24
+ ellipsis?: true;
25
+ }
26
+ export interface ColProps extends React.HtmlHTMLAttributes<HTMLDivElement>, BaseColProps {
27
+ backgroundColor?: ColorOptions | [ColorOptions, OpacitiyOptions];
28
+ fontColor?: ColorOptions | [ColorOptions, OpacitiyOptions];
29
+ }
30
+ export declare type StyledColProps = Omit<ColProps, 'ellipsis'>;
31
+ export {};
@@ -0,0 +1 @@
1
+ export declare const Col: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<import("./interfaces").ColProps, "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" | "spacing" | "manifest" | "align" | "bordered" | "pointer" | "backgroundColor" | "fontColor" | "spacingAround" | "hover">, never>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { GridProps } from './interfaces';
3
+ declare const Grid: (props: GridProps) => JSX.Element;
4
+ export default Grid;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { SpacingOrZero, Spacings } from '../../../../interfaces';
3
+ import { BaseColProps } from '../Col/interfaces';
4
+ import { BaseRowProps } from '../Row/interfaces';
5
+ export interface BaseGridProps {
6
+ spacing?: SpacingOrZero | Spacings;
7
+ }
8
+ export interface GridProps extends React.HtmlHTMLAttributes<HTMLDivElement>, BaseGridProps {
9
+ rows?: BaseRowProps;
10
+ cols?: BaseColProps;
11
+ borderless?: true;
12
+ }
13
+ export declare type StyledGridProps = Omit<GridProps, 'cols' | 'rows'>;
14
+ export interface ContextInterface {
15
+ rows: BaseRowProps;
16
+ cols: BaseColProps;
17
+ }
@@ -0,0 +1 @@
1
+ export declare const Grid: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<import("./interfaces").GridProps, "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" | "spacing" | "manifest" | "borderless">, never>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ContextInterface } from './interfaces';
3
+ declare const Provider: React.Context<ContextInterface>;
4
+ export declare const useContext: () => ContextInterface;
5
+ export default Provider;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { RowProps } from './interfaces';
3
+ declare const Row: (props: RowProps) => JSX.Element;
4
+ export default Row;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { SpacingOrZero, Spacings } from '../../../../interfaces';
3
+ import { ColorOptions, OpacitiyOptions } from '../../../../theme/interfaces';
4
+ import { HorizontalAligns, VerticalAligns } from '../../interfaces';
5
+ import { BaseColProps } from '../Col/interfaces';
6
+ export declare type Striped = {
7
+ [key in 'even' | 'odd']: ColorOptions | [ColorOptions, OpacitiyOptions];
8
+ };
9
+ export interface BaseRowProps {
10
+ spacing?: SpacingOrZero | Spacings;
11
+ horizontalAlign?: HorizontalAligns;
12
+ verticalAlign?: VerticalAligns;
13
+ spacingAround?: boolean;
14
+ striped?: true | Striped | Omit<Striped, 'even'> | Omit<Striped, 'odd'>;
15
+ borderless?: true;
16
+ hover?: true | ColorOptions | [ColorOptions, OpacitiyOptions];
17
+ }
18
+ export interface RowProps extends React.HtmlHTMLAttributes<HTMLDivElement>, BaseRowProps {
19
+ cols?: BaseColProps;
20
+ backgroundColor?: ColorOptions | [ColorOptions, OpacitiyOptions];
21
+ fontColor?: ColorOptions | [ColorOptions, OpacitiyOptions];
22
+ }
23
+ export declare type StyledRowProps = Omit<RowProps, 'cols'>;
24
+ export interface ContextInterface {
25
+ cols: BaseColProps;
26
+ }
@@ -0,0 +1 @@
1
+ export declare const Row: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<import("./interfaces").RowProps, "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" | "spacing" | "manifest" | "backgroundColor" | "fontColor" | "spacingAround" | "hover" | "borderless" | "horizontalAlign" | "verticalAlign" | "striped">, never>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const Grid: ((props: import("./components/Grid/interfaces").GridProps) => JSX.Element) & {
3
+ Row: (props: import("./components/Row/interfaces").RowProps) => JSX.Element;
4
+ Col: (props: import("./components/Col/interfaces").ColProps) => JSX.Element;
5
+ };
6
+ export default Grid;
@@ -0,0 +1,2 @@
1
+ export declare type HorizontalAligns = 'left' | 'center' | 'right' | 'around' | 'between';
2
+ export declare type VerticalAligns = 'top' | 'center' | 'bottom';
@@ -0,0 +1,5 @@
1
+ import { IntervalType, IntervalTypes } from './interfaces';
2
+ export declare const validate: (value: [Date, Date], min?: Date, max?: Date) => boolean;
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];
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DateIntervalPickerProps } from './interfaces';
3
+ declare const DatePicker: React.ForwardRefExoticComponent<DateIntervalPickerProps & React.RefAttributes<HTMLInputElement>>;
4
+ export default DatePicker;
@@ -0,0 +1,23 @@
1
+ import { InputProps } from '../Input/interfaces';
2
+ export interface DateIntervalPickerProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'htmlDisabled' | 'clearable' | 'onPressEnter' | 'min' | 'max' | 'setValue'> {
3
+ type: 'date-interval-picker';
4
+ value: [string, string];
5
+ setValue: (value: [string, string]) => void;
6
+ getLabel?: (value: [string, string]) => string;
7
+ max?: Date;
8
+ min?: Date;
9
+ }
10
+ export interface Variation {
11
+ label: (prev: [Date, Date]) => string;
12
+ initial: (base?: Date) => [Date, Date];
13
+ increment?: (prev: [Date, Date]) => [Date, Date];
14
+ decrement?: (prev: [Date, Date]) => [Date, Date];
15
+ getMinMax?: (min?: Date, max?: Date) => {
16
+ min?: Date;
17
+ max?: Date;
18
+ };
19
+ }
20
+ export declare type IntervalType = 'day' | 'week' | 'month' | 'custom';
21
+ export declare type IntervalTypes = {
22
+ [key in IntervalType]: Variation;
23
+ };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export declare const RelativeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ iconWidth: string;
5
+ invalid: 1 | 0;
6
+ disabled: 1 | 0;
7
+ }
8
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContainerProps, never>;
9
+ export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
10
+ export {};
@@ -12,7 +12,7 @@ export interface RangeProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
12
12
  invalid?: boolean;
13
13
  disabled?: boolean;
14
14
  required?: boolean;
15
- value?: string;
15
+ value: number;
16
16
  width?: string;
17
17
  onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: number) => void;
18
18
  markers?: {
@@ -0,0 +1 @@
1
+ export declare const HeaderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ContextInterface } from './interfaces';
3
+ declare const Provider: React.Context<ContextInterface>;
4
+ export declare const useContext: () => ContextInterface;
5
+ export default Provider;
@@ -0,0 +1,4 @@
1
+ import { useSelectReturn } from '../interfaces';
2
+ import { SelectProps } from './interfaces';
3
+ declare const useSelect: (props: SelectProps) => useSelectReturn;
4
+ export default useSelect;
@@ -0,0 +1,25 @@
1
+ import { ElementOrString } from '../../../../../../interfaces';
2
+ import { CommonContext, CommonOption, CommonProps } from '../interfaces';
3
+ export interface Option extends CommonOption {
4
+ onClick?: (index: number, data: {
5
+ label: {
6
+ text: string;
7
+ element: ElementOrString;
8
+ };
9
+ value: string;
10
+ }) => void;
11
+ }
12
+ interface LoaderReturn {
13
+ options: Option[];
14
+ lastPage: boolean;
15
+ }
16
+ export declare type Loader = (search: string, page: number) => Promise<LoaderReturn | Option[]>;
17
+ export interface SelectProps extends CommonProps {
18
+ type: 'select';
19
+ name?: string;
20
+ setValue: (value: string) => void;
21
+ value: string;
22
+ loader: Loader;
23
+ }
24
+ export declare type ContextInterface = CommonContext<SelectProps, Option>;
25
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Header: () => JSX.Element;
3
+ export default Header;
@@ -0,0 +1,2 @@
1
+ export declare const HeaderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const SelectAllContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ContextInterface } from './interfaces';
3
+ declare const Provider: React.Context<ContextInterface>;
4
+ export declare const useContext: () => ContextInterface;
5
+ export default Provider;
@@ -0,0 +1,4 @@
1
+ import { useSelectReturn } from '../interfaces';
2
+ import { SelectProps } from './interfaces';
3
+ declare const useSelectMultiple: (props: SelectProps) => useSelectReturn;
4
+ export default useSelectMultiple;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { CommonContext, CommonOption, CommonProps } from '../interfaces';
3
+ export declare type Option = CommonOption;
4
+ interface LoaderReturn {
5
+ options: Option[];
6
+ lastPage: boolean;
7
+ }
8
+ export declare type Loader = (search: string, page: number) => Promise<LoaderReturn | Option[]>;
9
+ export interface SelectProps extends CommonProps {
10
+ type: 'select-multiple';
11
+ setValue: (value: string[]) => void;
12
+ value: string[];
13
+ selectAll?: boolean;
14
+ loader: Loader;
15
+ }
16
+ export interface ContextInterface extends CommonContext<SelectProps, Option> {
17
+ checked: [string[], React.Dispatch<React.SetStateAction<string[]>>];
18
+ }
19
+ export {};