@synerise/ds-input 0.19.1 → 0.19.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.19.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.19.2...@synerise/ds-input@0.19.3) (2023-10-02)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-input
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.19.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.19.1...@synerise/ds-input@0.19.2) (2023-09-26)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-input
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.19.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@0.19.0...@synerise/ds-input@0.19.1) (2023-09-19)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-input
package/dist/Input.d.ts CHANGED
@@ -3,52 +3,16 @@ import '@synerise/ds-core/dist/js/style';
3
3
  import { InputProps, TextAreaProps } from 'antd/lib/input';
4
4
  import './style/index.less';
5
5
  import { StyledComponent } from 'styled-components';
6
- import { Props } from './Input.types';
7
- export declare const TextArea: (React.ComponentClass<(object & Props & InputProps) | (object & Props & InputProps & {
8
- mask: string;
9
- formatCharacters?: object | undefined;
10
- placeholderChar?: string | undefined;
11
- value?: string | undefined;
12
- }) | (object & Props & TextAreaProps), any> & {
6
+ import { EnhancedProps, Props } from './Input.types';
7
+ export declare const TextArea: React.ComponentType<object & EnhancedProps> & {
13
8
  displayName: string;
14
- }) | (React.FunctionComponent<(object & Props & InputProps) | (object & Props & InputProps & {
15
- mask: string;
16
- formatCharacters?: object | undefined;
17
- placeholderChar?: string | undefined;
18
- value?: string | undefined;
19
- }) | (object & Props & TextAreaProps)> & {
9
+ };
10
+ export declare const Input: React.ComponentType<object & EnhancedProps> & {
20
11
  displayName: string;
21
- });
22
- export declare const Input: (React.ComponentClass<(object & Props & InputProps) | (object & Props & InputProps & {
23
- mask: string;
24
- formatCharacters?: object | undefined;
25
- placeholderChar?: string | undefined;
26
- value?: string | undefined;
27
- }) | (object & Props & TextAreaProps), any> & {
28
- displayName: string;
29
- }) | (React.FunctionComponent<(object & Props & InputProps) | (object & Props & InputProps & {
30
- mask: string;
31
- formatCharacters?: object | undefined;
32
- placeholderChar?: string | undefined;
33
- value?: string | undefined;
34
- }) | (object & Props & TextAreaProps)> & {
35
- displayName: string;
36
- });
37
- export declare const MaskedInput: (React.ComponentClass<(object & Props & InputProps) | (object & Props & InputProps & {
38
- mask: string;
39
- formatCharacters?: object | undefined;
40
- placeholderChar?: string | undefined;
41
- value?: string | undefined;
42
- }) | (object & Props & TextAreaProps), any> & {
43
- displayName: string;
44
- }) | (React.FunctionComponent<(object & Props & InputProps) | (object & Props & InputProps & {
45
- mask: string;
46
- formatCharacters?: object | undefined;
47
- placeholderChar?: string | undefined;
48
- value?: string | undefined;
49
- }) | (object & Props & TextAreaProps)> & {
12
+ };
13
+ export declare const MaskedInput: React.ComponentType<object & EnhancedProps> & {
50
14
  displayName: string;
51
- });
15
+ };
52
16
  export declare const RawMaskedInput: StyledComponent<React.ForwardRefExoticComponent<{
53
17
  error?: boolean | undefined;
54
18
  mask: string;
package/dist/Input.js CHANGED
@@ -75,7 +75,6 @@ var enhancedInput = function enhancedInput(WrappedComponent, _ref) {
75
75
  useEffect(function () {
76
76
  var _inputRef$current, _inputRef$current$inp;
77
77
 
78
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
79
78
  // @ts-ignore
80
79
  inputRef.current && setInputAddonHeight(inputRef == null ? void 0 : (_inputRef$current = inputRef.current) == null ? void 0 : (_inputRef$current$inp = _inputRef$current.input) == null ? void 0 : _inputRef$current$inp.offsetHeight);
81
80
  }, [inputRef]);
@@ -3,7 +3,7 @@ import TextArea from 'antd/lib/input/TextArea';
3
3
  import * as React from 'react';
4
4
  import MaskedInput from 'antd-mask-input';
5
5
  import { SizeType } from 'antd/es/config-provider/SizeContext';
6
- export declare type AutoResizeInputProps = {
6
+ export type AutoResizeInputProps = {
7
7
  autoResize?: boolean | {
8
8
  minWidth: string;
9
9
  maxWidth: string;
@@ -25,4 +25,4 @@ export interface Props {
25
25
  maxWidth: string;
26
26
  };
27
27
  }
28
- export declare type EnhancedProps = Props & (InputProps | TextAreaProps | MaskedInputProps);
28
+ export type EnhancedProps = Props & (InputProps | TextAreaProps | MaskedInputProps);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Props } from './InputGroup.types';
3
2
  declare const InputGroup: ({ children, label, errors, description, resetMargin, tooltip, ...antdInputGroupProps }: Props) => JSX.Element;
4
3
  export default InputGroup;
@@ -1,4 +1,4 @@
1
- export declare type InputWrapperProps = {
1
+ export type InputWrapperProps = {
2
2
  error?: boolean;
3
3
  focus?: boolean;
4
4
  disabled?: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import TooltipExtendedProps from '@synerise/ds-tooltip/dist/Tooltip.types';
3
3
  import { TooltipProps } from 'antd/lib/tooltip';
4
- export declare type LabelProps = {
4
+ export type LabelProps = {
5
5
  id?: string;
6
6
  label?: React.ReactNode;
7
7
  tooltip?: React.ReactNode;
@@ -1,5 +1,6 @@
1
+ import { ResizeProperty } from 'csstype';
1
2
  export declare const TextareaWrapper: import("styled-components").StyledComponent<"div", any, {
2
- resize?: "none" | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "block" | "both" | "horizontal" | "inline" | "vertical" | undefined;
3
+ resize?: ResizeProperty | undefined;
3
4
  isDisabled: boolean;
4
5
  isFocused: boolean;
5
6
  hasError: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TextAreaProps as AntdTextAreaProps } from 'antd/lib/input';
3
3
  import { ResizeProperty } from 'csstype';
4
- export declare type TextAreaProps = AntdTextAreaProps & {
4
+ export type TextAreaProps = AntdTextAreaProps & {
5
5
  error?: boolean;
6
6
  errorText?: string | React.ReactNode;
7
7
  wrapperStyle?: React.CSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input",
3
- "version": "0.19.1",
3
+ "version": "0.19.3",
4
4
  "description": "Input UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -32,11 +32,11 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-icon": "^0.58.1",
36
- "@synerise/ds-scrollbar": "^0.6.6",
37
- "@synerise/ds-tooltip": "^0.14.3",
38
- "@synerise/ds-typography": "^0.12.10",
39
- "@synerise/ds-utils": "^0.24.15",
35
+ "@synerise/ds-icon": "^0.58.3",
36
+ "@synerise/ds-scrollbar": "^0.6.8",
37
+ "@synerise/ds-tooltip": "^0.14.5",
38
+ "@synerise/ds-typography": "^0.13.1",
39
+ "@synerise/ds-utils": "^0.24.17",
40
40
  "antd-mask-input": "^0.1.13",
41
41
  "csstype": "2.6.9",
42
42
  "uuid": "^8.3.2"
@@ -50,5 +50,5 @@
50
50
  "devDependencies": {
51
51
  "@testing-library/react": "10.0.1"
52
52
  },
53
- "gitHead": "dcdec905a4a36109a33d28d9d31fc0b4af51567e"
53
+ "gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
54
54
  }