@croquiscom/pds 0.40.2 → 0.40.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 +6 -0
- package/dist/components/input/Input.stories.d.ts +2 -0
- package/dist/components/input/InputBase.d.ts +3 -0
- package/dist/components/input/NumericInput.d.ts +1 -1
- package/dist/components/textarea/Textarea.d.ts +0 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,10 +8,12 @@ export declare const Success: any;
|
|
|
8
8
|
export declare const Disabled: any;
|
|
9
9
|
export declare const EnteredDisabled: any;
|
|
10
10
|
export declare const RightAlignment: any;
|
|
11
|
+
export declare const MaxLength: any;
|
|
11
12
|
export declare const Addon: any;
|
|
12
13
|
export declare const Width: any;
|
|
13
14
|
export declare const AddonWithWidth: any;
|
|
14
15
|
export declare const AddonWithFormHelperText: () => JSX.Element[];
|
|
16
|
+
export declare const MaxLengthWithCombined: () => JSX.Element;
|
|
15
17
|
export declare const Password: () => JSX.Element;
|
|
16
18
|
export declare const Search: any;
|
|
17
19
|
export declare const WithButton: () => JSX.Element;
|
|
@@ -16,6 +16,9 @@ export interface InputBaseType {
|
|
|
16
16
|
/** @desc suffix */
|
|
17
17
|
rightAddon?: InputAffixProps['suffix'];
|
|
18
18
|
width?: CSSValueWithLength;
|
|
19
|
+
/** @default false */
|
|
20
|
+
showCounter?: boolean;
|
|
19
21
|
}
|
|
20
22
|
export type InputBaseProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'width'> & InputBaseType;
|
|
23
|
+
export declare const controlledInputValue: (value: any) => string;
|
|
21
24
|
export declare const InputBase: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width"> & InputBaseType & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { InputAffixProps } from './InputAffix';
|
|
3
3
|
import { InputBaseType } from './InputBase';
|
|
4
|
-
export interface NumericInputBaseType extends InputBaseType, InputAffixProps {
|
|
4
|
+
export interface NumericInputBaseType extends Omit<InputBaseType, 'showCounter'>, InputAffixProps {
|
|
5
5
|
value?: number | string | null;
|
|
6
6
|
defaultValue?: number | string;
|
|
7
7
|
/** @default true */
|
|
@@ -2,7 +2,6 @@ import React, { TextareaHTMLAttributes } from 'react';
|
|
|
2
2
|
import { SizeProps } from '../../styles';
|
|
3
3
|
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, SizeProps {
|
|
4
4
|
error?: boolean;
|
|
5
|
-
value?: string;
|
|
6
5
|
/** @default false */
|
|
7
6
|
showCounter?: boolean;
|
|
8
7
|
}
|