@yamada-ui/autocomplete 1.5.4-dev-20241007025246 → 1.5.4-dev-20241007135427
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/autocomplete-create.js +3 -3
- package/dist/autocomplete-create.js.map +1 -1
- package/dist/autocomplete-create.mjs +3 -3
- package/dist/autocomplete-empty.js +2 -2
- package/dist/autocomplete-empty.js.map +1 -1
- package/dist/autocomplete-empty.mjs +3 -3
- package/dist/autocomplete-icon.js +2 -2
- package/dist/autocomplete-icon.js.map +1 -1
- package/dist/autocomplete-icon.mjs +1 -1
- package/dist/autocomplete-option-group.js +4 -4
- package/dist/autocomplete-option-group.js.map +1 -1
- package/dist/autocomplete-option-group.mjs +2 -2
- package/dist/autocomplete-option.js +3 -3
- package/dist/autocomplete-option.js.map +1 -1
- package/dist/autocomplete-option.mjs +3 -3
- package/dist/autocomplete.js +13 -13
- package/dist/autocomplete.js.map +1 -1
- package/dist/autocomplete.mjs +9 -9
- package/dist/{chunk-EWV3Q3S4.mjs → chunk-4SBNPEK7.mjs} +2 -2
- package/dist/{chunk-2SISETLV.mjs → chunk-67X7JKWL.mjs} +5 -5
- package/dist/{chunk-2SISETLV.mjs.map → chunk-67X7JKWL.mjs.map} +1 -1
- package/dist/{chunk-PXQD7AV2.mjs → chunk-AXC7ILCH.mjs} +5 -5
- package/dist/{chunk-4APEPTYJ.mjs → chunk-BGZIX6SN.mjs} +8 -8
- package/dist/{chunk-4APEPTYJ.mjs.map → chunk-BGZIX6SN.mjs.map} +1 -1
- package/dist/{chunk-I4IW2CW7.mjs → chunk-BKW7XJ6R.mjs} +3 -3
- package/dist/{chunk-ZJFWWXQM.mjs → chunk-DDMSYTKO.mjs} +3 -3
- package/dist/{chunk-ZJFWWXQM.mjs.map → chunk-DDMSYTKO.mjs.map} +1 -1
- package/dist/{chunk-TJGVRIGK.mjs → chunk-EEECVCVW.mjs} +7 -7
- package/dist/{chunk-TJGVRIGK.mjs.map → chunk-EEECVCVW.mjs.map} +1 -1
- package/dist/{chunk-2MVSDK7L.mjs → chunk-KLXMUIGY.mjs} +3 -3
- package/dist/{chunk-I5X4WSCX.mjs → chunk-V6YCG642.mjs} +3 -3
- package/dist/{chunk-I5X4WSCX.mjs.map → chunk-V6YCG642.mjs.map} +1 -1
- package/dist/{chunk-ZEGANG5C.mjs → chunk-WFLZPB35.mjs} +3 -3
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/multi-autocomplete.js +15 -15
- package/dist/multi-autocomplete.js.map +1 -1
- package/dist/multi-autocomplete.mjs +9 -9
- package/dist/use-autocomplete-option-group.js +4 -4
- package/dist/use-autocomplete-option-group.js.map +1 -1
- package/dist/use-autocomplete-option-group.mjs +1 -1
- package/dist/use-autocomplete-option.js +2 -2
- package/dist/use-autocomplete-option.js.map +1 -1
- package/dist/use-autocomplete-option.mjs +1 -1
- package/dist/use-autocomplete.js +12 -12
- package/dist/use-autocomplete.js.map +1 -1
- package/dist/use-autocomplete.mjs +6 -6
- package/package.json +13 -13
- /package/dist/{chunk-EWV3Q3S4.mjs.map → chunk-4SBNPEK7.mjs.map} +0 -0
- /package/dist/{chunk-PXQD7AV2.mjs.map → chunk-AXC7ILCH.mjs.map} +0 -0
- /package/dist/{chunk-I4IW2CW7.mjs.map → chunk-BKW7XJ6R.mjs.map} +0 -0
- /package/dist/{chunk-2MVSDK7L.mjs.map → chunk-KLXMUIGY.mjs.map} +0 -0
- /package/dist/{chunk-ZEGANG5C.mjs.map → chunk-WFLZPB35.mjs.map} +0 -0
package/dist/autocomplete.js
CHANGED
@@ -77,8 +77,8 @@ var AutocompleteIcon = (0, import_core.forwardRef)(
|
|
77
77
|
maxHeight: "1em",
|
78
78
|
maxWidth: "1em"
|
79
79
|
},
|
80
|
-
|
81
|
-
|
80
|
+
"aria-hidden": true,
|
81
|
+
focusable: false
|
82
82
|
})
|
83
83
|
);
|
84
84
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
@@ -242,13 +242,13 @@ var useAutocompleteOption = (props) => {
|
|
242
242
|
...computedProps,
|
243
243
|
...props2,
|
244
244
|
style: !isTarget || omitSelectedValues && isSelected ? style : void 0,
|
245
|
-
tabIndex: -1,
|
246
245
|
"aria-checked": isSelected,
|
247
246
|
"aria-disabled": (0, import_utils3.ariaAttr)(isDisabled),
|
248
247
|
"data-disabled": (0, import_utils3.dataAttr)(isDisabled),
|
249
248
|
"data-focus": (0, import_utils3.dataAttr)(isFocused),
|
250
249
|
"data-target": (0, import_utils3.dataAttr)(true),
|
251
250
|
"data-value": optionValue != null ? optionValue : "",
|
251
|
+
tabIndex: -1,
|
252
252
|
onClick: (0, import_utils3.handlerAll)(computedProps.onClick, props2.onClick, onClick)
|
253
253
|
};
|
254
254
|
},
|
@@ -292,8 +292,8 @@ var useAutocompleteCreate = () => {
|
|
292
292
|
ref,
|
293
293
|
...props,
|
294
294
|
style: isHit ? style : void 0,
|
295
|
-
tabIndex: -1,
|
296
295
|
"data-focus": (0, import_utils3.dataAttr)(!isHit),
|
296
|
+
tabIndex: -1,
|
297
297
|
onClick: (0, import_utils3.handlerAll)(props.onClick, onCreate)
|
298
298
|
};
|
299
299
|
},
|
@@ -670,8 +670,8 @@ var useAutocompleteOptionGroup = ({
|
|
670
670
|
...props,
|
671
671
|
...containerProps,
|
672
672
|
style: isEmpty ? style : void 0,
|
673
|
-
|
674
|
-
"
|
673
|
+
"data-label": label,
|
674
|
+
role: "autocomplete-group-container"
|
675
675
|
};
|
676
676
|
},
|
677
677
|
[containerProps, isEmpty, label]
|
@@ -681,8 +681,8 @@ var useAutocompleteOptionGroup = ({
|
|
681
681
|
ref,
|
682
682
|
...props,
|
683
683
|
...groupProps,
|
684
|
-
|
685
|
-
"
|
684
|
+
"data-label": label,
|
685
|
+
role: "autocomplete-group"
|
686
686
|
}),
|
687
687
|
[groupProps, label]
|
688
688
|
);
|
@@ -1536,9 +1536,9 @@ var useAutocomplete = (props) => {
|
|
1536
1536
|
tabIndex: -1,
|
1537
1537
|
...props2,
|
1538
1538
|
...formControlProps,
|
1539
|
-
placeholder,
|
1540
1539
|
"aria-expanded": (0, import_utils11.dataAttr)(isOpen),
|
1541
1540
|
"data-active": (0, import_utils11.dataAttr)(isOpen),
|
1541
|
+
placeholder,
|
1542
1542
|
onFocus: (0, import_utils11.handlerAll)(props2.onFocus, onFocusProp, onFocus),
|
1543
1543
|
onKeyDown: (0, import_utils11.handlerAll)(props2.onKeyDown, onKeyDownProp, onKeyDown)
|
1544
1544
|
}),
|
@@ -1620,15 +1620,15 @@ var useAutocompleteInput = () => {
|
|
1620
1620
|
return {
|
1621
1621
|
ref: (0, import_utils11.mergeRefs)(inputRef, ref),
|
1622
1622
|
...formControlProps,
|
1623
|
-
autoCapitalize: "none",
|
1624
|
-
autoComplete: "off",
|
1625
|
-
role: "combobox",
|
1626
|
-
spellCheck: "false",
|
1627
1623
|
"aria-activedescendant": (_a = value(focusedIndex)) == null ? void 0 : _a.node.id,
|
1628
1624
|
"aria-autocomplete": "list",
|
1629
1625
|
"aria-controls": (_b = listRef.current) == null ? void 0 : _b.id,
|
1630
1626
|
"aria-expanded": isOpen,
|
1631
1627
|
"aria-haspopup": "listbox",
|
1628
|
+
autoCapitalize: "none",
|
1629
|
+
autoComplete: "off",
|
1630
|
+
role: "combobox",
|
1631
|
+
spellCheck: "false",
|
1632
1632
|
...inputProps,
|
1633
1633
|
...props,
|
1634
1634
|
id,
|