@thecb/components 9.0.7-beta.2 → 9.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "9.0.7-beta.2",
3
+ "version": "9.0.7",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -23,7 +23,8 @@ const FormSelect = ({
23
23
  hasTitles = false,
24
24
  autocompleteValue, // browser autofill value, like country-name
25
25
  smoothScroll = true, // whether the browser should animate scroll to selected item on first open
26
- dataQa = null
26
+ dataQa = null,
27
+ widthFitOptions = false
27
28
  }) => {
28
29
  const [open, setOpen] = useState(false);
29
30
  const dropdownRef = useRef(null);
@@ -73,6 +74,7 @@ const FormSelect = ({
73
74
  "error message"
74
75
  )}
75
76
  maxHeight={dropdownMaxHeight}
77
+ widthFitOptions={widthFitOptions}
76
78
  hasTitles={hasTitles}
77
79
  placeholder={options[0] ? options[0].text : ""}
78
80
  options={options}
@@ -23,6 +23,7 @@ export interface FormSelectProps {
23
23
  autocompleteValue?: string;
24
24
  smoothScroll?: boolean;
25
25
  dataQa?: string | null;
26
+ widthFitOptions?: boolean;
26
27
  }
27
28
 
28
29
  export const FormSelect: React.FC<Expand<FormSelectProps> &