@synerise/ds-input 1.3.5 → 1.3.7
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 +16 -0
- package/dist/AutosizeInput/AutosizeInput.d.ts +11 -11
- package/dist/Input.styles.d.ts +10 -10
- package/dist/InputGroup.styles.d.ts +1 -1
- package/dist/InputMultivalue/InputMultivalue.styles.d.ts +5 -5
- package/dist/TextArea.d.ts +2 -2
- package/dist/Textarea/Textarea.d.ts +4 -4
- package/dist/Textarea/Textarea.styles.d.ts +2 -2
- package/dist/components/AutosizeWrapper.d.ts +11 -11
- package/dist/utils/getCharCount.d.ts +1 -1
- package/package.json +7 -7
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
|
+
## [1.3.7](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.3.6...@synerise/ds-input@1.3.7) (2025-08-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-input
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.3.6](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.3.5...@synerise/ds-input@1.3.6) (2025-07-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-input
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.3.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.3.4...@synerise/ds-input@1.3.5) (2025-07-17)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-input
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type CSSProperties } from 'react';
|
|
2
2
|
import type { AutosizeInputRefType } from './AutosizeInput.types';
|
|
3
3
|
declare const AutosizeInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
4
|
-
placeholderIsMinWidth?: boolean
|
|
5
|
-
wrapperClassName?: string
|
|
6
|
-
wrapperStyle?:
|
|
7
|
-
extraWidth?:
|
|
8
|
-
minWidth?:
|
|
9
|
-
onAutosize?: (
|
|
10
|
-
preAutosize?: (
|
|
11
|
-
transformRef?: (
|
|
12
|
-
transformWrapperRef?: (
|
|
13
|
-
handleInputRef?: (
|
|
4
|
+
placeholderIsMinWidth?: boolean;
|
|
5
|
+
wrapperClassName?: string;
|
|
6
|
+
wrapperStyle?: CSSProperties;
|
|
7
|
+
extraWidth?: number | string;
|
|
8
|
+
minWidth?: number | string;
|
|
9
|
+
onAutosize?: (newWidth: number) => void;
|
|
10
|
+
preAutosize?: (newWidth: number) => void;
|
|
11
|
+
transformRef?: (element: HTMLElement) => HTMLElement;
|
|
12
|
+
transformWrapperRef?: (element: HTMLElement) => HTMLElement;
|
|
13
|
+
handleInputRef?: (element: HTMLInputElement, originalElement: HTMLElement) => HTMLElement;
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
} & React.RefAttributes<AutosizeInputRefType>>;
|
|
16
16
|
export default AutosizeInput;
|
package/dist/Input.styles.d.ts
CHANGED
|
@@ -12,31 +12,31 @@ type AutoSizeConfProps = {
|
|
|
12
12
|
export declare function autoresizeConfObjToCss({ autoResize, iconCount, boxSizing, }: AutoSizeConfProps): FlattenSimpleInterpolation | "";
|
|
13
13
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
14
|
export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
15
|
-
iconCount?: number
|
|
15
|
+
iconCount?: number;
|
|
16
16
|
}, never>;
|
|
17
17
|
export declare const OuterWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
18
|
-
resetMargin?: boolean
|
|
18
|
+
resetMargin?: boolean;
|
|
19
19
|
} & AutoSizeConfProps, never>;
|
|
20
20
|
export declare const IconsWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
21
|
-
disabled?: boolean
|
|
21
|
+
disabled?: boolean;
|
|
22
22
|
}, never>;
|
|
23
23
|
export declare const IconsFlexContainer: import("styled-components").StyledComponent<"div", any, {
|
|
24
24
|
type: string;
|
|
25
25
|
}, never>;
|
|
26
26
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
27
27
|
export declare const AntdInput: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<InputProps & {
|
|
28
|
-
error?: boolean
|
|
28
|
+
error?: boolean;
|
|
29
29
|
size?: SizeType;
|
|
30
30
|
} & React.RefAttributes<InputRef>>, any, {
|
|
31
|
-
error?: boolean
|
|
32
|
-
readOnly?: boolean
|
|
33
|
-
autoResize?: AutoResizeProp
|
|
34
|
-
disabled?: boolean
|
|
31
|
+
error?: boolean;
|
|
32
|
+
readOnly?: boolean;
|
|
33
|
+
autoResize?: AutoResizeProp;
|
|
34
|
+
disabled?: boolean;
|
|
35
35
|
}, never>;
|
|
36
36
|
export declare const AntdTextArea: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<TextAreaProps & {
|
|
37
|
-
error?: boolean
|
|
37
|
+
error?: boolean;
|
|
38
38
|
} & React.RefAttributes<TextAreaRef>>, any, {
|
|
39
|
-
error?: boolean
|
|
39
|
+
error?: boolean;
|
|
40
40
|
}, never>;
|
|
41
41
|
export declare const ExpandableWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
42
42
|
expanded: boolean;
|
|
@@ -10,14 +10,14 @@ export declare const Description: import("styled-components").StyledComponent<"d
|
|
|
10
10
|
export declare const ContentAbove: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
11
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
12
|
export declare const ValueText: import("styled-components").StyledComponent<"div", any, {
|
|
13
|
-
shrink?: boolean
|
|
14
|
-
disabled?: boolean
|
|
13
|
+
shrink?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
15
|
}, never>;
|
|
16
16
|
export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, InputWrapperProps, never>;
|
|
17
17
|
export declare const ValueWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
18
|
-
disabled?: boolean
|
|
19
|
-
shrink?: boolean
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
shrink?: boolean;
|
|
20
20
|
}, never>;
|
|
21
21
|
export declare const BorderLessInput: import("styled-components").StyledComponent<"input", any, {
|
|
22
|
-
disabled?: boolean
|
|
22
|
+
disabled?: boolean;
|
|
23
23
|
}, never>;
|
package/dist/TextArea.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type TextareaProps } from './TextArea.types';
|
|
|
4
4
|
import './style/index.less';
|
|
5
5
|
export declare const TextArea: ({ className, errorText, label, description, counterLimit, tooltip, tooltipConfig, icon1, icon1Tooltip, icon2, icon2Tooltip, resetMargin, handleInputRef, prefixel, suffixel, error, renderCustomCounter, ...antdTextareaProps }: TextareaProps) => React.JSX.Element;
|
|
6
6
|
export declare const RawTextArea: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("antd/lib/input").TextAreaProps & {
|
|
7
|
-
error?: boolean
|
|
7
|
+
error?: boolean;
|
|
8
8
|
} & React.RefAttributes<import("antd/lib/input/TextArea").TextAreaRef>>, any, {
|
|
9
|
-
error?: boolean
|
|
9
|
+
error?: boolean;
|
|
10
10
|
}, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { TextAreaRef } from 'antd/lib/input/TextArea';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare const RawTextArea: React.ForwardRefExoticComponent<import("antd/lib/input/TextArea").TextAreaProps & {
|
|
4
|
-
error?: boolean
|
|
5
|
-
errorText?: React.ReactNode;
|
|
6
|
-
wrapperStyle?: React.CSSProperties
|
|
7
|
-
resize?: import("csstype").ResizeProperty
|
|
4
|
+
error?: boolean;
|
|
5
|
+
errorText?: string | React.ReactNode;
|
|
6
|
+
wrapperStyle?: React.CSSProperties;
|
|
7
|
+
resize?: import("csstype").ResizeProperty;
|
|
8
8
|
} & React.RefAttributes<TextAreaRef>>;
|
|
9
9
|
export default RawTextArea;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ResizeProperty } from 'csstype';
|
|
2
2
|
export declare const TextareaWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
resize?: ResizeProperty
|
|
3
|
+
resize?: ResizeProperty;
|
|
4
4
|
isDisabled: boolean;
|
|
5
5
|
isFocused: boolean;
|
|
6
6
|
hasError: boolean;
|
|
7
|
-
isReadOnly?: boolean
|
|
7
|
+
isReadOnly?: boolean;
|
|
8
8
|
}, never>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AutosizeInputRefType } from '../AutosizeInput/AutosizeInput.types';
|
|
3
3
|
export declare const AutosizeWrapper: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
4
|
-
placeholderIsMinWidth?: boolean
|
|
5
|
-
wrapperClassName?: string
|
|
6
|
-
wrapperStyle?: React.CSSProperties
|
|
7
|
-
extraWidth?:
|
|
8
|
-
minWidth?:
|
|
9
|
-
onAutosize?: (
|
|
10
|
-
preAutosize?: (
|
|
11
|
-
transformRef?: (
|
|
12
|
-
transformWrapperRef?: (
|
|
13
|
-
handleInputRef?: (
|
|
4
|
+
placeholderIsMinWidth?: boolean;
|
|
5
|
+
wrapperClassName?: string;
|
|
6
|
+
wrapperStyle?: React.CSSProperties;
|
|
7
|
+
extraWidth?: number | string;
|
|
8
|
+
minWidth?: number | string;
|
|
9
|
+
onAutosize?: (newWidth: number) => void;
|
|
10
|
+
preAutosize?: (newWidth: number) => void;
|
|
11
|
+
transformRef?: (element: HTMLElement) => HTMLElement;
|
|
12
|
+
transformWrapperRef?: (element: HTMLElement) => HTMLElement;
|
|
13
|
+
handleInputRef?: (element: HTMLInputElement, originalElement: HTMLElement) => HTMLElement;
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
} & {
|
|
16
|
-
autoResize?: boolean
|
|
16
|
+
autoResize?: boolean;
|
|
17
17
|
} & React.RefAttributes<AutosizeInputRefType>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type InputProps as AntdInputProps } from 'antd/lib/input';
|
|
2
2
|
import { type TextareaProps } from '../TextArea.types';
|
|
3
|
-
export declare const getCharCount: (value?: AntdInputProps[
|
|
3
|
+
export declare const getCharCount: (value?: AntdInputProps["value"] | TextareaProps["value"], limit?: number) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-input",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Input UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-form-field": "^1.1.
|
|
38
|
-
"@synerise/ds-icon": "^1.
|
|
39
|
-
"@synerise/ds-scrollbar": "^1.1.
|
|
40
|
-
"@synerise/ds-tooltip": "^1.1.
|
|
41
|
-
"@synerise/ds-utils": "^1.
|
|
37
|
+
"@synerise/ds-form-field": "^1.1.13",
|
|
38
|
+
"@synerise/ds-icon": "^1.7.0",
|
|
39
|
+
"@synerise/ds-scrollbar": "^1.1.6",
|
|
40
|
+
"@synerise/ds-tooltip": "^1.1.16",
|
|
41
|
+
"@synerise/ds-utils": "^1.4.0",
|
|
42
42
|
"classnames": "^2.3.2",
|
|
43
43
|
"csstype": "^2.6.9",
|
|
44
44
|
"uuid": "^8.3.2"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"react": ">=16.9.0 <= 18.3.1",
|
|
50
50
|
"styled-components": "^5.3.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "408d73cc145b6c8c61f3e70dce05badf3ad1ffde"
|
|
53
53
|
}
|