@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/index.mjs
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
"use client"
|
2
2
|
import {
|
3
3
|
MultiAutocomplete
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-EEECVCVW.mjs";
|
5
5
|
import {
|
6
6
|
Autocomplete
|
7
|
-
} from "./chunk-
|
8
|
-
import "./chunk-
|
7
|
+
} from "./chunk-AXC7ILCH.mjs";
|
8
|
+
import "./chunk-BGZIX6SN.mjs";
|
9
9
|
import {
|
10
10
|
AutocompleteCreate
|
11
|
-
} from "./chunk-
|
11
|
+
} from "./chunk-BKW7XJ6R.mjs";
|
12
12
|
import {
|
13
13
|
AutocompleteEmpty
|
14
|
-
} from "./chunk-
|
14
|
+
} from "./chunk-KLXMUIGY.mjs";
|
15
15
|
import "./chunk-VTBUO5SK.mjs";
|
16
16
|
import "./chunk-TR4X4EEG.mjs";
|
17
17
|
import {
|
18
18
|
AutocompleteOptionGroup
|
19
|
-
} from "./chunk-
|
20
|
-
import "./chunk-
|
19
|
+
} from "./chunk-4SBNPEK7.mjs";
|
20
|
+
import "./chunk-67X7JKWL.mjs";
|
21
21
|
import {
|
22
22
|
AutocompleteOption
|
23
|
-
} from "./chunk-
|
24
|
-
import "./chunk-
|
25
|
-
import "./chunk-
|
23
|
+
} from "./chunk-WFLZPB35.mjs";
|
24
|
+
import "./chunk-DDMSYTKO.mjs";
|
25
|
+
import "./chunk-V6YCG642.mjs";
|
26
26
|
import "./chunk-WDQYM4FP.mjs";
|
27
27
|
export {
|
28
28
|
Autocomplete,
|
@@ -78,8 +78,8 @@ var AutocompleteIcon = (0, import_core.forwardRef)(
|
|
78
78
|
maxHeight: "1em",
|
79
79
|
maxWidth: "1em"
|
80
80
|
},
|
81
|
-
|
82
|
-
|
81
|
+
"aria-hidden": true,
|
82
|
+
focusable: false
|
83
83
|
})
|
84
84
|
);
|
85
85
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
@@ -243,13 +243,13 @@ var useAutocompleteOption = (props) => {
|
|
243
243
|
...computedProps,
|
244
244
|
...props2,
|
245
245
|
style: !isTarget || omitSelectedValues && isSelected ? style : void 0,
|
246
|
-
tabIndex: -1,
|
247
246
|
"aria-checked": isSelected,
|
248
247
|
"aria-disabled": (0, import_utils3.ariaAttr)(isDisabled),
|
249
248
|
"data-disabled": (0, import_utils3.dataAttr)(isDisabled),
|
250
249
|
"data-focus": (0, import_utils3.dataAttr)(isFocused),
|
251
250
|
"data-target": (0, import_utils3.dataAttr)(true),
|
252
251
|
"data-value": optionValue != null ? optionValue : "",
|
252
|
+
tabIndex: -1,
|
253
253
|
onClick: (0, import_utils3.handlerAll)(computedProps.onClick, props2.onClick, onClick)
|
254
254
|
};
|
255
255
|
},
|
@@ -293,8 +293,8 @@ var useAutocompleteCreate = () => {
|
|
293
293
|
ref,
|
294
294
|
...props,
|
295
295
|
style: isHit ? style : void 0,
|
296
|
-
tabIndex: -1,
|
297
296
|
"data-focus": (0, import_utils3.dataAttr)(!isHit),
|
297
|
+
tabIndex: -1,
|
298
298
|
onClick: (0, import_utils3.handlerAll)(props.onClick, onCreate)
|
299
299
|
};
|
300
300
|
},
|
@@ -671,8 +671,8 @@ var useAutocompleteOptionGroup = ({
|
|
671
671
|
...props,
|
672
672
|
...containerProps,
|
673
673
|
style: isEmpty ? style : void 0,
|
674
|
-
|
675
|
-
"
|
674
|
+
"data-label": label,
|
675
|
+
role: "autocomplete-group-container"
|
676
676
|
};
|
677
677
|
},
|
678
678
|
[containerProps, isEmpty, label]
|
@@ -682,8 +682,8 @@ var useAutocompleteOptionGroup = ({
|
|
682
682
|
ref,
|
683
683
|
...props,
|
684
684
|
...groupProps,
|
685
|
-
|
686
|
-
"
|
685
|
+
"data-label": label,
|
686
|
+
role: "autocomplete-group"
|
687
687
|
}),
|
688
688
|
[groupProps, label]
|
689
689
|
);
|
@@ -1537,9 +1537,9 @@ var useAutocomplete = (props) => {
|
|
1537
1537
|
tabIndex: -1,
|
1538
1538
|
...props2,
|
1539
1539
|
...formControlProps,
|
1540
|
-
placeholder,
|
1541
1540
|
"aria-expanded": (0, import_utils11.dataAttr)(isOpen),
|
1542
1541
|
"data-active": (0, import_utils11.dataAttr)(isOpen),
|
1542
|
+
placeholder,
|
1543
1543
|
onFocus: (0, import_utils11.handlerAll)(props2.onFocus, onFocusProp, onFocus),
|
1544
1544
|
onKeyDown: (0, import_utils11.handlerAll)(props2.onKeyDown, onKeyDownProp, onKeyDown)
|
1545
1545
|
}),
|
@@ -1621,15 +1621,15 @@ var useAutocompleteInput = () => {
|
|
1621
1621
|
return {
|
1622
1622
|
ref: (0, import_utils11.mergeRefs)(inputRef, ref),
|
1623
1623
|
...formControlProps,
|
1624
|
-
autoCapitalize: "none",
|
1625
|
-
autoComplete: "off",
|
1626
|
-
role: "combobox",
|
1627
|
-
spellCheck: "false",
|
1628
1624
|
"aria-activedescendant": (_a = value(focusedIndex)) == null ? void 0 : _a.node.id,
|
1629
1625
|
"aria-autocomplete": "list",
|
1630
1626
|
"aria-controls": (_b = listRef.current) == null ? void 0 : _b.id,
|
1631
1627
|
"aria-expanded": isOpen,
|
1632
1628
|
"aria-haspopup": "listbox",
|
1629
|
+
autoCapitalize: "none",
|
1630
|
+
autoComplete: "off",
|
1631
|
+
role: "combobox",
|
1632
|
+
spellCheck: "false",
|
1633
1633
|
...inputProps,
|
1634
1634
|
...props,
|
1635
1635
|
id,
|
@@ -1884,6 +1884,8 @@ var MultiAutocompleteField = (0, import_core9.forwardRef)(
|
|
1884
1884
|
import_core9.ui.input,
|
1885
1885
|
{
|
1886
1886
|
className: "ui-multi-autocomplete__field__input",
|
1887
|
+
"aria-label": "Input value",
|
1888
|
+
"aria-multiselectable": "true",
|
1887
1889
|
display: "inline-block",
|
1888
1890
|
flex: "1",
|
1889
1891
|
marginBlockEnd: "0.125rem",
|
@@ -1891,8 +1893,6 @@ var MultiAutocompleteField = (0, import_core9.forwardRef)(
|
|
1891
1893
|
minW: "0px",
|
1892
1894
|
overflow: "hidden",
|
1893
1895
|
placeholder: !(label == null ? void 0 : label.length) || keepPlaceholder && isOpen ? placeholder : void 0,
|
1894
|
-
"aria-label": "Input value",
|
1895
|
-
"aria-multiselectable": "true",
|
1896
1896
|
...getInputProps({ ...inputProps, value: inputValue }, ref)
|
1897
1897
|
}
|
1898
1898
|
)
|