@bitrise/bitkit 13.48.1-alpha.0 → 13.49.0

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.48.1-alpha.0",
4
+ "version": "13.49.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -250,7 +250,6 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
250
250
  {
251
251
  'aria-label': ariaLabel,
252
252
  buttonProps = {},
253
- 'data-testid': dataTestid,
254
253
  defaultValue,
255
254
  disabled,
256
255
  dropdownMaxHeight,
@@ -337,7 +336,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
337
336
  <DropdownProvider context={dropdownCtx} styles={dropdownStyles}>
338
337
  <FormControl {...props} isDisabled={disabled} isInvalid={isError}>
339
338
  {label && (
340
- <FormLabel htmlFor={disabled || readOnly ? undefined : buttonId} marginBlockEnd="4">
339
+ <FormLabel htmlFor={buttonId} marginBlockEnd="4">
341
340
  {label}
342
341
  </FormLabel>
343
342
  )}
@@ -345,7 +344,6 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
345
344
  {...referenceProps}
346
345
  {...buttonProps}
347
346
  aria-label={ariaLabel}
348
- data-testid={dataTestid}
349
347
  id={buttonId}
350
348
  iconName={iconName}
351
349
  blurHandler={blurHandler}
@@ -11,7 +11,6 @@ export interface DropdownProps<T> extends ChakraProps {
11
11
  'aria-label'?: string;
12
12
  buttonProps?: ChakraProps;
13
13
  children?: ReactNode;
14
- 'data-testid'?: string;
15
14
  defaultValue?: T;
16
15
  disabled?: boolean;
17
16
  dropdownMinHeight?: ChakraProps['minH'];
@@ -91,7 +91,11 @@ const DateInput = forwardRef<DateInputProps, 'div'>((props, ref) => {
91
91
  return (
92
92
  <DatePicker
93
93
  mode="day"
94
- onApply={(day) => setValue(day?.toFormat(dateInputDateFormat) || '')}
94
+ onApply={(day) => {
95
+ const newVal = day?.toFormat(dateInputDateFormat) || '';
96
+ onChange?.(newVal);
97
+ setValue(newVal);
98
+ }}
95
99
  onClose={() => setIsDatePickerVisible(false)}
96
100
  selectable={selectable}
97
101
  selected={currentDate}