@trafilea/afrodita-components 5.0.0-beta.192 → 5.0.0-beta.193
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/build/index.d.ts +5 -2
- package/build/index.esm.js +110 -106
- package/build/index.esm.js.map +1 -1
- package/build/index.js +110 -106
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -966,6 +966,8 @@ declare type CommonProps<T> = {
|
|
|
966
966
|
initialValue?: Value<T>;
|
|
967
967
|
placeHolder: string;
|
|
968
968
|
testId?: string;
|
|
969
|
+
required?: string;
|
|
970
|
+
showRequiredPlaceholder?: boolean;
|
|
969
971
|
};
|
|
970
972
|
declare type ControlledProps<T> = {
|
|
971
973
|
value: Value<T>;
|
|
@@ -976,7 +978,7 @@ declare type UncontrolledProps<T> = {
|
|
|
976
978
|
onChange?: OnChange<T>;
|
|
977
979
|
} & CommonProps<T>;
|
|
978
980
|
declare type SimpleDropdownProps<T> = UncontrolledProps<T> | ControlledProps<T>;
|
|
979
|
-
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, testId, }: SimpleDropdownProps<T>): JSX.Element;
|
|
981
|
+
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, testId, required, showRequiredPlaceholder, }: SimpleDropdownProps<T>): JSX.Element;
|
|
980
982
|
|
|
981
983
|
interface DialogPositionProps {
|
|
982
984
|
top: string;
|
|
@@ -1881,6 +1883,7 @@ interface BaseInputCommonProps {
|
|
|
1881
1883
|
inputType?: 'text' | 'email' | 'password' | 'url';
|
|
1882
1884
|
name?: string;
|
|
1883
1885
|
autoFocus?: boolean;
|
|
1886
|
+
requiredPlaceholder?: string;
|
|
1884
1887
|
}
|
|
1885
1888
|
declare type BaseInputProps = BaseInputCommonProps;
|
|
1886
1889
|
|
|
@@ -1921,7 +1924,7 @@ declare type CustomProps = BaseInputProps & {
|
|
|
1921
1924
|
};
|
|
1922
1925
|
|
|
1923
1926
|
declare const Input: {
|
|
1924
|
-
Simple: ({ value, onChange, label, children, required, onValidation, size, placeholder, inlinePlaceholder, hasError, inputType, hideClear, innerRef, ...rest }: BaseInputCommonProps) => JSX.Element;
|
|
1927
|
+
Simple: ({ value, onChange, label, children, required, onValidation, size, placeholder, inlinePlaceholder, hasError, inputType, hideClear, innerRef, requiredPlaceholder, ...rest }: BaseInputCommonProps) => JSX.Element;
|
|
1925
1928
|
Custom: ({ onClick, text, variant, ...rest }: CustomProps) => JSX.Element;
|
|
1926
1929
|
SimplePlusButton: ({ onClick, onClickEdit, text, success, editText, successText, ...rest }: BasePlusButtonProps) => JSX.Element;
|
|
1927
1930
|
SimplePlusIcon: ({ Icon, ...rest }: BasePlusIconProps) => JSX.Element;
|