venice-ui 2.0.11 → 2.0.13

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.
@@ -30,14 +30,31 @@ const Dropdown_styles_1 = require("./Dropdown.styles");
30
30
  const DropdownElements_1 = require("./DropdownElements");
31
31
  const Input_1 = require("../Input");
32
32
  const common_1 = require("../common");
33
- const Dropdown = ({ size = 'medium', label, labelPosition = 'top', disabled = false, error, width, options, value, placeholder = 'Please select', name, handleSelect, }) => {
33
+ const react_dom_1 = require("react-dom");
34
+ const Dropdown = ({ size = 'medium', label, labelPosition = 'top', disabled = false, error, width, options, value, placeholder = 'Please select', name, handleSelect, position = 'left', zIndex, }) => {
34
35
  const [open, toogleOpen] = (0, react_1.useState)(false);
35
36
  const ref = (0, react_1.useRef)(null);
37
+ const sourceRef = (0, react_1.useRef)(null);
38
+ const [dropdownStyles, setDropdownStyles] = (0, react_1.useState)({});
36
39
  const getLabelForValue = (value) => {
37
40
  return options.find((option) => option.value === value).label;
38
41
  };
39
42
  const handleOpen = () => {
40
43
  if (!disabled) {
44
+ if (sourceRef.current) {
45
+ const buttonRect = sourceRef.current.getBoundingClientRect();
46
+ const positionStyle = {
47
+ top: buttonRect.bottom + window.scrollY,
48
+ width: buttonRect.width,
49
+ };
50
+ if (position === 'left') {
51
+ positionStyle.left = buttonRect.left + window.scrollX;
52
+ }
53
+ else if (position === 'right') {
54
+ positionStyle.right = buttonRect.right + window.scrollX;
55
+ }
56
+ setDropdownStyles(positionStyle);
57
+ }
41
58
  toogleOpen(!open);
42
59
  }
43
60
  };
@@ -59,10 +76,11 @@ const Dropdown = ({ size = 'medium', label, labelPosition = 'top', disabled = fa
59
76
  }, [open]);
60
77
  return (react_1.default.createElement(Aligment_1.Aligment, { align: labelPosition === 'top' ? 'flex-start' : 'center', direction: labelPosition === 'top' ? 'column' : 'row', wrap: 'nowrap', width: width },
61
78
  label && (react_1.default.createElement(Input_1.InputLabelElement, { size: size, labelPosition: labelPosition }, label)),
62
- react_1.default.createElement(Dropdown_styles_1.DropdownElement, { onClick: () => handleOpen() },
79
+ react_1.default.createElement(Dropdown_styles_1.DropdownElement, { onClick: () => handleOpen(), ref: sourceRef },
63
80
  react_1.default.createElement(DropdownElements_1.Field, { inputSize: size, disabled: disabled, width: width, active: open, error: error }, value ? getLabelForValue(value) : placeholder),
64
- open && (react_1.default.createElement(common_1.Panel, { ref: ref, size: size, position: "left", fullWidth: true }, options &&
65
- options.map((option) => (react_1.default.createElement(common_1.PanelOption, { key: option.value, active: option.value === value, onClick: (e) => selectOption(e, option.value) }, option.label))))),
81
+ open &&
82
+ (0, react_dom_1.createPortal)(react_1.default.createElement(common_1.Panel, { style: dropdownStyles, ref: ref, size: size, fullWidth: true, zIndex: zIndex }, options &&
83
+ options.map((option) => (react_1.default.createElement(common_1.PanelOption, { key: option.value, active: option.value === value, onClick: (e) => selectOption(e, option.value) }, option.label)))), document.body),
66
84
  error && react_1.default.createElement(Input_1.InputErrorMsg, null, error))));
67
85
  };
68
86
  exports.Dropdown = Dropdown;
@@ -31,12 +31,31 @@ const Icons_1 = require("../Icons");
31
31
  const DropdownMenu_styles_1 = require("./DropdownMenu.styles");
32
32
  const Aligment_1 = require("../Aligment");
33
33
  const Typography_1 = require("../Typography");
34
- const DropdownMenu = ({ size = 'medium', iconName = 'more_vert', header = false, headerTitle, headerSubtitle, footer = false, footerText, footerAction, options, right = false, left = false, targetID, iconColor = Theme_1.mainTheme.iconColor, iconHoverColor = Theme_1.mainTheme.iconHoverColor, iconBgColor = Theme_1.mainTheme.iconBgColor, iconBgHoverColor = Theme_1.mainTheme.iconBgHoverColor, }) => {
34
+ const react_dom_1 = require("react-dom");
35
+ const DropdownMenu = ({ size = 'medium', iconName = 'more_vert', header = false, headerTitle, headerSubtitle, footer = false, footerText, footerAction, options, right = false, left = false, targetID, iconColor = Theme_1.mainTheme.iconColor, iconHoverColor = Theme_1.mainTheme.iconHoverColor, iconBgColor = Theme_1.mainTheme.iconBgColor, iconBgHoverColor = Theme_1.mainTheme.iconBgHoverColor, position = 'left', zIndex, }) => {
35
36
  const [open, toogleOpen] = (0, react_1.useState)(false);
36
37
  const ref = (0, react_1.useRef)(null);
38
+ const sourceRef = (0, react_1.useRef)(null);
39
+ const [dropdownStyles, setDropdownStyles] = (0, react_1.useState)({});
37
40
  const close = () => {
38
41
  toogleOpen(false);
39
42
  };
43
+ const toogle = (openState) => {
44
+ if (sourceRef.current && openState) {
45
+ const buttonRect = sourceRef.current.getBoundingClientRect();
46
+ const positionStyle = {
47
+ top: buttonRect.bottom + window.scrollY,
48
+ };
49
+ if (position === 'left') {
50
+ positionStyle.left = buttonRect.left + window.scrollX;
51
+ }
52
+ else if (position === 'right') {
53
+ positionStyle.right = buttonRect.right + window.scrollX;
54
+ }
55
+ setDropdownStyles(positionStyle);
56
+ }
57
+ toogleOpen(openState);
58
+ };
40
59
  const handleFooterAction = () => {
41
60
  footerAction && footerAction();
42
61
  close();
@@ -57,14 +76,16 @@ const DropdownMenu = ({ size = 'medium', iconName = 'more_vert', header = false,
57
76
  };
58
77
  }, [open]);
59
78
  return (react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuElement, null,
60
- react_1.default.createElement(Icons_1.Icon, { name: iconName, onClick: () => toogleOpen(!open), size: (0, common_1.setIconSize)(size), isActive: open, right: right, left: left, iconColor: iconColor, iconHoverColor: iconHoverColor, iconBgColor: iconBgColor, iconBgHoverColor: iconBgHoverColor }),
61
- open && (react_1.default.createElement(common_1.Panel, { ref: ref, size: size, position: "right" },
62
- react_1.default.createElement(Aligment_1.Aligment, { direction: "column" },
63
- header && (react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuHeader, null,
64
- headerTitle && (react_1.default.createElement(Typography_1.TextAccent, { color: Theme_1.Theme.colors.text }, headerTitle)),
65
- headerSubtitle && (react_1.default.createElement(Typography_1.TextLabel, { color: Theme_1.Theme.colors.text }, headerSubtitle)))),
66
- react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuContent, null, options &&
67
- options.map((option) => (react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuOption, { key: option.label, onClick: () => handleClick(option.action) }, option.label)))),
68
- footer && (react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuFooter, null, footerText && (react_1.default.createElement(Typography_1.Text, { action: true, onClick: handleFooterAction }, footerText)))))))));
79
+ react_1.default.createElement("div", { ref: sourceRef, onClick: () => toogle(!open) },
80
+ react_1.default.createElement(Icons_1.Icon, { name: iconName, size: (0, common_1.setIconSize)(size), isActive: open, right: right, left: left, iconColor: iconColor, iconHoverColor: iconHoverColor, iconBgColor: iconBgColor, iconBgHoverColor: iconBgHoverColor })),
81
+ open &&
82
+ (0, react_dom_1.createPortal)(react_1.default.createElement(common_1.Panel, { style: dropdownStyles, ref: ref, size: size, zIndex: zIndex },
83
+ react_1.default.createElement(Aligment_1.Aligment, { direction: "column" },
84
+ header && (react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuHeader, null,
85
+ headerTitle && (react_1.default.createElement(Typography_1.TextAccent, { color: Theme_1.Theme.colors.text }, headerTitle)),
86
+ headerSubtitle && (react_1.default.createElement(Typography_1.TextLabel, { color: Theme_1.Theme.colors.text }, headerSubtitle)))),
87
+ react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuContent, null, options &&
88
+ options.map((option) => (react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuOption, { key: option.label, onClick: () => handleClick(option.action) }, option.label)))),
89
+ footer && (react_1.default.createElement(DropdownMenu_styles_1.DropdownMenuFooter, null, footerText && (react_1.default.createElement(Typography_1.Text, { action: true, onClick: handleFooterAction }, footerText)))))), document.body)));
69
90
  };
70
91
  exports.DropdownMenu = DropdownMenu;
@@ -36,7 +36,7 @@ exports.DropdownMenuOption = styled_components_1.default.div `
36
36
  cursor: pointer;
37
37
  white-space: nowrap;
38
38
  color: ${Theme_1.Theme.colors.text};
39
-
39
+ font-size:1.6rem;
40
40
  :hover {
41
41
  background-color: ${(0, polished_1.lighten)(0.4, Theme_1.Theme.colors.primary)};
42
42
  }
@@ -26,12 +26,11 @@ exports.Panel = styled_components_1.default.div `
26
26
  height: ${(p) => (p.height ? p.height : 'auto')};
27
27
  width: ${(p) => (p.fullWidth ? '100%' : 'auto')};
28
28
  position: absolute;
29
- z-index: ${Theme_1.Theme.zIndex.dropdown};
29
+ z-index: ${p => p.zIndex ? p.zIndex : Theme_1.Theme.zIndex.dropdown};
30
30
  top: ${(p) => (0, inputStyles_1.setPanelTop)(p.size)};
31
31
  border: 1px solid ${Theme_1.Theme.colors.gray_2};
32
32
  border-top: none;
33
33
  min-width: 30px;
34
- ${(p) => (0, inputStyles_1.setPanelPosition)(p.position)}
35
34
  `;
36
35
  exports.PanelOption = styled_components_1.default.div `
37
36
  padding: ${Theme_1.Theme.padding.s} ${Theme_1.Theme.padding.m};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setAnimationParams = exports.animationParams = exports.setFieldHeight = exports.fieldHeight = exports.setPanelPosition = exports.panelPosition = exports.setPanelTop = exports.panelTop = exports.setIconSize = exports.iconSize = exports.setLabelFontSize = exports.lableFontSize = exports.inputColorSchema = exports.setEyeTopPosition = exports.setButtonLoaderSize = exports.setToogleSize = exports.setButtonSize = exports.setHeight = exports.setSize = exports.eyeTopPosition = exports.buttonLoaderHeight = exports.buttonLoaderPadding = exports.buttonPadding = exports.inputPadding = exports.toogleSize = exports.height = exports.sizes = exports.defaultStyles = void 0;
3
+ exports.setAnimationParams = exports.animationParams = exports.setFieldHeight = exports.fieldHeight = exports.setPanelTop = exports.panelTop = exports.setIconSize = exports.iconSize = exports.setLabelFontSize = exports.lableFontSize = exports.inputColorSchema = exports.setEyeTopPosition = exports.setButtonLoaderSize = exports.setToogleSize = exports.setButtonSize = exports.setHeight = exports.setSize = exports.eyeTopPosition = exports.buttonLoaderHeight = exports.buttonLoaderPadding = exports.buttonPadding = exports.inputPadding = exports.toogleSize = exports.height = exports.sizes = exports.defaultStyles = void 0;
4
4
  const polished_1 = require("polished");
5
5
  const Theme_1 = require("../../Theme");
6
6
  exports.defaultStyles = `
@@ -172,14 +172,6 @@ const setPanelTop = (size) => {
172
172
  return exports.panelTop[size];
173
173
  };
174
174
  exports.setPanelTop = setPanelTop;
175
- exports.panelPosition = {
176
- left: `left:0px`,
177
- right: 'right:0px',
178
- };
179
- const setPanelPosition = (position) => {
180
- return exports.panelPosition[position];
181
- };
182
- exports.setPanelPosition = setPanelPosition;
183
175
  exports.fieldHeight = {
184
176
  small: '26px',
185
177
  medium: '36px',
@@ -4,14 +4,31 @@ import { DropdownElement } from './Dropdown.styles';
4
4
  import { Field } from './DropdownElements';
5
5
  import { InputErrorMsg, InputLabelElement } from '../Input';
6
6
  import { Panel, PanelOption } from '../common';
7
- export const Dropdown = ({ size = 'medium', label, labelPosition = 'top', disabled = false, error, width, options, value, placeholder = 'Please select', name, handleSelect, }) => {
7
+ import { createPortal } from 'react-dom';
8
+ export const Dropdown = ({ size = 'medium', label, labelPosition = 'top', disabled = false, error, width, options, value, placeholder = 'Please select', name, handleSelect, position = 'left', zIndex, }) => {
8
9
  const [open, toogleOpen] = useState(false);
9
10
  const ref = useRef(null);
11
+ const sourceRef = useRef(null);
12
+ const [dropdownStyles, setDropdownStyles] = useState({});
10
13
  const getLabelForValue = (value) => {
11
14
  return options.find((option) => option.value === value).label;
12
15
  };
13
16
  const handleOpen = () => {
14
17
  if (!disabled) {
18
+ if (sourceRef.current) {
19
+ const buttonRect = sourceRef.current.getBoundingClientRect();
20
+ const positionStyle = {
21
+ top: buttonRect.bottom + window.scrollY,
22
+ width: buttonRect.width,
23
+ };
24
+ if (position === 'left') {
25
+ positionStyle.left = buttonRect.left + window.scrollX;
26
+ }
27
+ else if (position === 'right') {
28
+ positionStyle.right = buttonRect.right + window.scrollX;
29
+ }
30
+ setDropdownStyles(positionStyle);
31
+ }
15
32
  toogleOpen(!open);
16
33
  }
17
34
  };
@@ -33,9 +50,10 @@ export const Dropdown = ({ size = 'medium', label, labelPosition = 'top', disabl
33
50
  }, [open]);
34
51
  return (React.createElement(Aligment, { align: labelPosition === 'top' ? 'flex-start' : 'center', direction: labelPosition === 'top' ? 'column' : 'row', wrap: 'nowrap', width: width },
35
52
  label && (React.createElement(InputLabelElement, { size: size, labelPosition: labelPosition }, label)),
36
- React.createElement(DropdownElement, { onClick: () => handleOpen() },
53
+ React.createElement(DropdownElement, { onClick: () => handleOpen(), ref: sourceRef },
37
54
  React.createElement(Field, { inputSize: size, disabled: disabled, width: width, active: open, error: error }, value ? getLabelForValue(value) : placeholder),
38
- open && (React.createElement(Panel, { ref: ref, size: size, position: "left", fullWidth: true }, options &&
39
- options.map((option) => (React.createElement(PanelOption, { key: option.value, active: option.value === value, onClick: (e) => selectOption(e, option.value) }, option.label))))),
55
+ open &&
56
+ createPortal(React.createElement(Panel, { style: dropdownStyles, ref: ref, size: size, fullWidth: true, zIndex: zIndex }, options &&
57
+ options.map((option) => (React.createElement(PanelOption, { key: option.value, active: option.value === value, onClick: (e) => selectOption(e, option.value) }, option.label)))), document.body),
40
58
  error && React.createElement(InputErrorMsg, null, error))));
41
59
  };
@@ -5,12 +5,31 @@ import { Icon } from '../Icons';
5
5
  import { DropdownMenuOption, DropdownMenuElement, DropdownMenuContent, DropdownMenuFooter, DropdownMenuHeader, } from './DropdownMenu.styles';
6
6
  import { Aligment } from '../Aligment';
7
7
  import { TextAccent, TextLabel, Text } from '../Typography';
8
- export const DropdownMenu = ({ size = 'medium', iconName = 'more_vert', header = false, headerTitle, headerSubtitle, footer = false, footerText, footerAction, options, right = false, left = false, targetID, iconColor = mainTheme.iconColor, iconHoverColor = mainTheme.iconHoverColor, iconBgColor = mainTheme.iconBgColor, iconBgHoverColor = mainTheme.iconBgHoverColor, }) => {
8
+ import { createPortal } from 'react-dom';
9
+ export const DropdownMenu = ({ size = 'medium', iconName = 'more_vert', header = false, headerTitle, headerSubtitle, footer = false, footerText, footerAction, options, right = false, left = false, targetID, iconColor = mainTheme.iconColor, iconHoverColor = mainTheme.iconHoverColor, iconBgColor = mainTheme.iconBgColor, iconBgHoverColor = mainTheme.iconBgHoverColor, position = 'left', zIndex, }) => {
9
10
  const [open, toogleOpen] = useState(false);
10
11
  const ref = useRef(null);
12
+ const sourceRef = useRef(null);
13
+ const [dropdownStyles, setDropdownStyles] = useState({});
11
14
  const close = () => {
12
15
  toogleOpen(false);
13
16
  };
17
+ const toogle = (openState) => {
18
+ if (sourceRef.current && openState) {
19
+ const buttonRect = sourceRef.current.getBoundingClientRect();
20
+ const positionStyle = {
21
+ top: buttonRect.bottom + window.scrollY,
22
+ };
23
+ if (position === 'left') {
24
+ positionStyle.left = buttonRect.left + window.scrollX;
25
+ }
26
+ else if (position === 'right') {
27
+ positionStyle.right = buttonRect.right + window.scrollX;
28
+ }
29
+ setDropdownStyles(positionStyle);
30
+ }
31
+ toogleOpen(openState);
32
+ };
14
33
  const handleFooterAction = () => {
15
34
  footerAction && footerAction();
16
35
  close();
@@ -31,13 +50,15 @@ export const DropdownMenu = ({ size = 'medium', iconName = 'more_vert', header =
31
50
  };
32
51
  }, [open]);
33
52
  return (React.createElement(DropdownMenuElement, null,
34
- React.createElement(Icon, { name: iconName, onClick: () => toogleOpen(!open), size: setIconSize(size), isActive: open, right: right, left: left, iconColor: iconColor, iconHoverColor: iconHoverColor, iconBgColor: iconBgColor, iconBgHoverColor: iconBgHoverColor }),
35
- open && (React.createElement(Panel, { ref: ref, size: size, position: "right" },
36
- React.createElement(Aligment, { direction: "column" },
37
- header && (React.createElement(DropdownMenuHeader, null,
38
- headerTitle && (React.createElement(TextAccent, { color: Theme.colors.text }, headerTitle)),
39
- headerSubtitle && (React.createElement(TextLabel, { color: Theme.colors.text }, headerSubtitle)))),
40
- React.createElement(DropdownMenuContent, null, options &&
41
- options.map((option) => (React.createElement(DropdownMenuOption, { key: option.label, onClick: () => handleClick(option.action) }, option.label)))),
42
- footer && (React.createElement(DropdownMenuFooter, null, footerText && (React.createElement(Text, { action: true, onClick: handleFooterAction }, footerText)))))))));
53
+ React.createElement("div", { ref: sourceRef, onClick: () => toogle(!open) },
54
+ React.createElement(Icon, { name: iconName, size: setIconSize(size), isActive: open, right: right, left: left, iconColor: iconColor, iconHoverColor: iconHoverColor, iconBgColor: iconBgColor, iconBgHoverColor: iconBgHoverColor })),
55
+ open &&
56
+ createPortal(React.createElement(Panel, { style: dropdownStyles, ref: ref, size: size, zIndex: zIndex },
57
+ React.createElement(Aligment, { direction: "column" },
58
+ header && (React.createElement(DropdownMenuHeader, null,
59
+ headerTitle && (React.createElement(TextAccent, { color: Theme.colors.text }, headerTitle)),
60
+ headerSubtitle && (React.createElement(TextLabel, { color: Theme.colors.text }, headerSubtitle)))),
61
+ React.createElement(DropdownMenuContent, null, options &&
62
+ options.map((option) => (React.createElement(DropdownMenuOption, { key: option.label, onClick: () => handleClick(option.action) }, option.label)))),
63
+ footer && (React.createElement(DropdownMenuFooter, null, footerText && (React.createElement(Text, { action: true, onClick: handleFooterAction }, footerText)))))), document.body)));
43
64
  };
@@ -30,7 +30,7 @@ export const DropdownMenuOption = styled.div `
30
30
  cursor: pointer;
31
31
  white-space: nowrap;
32
32
  color: ${Theme.colors.text};
33
-
33
+ font-size:1.6rem;
34
34
  :hover {
35
35
  background-color: ${lighten(0.4, Theme.colors.primary)};
36
36
  }
@@ -1,7 +1,7 @@
1
1
  import { lighten } from 'polished';
2
2
  import styled from 'styled-components';
3
3
  import { Theme } from '../../Theme/Theme';
4
- import { setPanelPosition, setPanelTop } from './inputStyles';
4
+ import { setPanelTop } from './inputStyles';
5
5
  export const Container = styled.div `
6
6
  width: 100%;
7
7
  `;
@@ -20,12 +20,11 @@ export const Panel = styled.div `
20
20
  height: ${(p) => (p.height ? p.height : 'auto')};
21
21
  width: ${(p) => (p.fullWidth ? '100%' : 'auto')};
22
22
  position: absolute;
23
- z-index: ${Theme.zIndex.dropdown};
23
+ z-index: ${p => p.zIndex ? p.zIndex : Theme.zIndex.dropdown};
24
24
  top: ${(p) => setPanelTop(p.size)};
25
25
  border: 1px solid ${Theme.colors.gray_2};
26
26
  border-top: none;
27
27
  min-width: 30px;
28
- ${(p) => setPanelPosition(p.position)}
29
28
  `;
30
29
  export const PanelOption = styled.div `
31
30
  padding: ${Theme.padding.s} ${Theme.padding.m};
@@ -160,13 +160,6 @@ export const panelTop = {
160
160
  export const setPanelTop = (size) => {
161
161
  return panelTop[size];
162
162
  };
163
- export const panelPosition = {
164
- left: `left:0px`,
165
- right: 'right:0px',
166
- };
167
- export const setPanelPosition = (position) => {
168
- return panelPosition[position];
169
- };
170
163
  export const fieldHeight = {
171
164
  small: '26px',
172
165
  medium: '36px',
@@ -3,5 +3,7 @@ import { IFormElement, IOption } from '../../types';
3
3
  export interface IDropdownProps extends IFormElement {
4
4
  options: IOption[];
5
5
  handleSelect: (name: string, value: string | number) => void;
6
+ position?: string;
7
+ zIndex?: number;
6
8
  }
7
9
  export declare const Dropdown: FC<IDropdownProps>;
@@ -17,6 +17,8 @@ interface IDropdownMenuProps {
17
17
  iconHoverColor?: string;
18
18
  iconBgColor?: string;
19
19
  iconBgHoverColor?: string;
20
+ position?: string;
21
+ zIndex?: number;
20
22
  }
21
23
  export declare const DropdownMenu: FC<IDropdownMenuProps>;
22
24
  export {};
@@ -1,11 +1,11 @@
1
- import { InputSize, PanelPosition } from '../../types';
1
+ import { InputSize } from '../../types';
2
2
  export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const ScrollCotainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  interface IPanelStyle {
5
5
  height?: string;
6
6
  size: InputSize;
7
- position: PanelPosition;
8
7
  fullWidth?: boolean;
8
+ zIndex?: number;
9
9
  }
10
10
  export declare const Panel: import("styled-components").StyledComponent<"div", any, IPanelStyle, never>;
11
11
  interface IPanelOptionStyle {
@@ -1,4 +1,4 @@
1
- import { InputSize, PanelPosition } from '../../types';
1
+ import { InputSize } from '../../types';
2
2
  export declare const defaultStyles: string;
3
3
  export declare const sizes: {
4
4
  small: string;
@@ -69,11 +69,6 @@ export declare const panelTop: {
69
69
  large: string;
70
70
  };
71
71
  export declare const setPanelTop: (size: InputSize) => string;
72
- export declare const panelPosition: {
73
- left: string;
74
- right: string;
75
- };
76
- export declare const setPanelPosition: (position: PanelPosition) => string;
77
72
  export declare const fieldHeight: {
78
73
  small: string;
79
74
  medium: string;
@@ -3,7 +3,6 @@ export type InputSize = 'large' | 'medium' | 'small';
3
3
  export type InputType = "text" | "password" | "email" | "number" | "increase";
4
4
  export type LabelPosition = "top" | "left";
5
5
  export type TitlePosition = "left" | "center" | "right";
6
- export type PanelPosition = 'left' | 'right';
7
6
  export interface IFormElement {
8
7
  label?: string;
9
8
  labelPosition?: LabelPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venice-ui",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "module": "./dist/esm/index.js",