diff --git a/package-lock.json b/package-lock.json
index cf31a4d65..7a67c8b63 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2399,6 +2399,7 @@
},
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
"version": "1.3.0",
+ "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
diff --git a/packages/components/combobox/src/Combobox.doc.mdx b/packages/components/combobox/src/Combobox.doc.mdx
index c3f22f306..481a6e2b2 100644
--- a/packages/components/combobox/src/Combobox.doc.mdx
+++ b/packages/components/combobox/src/Combobox.doc.mdx
@@ -99,33 +99,31 @@ AutoSuggest is used as the default behaviour. The user can type anything in the
-### Disabled
+### Custom filtering
-Use `disabled` on the root component to disable the combobox entirely.
+Disable `autoFilter` to implement your own logic to filter out items depending on the inputValue or some external logic.
-
-
-### Disabled Item
+This example showcases case-sensitive filtering.
-Use `disabled` on individual `Combobox.Item` to disable them.
+
-
+### Custom value entry
-### Filtering - AutoFilter
+Combo Box can be configured to allow entering custom values that aren’t included in the list of options.
-Use `autoFilter` to filter out items that does not match the input value. This behaviour is not case-sensitive.
+
-For more custom filtering, logic should be done on call-site to render only desired items.
+### Disabled
-
+Use `disabled` on the root component to disable the combobox entirely.
-### Filtering - Manual
+
-Use your own logic to filter out items depending on the inputValue or some external logic.
+### Disabled Item
-This example showcases case-sensitive filtering.
+Use `disabled` on individual `Combobox.Item` to disable them.
-
+
### Groups
diff --git a/packages/components/combobox/src/Combobox.stories.tsx b/packages/components/combobox/src/Combobox.stories.tsx
index ff7cab410..1015bd0dd 100644
--- a/packages/components/combobox/src/Combobox.stories.tsx
+++ b/packages/components/combobox/src/Combobox.stories.tsx
@@ -71,6 +71,7 @@ export const Default: StoryFn = _args => {
+ No results foundTo Kill a MockingbirdWar and PeaceThe Idiot
@@ -102,6 +103,7 @@ export const Controlled: StoryFn = () => {
+ No results foundTo Kill a MockingbirdWar and PeaceThe Idiot
@@ -137,6 +139,7 @@ export const ControlledOpenState: StoryFn = () => {
+ No results foundTo Kill a MockingbirdWar and PeaceThe Idiot
@@ -161,6 +164,7 @@ export const CustomItem: StoryFn = _args => {
+ No results foundTo Kill a MockingbirdNew
@@ -192,16 +196,18 @@ export const CustomItem: StoryFn = _args => {
)
}
-export const Disabled: StoryFn = _args => {
+export const CustomValueEntry: StoryFn = _args => {
return (
-
+
+
+ No results foundTo Kill a MockingbirdWar and PeaceThe Idiot
@@ -215,19 +221,10 @@ export const Disabled: StoryFn = _args => {
)
}
-export const FilteringAutoFilter: StoryFn = _args => {
- const items = {
- 'book-1': 'To Kill a Mockingbird',
- 'book-2': 'War and Peace',
- 'book-3': 'The Idiot',
- 'book-4': 'A Picture of Dorian Gray',
- 'book-5': '1984',
- 'book-6': 'Pride and Prejudice',
- }
-
+export const Disabled: StoryFn = _args => {
return (
-
+
@@ -235,11 +232,12 @@ export const FilteringAutoFilter: StoryFn = _args => {
No results found
- {Object.entries(items).map(([value, text]) => (
-
- {text}
-
- ))}
+ To Kill a Mockingbird
+ War and Peace
+ The Idiot
+ A Picture of Dorian Gray
+ 1984
+ Pride and Prejudice
@@ -260,7 +258,7 @@ export const FilteringManual: StoryFn = () => {
return (
-
+ {
+ No results foundTo Kill a MockingbirdWar and PeaceThe Idiot
@@ -322,6 +321,7 @@ export const DisabledItem: StoryFn = _args => {
+ No results foundTo Kill a MockingbirdWar and Peace
@@ -340,12 +340,13 @@ export const DisabledItem: StoryFn = _args => {
export const Grouped: StoryFn = _args => {
return (
-
+
+ No results foundBest-sellersTo Kill a Mockingbird
@@ -378,6 +379,7 @@ export const LeadingIcon: StoryFn = _args => {
+ No results foundTo Kill a MockingbirdWar and PeaceThe Idiot
@@ -403,6 +405,7 @@ export const ItemIndicator: StoryFn = _args => {
+ No results foundTo Kill a Mockingbird
@@ -450,6 +453,7 @@ export const Statuses: StoryFn = () => {
+ No results foundTo Kill a MockingbirdWar and PeaceThe Idiot
@@ -468,7 +472,7 @@ export const Statuses: StoryFn = () => {
export const MultipleSelection: StoryFn = _args => {
return (