@khanacademy/wonder-blocks-form 4.9.4 → 4.10.0

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @khanacademy/wonder-blocks-form
2
2
 
3
+ ## 4.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7a98815b: LabeledTextField: Adds `name` prop for the `TextField` component
8
+
3
9
  ## 4.9.4
4
10
 
5
11
  ### Patch Changes
@@ -120,6 +120,10 @@ type CommonProps = {
120
120
  * Specifies if the TextField allows autocomplete.
121
121
  */
122
122
  autoComplete?: string;
123
+ /**
124
+ * Provide a name for the TextField.
125
+ */
126
+ name?: string;
123
127
  };
124
128
  type OtherInputProps = CommonProps & {
125
129
  /**
package/dist/es/index.js CHANGED
@@ -916,7 +916,7 @@ const styles$1 = StyleSheet.create({
916
916
  }
917
917
  });
918
918
 
919
- const _excluded$1 = ["id", "type", "label", "description", "value", "disabled", "required", "validate", "onChange", "onKeyDown", "placeholder", "light", "style", "testId", "readOnly", "autoComplete", "forwardedRef", "ariaDescribedby", "onValidate", "onFocus", "onBlur"];
919
+ const _excluded$1 = ["id", "type", "label", "description", "value", "disabled", "required", "validate", "onChange", "onKeyDown", "placeholder", "light", "style", "testId", "readOnly", "autoComplete", "forwardedRef", "ariaDescribedby", "name", "onValidate", "onFocus", "onBlur"];
920
920
  class LabeledTextField extends React.Component {
921
921
  constructor(props) {
922
922
  super(props);
@@ -981,7 +981,8 @@ class LabeledTextField extends React.Component {
981
981
  readOnly,
982
982
  autoComplete,
983
983
  forwardedRef,
984
- ariaDescribedby
984
+ ariaDescribedby,
985
+ name
985
986
  } = _this$props,
986
987
  otherProps = _objectWithoutPropertiesLoose(_this$props, _excluded$1);
987
988
  return React.createElement(IDProvider, {
@@ -1011,7 +1012,8 @@ class LabeledTextField extends React.Component {
1011
1012
  light: light,
1012
1013
  readOnly: readOnly,
1013
1014
  autoComplete: autoComplete,
1014
- ref: forwardedRef
1015
+ ref: forwardedRef,
1016
+ name: name
1015
1017
  }, otherProps)),
1016
1018
  label: label,
1017
1019
  description: description,
package/dist/index.js CHANGED
@@ -946,7 +946,7 @@ const styles$1 = aphrodite.StyleSheet.create({
946
946
  }
947
947
  });
948
948
 
949
- const _excluded$1 = ["id", "type", "label", "description", "value", "disabled", "required", "validate", "onChange", "onKeyDown", "placeholder", "light", "style", "testId", "readOnly", "autoComplete", "forwardedRef", "ariaDescribedby", "onValidate", "onFocus", "onBlur"];
949
+ const _excluded$1 = ["id", "type", "label", "description", "value", "disabled", "required", "validate", "onChange", "onKeyDown", "placeholder", "light", "style", "testId", "readOnly", "autoComplete", "forwardedRef", "ariaDescribedby", "name", "onValidate", "onFocus", "onBlur"];
950
950
  class LabeledTextField extends React__namespace.Component {
951
951
  constructor(props) {
952
952
  super(props);
@@ -1011,7 +1011,8 @@ class LabeledTextField extends React__namespace.Component {
1011
1011
  readOnly,
1012
1012
  autoComplete,
1013
1013
  forwardedRef,
1014
- ariaDescribedby
1014
+ ariaDescribedby,
1015
+ name
1015
1016
  } = _this$props,
1016
1017
  otherProps = _objectWithoutPropertiesLoose__default["default"](_this$props, _excluded$1);
1017
1018
  return React__namespace.createElement(wonderBlocksCore.IDProvider, {
@@ -1041,7 +1042,8 @@ class LabeledTextField extends React__namespace.Component {
1041
1042
  light: light,
1042
1043
  readOnly: readOnly,
1043
1044
  autoComplete: autoComplete,
1044
- ref: forwardedRef
1045
+ ref: forwardedRef,
1046
+ name: name
1045
1047
  }, otherProps)),
1046
1048
  label: label,
1047
1049
  description: description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-form",
3
- "version": "4.9.4",
3
+ "version": "4.10.0",
4
4
  "design": "v1",
5
5
  "description": "Form components for Wonder Blocks.",
6
6
  "main": "dist/index.js",