@thecb/components 9.0.6 → 9.0.7-beta.1

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.d.ts CHANGED
@@ -479,7 +479,6 @@ interface FormSelectProps {
479
479
  autocompleteValue?: string | null;
480
480
  smoothScroll?: boolean;
481
481
  dataQa?: string | null;
482
- widthFitOptions?: boolean;
483
482
  }
484
483
 
485
484
  declare const FormSelect: React.FC<Expand<FormSelectProps> &
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,14 +24185,11 @@ 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,
24192
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24193
- _ref$widthFitOptions = _ref.widthFitOptions,
24194
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24192
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
24195
24193
 
24196
24194
  var _useState = useState(false),
24197
24195
  _useState2 = _slicedToArray(_useState, 2),
@@ -24234,7 +24232,6 @@ var FormSelect = function FormSelect(_ref) {
24234
24232
  ariaLabelledby: createIdFromString(labelTextWhenNoError),
24235
24233
  ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24236
24234
  maxHeight: dropdownMaxHeight,
24237
- widthFitOptions: widthFitOptions,
24238
24235
  hasTitles: hasTitles,
24239
24236
  placeholder: options[0] ? options[0].text : "",
24240
24237
  options: options,
@@ -25960,8 +25957,7 @@ var FormInput = function FormInput(_ref15) {
25960
25957
  themeValues = _ref15.themeValues,
25961
25958
  background = _ref15.background,
25962
25959
  customHeight = _ref15.customHeight,
25963
- _ref15$autocompleteVa = _ref15.autocompleteValue,
25964
- autocompleteValue = _ref15$autocompleteVa === void 0 ? null : _ref15$autocompleteVa,
25960
+ autocompleteValue = _ref15.autocompleteValue,
25965
25961
  extraStyles = _ref15.extraStyles,
25966
25962
  removeFromValue = _ref15.removeFromValue,
25967
25963
  _ref15$dataQa = _ref15.dataQa,
@@ -27316,7 +27312,8 @@ var fallbackValues$w = {
27316
27312
  var SELECT_ALL = "Select All";
27317
27313
 
27318
27314
  var SearchableSelect = function SearchableSelect(_ref) {
27319
- var items = _ref.items,
27315
+ var autocompleteValue = _ref.autocompleteValue,
27316
+ items = _ref.items,
27320
27317
  selectedItems = _ref.selectedItems,
27321
27318
  allSelected = _ref.allSelected,
27322
27319
  toggleSelectAllItems = _ref.toggleSelectAllItems,
@@ -27358,6 +27355,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
27358
27355
  border: themeValues.border,
27359
27356
  extraStyles: disabled && "color: #6e727e; background-color: #f7f7f7; pointer-events: none;"
27360
27357
  }, /*#__PURE__*/React.createElement(FormInput$1, {
27358
+ autocompleteValue: autocompleteValue,
27361
27359
  errorMessages: {},
27362
27360
  field: fields.searchTerm,
27363
27361
  fieldActions: actions.fields.searchTerm,
@@ -37975,9 +37973,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
37975
37973
  field = _ref.field,
37976
37974
  fieldActions = _ref.fieldActions,
37977
37975
  showErrors = _ref.showErrors,
37978
- countryCode = _ref.countryCode,
37979
- _ref$autocompleteValu = _ref.autocompleteValue,
37980
- autocompleteValue = _ref$autocompleteValu === void 0 ? null : _ref$autocompleteValu;
37976
+ countryCode = _ref.countryCode;
37981
37977
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
37982
37978
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
37983
37979
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -37987,7 +37983,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
37987
37983
  labelTextWhenNoError: labelTextWhenNoError,
37988
37984
  errorMessages: errorMessages,
37989
37985
  showErrors: showErrors,
37990
- autocompleteValue: autocompleteValue
37986
+ autocompleteValue: "address-level1"
37991
37987
  });
37992
37988
  };
37993
37989
 
@@ -39369,7 +39365,6 @@ var AddressForm = function AddressForm(_ref) {
39369
39365
  onKeyDown: function onKeyDown(e) {
39370
39366
  return e.key === "Enter" && handleSubmit(e);
39371
39367
  },
39372
- autocompleteValue: "address-level1",
39373
39368
  dataQa: "State or Province"
39374
39369
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39375
39370
  isNum: isUS,
@@ -48376,7 +48371,7 @@ var PhoneForm = function PhoneForm(_ref) {
48376
48371
  onKeyUp: function onKeyUp(e) {
48377
48372
  return e.key === "Enter" && handleSubmit(e);
48378
48373
  },
48379
- autocompleteValue: "tel",
48374
+ autocompleteValue: "tel-national",
48380
48375
  dataQa: "Phone number",
48381
48376
  isNum: true
48382
48377
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {