@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.
- package/cjs/dropdown-menu/dropdown-item-title.d.ts +1 -0
- package/cjs/dropdown-menu/dropdown-item-title.js +9 -7
- package/cjs/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/cjs/dropdown-menu/dropdown-selectbox-trigger.js +3 -2
- package/cjs/typeahead/typeahead.d.ts +6 -1
- package/cjs/typeahead/typeahead.js +3 -2
- package/esm/dropdown-menu/dropdown-item-title.d.ts +1 -0
- package/esm/dropdown-menu/dropdown-item-title.js +8 -7
- package/esm/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/esm/dropdown-menu/dropdown-selectbox-trigger.js +3 -2
- package/esm/typeahead/typeahead.d.ts +6 -1
- package/esm/typeahead/typeahead.js +3 -2
- package/js/bundle/bundle.js +21 -9
- package/js/bundle/bundle.min.js +1 -1
- package/js/bundle/index.d.ts +6 -1
- package/package.json +1 -1
- package/styles/index.css +3 -0
- package/styles/index.min.css +1 -1
- package/styles/themes/alpine-light.css +1 -1
- package/styles/themes/alpine-light.min.css +1 -1
- package/styles/themes/midnight-gray.css +1 -1
- package/styles/themes/midnight-gray.min.css +1 -1
package/js/bundle/index.d.ts
CHANGED
|
@@ -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
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;
|