@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/web.esm.js CHANGED
@@ -3343,7 +3343,7 @@ var DatePicker = DatePickerComponent;
3343
3343
  var useTextFieldState = function useTextFieldState(_ref) {
3344
3344
  var label = _ref.label,
3345
3345
  placeholder = _ref.placeholder,
3346
- defaultValue = _ref.defaultValue;
3346
+ defaultValue = _ref.value;
3347
3347
  var _useState = useState(label != null ? label : placeholder),
3348
3348
  hint = _useState[0],
3349
3349
  setHint = _useState[1];
@@ -3382,7 +3382,7 @@ var usePasswordState = function usePasswordState(props) {
3382
3382
  }, textFieldStates);
3383
3383
  };
3384
3384
 
3385
- var _excluded$p = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "type", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
3385
+ 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"];
3386
3386
  var TextFieldInput = function TextFieldInput(props) {
3387
3387
  return React.createElement(Input, Object.assign({
3388
3388
  type: "text"
@@ -3535,7 +3535,6 @@ var TextFieldView = function TextFieldView(_ref) {
3535
3535
  }, styles), label), React.createElement(TextFieldInput, Object.assign({
3536
3536
  id: id,
3537
3537
  name: name,
3538
- value: value,
3539
3538
  readOnly: isReadOnly,
3540
3539
  disabled: isDisabled,
3541
3540
  autoFocus: isAutoFocus,
@@ -3544,7 +3543,8 @@ var TextFieldView = function TextFieldView(_ref) {
3544
3543
  onBlur: handleBlur,
3545
3544
  autoComplete: "off"
3546
3545
  }, fieldStyles, props, {
3547
- onChange: handleChange
3546
+ onChange: handleChange,
3547
+ value: value
3548
3548
  }, onChange && {
3549
3549
  onChange: handleChange
3550
3550
  }))), (rightChild || isClearable && value) && React.createElement(FieldIcons, null, rightChild && React.createElement(React.Fragment, null, rightChild), isClearable && value && !isReadOnly && !isDisabled && React.createElement(CloseSvg, {
@@ -4203,7 +4203,7 @@ var Switch = SwitchComponent;
4203
4203
  var useTextAreaState = function useTextAreaState(_ref) {
4204
4204
  var label = _ref.label,
4205
4205
  placeholder = _ref.placeholder,
4206
- defaultValue = _ref.defaultValue;
4206
+ defaultValue = _ref.value;
4207
4207
  var _useState = useState(label != null ? label : placeholder),
4208
4208
  hint = _useState[0],
4209
4209
  setHint = _useState[1];
@@ -4231,7 +4231,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
4231
4231
  };
4232
4232
  };
4233
4233
 
4234
- var _excluded$t = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "defaultValue", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
4234
+ 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"];
4235
4235
  var TextAreaView = function TextAreaView(_ref) {
4236
4236
  var id = _ref.id,
4237
4237
  name = _ref.name,