@bitrise/bitkit 13.150.1-alpha.11 → 13.150.1-alpha.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "13.150.1-alpha.11",
4
+ "version": "13.150.1-alpha.12",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -271,6 +271,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
271
271
  placeholder,
272
272
  placement,
273
273
  readOnly,
274
+ required,
274
275
  returnFocus = true,
275
276
  search,
276
277
  size = 'lg',
@@ -337,7 +338,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
337
338
  <>
338
339
  {name && formValue && <input name={name} type="hidden" value={formValue} />}
339
340
  <DropdownProvider context={dropdownCtx} styles={dropdownStyles}>
340
- <FormControl {...props} isDisabled={disabled} isInvalid={isError} isRequired>
341
+ <FormControl {...props} isDisabled={disabled} isInvalid={isError} isRequired={required}>
341
342
  <FormLabel infoText={infoText} infoTooltipProps={infoTooltipProps} htmlFor={buttonId}>
342
343
  {label}
343
344
  </FormLabel>
@@ -34,6 +34,7 @@ export interface DropdownProps<T> extends ChakraProps {
34
34
  placeholder?: string;
35
35
  placement?: UseFloatingProps['placement'];
36
36
  readOnly?: boolean;
37
+ required?: boolean;
37
38
  returnFocus?: boolean;
38
39
  search?: ReactNode;
39
40
  size?: 'lg' | 'md';