@thecb/components 9.0.6-beta.2 → 9.0.7-beta.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/dist/index.esm.js CHANGED
@@ -6522,7 +6522,7 @@ var BoxWrapper = styled(function (_ref) {
6522
6522
  });
6523
6523
  /* eslint-enable no-unused-vars */
6524
6524
 
6525
- var _excluded$3 = ["padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "children"];
6525
+ var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "children"];
6526
6526
  /*
6527
6527
  Box component to create generic boxes
6528
6528
  Supply padding, border, background, and color values
@@ -6532,7 +6532,8 @@ var _excluded$3 = ["padding", "borderSize", "borderColor", "borderRadius", "boxS
6532
6532
  */
6533
6533
 
6534
6534
  var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
6535
- var _ref$padding = _ref.padding,
6535
+ var autocompleteValue = _ref.autocompleteValue,
6536
+ _ref$padding = _ref.padding,
6536
6537
  padding = _ref$padding === void 0 ? "16px" : _ref$padding,
6537
6538
  _ref$borderSize = _ref.borderSize,
6538
6539
  borderSize = _ref$borderSize === void 0 ? "0px" : _ref$borderSize,
@@ -6572,6 +6573,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
6572
6573
  rest = _objectWithoutProperties(_ref, _excluded$3);
6573
6574
 
6574
6575
  return /*#__PURE__*/React.createElement(BoxWrapper, _extends({
6576
+ autoComplete: autocompleteValue,
6575
6577
  padding: padding,
6576
6578
  borderSize: borderSize,
6577
6579
  borderColor: borderColor,
@@ -23750,8 +23752,7 @@ var Dropdown = function Dropdown(_ref8) {
23750
23752
  autoEraseTypeAhead = _ref8$autoEraseTypeAh === void 0 ? true : _ref8$autoEraseTypeAh,
23751
23753
  ariaLabelledby = _ref8.ariaLabelledby,
23752
23754
  ariaDescribedby = _ref8.ariaDescribedby,
23753
- _ref8$autocompleteVal = _ref8.autocompleteValue,
23754
- autocompleteValue = _ref8$autocompleteVal === void 0 ? null : _ref8$autocompleteVal,
23755
+ autocompleteValue = _ref8.autocompleteValue,
23755
23756
  _ref8$smoothScroll = _ref8.smoothScroll,
23756
23757
  smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
23757
23758
  _ref8$ariaInvalid = _ref8.ariaInvalid,
@@ -24080,7 +24081,7 @@ var Dropdown = function Dropdown(_ref8) {
24080
24081
  }, /*#__PURE__*/React.createElement(Text$1, {
24081
24082
  variant: "p",
24082
24083
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
24083
- extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
24084
+ extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24084
24085
  }, choice.text));
24085
24086
  }))) : /*#__PURE__*/React.createElement(Fragment$1, null)));
24086
24087
  };
@@ -24184,8 +24185,7 @@ var FormSelect = function FormSelect(_ref) {
24184
24185
  themeValues = _ref.themeValues,
24185
24186
  _ref$hasTitles = _ref.hasTitles,
24186
24187
  hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
24187
- _ref$autocompleteValu = _ref.autocompleteValue,
24188
- autocompleteValue = _ref$autocompleteValu === void 0 ? null : _ref$autocompleteValu,
24188
+ autocompleteValue = _ref.autocompleteValue,
24189
24189
  _ref$smoothScroll = _ref.smoothScroll,
24190
24190
  smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll,
24191
24191
  _ref$dataQa = _ref.dataQa,
@@ -25957,8 +25957,7 @@ var FormInput = function FormInput(_ref15) {
25957
25957
  themeValues = _ref15.themeValues,
25958
25958
  background = _ref15.background,
25959
25959
  customHeight = _ref15.customHeight,
25960
- _ref15$autocompleteVa = _ref15.autocompleteValue,
25961
- autocompleteValue = _ref15$autocompleteVa === void 0 ? null : _ref15$autocompleteVa,
25960
+ autocompleteValue = _ref15.autocompleteValue,
25962
25961
  extraStyles = _ref15.extraStyles,
25963
25962
  removeFromValue = _ref15.removeFromValue,
25964
25963
  _ref15$dataQa = _ref15.dataQa,
@@ -27313,7 +27312,8 @@ var fallbackValues$w = {
27313
27312
  var SELECT_ALL = "Select All";
27314
27313
 
27315
27314
  var SearchableSelect = function SearchableSelect(_ref) {
27316
- var items = _ref.items,
27315
+ var autocompleteValue = _ref.autocompleteValue,
27316
+ items = _ref.items,
27317
27317
  selectedItems = _ref.selectedItems,
27318
27318
  allSelected = _ref.allSelected,
27319
27319
  toggleSelectAllItems = _ref.toggleSelectAllItems,
@@ -27355,6 +27355,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
27355
27355
  border: themeValues.border,
27356
27356
  extraStyles: disabled && "color: #6e727e; background-color: #f7f7f7; pointer-events: none;"
27357
27357
  }, /*#__PURE__*/React.createElement(FormInput$1, {
27358
+ autocompleteValue: autocompleteValue,
27358
27359
  errorMessages: {},
27359
27360
  field: fields.searchTerm,
27360
27361
  fieldActions: actions.fields.searchTerm,
@@ -37972,9 +37973,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
37972
37973
  field = _ref.field,
37973
37974
  fieldActions = _ref.fieldActions,
37974
37975
  showErrors = _ref.showErrors,
37975
- countryCode = _ref.countryCode,
37976
- _ref$autocompleteValu = _ref.autocompleteValue,
37977
- autocompleteValue = _ref$autocompleteValu === void 0 ? null : _ref$autocompleteValu;
37976
+ countryCode = _ref.countryCode;
37978
37977
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
37979
37978
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
37980
37979
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -37984,7 +37983,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
37984
37983
  labelTextWhenNoError: labelTextWhenNoError,
37985
37984
  errorMessages: errorMessages,
37986
37985
  showErrors: showErrors,
37987
- autocompleteValue: autocompleteValue
37986
+ autocompleteValue: "address-level1"
37988
37987
  });
37989
37988
  };
37990
37989
 
@@ -39366,7 +39365,6 @@ var AddressForm = function AddressForm(_ref) {
39366
39365
  onKeyDown: function onKeyDown(e) {
39367
39366
  return e.key === "Enter" && handleSubmit(e);
39368
39367
  },
39369
- autocompleteValue: "address-level1",
39370
39368
  dataQa: "State or Province"
39371
39369
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39372
39370
  isNum: isUS,