venice-ui 1.0.7 → 1.0.9

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 (99) hide show
  1. package/dist/cjs/Theme/Theme.js +3 -1
  2. package/dist/cjs/Theme/index.js +17 -0
  3. package/dist/cjs/components/Button/Button.styles.js +2 -1
  4. package/dist/cjs/components/Card/Card.js +3 -7
  5. package/dist/cjs/components/Card/Card.styles.js +1 -2
  6. package/dist/cjs/components/Card/index.js +3 -15
  7. package/dist/cjs/components/Dropdown/Dropdown.js +67 -0
  8. package/dist/cjs/components/Dropdown/Dropdown.styles.js +38 -0
  9. package/dist/cjs/components/Dropdown/DropdownElements.js +29 -0
  10. package/dist/cjs/components/Dropdown/index.js +18 -0
  11. package/dist/cjs/components/ElementHeader/ElementHeader.js +40 -0
  12. package/dist/cjs/components/ElementHeader/index.js +17 -0
  13. package/dist/cjs/components/Icons/Icon.js +1 -1
  14. package/dist/cjs/components/Icons/Icon.styles.js +1 -1
  15. package/dist/cjs/components/Icons/IconsPath.js +20 -9
  16. package/dist/cjs/components/InputText/InputText.js +10 -2
  17. package/dist/cjs/components/InputText/InputText.styles.js +33 -15
  18. package/dist/cjs/components/InputText/index.js +5 -1
  19. package/dist/cjs/components/Modal/Modal.js +2 -5
  20. package/dist/cjs/components/More/More.js +50 -0
  21. package/dist/cjs/components/More/More.styles.js +36 -0
  22. package/dist/cjs/components/More/index.js +17 -0
  23. package/dist/cjs/components/Selector/Selector.js +53 -0
  24. package/dist/cjs/components/Selector/Selector.styles.js +30 -0
  25. package/dist/cjs/components/Selector/index.js +17 -0
  26. package/dist/cjs/components/Sidepanel/Sidepanel.js +52 -0
  27. package/dist/cjs/components/Sidepanel/Sidepanel.styles.js +19 -0
  28. package/dist/cjs/components/Sidepanel/index.js +17 -0
  29. package/dist/cjs/components/Typography/Typography.styles.js +6 -1
  30. package/dist/cjs/components/common/index.js +1 -0
  31. package/dist/cjs/components/common/inputStyles.js +71 -0
  32. package/dist/cjs/index.js +3 -0
  33. package/dist/cjs/types/commonTypes.js +2 -0
  34. package/dist/cjs/types/index.js +1 -0
  35. package/dist/esm/Theme/Theme.js +3 -1
  36. package/dist/esm/Theme/index.js +1 -0
  37. package/dist/esm/components/Button/Button.styles.js +2 -1
  38. package/dist/esm/components/Card/Card.js +3 -7
  39. package/dist/esm/components/Card/Card.styles.js +1 -2
  40. package/dist/esm/components/Card/index.js +1 -1
  41. package/dist/esm/components/Dropdown/Dropdown.js +40 -0
  42. package/dist/esm/components/Dropdown/Dropdown.styles.js +32 -0
  43. package/dist/esm/components/Dropdown/DropdownElements.js +23 -0
  44. package/dist/esm/components/Dropdown/index.js +2 -0
  45. package/dist/esm/components/ElementHeader/ElementHeader.js +33 -0
  46. package/dist/esm/components/ElementHeader/index.js +1 -0
  47. package/dist/esm/components/Icons/Icon.js +1 -1
  48. package/dist/esm/components/Icons/Icon.styles.js +1 -1
  49. package/dist/esm/components/Icons/IconsPath.js +20 -9
  50. package/dist/esm/components/InputText/InputText.js +12 -4
  51. package/dist/esm/components/InputText/InputText.styles.js +32 -14
  52. package/dist/esm/components/InputText/index.js +1 -0
  53. package/dist/esm/components/Modal/Modal.js +2 -5
  54. package/dist/esm/components/More/More.js +23 -0
  55. package/dist/esm/components/More/More.styles.js +30 -0
  56. package/dist/esm/components/More/index.js +1 -0
  57. package/dist/esm/components/Selector/Selector.js +26 -0
  58. package/dist/esm/components/Selector/Selector.styles.js +24 -0
  59. package/dist/esm/components/Selector/index.js +1 -0
  60. package/dist/esm/components/Sidepanel/Sidepanel.js +25 -0
  61. package/dist/esm/components/Sidepanel/Sidepanel.styles.js +13 -0
  62. package/dist/esm/components/Sidepanel/index.js +1 -0
  63. package/dist/esm/components/Typography/Typography.styles.js +6 -1
  64. package/dist/esm/components/common/index.js +1 -0
  65. package/dist/esm/components/common/inputStyles.js +66 -0
  66. package/dist/esm/index.js +3 -0
  67. package/dist/esm/types/commonTypes.js +1 -0
  68. package/dist/esm/types/index.js +1 -0
  69. package/dist/types/Theme/Theme.d.ts +2 -0
  70. package/dist/types/Theme/index.d.ts +1 -0
  71. package/dist/types/components/Card/Card.d.ts +5 -0
  72. package/dist/types/components/Card/index.d.ts +1 -1
  73. package/dist/types/components/Dropdown/Dropdown.d.ts +17 -0
  74. package/dist/types/components/Dropdown/Dropdown.styles.d.ts +10 -0
  75. package/dist/types/components/Dropdown/DropdownElements.d.ts +9 -0
  76. package/dist/types/components/Dropdown/index.d.ts +2 -0
  77. package/dist/types/components/ElementHeader/ElementHeader.d.ts +19 -0
  78. package/dist/types/components/ElementHeader/index.d.ts +1 -0
  79. package/dist/types/components/Icons/IconsPath.d.ts +18 -7
  80. package/dist/types/components/InputText/InputText.d.ts +7 -8
  81. package/dist/types/components/InputText/InputText.styles.d.ts +16 -1
  82. package/dist/types/components/InputText/index.d.ts +1 -0
  83. package/dist/types/components/More/More.d.ts +9 -0
  84. package/dist/types/components/More/More.styles.d.ts +6 -0
  85. package/dist/types/components/More/index.d.ts +1 -0
  86. package/dist/types/components/Selector/Selector.d.ts +16 -0
  87. package/dist/types/components/Selector/Selector.styles.d.ts +7 -0
  88. package/dist/types/components/Selector/index.d.ts +1 -0
  89. package/dist/types/components/Sidepanel/Sidepanel.d.ts +12 -0
  90. package/dist/types/components/Sidepanel/Sidepanel.styles.d.ts +6 -0
  91. package/dist/types/components/Sidepanel/index.d.ts +1 -0
  92. package/dist/types/components/Typography/Typography.styles.d.ts +6 -1
  93. package/dist/types/components/common/index.d.ts +1 -0
  94. package/dist/types/components/common/inputStyles.d.ts +21 -0
  95. package/dist/types/index.d.ts +3 -0
  96. package/dist/types/types/commonTypes.d.ts +12 -0
  97. package/dist/types/types/index.d.ts +1 -0
  98. package/dist/types/types/types.d.ts +12 -0
  99. package/package.json +1 -1
@@ -1,18 +1,36 @@
1
+ import { defaultStyles, setSize, colorMode } from "../common";
1
2
  import styled from "styled-components";
2
- import { Theme } from "../../Theme/Theme";
3
- export const InputTextField = styled.input `
4
- background-color: ${Theme.colors.white};
5
- border: 1px solid ${Theme.colors.gray_1};
6
- width: 100%;
7
- border-radius: 2px;
8
- box-sizing: border-box;
9
- outline: 0;
10
- font-family: "Lato", sans-serif;
11
- padding: ${Theme.padding.s};
12
- margin: 0;
13
- font-size: ${Theme.fontSize.m};
14
-
3
+ import { Theme } from "../../Theme";
4
+ import { TextLabel } from "../Typography";
5
+ export const InputTextElement = styled.input `
6
+ position:relative;
7
+ ${defaultStyles}
8
+ ${(p) => setSize(p.inputSize)}
9
+ color: ${Theme.colors.text};
10
+ width: ${p => p.width ? p.width : '100%'};
15
11
  :focus {
16
- border-color: ${Theme.colors.primary};
12
+ ${colorMode.default}
17
13
  }
14
+ :disabled{
15
+ ${colorMode.disabled}
16
+ cursor: not-allowed;
17
+ }
18
+ ${p => p.error && `
19
+ ${colorMode.error}
20
+ `}
21
+ `;
22
+ export const InputLabelElement = styled(TextLabel) `
23
+ ${p => p.labelPosition === 'top' && `margin-bottom: ${Theme.padding.s};`}
24
+ ${p => p.labelPosition === 'left' && `margin-right: ${Theme.padding.s};`}
25
+ `;
26
+ export const InputWrapper = styled.div `
27
+ display:flex;
28
+ position:relative;
29
+ width: ${p => p.width ? p.width : '100%'};
30
+ `;
31
+ export const InputErrorMsg = styled.div `
32
+ color: ${Theme.colors.red};
33
+ font-size: ${Theme.fontSize.s};
34
+ position: absolute;
35
+ bottom: -20px;
18
36
  `;
@@ -1 +1,2 @@
1
1
  export { InputText } from "./InputText";
2
+ export { InputWrapper, InputLabelElement, InputErrorMsg } from './InputText.styles';
@@ -1,10 +1,9 @@
1
+ import { ElementHeader } from '../ElementHeader';
1
2
  import React from 'react';
2
3
  import { Theme } from '../../Theme/Theme';
3
4
  import { Aligment } from '../Aligment';
4
5
  import { Button } from '../Button';
5
6
  import { ScrollCotainer } from '../common';
6
- import { Icon } from '../Icons';
7
- import { TextHeader } from '../Typography';
8
7
  import { ModalElement, ModalOverlayer } from './Modal.styles';
9
8
  export const Modal = ({ children, title, handleConfirm, handleClose, labelConfirm, labelClose, size = 'small', }) => {
10
9
  const isMultiButtons = () => {
@@ -12,9 +11,7 @@ export const Modal = ({ children, title, handleConfirm, handleClose, labelConfir
12
11
  };
13
12
  return (React.createElement(ModalOverlayer, null,
14
13
  React.createElement(ModalElement, { size: size },
15
- React.createElement(Aligment, { justify: !title ? 'flex-end' : 'space-between', vPadding: Theme.padding.l, hPadding: Theme.padding.l },
16
- title && React.createElement(TextHeader, null, title),
17
- React.createElement(Icon, { onClick: handleClose, name: "close" })),
14
+ React.createElement(ElementHeader, { title: title, handleClose: handleClose }),
18
15
  React.createElement(ScrollCotainer, null, children),
19
16
  React.createElement(Aligment, { justify: 'flex-end', vPadding: Theme.padding.l, hPadding: Theme.padding.l },
20
17
  React.createElement(Button, { mode: isMultiButtons() ? 'inverse' : 'primary', onClick: () => handleClose(), text: labelClose, left: isMultiButtons() }),
@@ -0,0 +1,23 @@
1
+ import React, { useState, useRef, useEffect } from 'react';
2
+ import { Theme } from '../../Theme';
3
+ import { Icon } from '../Icons';
4
+ import { MoreElement, MoreOptions, MoreOption } from './More.styles';
5
+ export const More = ({ options, size = 'medium', iconName = 'more_vert', }) => {
6
+ const [open, toogleOpen] = useState(false);
7
+ const ref = useRef(null);
8
+ useEffect(() => {
9
+ const handleClickOutside = (event) => {
10
+ if (ref.current && !ref.current.contains(event.target)) {
11
+ toogleOpen(false);
12
+ }
13
+ };
14
+ document.addEventListener('click', handleClickOutside, true);
15
+ return () => {
16
+ document.removeEventListener('click', handleClickOutside, true);
17
+ };
18
+ }, [open]);
19
+ return (React.createElement(MoreElement, null,
20
+ React.createElement(Icon, { name: iconName, onClick: () => toogleOpen(!open), color: Theme.colors.primary }),
21
+ open && (React.createElement(MoreOptions, { ref: ref }, options &&
22
+ options.map((option) => (React.createElement(MoreOption, { key: option.label, onClick: option.action }, option.label)))))));
23
+ };
@@ -0,0 +1,30 @@
1
+ import { lighten } from "polished";
2
+ import styled from "styled-components";
3
+ import { Theme } from "../../Theme";
4
+ export const MoreElement = styled.div `
5
+ position:relative;
6
+ width:auto;
7
+ display: flex;
8
+ box-sizing: border-box;
9
+ `;
10
+ export const MoreOptions = styled.div `
11
+ box-sizing:border-box;
12
+ background-color:${Theme.colors.white};
13
+ box-shadow:${Theme.shadow.m};
14
+ padding: ${Theme.padding.m} 0;
15
+ border-radius: ${Theme.borderRadius.m};
16
+ width:auto;
17
+ position:absolute;
18
+ z-index:${Theme.zIndex.dropdown};
19
+ top:32px;
20
+ left:0px;
21
+ `;
22
+ export const MoreOption = styled.div `
23
+ padding: ${Theme.padding.s} ${Theme.padding.m};
24
+ cursor: pointer;
25
+ color: ${Theme.colors.primary};
26
+ :hover{
27
+ background-color: ${lighten(0.4, Theme.colors.primary)};
28
+ }
29
+
30
+ `;
@@ -0,0 +1 @@
1
+ export * from './More';
@@ -0,0 +1,26 @@
1
+ import { Aligment } from '../Aligment';
2
+ import React, { useState } from 'react';
3
+ import { InputErrorMsg, InputLabelElement } from '../InputText';
4
+ import { Icon } from '../Icons';
5
+ import { SelectorElement, SelectorValue } from './Selector.styles';
6
+ import { Modal } from '../Modal';
7
+ import { DropdownOption } from '../Dropdown/Dropdown.styles';
8
+ export const Selector = ({ label, labelPosition = 'top', size = 'medium', width, options, value, name, error, handleSelect, handleClear, iconName = 'add_circle', }) => {
9
+ const [open, toogleOpen] = useState(false);
10
+ const selectOption = (selectedValue) => {
11
+ handleSelect(name, selectedValue);
12
+ toogleOpen(false);
13
+ };
14
+ const getLabelForValue = (value) => {
15
+ return options.find((option) => option.value === value).label;
16
+ };
17
+ return (React.createElement(Aligment, { align: labelPosition === 'top' ? 'flex-start' : 'center', justify: labelPosition === 'top' ? 'center' : 'flex-start', direction: labelPosition === 'top' ? 'column' : 'row', wrap: 'nowrap', width: width },
18
+ label && (React.createElement(InputLabelElement, { size: size, labelPosition: labelPosition }, label)),
19
+ React.createElement(SelectorElement, null,
20
+ value ? (React.createElement(React.Fragment, null,
21
+ React.createElement(SelectorValue, { onClick: () => toogleOpen(true), size: size }, getLabelForValue(value)),
22
+ React.createElement(Icon, { name: 'close', onClick: () => handleClear(), size: 20 }))) : (React.createElement(Icon, { name: iconName, onClick: () => toogleOpen(true), size: 20 })),
23
+ open && (React.createElement(Modal, { title: "Select", labelClose: "Close", handleClose: () => toogleOpen(false) }, options &&
24
+ options.map((option) => (React.createElement(DropdownOption, { key: option.value, active: option.value === value, onClick: () => selectOption(option.value) }, option.label))))),
25
+ error && React.createElement(InputErrorMsg, null, error))));
26
+ };
@@ -0,0 +1,24 @@
1
+ import styled from "styled-components";
2
+ import { Theme } from "../../Theme";
3
+ import { setLabelFontSize } from '../common';
4
+ import { lighten } from "polished";
5
+ export const SelectorElement = styled.div `
6
+ position: relative;
7
+ cursor: pointer;
8
+ display:flex;
9
+ box-sizing:border-box;
10
+ `;
11
+ export const SelectorValue = styled.div `
12
+ cursor: pointer;
13
+ display:flex;
14
+ box-sizing:border-box;
15
+ width:100%;
16
+ align-items: center;
17
+ padding: ${Theme.padding.s};
18
+ ${(p) => setLabelFontSize(p.size)}
19
+ color:${Theme.colors.primary};
20
+ &:hover{
21
+ background-color: ${lighten(0.3, Theme.colors.primary)};
22
+ }
23
+
24
+ `;
@@ -0,0 +1 @@
1
+ export * from './Selector';
@@ -0,0 +1,25 @@
1
+ import { ElementHeader } from '../ElementHeader';
2
+ import React, { useEffect, useRef } from 'react';
3
+ import { ModalOverlayer } from '../Modal/Modal.styles';
4
+ import { SidepanelElement } from './Sidepanel.styles';
5
+ import { Icon } from '../Icons';
6
+ export const Sidepanel = ({ handleClose, children, right = false, overlayer = true, top = 0, iconOptions, }) => {
7
+ const ref = useRef(null);
8
+ useEffect(() => {
9
+ const handleClickOutside = (event) => {
10
+ if (ref.current && !ref.current.contains(event.target)) {
11
+ handleClose && handleClose();
12
+ }
13
+ };
14
+ document.addEventListener('click', handleClickOutside, true);
15
+ return () => {
16
+ document.removeEventListener('click', handleClickOutside, true);
17
+ };
18
+ }, [handleClose]);
19
+ return (React.createElement(React.Fragment, null,
20
+ React.createElement(SidepanelElement, { right: right, top: top, ref: ref },
21
+ React.createElement(ElementHeader, { handleClose: handleClose, showTitle: false }, iconOptions &&
22
+ iconOptions.map((icon) => (React.createElement(Icon, { name: icon.iconName, onClick: icon.action, key: icon.iconName })))),
23
+ children),
24
+ overlayer && React.createElement(ModalOverlayer, { onClick: handleClose })));
25
+ };
@@ -0,0 +1,13 @@
1
+ import styled from "styled-components";
2
+ import { Theme } from '../../Theme/Theme';
3
+ export const SidepanelElement = styled.div `
4
+ height: calc( 100vh - ${p => p.top}px);
5
+ width: 20rem;
6
+ background-color: ${Theme.colors.white};
7
+ position: fixed;
8
+ top: ${p => p.top};
9
+ z-index: 1001;
10
+ box-shadow: ${Theme.shadow.m};
11
+ ${p => p.right ? `right:0;` : 'left:0;'}
12
+
13
+ `;
@@ -0,0 +1 @@
1
+ export * from './Sidepanel';
@@ -1,3 +1,4 @@
1
+ import { setLabelFontSize } from '../common';
1
2
  import styled from 'styled-components';
2
3
  import { Theme } from '../../Theme/Theme';
3
4
  export const Text = styled.div `
@@ -21,7 +22,11 @@ export const TextSubHeader = styled.div `
21
22
  font-weight: 300;
22
23
  `;
23
24
  export const TextLabel = styled.div `
25
+ font-weight: ${(p) => (p.labelPosition === 'left' ? 'normla' : 'bold')};
26
+ ${(p) => p.size && p.labelPosition === 'left'
27
+ ? setLabelFontSize(p.size)
28
+ : `
24
29
  font-size: ${Theme.fontSize.xs};
25
30
  line-height: ${Theme.lineHeight.xs};
26
- font-weight: bold;
31
+ `}
27
32
  `;
@@ -1 +1,2 @@
1
1
  export * from './commonComponents';
2
+ export * from './inputStyles';
@@ -0,0 +1,66 @@
1
+ import { lighten } from "polished";
2
+ import { Theme } from "../../Theme";
3
+ export const defaultStyles = `
4
+ box-sizing: border-box;
5
+ background-color: ${Theme.colors.white};
6
+ border: 1px solid ${Theme.colors.gray_1};
7
+ border-radius: ${Theme.borderRadius.m};
8
+ width: 100%;
9
+ font-family: "Lato", sans-serif;
10
+ outline: 0;
11
+ `;
12
+ export const sizes = {
13
+ xsmall: `
14
+ padding: ${Theme.padding.s};
15
+ font-size: ${Theme.fontSize.s};
16
+ `,
17
+ small: `
18
+ padding: ${Theme.padding.s};
19
+ font-size: ${Theme.fontSize.m};
20
+ `,
21
+ medium: `
22
+ padding: ${Theme.padding.m};
23
+ font-size: ${Theme.fontSize.m};`,
24
+ large: `
25
+ padding: ${Theme.padding.m};
26
+ font-size: ${Theme.fontSize.l};
27
+ `
28
+ };
29
+ export const setSize = (size) => {
30
+ return sizes[size];
31
+ };
32
+ export const colorMode = {
33
+ default: `
34
+ border-color: ${Theme.colors.primary};
35
+ background-color: ${lighten(0.4, Theme.colors.primary)};
36
+ `,
37
+ disabled: `
38
+ border-color: ${Theme.colors.disableText};
39
+ background-color: ${lighten(0.2, Theme.colors.gray_1)};
40
+ color:${Theme.colors.disableText};
41
+ `,
42
+ error: `
43
+ border-color: ${Theme.colors.red};
44
+ background-color: ${lighten(0.5, Theme.colors.red)};
45
+ `,
46
+ };
47
+ export const lableFontSize = {
48
+ xsmall: `
49
+ line-height: ${Theme.lineHeight.s};
50
+ font-size: ${Theme.fontSize.s};
51
+ `,
52
+ small: `
53
+ line-height: ${Theme.lineHeight.m};
54
+ font-size: ${Theme.fontSize.m};
55
+ `,
56
+ medium: `
57
+ line-height: ${Theme.lineHeight.m};
58
+ font-size: ${Theme.fontSize.m};`,
59
+ large: `
60
+ line-height: ${Theme.lineHeight.m};
61
+ font-size: ${Theme.fontSize.l};
62
+ `
63
+ };
64
+ export const setLabelFontSize = (size) => {
65
+ return lableFontSize[size];
66
+ };
package/dist/esm/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  export * from './components/Aligment';
2
2
  export * from './components/Button';
3
3
  export * from './components/Card';
4
+ export * from './components/Dropdown';
5
+ export * from './components/ElementHeader';
4
6
  export * from './components/Icons';
5
7
  export * from "./components/InputText";
6
8
  export * from './components/Modal';
9
+ export * from './components/Sidepanel';
7
10
  export * from './components/Typography';
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
1
  export * from './types';
2
+ export * from './commonTypes';
@@ -8,6 +8,7 @@ export declare const Theme: {
8
8
  black: string;
9
9
  gray_1: string;
10
10
  overlayer: string;
11
+ red: string;
11
12
  };
12
13
  fontSize: {
13
14
  xs: string;
@@ -33,6 +34,7 @@ export declare const Theme: {
33
34
  };
34
35
  zIndex: {
35
36
  modalOverlayer: number;
37
+ dropdown: number;
36
38
  };
37
39
  borderRadius: {
38
40
  s: string;
@@ -0,0 +1 @@
1
+ export * from './Theme';
@@ -1,10 +1,15 @@
1
1
  import React, { FC } from 'react';
2
+ import { IAction } from 'types';
2
3
  interface ICardProps {
3
4
  children: React.ReactNode;
4
5
  title?: string;
5
6
  actionLabel?: string;
6
7
  handleClick?: () => void;
8
+ handleBack?: () => void;
7
9
  height?: string;
10
+ moreIcon?: boolean;
11
+ backIcon?: boolean;
12
+ options?: IAction[];
8
13
  }
9
14
  export declare const Card: FC<ICardProps>;
10
15
  export {};
@@ -1 +1 @@
1
- export * from './Card';
1
+ export { Card } from './Card';
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import { InputSize, IOption, LabelPosition } from 'types';
3
+ export interface IDropdownProps {
4
+ mode: 'normal' | 'icon';
5
+ label?: string;
6
+ labelPosition?: LabelPosition;
7
+ size?: InputSize;
8
+ disabled?: boolean;
9
+ error?: string;
10
+ width?: string;
11
+ options: IOption[];
12
+ value?: string | number;
13
+ placeholder?: string;
14
+ name: string;
15
+ handleSelect: (name: string, value: string | number) => void;
16
+ }
17
+ export declare const Dropdown: FC<IDropdownProps>;
@@ -0,0 +1,10 @@
1
+ export declare const DropdownElement: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ interface IDropdownOptionsProps {
3
+ height?: string;
4
+ }
5
+ export declare const DropdownOptions: import("styled-components").StyledComponent<"div", any, IDropdownOptionsProps, never>;
6
+ interface IDropdownOptionProps {
7
+ active: boolean;
8
+ }
9
+ export declare const DropdownOption: import("styled-components").StyledComponent<"div", any, IDropdownOptionProps, never>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { InputSize } from "types";
2
+ export interface IFieldProps {
3
+ inputSize: InputSize;
4
+ disabled: boolean;
5
+ error?: string;
6
+ width?: string;
7
+ active: boolean;
8
+ }
9
+ export declare const Field: import("styled-components").StyledComponent<"div", any, IFieldProps, never>;
@@ -0,0 +1,2 @@
1
+ export * from './Dropdown';
2
+ export * from './DropdownElements';
@@ -0,0 +1,19 @@
1
+ import React, { FC } from 'react';
2
+ import { IAction } from 'types';
3
+ interface IElementHeader {
4
+ title?: string;
5
+ showTitle?: boolean;
6
+ moreIcon?: boolean;
7
+ closeIcon?: boolean;
8
+ backIcon?: boolean;
9
+ actionButton?: boolean;
10
+ actionLabel?: string;
11
+ handleClose?: () => void;
12
+ handleClick?: () => void;
13
+ handleBack?: () => void;
14
+ children?: React.ReactNode;
15
+ bgColor?: string;
16
+ options?: IAction[];
17
+ }
18
+ export declare const ElementHeader: FC<IElementHeader>;
19
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ElementHeader';
@@ -1,11 +1,22 @@
1
1
  export declare const iconsPath: {
2
- close: string;
3
- add: string;
2
+ calendar: string;
3
+ bookmark: string;
4
+ forward: string;
4
5
  back: string;
5
- delete: string;
6
- remove: string;
7
- person: string;
6
+ back_arrow: string;
7
+ add: string;
8
+ add_circle: string;
9
+ account: string;
10
+ visibility: string;
11
+ search: string;
12
+ more_vert: string;
8
13
  menu: string;
9
- expand_more: string;
10
- expand_less: string;
14
+ unlock: string;
15
+ lock: string;
16
+ home: string;
17
+ filters: string;
18
+ edit: string;
19
+ download: string;
20
+ delete: string;
21
+ close: string;
11
22
  };
@@ -1,11 +1,10 @@
1
- import { FC } from "react";
2
- export interface IInputTextProps {
3
- label: string;
4
- value: string | number;
1
+ import { FC } from 'react';
2
+ import { InputType, IFormElement } from 'types';
3
+ export interface IInputTextProps extends IFormElement {
4
+ type: InputType;
5
5
  name: string;
6
- read?: boolean;
7
- disable?: boolean;
8
- size?: string;
9
- onChange: any;
6
+ handleChange: (name: string, value: string | number) => void;
7
+ error?: string;
8
+ placeholder?: string;
10
9
  }
11
10
  export declare const InputText: FC<IInputTextProps>;
@@ -1 +1,16 @@
1
- export declare const InputTextField: import("styled-components").StyledComponent<"input", any, {}, never>;
1
+ import { InputHTMLAttributes } from "react";
2
+ import { InputSize } from "types";
3
+ interface IInputTextElementProps extends InputHTMLAttributes<HTMLInputElement> {
4
+ inputSize: InputSize;
5
+ disabled: boolean;
6
+ error?: string;
7
+ width?: string;
8
+ }
9
+ export declare const InputTextElement: import("styled-components").StyledComponent<"input", any, IInputTextElementProps, never>;
10
+ export declare const InputLabelElement: import("styled-components").StyledComponent<"div", any, import("../Typography/Typography.styles").ITextLabelProps, never>;
11
+ interface IInputWrapperProps {
12
+ width?: string;
13
+ }
14
+ export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, IInputWrapperProps, never>;
15
+ export declare const InputErrorMsg: import("styled-components").StyledComponent<"div", any, {}, never>;
16
+ export {};
@@ -1 +1,2 @@
1
1
  export { InputText } from "./InputText";
2
+ export { InputWrapper, InputLabelElement, InputErrorMsg } from './InputText.styles';
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { IAction, InputSize } from 'types';
3
+ interface IMoreProps {
4
+ options: IAction[];
5
+ size?: InputSize;
6
+ iconName?: string;
7
+ }
8
+ export declare const More: FC<IMoreProps>;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const MoreElement: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const MoreOptions: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export interface IMoreOptionStyle {
4
+ onClick: any;
5
+ }
6
+ export declare const MoreOption: import("styled-components").StyledComponent<"div", any, IMoreOptionStyle, never>;
@@ -0,0 +1 @@
1
+ export * from './More';
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ import { InputSize, IOption, LabelPosition } from 'types';
3
+ export interface ISelectorProps {
4
+ label?: string;
5
+ labelPosition?: LabelPosition;
6
+ size?: InputSize;
7
+ width?: string;
8
+ options: IOption[];
9
+ value?: string | number;
10
+ name: string;
11
+ error?: string;
12
+ handleSelect: (name: string, value: string | number) => void;
13
+ handleClear: () => void;
14
+ iconName?: string;
15
+ }
16
+ export declare const Selector: FC<ISelectorProps>;
@@ -0,0 +1,7 @@
1
+ import { InputSize } from "types";
2
+ export declare const SelectorElement: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ interface ISelectorValueStyle {
4
+ size: InputSize;
5
+ }
6
+ export declare const SelectorValue: import("styled-components").StyledComponent<"div", any, ISelectorValueStyle, never>;
7
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Selector';
@@ -0,0 +1,12 @@
1
+ import React, { FC } from 'react';
2
+ import { IIconsActions } from 'types';
3
+ interface ISidepanel {
4
+ children: React.ReactNode;
5
+ handleClose: () => void;
6
+ right?: boolean;
7
+ overlayer?: boolean;
8
+ top?: number;
9
+ iconOptions?: IIconsActions[];
10
+ }
11
+ export declare const Sidepanel: FC<ISidepanel>;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ interface ISidepanelElement {
2
+ right: boolean;
3
+ top: number;
4
+ }
5
+ export declare const SidepanelElement: import("styled-components").StyledComponent<"div", any, ISidepanelElement, never>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Sidepanel';
@@ -1,5 +1,10 @@
1
+ import { InputSize, LabelPosition } from 'types';
1
2
  export declare const Text: import("styled-components").StyledComponent<"div", any, {}, never>;
2
3
  export declare const TextSmall: import("styled-components").StyledComponent<"div", any, {}, never>;
3
4
  export declare const TextHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
4
5
  export declare const TextSubHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const TextLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export interface ITextLabelProps {
7
+ size?: InputSize;
8
+ labelPosition?: LabelPosition;
9
+ }
10
+ export declare const TextLabel: import("styled-components").StyledComponent<"div", any, ITextLabelProps, never>;
@@ -1 +1,2 @@
1
1
  export * from './commonComponents';
2
+ export * from './inputStyles';
@@ -0,0 +1,21 @@
1
+ import { InputSize } from "types";
2
+ export declare const defaultStyles: string;
3
+ export declare const sizes: {
4
+ xsmall: string;
5
+ small: string;
6
+ medium: string;
7
+ large: string;
8
+ };
9
+ export declare const setSize: (size: InputSize) => string;
10
+ export declare const colorMode: {
11
+ default: string;
12
+ disabled: string;
13
+ error: string;
14
+ };
15
+ export declare const lableFontSize: {
16
+ xsmall: string;
17
+ small: string;
18
+ medium: string;
19
+ large: string;
20
+ };
21
+ export declare const setLabelFontSize: (size: InputSize) => string;