@datarobot/design-system 29.0.0 → 29.1.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.
@@ -6984,13 +6984,18 @@ export type TypeaheadProps = {
6984
6984
  optionalLabelText?: string;
6985
6985
  autoFocus?: boolean;
6986
6986
  noItemsText?: string;
6987
+ /**
6988
+ * By default, on select won't be invoked if the label of selected option is the same as defaultValue
6989
+ * but there are cases when we do want to call it anyway. In that cases this prop should be set to true
6990
+ */
6991
+ shouldCallOnSelectWithOldValue?: boolean;
6987
6992
  };
6988
6993
  /** Searchable select
6989
6994
  * [CAPITALIZATION] Use sentence case for options, label, and input text. Do not end with ellipses (...).
6990
6995
  * @midnight-gray-supported
6991
6996
  * @alpine-light-supported
6992
6997
  */
6993
- function Typeahead({ defaultValue, onSearch, optionComponent, OptionList, onBlur, onKeyDown, onClear, onSelect, onDelete, searchFields, placement, options, items, optionId, optionLabel, isMultiSelect, focused, isTouched, forceShowAllOnFocus, showAllOnFocus, isDisabled, disabledInfo, isRequired, isOptional, isClearable, optionalLabelText, handleFocus, placeholder, containerRef, inputRef: inputRefProp, helperTextPosition, testId, id, label, labelTestId, ariaLabel, validity, validationTestId, asyncValidation, labelIcon, labelIconTooltipText, labelIconTestId, dropdownContentClass, wrapperClass, fieldClass, helperText, autoComplete, keepInvalidText, formatSearchValue, className, autoFocus, noItemsText, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
6998
+ function Typeahead({ defaultValue, onSearch, optionComponent, OptionList, onBlur, onKeyDown, onClear, onSelect, onDelete, searchFields, placement, options, items, optionId, optionLabel, isMultiSelect, focused, isTouched, forceShowAllOnFocus, showAllOnFocus, isDisabled, disabledInfo, isRequired, isOptional, isClearable, optionalLabelText, handleFocus, placeholder, containerRef, inputRef: inputRefProp, helperTextPosition, testId, id, label, labelTestId, ariaLabel, validity, validationTestId, asyncValidation, labelIcon, labelIconTooltipText, labelIconTestId, dropdownContentClass, wrapperClass, fieldClass, helperText, autoComplete, keepInvalidText, formatSearchValue, className, autoFocus, noItemsText, shouldCallOnSelectWithOldValue, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
6994
6999
  export default Typeahead;
6995
7000
 
6996
7001
  export type DefaultItemProps<TItem> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarobot/design-system",
3
- "version": "29.0.0",
3
+ "version": "29.1.1",
4
4
  "description": "DataRobot react components library",
5
5
  "scripts": {
6
6
  "build": "node ../../tools/build-lib.js",
package/styles/index.css CHANGED
@@ -11299,6 +11299,9 @@ button:hover.active.pill {
11299
11299
  .sidebar-card .sidebar-card-header:empty {
11300
11300
  display: none;
11301
11301
  }
11302
+ .sidebar-card .sidebar-card-header .checkbox-wrapper {
11303
+ flex-shrink: 0;
11304
+ }
11302
11305
  .sidebar-card .sidebar-card-title {
11303
11306
  flex-grow: 1;
11304
11307
  display: -webkit-box;