venice-ui 1.0.30 → 1.0.32

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,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { InputSize, ButtonMode } from 'types';
2
+ import { InputSize, ButtonMode } from '../../types';
3
3
  export interface IButtonProps {
4
4
  text: string;
5
5
  mode?: ButtonMode;
@@ -1,4 +1,4 @@
1
- import { InputSize } from 'types';
1
+ import { InputSize } from '../../types';
2
2
  interface IButtonElement {
3
3
  mode: string;
4
4
  size: InputSize;
@@ -1,5 +1,5 @@
1
1
  import React, { FC } from 'react';
2
- import { IAction } from 'types';
2
+ import { IAction } from '../../types';
3
3
  interface ICardProps {
4
4
  children: React.ReactNode;
5
5
  title?: string;
@@ -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 React, { FC } from 'react';
2
- import { IAction } from 'types';
2
+ import { IAction } from '../../types';
3
3
  interface IElementHeader {
4
4
  title?: string;
5
5
  showTitle?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { InputSize } from 'types';
2
+ import { InputSize } from '../../types';
3
3
  export interface ILoaderProps {
4
4
  color?: string;
5
5
  size: InputSize;
@@ -1,4 +1,4 @@
1
- import { InputSize } from 'types';
1
+ import { InputSize } from '../../types';
2
2
  export declare const Action1: import("styled-components").Keyframes;
3
3
  export declare const Action2: (move: string) => import("styled-components").Keyframes;
4
4
  export declare const Action3: import("styled-components").Keyframes;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { IAction, InputSize } from 'types';
2
+ import { IAction, InputSize } from '../../types';
3
3
  interface IMoreProps {
4
4
  options: IAction[];
5
5
  size?: InputSize;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { InputSize, IOption, LabelPosition } from 'types';
2
+ import { InputSize, IOption, LabelPosition } from '../../types';
3
3
  export interface ISelectorProps {
4
4
  label?: string;
5
5
  labelPosition?: LabelPosition;
@@ -1,5 +1,5 @@
1
1
  import React, { FC } from 'react';
2
- import { IIconsActions } from 'types';
2
+ import { IIconsActions } from '../../types';
3
3
  interface ISidepanel {
4
4
  isOpen: boolean;
5
5
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { InputSize, LabelPosition } from 'types';
1
+ import { InputSize, LabelPosition } from '../../types';
2
2
  export declare const Text: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const TextSmall: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const TextHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,4 @@
1
- import { InputSize, PanelPosition } from 'types';
1
+ import { InputSize, PanelPosition } 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 {
@@ -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.30",
3
+ "version": "1.0.32",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "module": "./dist/esm/index.js",