armtek-uikit-react 1.0.146 → 1.0.147

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.
package/assets/fonts.scss CHANGED
@@ -4,14 +4,14 @@
4
4
  font-family: 'Material Symbols Outlined';
5
5
  font-style: normal;
6
6
  font-weight: 400;
7
- font-display: swap;
7
+ font-display: block;
8
8
  src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v133/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format('woff2');
9
9
  }
10
10
 
11
11
  @font-face {
12
12
  font-family: 'Material Symbols Outlined';
13
13
  font-style: normal;
14
- font-display: swap;
14
+ font-display: block;
15
15
  font-weight: 700;
16
16
  src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v134/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzazHD_dY43zj-jCxv3fzvRNU22ZXGJpEpjC_1p-p_4MrImHCIJIZrDBIG-ej.woff2) format('woff2');
17
17
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.146","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.147","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -1,4 +1,4 @@
1
- import clsx from 'clsx/clsx';
1
+ import clsx from 'clsx';
2
2
  import { forwardRef } from 'react';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  export const SelectOptionsContainer = /*#__PURE__*/forwardRef(({
@@ -1,4 +1,21 @@
1
1
  import { TextFieldProps } from '../TextField/TextField';
2
2
  export type TextAreaProps = {} & TextFieldProps;
3
- declare const TextArea: (props: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const TextArea: import("react").ForwardRefExoticComponent<{
4
+ label?: string | undefined;
5
+ size?: "large" | "small" | undefined;
6
+ variant?: import("../../../types/theme").VariantType | undefined;
7
+ error?: boolean | undefined;
8
+ success?: boolean | undefined;
9
+ helperText?: import("react").ReactNode;
10
+ endAdornment?: import("react").ReactNode;
11
+ multiline?: boolean | undefined;
12
+ focused?: boolean | undefined;
13
+ editable?: boolean | undefined;
14
+ classes?: Partial<{
15
+ input: string;
16
+ root: string;
17
+ wrapper: string;
18
+ }> | undefined;
19
+ WrapperProps?: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> | undefined;
20
+ } & Omit<import("react").InputHTMLAttributes<any>, "size"> & import("react").RefAttributes<HTMLTextAreaElement>>;
4
21
  export default TextArea;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
 
3
3
  import TextField from "../TextField/TextField";
4
- import { useEffect, useRef, useState } from 'react';
4
+ import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { Fragment as _Fragment } from "react/jsx-runtime";
8
- const TextArea = props => {
8
+ const TextArea = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  var _textareaRef$current, _textareaRef$current2;
10
10
  let {
11
11
  onChange,
@@ -15,6 +15,9 @@ const TextArea = props => {
15
15
  let [value, setValue] = useState('');
16
16
  let [minHeight, setMinHeight] = useState(0);
17
17
  let textareaRef = useRef();
18
+ useImperativeHandle(ref, () => {
19
+ return textareaRef.current;
20
+ }, []);
18
21
  const handleChange = e => {
19
22
  setValue(e.target.value);
20
23
  if (onChange) onChange(e);
@@ -40,5 +43,5 @@ const TextArea = props => {
40
43
  }
41
44
  })
42
45
  });
43
- };
46
+ });
44
47
  export default TextArea;