venice-ui 1.0.29 → 1.0.31

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.
@@ -15,6 +15,7 @@ exports.Field = styled_components_1.default.div `
15
15
  ${(p) => (0, common_1.setSize)(p.inputSize)}
16
16
  color: ${Theme_1.Theme.colors.text};
17
17
  width: ${(p) => (p.width ? p.width : '100%')};
18
+ height: ${(p) => (0, common_1.setFieldHeight)(p.inputSize)};
18
19
  ${(p) => p.error &&
19
20
  `
20
21
  ${common_1.colorMode.error}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setAnimationParams = exports.animationParams = exports.setPanelPosition = exports.panelPosition = exports.setPanelTop = exports.panelTop = exports.setIconSize = exports.iconSize = exports.setLabelFontSize = exports.lableFontSize = exports.colorMode = exports.setSize = exports.sizes = exports.defaultStyles = void 0;
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.colorMode = exports.setSize = exports.sizes = exports.defaultStyles = void 0;
4
4
  const polished_1 = require("polished");
5
5
  const Theme_1 = require("../../Theme");
6
6
  exports.defaultStyles = `
@@ -95,6 +95,15 @@ const setPanelPosition = (position) => {
95
95
  return exports.panelPosition[position];
96
96
  };
97
97
  exports.setPanelPosition = setPanelPosition;
98
+ exports.fieldHeight = {
99
+ small: '26px',
100
+ medium: '36px',
101
+ large: '42px'
102
+ };
103
+ const setFieldHeight = (size) => {
104
+ return exports.fieldHeight[size];
105
+ };
106
+ exports.setFieldHeight = setFieldHeight;
98
107
  exports.animationParams = {
99
108
  small: {
100
109
  width: '40px',
package/dist/cjs/index.js CHANGED
@@ -25,6 +25,7 @@ __exportStar(require("./components/Input"), exports);
25
25
  __exportStar(require("./components/Loader"), exports);
26
26
  __exportStar(require("./components/Modal"), exports);
27
27
  __exportStar(require("./components/Section"), exports);
28
+ __exportStar(require("./components/Selector"), exports);
28
29
  __exportStar(require("./components/Sidepanel"), exports);
29
30
  __exportStar(require("./components/Tile"), exports);
30
31
  __exportStar(require("./components/Typography"), exports);
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { defaultStyles, setSize, colorMode } from "../common";
2
+ import { defaultStyles, setSize, colorMode, setFieldHeight } from "../common";
3
3
  import { Theme } from "../../Theme";
4
4
  export const Field = styled.div `
5
5
  position: relative;
@@ -9,6 +9,7 @@ export const Field = styled.div `
9
9
  ${(p) => setSize(p.inputSize)}
10
10
  color: ${Theme.colors.text};
11
11
  width: ${(p) => (p.width ? p.width : '100%')};
12
+ height: ${(p) => setFieldHeight(p.inputSize)};
12
13
  ${(p) => p.error &&
13
14
  `
14
15
  ${colorMode.error}
@@ -87,6 +87,14 @@ export const panelPosition = {
87
87
  export const setPanelPosition = (position) => {
88
88
  return panelPosition[position];
89
89
  };
90
+ export const fieldHeight = {
91
+ small: '26px',
92
+ medium: '36px',
93
+ large: '42px'
94
+ };
95
+ export const setFieldHeight = (size) => {
96
+ return fieldHeight[size];
97
+ };
90
98
  export const animationParams = {
91
99
  small: {
92
100
  width: '40px',
package/dist/esm/index.js CHANGED
@@ -9,6 +9,7 @@ export * from "./components/Input";
9
9
  export * from './components/Loader';
10
10
  export * from './components/Modal';
11
11
  export * from './components/Section';
12
+ export * from './components/Selector';
12
13
  export * from './components/Sidepanel';
13
14
  export * from './components/Tile';
14
15
  export * from './components/Typography';
@@ -1,7 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { IFormElement, IOption } from '../../types';
3
3
  export interface IDropdownProps extends IFormElement {
4
- mode: 'normal' | 'icon';
5
4
  options: IOption[];
6
5
  handleSelect: (name: string, value: string | number) => void;
7
6
  }
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { IFormElement } from 'types';
2
+ import { IFormElement } from '../../types';
3
3
  export interface IFileProps extends IFormElement {
4
4
  handleChange: any;
5
5
  placeholder?: string;
@@ -34,6 +34,12 @@ export declare const panelPosition: {
34
34
  right: string;
35
35
  };
36
36
  export declare const setPanelPosition: (position: PanelPosition) => string;
37
+ export declare const fieldHeight: {
38
+ small: string;
39
+ medium: string;
40
+ large: string;
41
+ };
42
+ export declare const setFieldHeight: (size: InputSize) => string;
37
43
  export declare const animationParams: {
38
44
  small: {
39
45
  width: string;
@@ -9,6 +9,7 @@ export * from "./components/Input";
9
9
  export * from './components/Loader';
10
10
  export * from './components/Modal';
11
11
  export * from './components/Section';
12
+ export * from './components/Selector';
12
13
  export * from './components/Sidepanel';
13
14
  export * from './components/Tile';
14
15
  export * from './components/Typography';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venice-ui",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "module": "./dist/esm/index.js",