venice-ui 1.0.26 → 1.0.28

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.
@@ -33,7 +33,7 @@ const Dropdown_1 = require("../Dropdown");
33
33
  const File = ({ label, labelPosition = 'top', name, disabled = false, multiple = false, size = 'medium', handleChange, accept = 'application/pdf', width, error, placeholder, fileValue, }) => {
34
34
  const fileRef = (0, react_1.useRef)(null);
35
35
  const handleSelect = (e) => {
36
- console.log(e);
36
+ handleChange();
37
37
  };
38
38
  const openFileSelector = () => {
39
39
  fileRef.current.click();
@@ -7,7 +7,7 @@ import { Field } from '../Dropdown';
7
7
  export const File = ({ label, labelPosition = 'top', name, disabled = false, multiple = false, size = 'medium', handleChange, accept = 'application/pdf', width, error, placeholder, fileValue, }) => {
8
8
  const fileRef = useRef(null);
9
9
  const handleSelect = (e) => {
10
- console.log(e);
10
+ handleChange();
11
11
  };
12
12
  const openFileSelector = () => {
13
13
  fileRef.current.click();
@@ -1,4 +1,4 @@
1
- import { InputSize } from "types";
1
+ import { InputSize } from "../../types";
2
2
  export interface IFieldProps {
3
3
  inputSize: InputSize;
4
4
  disabled: boolean;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  import { IFormElement } from 'types';
3
3
  export interface IFileProps extends IFormElement {
4
- handleChange: (name: string, value: string | number) => void;
4
+ handleChange: any;
5
5
  placeholder?: string;
6
6
  fileValue: File | null;
7
7
  multiple?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from "react";
2
- import { InputSize } from "types";
2
+ import { InputSize } from "../../types";
3
3
  interface IInputTextElementProps extends InputHTMLAttributes<HTMLInputElement> {
4
4
  inputSize: InputSize;
5
5
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- import { InputSize } from "types";
1
+ import { InputSize } from "../../types";
2
2
  export declare const SelectorElement: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  interface ISelectorValueStyle {
4
4
  size: InputSize;
@@ -1,4 +1,4 @@
1
- import { InputSize, PanelPosition } from "types";
1
+ import { InputSize, PanelPosition } from "../../types";
2
2
  export declare const defaultStyles: string;
3
3
  export declare const sizes: {
4
4
  small: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venice-ui",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "module": "./dist/esm/index.js",