@thecb/components 10.11.2-beta.0 → 10.11.2-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
@@ -666,6 +666,9 @@ interface FormSelectProps {
666
666
  smoothScroll?: boolean;
667
667
  dataQa?: string | null;
668
668
  widthFitOptions?: boolean;
669
+ isRequired?: boolean;
670
+ labelTextVariant?: string;
671
+ errorLabelTextVariant?: string;
669
672
  }
670
673
 
671
674
  declare const FormSelect: React.FC<Expand<FormSelectProps> &
package/dist/index.esm.js CHANGED
@@ -25542,7 +25542,11 @@ var FormSelect = function FormSelect(_ref) {
25542
25542
  _ref$widthFitOptions = _ref.widthFitOptions,
25543
25543
  widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
25544
25544
  _ref$isRequired = _ref.isRequired,
25545
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25545
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
25546
+ _ref$labelTextVariant = _ref.labelTextVariant,
25547
+ labelTextVariant = _ref$labelTextVariant === void 0 ? "pS" : _ref$labelTextVariant,
25548
+ _ref$errorLabelTextVa = _ref.errorLabelTextVariant,
25549
+ errorLabelTextVariant = _ref$errorLabelTextVa === void 0 ? "pXS" : _ref$errorLabelTextVa;
25546
25550
  var _useState = useState(false),
25547
25551
  _useState2 = _slicedToArray(_useState, 2),
25548
25552
  open = _useState2[0],
@@ -25572,7 +25576,7 @@ var FormSelect = function FormSelect(_ref) {
25572
25576
  align: "center"
25573
25577
  }, /*#__PURE__*/React.createElement(Text$1, {
25574
25578
  as: "label",
25575
- variant: "pS",
25579
+ variant: labelTextVariant,
25576
25580
  color: themeValues.labelColor,
25577
25581
  weight: themeValues.fontWeight,
25578
25582
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
@@ -25607,7 +25611,7 @@ var FormSelect = function FormSelect(_ref) {
25607
25611
  justify: "space-between"
25608
25612
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
25609
25613
  color: ERROR_COLOR,
25610
- variant: "pXS",
25614
+ variant: errorLabelTextVariant,
25611
25615
  weight: themeValues.fontWeight,
25612
25616
  extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
25613
25617
  id: createIdFromString(labelTextWhenNoError, "error message"),