@economic/taco 2.54.6 → 2.54.7-vite.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/dist/taco.js CHANGED
@@ -12972,23 +12972,24 @@ const filterData = (data, value = "") => {
12972
12972
  };
12973
12973
  const debouncer = debounce$1((f2) => f2(), 200);
12974
12974
  const convertToInputValue = (value) => String(value ?? "");
12975
- const useCombobox = ({
12976
- "aria-label": ariaLabel,
12977
- "aria-labelledby": ariaLabelledBy,
12978
- data: unfilteredData = [],
12979
- defaultValue: defaultValue2,
12980
- disabled,
12981
- id: nativeId,
12982
- inline,
12983
- loading: __,
12984
- onChange,
12985
- onClick,
12986
- onKeyDown,
12987
- onSearch,
12988
- readOnly,
12989
- value,
12990
- ...props
12991
- }, ref) => {
12975
+ const useCombobox = (props, ref) => {
12976
+ const {
12977
+ "aria-label": ariaLabel,
12978
+ "aria-labelledby": ariaLabelledBy,
12979
+ data: unfilteredData = [],
12980
+ defaultValue: defaultValue2,
12981
+ disabled,
12982
+ id: nativeId,
12983
+ inline,
12984
+ loading: __,
12985
+ onChange,
12986
+ onClick,
12987
+ onKeyDown,
12988
+ onSearch,
12989
+ readOnly,
12990
+ value,
12991
+ ...otherProps
12992
+ } = props;
12992
12993
  const inputRef = useMergedRef(ref);
12993
12994
  const buttonRef = React.useRef(null);
12994
12995
  const listRef = React.useRef(null);
@@ -13173,13 +13174,14 @@ const useCombobox = ({
13173
13174
  role: "combobox"
13174
13175
  };
13175
13176
  const input = {
13176
- ...props,
13177
+ ...otherProps,
13177
13178
  "aria-controls": listId,
13178
13179
  // Indicates that the autocomplete behavior of the text input is to suggest a list of possible values in a popup and that the suggestions
13179
13180
  // are related to the string that is present in the textbox
13180
13181
  "aria-autocomplete": "list",
13181
13182
  // Enables assistive technologies to know which element the application regards as focused while DOM focus remains on the input element
13182
13183
  "aria-activedescendant": currentIndex !== void 0 && data[currentIndex] ? getId(listId, String(data[currentIndex].value)) : void 0,
13184
+ "aria-label": ariaLabel,
13183
13185
  "aria-labelledby": ariaLabelledBy,
13184
13186
  disabled,
13185
13187
  onBlur: !disabled && !readOnly ? handleInputBlur : void 0,