@app-studio/web 0.3.54 → 0.3.55
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/dist/components/Form/TextArea/TextArea/TextArea.state.d.ts +3 -3
- package/dist/components/Form/TextField/TextField/TextField.state.d.ts +3 -3
- package/dist/web.cjs.development.js +6 -6
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +6 -6
- package/dist/web.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextAreaProps } from './TextArea.props';
|
|
3
|
-
export declare const useTextAreaState: ({ label, placeholder, defaultValue
|
|
3
|
+
export declare const useTextAreaState: ({ label, placeholder, value: defaultValue }: TextAreaProps) => {
|
|
4
4
|
hint: string | undefined;
|
|
5
5
|
setHint: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
6
6
|
isHovered: boolean;
|
|
7
7
|
setIsHovered: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
-
value: string;
|
|
9
|
-
setValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
8
|
+
value: string | number;
|
|
9
|
+
setValue: import("react").Dispatch<import("react").SetStateAction<string | number>>;
|
|
10
10
|
isFocused: boolean;
|
|
11
11
|
setIsFocused: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
12
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextFieldProps } from './TextField.props';
|
|
3
|
-
export declare const useTextFieldState: ({ label, placeholder, defaultValue }: TextFieldProps) => {
|
|
3
|
+
export declare const useTextFieldState: ({ label, placeholder, value: defaultValue }: TextFieldProps) => {
|
|
4
4
|
hint: string | undefined;
|
|
5
5
|
setHint: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
6
6
|
isFocused: boolean;
|
|
7
7
|
setIsFocused: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
8
|
isHovered: boolean;
|
|
9
9
|
setIsHovered: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
-
setValue: import("react").Dispatch<
|
|
11
|
-
value:
|
|
10
|
+
setValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
11
|
+
value: string;
|
|
12
12
|
};
|
|
@@ -3350,7 +3350,7 @@ var DatePicker = DatePickerComponent;
|
|
|
3350
3350
|
var useTextFieldState = function useTextFieldState(_ref) {
|
|
3351
3351
|
var label = _ref.label,
|
|
3352
3352
|
placeholder = _ref.placeholder,
|
|
3353
|
-
defaultValue = _ref.
|
|
3353
|
+
defaultValue = _ref.value;
|
|
3354
3354
|
var _useState = React.useState(label != null ? label : placeholder),
|
|
3355
3355
|
hint = _useState[0],
|
|
3356
3356
|
setHint = _useState[1];
|
|
@@ -3389,7 +3389,7 @@ var usePasswordState = function usePasswordState(props) {
|
|
|
3389
3389
|
}, textFieldStates);
|
|
3390
3390
|
};
|
|
3391
3391
|
|
|
3392
|
-
var _excluded$p = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "
|
|
3392
|
+
var _excluded$p = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
|
|
3393
3393
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3394
3394
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3395
3395
|
type: "text"
|
|
@@ -3542,7 +3542,6 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3542
3542
|
}, styles), label), React__default.createElement(TextFieldInput, Object.assign({
|
|
3543
3543
|
id: id,
|
|
3544
3544
|
name: name,
|
|
3545
|
-
value: value,
|
|
3546
3545
|
readOnly: isReadOnly,
|
|
3547
3546
|
disabled: isDisabled,
|
|
3548
3547
|
autoFocus: isAutoFocus,
|
|
@@ -3551,7 +3550,8 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3551
3550
|
onBlur: handleBlur,
|
|
3552
3551
|
autoComplete: "off"
|
|
3553
3552
|
}, fieldStyles, props, {
|
|
3554
|
-
onChange: handleChange
|
|
3553
|
+
onChange: handleChange,
|
|
3554
|
+
value: value
|
|
3555
3555
|
}, onChange && {
|
|
3556
3556
|
onChange: handleChange
|
|
3557
3557
|
}))), (rightChild || isClearable && value) && React__default.createElement(FieldIcons, null, rightChild && React__default.createElement(React__default.Fragment, null, rightChild), isClearable && value && !isReadOnly && !isDisabled && React__default.createElement(CloseSvg, {
|
|
@@ -4210,7 +4210,7 @@ var Switch = SwitchComponent;
|
|
|
4210
4210
|
var useTextAreaState = function useTextAreaState(_ref) {
|
|
4211
4211
|
var label = _ref.label,
|
|
4212
4212
|
placeholder = _ref.placeholder,
|
|
4213
|
-
defaultValue = _ref.
|
|
4213
|
+
defaultValue = _ref.value;
|
|
4214
4214
|
var _useState = React.useState(label != null ? label : placeholder),
|
|
4215
4215
|
hint = _useState[0],
|
|
4216
4216
|
setHint = _useState[1];
|
|
@@ -4238,7 +4238,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
4238
4238
|
};
|
|
4239
4239
|
};
|
|
4240
4240
|
|
|
4241
|
-
var _excluded$t = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "
|
|
4241
|
+
var _excluded$t = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
|
|
4242
4242
|
var TextAreaView = function TextAreaView(_ref) {
|
|
4243
4243
|
var id = _ref.id,
|
|
4244
4244
|
name = _ref.name,
|