diff --git a/package.json b/package.json index 5774565..8a2c360 100644 --- a/package.json +++ b/package.json @@ -118,5 +118,6 @@ "types": "./dist/src/helpers/index.d.ts" } }, - "types": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "packageManager": "pnpm@9.5.0+sha256.dbdf5961c32909fb030595a9daa1dae720162e658609a8f92f2fa99835510ca5" } diff --git a/src/components/smart/Combobox.vue b/src/components/smart/Combobox.vue new file mode 100644 index 0000000..1e6c7b2 --- /dev/null +++ b/src/components/smart/Combobox.vue @@ -0,0 +1,187 @@ + + + + {{ selectedItem || placeholder }} + ▾ + + + + + + {{ item }} + + + No results found + + + + + + + + + + diff --git a/src/components/smart/index.ts b/src/components/smart/index.ts index 8ec827c..367d660 100644 --- a/src/components/smart/index.ts +++ b/src/components/smart/index.ts @@ -25,3 +25,4 @@ export { default as HoppSmartPlaceholder } from "./Placeholder.vue" export { default as HoppSmartTree } from "./Tree.vue" export { default as HoppSmartTreeBranch } from "./TreeBranch.vue" export { default as HoppSmartSelectWrapper } from "./SelectWrapper.vue" +export { default as HoppSmartCombobox } from "./Combobox.vue" diff --git a/src/stories/Combobox.story.vue b/src/stories/Combobox.story.vue new file mode 100644 index 0000000..b81cab0 --- /dev/null +++ b/src/stories/Combobox.story.vue @@ -0,0 +1,11 @@ + + + + + + + + +