@thecb/components 9.2.0-beta.11 → 9.2.0-beta.12

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.cjs.js CHANGED
@@ -24201,11 +24201,7 @@ var FormSelect = function FormSelect(_ref) {
24201
24201
  hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
24202
24202
  autocompleteValue = _ref.autocompleteValue,
24203
24203
  _ref$smoothScroll = _ref.smoothScroll,
24204
- smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll,
24205
- _ref$dataQa = _ref.dataQa,
24206
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24207
- _ref$widthFitOptions = _ref.widthFitOptions,
24208
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24204
+ smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll;
24209
24205
 
24210
24206
  var _useState = React.useState(false),
24211
24207
  _useState2 = _slicedToArray(_useState, 2),
@@ -24228,9 +24224,7 @@ var FormSelect = function FormSelect(_ref) {
24228
24224
  });
24229
24225
  return /*#__PURE__*/React__default.createElement(SelectContainer, {
24230
24226
  ref: dropdownRef,
24231
- disabled: disabled,
24232
- "aria-disabled": disabled,
24233
- "data-qa": dataQa
24227
+ disabled: disabled
24234
24228
  }, /*#__PURE__*/React__default.createElement(Box, {
24235
24229
  padding: "0",
24236
24230
  minWidth: "100%"
@@ -24248,7 +24242,6 @@ var FormSelect = function FormSelect(_ref) {
24248
24242
  ariaLabelledby: createIdFromString(labelTextWhenNoError),
24249
24243
  ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24250
24244
  maxHeight: dropdownMaxHeight,
24251
- widthFitOptions: widthFitOptions,
24252
24245
  hasTitles: hasTitles,
24253
24246
  placeholder: options[0] ? options[0].text : "",
24254
24247
  options: options,
@@ -24256,7 +24249,6 @@ var FormSelect = function FormSelect(_ref) {
24256
24249
  disabledValues: disabledValues,
24257
24250
  isOpen: open,
24258
24251
  isError: field.hasErrors && field.dirty || field.hasErrors && showErrors,
24259
- ariaInvalid: field.hasErrors && field.dirty || field.hasErrors && showErrors,
24260
24252
  onSelect: onChange ? function (value) {
24261
24253
  return onChange(value);
24262
24254
  } : function (value) {
@@ -24270,17 +24262,17 @@ var FormSelect = function FormSelect(_ref) {
24270
24262
  smoothScroll: smoothScroll
24271
24263
  }), /*#__PURE__*/React__default.createElement(Stack, {
24272
24264
  direction: "row",
24273
- justify: "space-between"
24274
- }, /*#__PURE__*/React__default.createElement(Text$1, {
24265
+ justify: "space-between",
24266
+ "aria-live": "polite"
24267
+ }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
24275
24268
  color: ERROR_COLOR,
24276
24269
  variant: "pXS",
24277
24270
  weight: themeValues.fontWeight,
24278
- extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
24279
- id: createIdFromString(labelTextWhenNoError, "error message"),
24280
- "aria-live": "polite",
24281
- "aria-atomic": true,
24282
- "data-qa": createIdFromString(labelTextWhenNoError, "error message")
24283
- }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
24271
+ extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24272
+ id: createIdFromString(labelTextWhenNoError, "error message")
24273
+ }, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
24274
+ extraStyles: "height: ".concat(themeValues.lineHeight, ";")
24275
+ })));
24284
24276
  };
24285
24277
 
24286
24278
  var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");